| A mod request for NightRider (if possible) | |
Posted: 01/04/2010 12:04 PM |
|
|
|
|
Sparrow |
Posts |
21 |
Word Cnt. |
2,213 |
BDay |
N/A |
Sign |
N/A |
|
|
|
|
|
Joined: Dec 11, 2005
Local time: 5:54 AM
|
|
|
|
|
|
Hello Nightrider! its good to be back in this forum...and sorry if I come back only and everytime i need help.. but anyway you're one of the best php and phpbb2 related coders i've ever met over the net soooo....
Also i noticed that since I've been here for the last time you've still made many modifications to this board, and now its as great as fast...as always, congrats for it.
Now.. lets get to the point.
Do you know about the existance of a phpbb2 "thread starter" mod in viewtopic page?
I think it would be nice to show a thread starter message and icon everytime the thread starter replies to his/her own started topic...
Have a look at this sample to see what i mean:
http://www.tiamatsfangs.com/thread.php?postid=3744
In the 3rd and follow message you can see what I mean.. a thread starter message and little image in mini-profile view, to remind that the user started the topic.
Searching for a possible mod, I just found a discussion on phpbb official board:
http://www.phpbb.com/community/viewtopic.php?f=72&t=1376915
Well, the trick code reported HERE seems for phpbb3 but can you adapt it to our beloved phpbb2?
Thanks! |
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/04/2010 7:24 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:54 AM
Location: St Pete, FL
|
|
|
|
|
|
Welcome back cavallino!!!
Yes, that should be easy enough to create a MOD that can be installed and work in phpBB2. I've never heard of that MOD but it should be a fairly simple one to create. I'll see what I can do for you...
|
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/04/2010 7:47 PM |
|
|
|
|
Sparrow |
Posts |
21 |
Word Cnt. |
2,213 |
BDay |
N/A |
Sign |
N/A |
|
|
|
|
|
Joined: Dec 11, 2005
Local time: 5:54 AM
|
|
|
|
|
|
Thanks Nightrider, and take your time for it!
I know i can always count on your precious help
And maybe you will find this mod useful also here, I think it's not that bad as idea! |
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/05/2010 5:04 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:54 AM
Location: St Pete, FL
|
|
|
|
|
|
Ok, I created a Thread Starter MOD and installed it on our Vanilla board. You can check it out and see if this is what you had in mind:
Test Forum 1
Let me know if this is what you had in mind or if there is anything that you want me to adjust or change or add. If you like that, you can try installing this into your community, preferably using EasyMod. The MOD is designed to be EM Friendly and designed for phpBB 2.0.24 but will probably install easily into earlier versions as well. This is the download link:
ThreadStarter_100.zip
|
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/06/2010 8:35 AM |
|
|
|
|
Sparrow |
Posts |
21 |
Word Cnt. |
2,213 |
BDay |
N/A |
Sign |
N/A |
|
|
|
|
|
Joined: Dec 11, 2005
Local time: 5:54 AM
|
|
|
|
|
|
Thanks so much NightRider!!
that's exactly what I had in mind, and it was so easy and quick to install thanks to your instructions.
When you wrote "designed for phpBB 2.0.24" you meant 2.0.23 version or... there has been new patch that I am missing??
Thanks again for this mod and have a great day |
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/06/2010 3:44 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:54 AM
Location: St Pete, FL
|
|
|
|
|
|
There is actually an unofficial update released after phpBB2 was abandoned. This fixes a few more phpBB2 security problems. After installing it, you would get the warning message in your ACP that your install is not up to date again since version 2.0.24 is not registered in the phpbb.com database:
This can be quickly and easily installed using EM...
phpBB-2.0.24-codechanges.zip
|
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/07/2010 11:30 AM |
|
|
|
|
Sparrow |
Posts |
21 |
Word Cnt. |
2,213 |
BDay |
N/A |
Sign |
N/A |
|
|
|
|
|
Joined: Dec 11, 2005
Local time: 5:54 AM
|
|
|
|
|
|
Thanks for the tip!!
I have just tried to apply the codechanges... it took me quite some time but almost at the end, I have only a problem with my viewtopic.php file. I don't know if you can help me NightRider...
I try to explain:
in phpbb-2.0.23_to_2.0.24.txt instructions, for viewtopic.php we have:
Code:
|
#
#-----[ FIND ]---------------------------------------------
#
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a> ';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$topic_mod .= '<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a> ';
#
#-----[ FIND ]---------------------------------------------
#
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=move&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a> ';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$topic_mod .= '<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=move&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a> ';
#
#-----[ FIND ]---------------------------------------------
#
$topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=lock&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a> ' : "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unlock&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a> ';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? '<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=lock&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a> ' : '<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unlock&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a> ';
#
#-----[ FIND ]---------------------------------------------
#
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a> ';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$topic_mod .= '<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a> ';
|
While in my messed up by mods viewtopic.php I have:
Code:
|
$topic_mod .= "<a onclick=\"return AJAXTopicDelete($topic_id, '". $lang['Confirm_delete_topic'] ."');\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a onclick=\"return AJAXTopicMoveSelect();\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=move&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a> ';
$topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "<a id=\"topic_locklink\" onclick=\"return AJAXLockTopic($topic_id, 1);\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=lock&sid=" . $userdata['session_id'] . '"><img id="topic_lockimg" src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a> ' : "<a id=\"topic_locklink\" onclick=\"return AJAXLockTopic($topic_id, 0);\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unlock&sid=" . $userdata['session_id'] . '"><img id="topic_lockimg" src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=multi_del&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_multi_delete'] . '" alt="' . $lang['Delete_multiple_posts'] . '" title="' . $lang['Delete_multiple_posts'] . '" border="0" /></a> ';
$topic_mod .= ( $forum_topic_data['topic_type'] != 1 ) ? "<a id=\"sticky_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 1);\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=sticky&sid=" . $userdata['session_id'] . '"><img id="sticky_img" src="' . $images['topic_mod_sticky'] . '" alt="' . $lang['Post_Sticky'] . '" title="' . $lang['Post_Sticky'] . '" border="0" /></a> ' : "<a id=\"sticky_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 0);\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unsticky&sid=" . $userdata['session_id'] . '"><img id="sticky_img" src="' . $images['topic_mod_unsticky'] . '" alt="' . $lang['Post_Normal'] . '" title="' . $lang['Post_Normal'] . '" border="0" /></a> ';
$topic_mod .= ( $forum_topic_data['topic_type'] != 2 ) ? "<a id=\"announce_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 2);\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=announce&sid=" . $userdata['session_id'] . '"><img id="announce_img" src="' . $images['topic_mod_announce'] . '" alt="' . $lang['Post_Announcement'] . '" title="' . $lang['Post_Announcement'] . '" border="0" /></a> ' : "<a id=\"announce_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 0);\" href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unannounce&sid=" . $userdata['session_id'] . '"><img id="announce_img" src="' . $images['topic_mod_unannounce'] . '" alt="' . $lang['Post_Normal'] . '" title="' . $lang['Post_Normal'] . '" border="0" /></a> ';
|
Nightrider, do you think I should give up with this update?
All the other code-changes are okay, its just this I dont understand... maybe you can give me a little help over this? |
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/07/2010 8:01 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:54 AM
Location: St Pete, FL
|
|
|
|
|
|
Actually this update wasn't designed to be easily installed into every forum. It was designed to install easily into clean vanilla forums. It is a mistake to design a MOD that takes long lines of code and replace them with different code because a lot of sites aren't running unmodified code...
If you are using EM to install this, I can really clean this section up to install easily into your forum. Let me know if you are using EM to install this...
You don't have to install this but it wouldn't hurt if you did...
|
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/07/2010 9:06 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:54 AM
Location: St Pete, FL
|
|
|
|
|
|
Ok, you can try this code. This should work for most modified forums and is EM friendly. Let me know if you have any trouble with this:
Code:
|
#
#-----[ FIND ]---------------------------------------------
#
$lang['Delete_topic'] . '" title="' . $lang['Delete_topic']
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=delete&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=delete&p_sid=" . $userdata['priv_session_id'])
#
#-----[ FIND ]---------------------------------------------
#
$images['topic_mod_move'] . '" alt="' . $lang['Move_topic']
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=move&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=move&p_sid=" . $userdata['priv_session_id'])
#
#-----[ FIND ]---------------------------------------------
#
$lang['Lock_topic'] . '" title="' . $lang['Lock_topic']
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=lock&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=lock&p_sid=" . $userdata['priv_session_id'])
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=unlock&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=unlock&p_sid=" . $userdata['priv_session_id'])
#
#-----[ FIND ]---------------------------------------------
#
$lang['Split_topic'] . '" title="' . $lang['Split_topic']
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=split&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=split&p_sid=" . $userdata['priv_session_id'])
#
#-----[ FIND ]---------------------------------------------
#
$lang['Delete_multiple_posts'] . '" title="' . $lang['Delete_multiple_posts']
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=multi_del&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=multi_del&p_sid=" . $userdata['priv_session_id'])
#
#-----[ FIND ]---------------------------------------------
#
$lang['Post_Sticky'] . '" title="' . $lang['Post_Sticky']
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=sticky&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=sticky&p_sid=" . $userdata['priv_session_id'])
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=unsticky&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=unsticky&p_sid=" . $userdata['priv_session_id'])
#
#-----[ FIND ]---------------------------------------------
#
$lang['Post_Normal'] . '" title="' . $lang['Post_Normal']
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=announce&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=announce&p_sid=" . $userdata['priv_session_id'])
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
href=\"modcp.$phpEx?"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
href="' . append_sid("modcp.$phpEx?"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$topic_id&mode=unannounce&sid=" . $userdata['session_id']
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$topic_id&mode=unannounce&p_sid=" . $userdata['priv_session_id'])
|
|
|
|
|
|
Back to Top |
|
|
| Re: A mod request for NightRider (if possible) | |
Posted: 01/08/2010 5:17 AM |
|
|
|
|
Sparrow |
Posts |
21 |
Word Cnt. |
2,213 |
BDay |
N/A |
Sign |
N/A |
|
|
|
|
|
Joined: Dec 11, 2005
Local time: 5:54 AM
|
|
|
|
|
|
Thanks again! with your new instructions i was able to find my way out of it
now that viewtopic part looks like this:
Code:
|
$s_auth_can .= sprintf($lang['Rules_moderate'], '<a href="' . append_sid("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&p_sid=" . $userdata['priv_session_id']) . '">', '</a>');
$topic_mod .= "<a onclick=\"return AJAXTopicDelete($topic_id, '". $lang['Confirm_delete_topic'] ."');\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a onclick=\"return AJAXTopicMoveSelect();\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=move&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a> ';
$topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "<a id=\"topic_locklink\" onclick=\"return AJAXLockTopic($topic_id, 1);\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=lock&p_sid=" . $userdata['priv_session_id']) . '"><img id="topic_lockimg" src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a> ' : "<a id=\"topic_locklink\" onclick=\"return AJAXLockTopic($topic_id, 0);\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unlock&p_sid=" . $userdata['priv_session_id']) . '"><img id="topic_lockimg" src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=multi_del&p_sid=" . $userdata['priv_session_id']) . '"><img src="' . $images['topic_mod_multi_delete'] . '" alt="' . $lang['Delete_multiple_posts'] . '" title="' . $lang['Delete_multiple_posts'] . '" border="0" /></a> ';
$topic_mod .= ( $forum_topic_data['topic_type'] != 1 ) ? "<a id=\"sticky_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 1);\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=sticky&p_sid=" . $userdata['priv_session_id']) . '"><img id="sticky_img" src="' . $images['topic_mod_sticky'] . '" alt="' . $lang['Post_Sticky'] . '" title="' . $lang['Post_Sticky'] . '" border="0" /></a> ' : "<a id=\"sticky_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 0);\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unsticky&p_sid=" . $userdata['priv_session_id']) . '"><img id="sticky_img" src="' . $images['topic_mod_unsticky'] . '" alt="' . $lang['Post_Normal'] . '" title="' . $lang['Post_Normal'] . '" border="0" /></a> ';
$topic_mod .= ( $forum_topic_data['topic_type'] != 2 ) ? "<a id=\"announce_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 2);\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=announce&p_sid=" . $userdata['priv_session_id']) . '"><img id="announce_img" src="' . $images['topic_mod_announce'] . '" alt="' . $lang['Post_Announcement'] . '" title="' . $lang['Post_Announcement'] . '" border="0" /></a> ' : "<a id=\"announce_link\" onclick=\"return AJAXTopicTypeChange($topic_id, 0);\" href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unannounce&p_sid=" . $userdata['priv_session_id']) . '"><img id="announce_img" src="' . $images['topic_mod_unannounce'] . '" alt="' . $lang['Post_Normal'] . '" title="' . $lang['Post_Normal'] . '" border="0" /></a> ';
|
Just in case, i make a backup of every file modified before applying all code-changes. Unfortunately I couldn't use EasyMod as my board is too modded and heavily.... |
|
|
|
|
Back to Top |
|
|
|
| Information | |
|