[Tutorial] Adding Thread Type (Sticky) - Printable Version +- MyBB Codes (http://www.mybbcodes.com) +-- Forum: Babjusi's Previous Forum General Stuff (/forumdisplay.php?fid=42) +--- Forum: General Support (/forumdisplay.php?fid=46) +---- Forum: Tutorials (/forumdisplay.php?fid=50) +---- Thread: [Tutorial] Adding Thread Type (Sticky) (/showthread.php?tid=1150) |
[Tutorial] Adding Thread Type (Sticky) - skiilz - 12-10-2009 07:21 PM Hello guys. I made this tutorial to show you how to add the thread type before the post like "Poll:" (already in MyBB). The Poll is already in MyBB. When you create a poll the forum display will input the "Poll: THREAD NAME". After this tutorial you will make a sticky thread and before the name it will display "Sticky: THREAD NAME". So...lets start? =D First of all make a backup of the ./MYBB_ROOT/forumdisplay.php and inc/languages/english/global.lang.php in case you need to back to the old files. 1- Go to ./MYBB_ROOT/forumdisplay.php and search for: Code:[Highlight] if($thread['sticky'] == "1" && !$donestickysep) Below add: Code:[Highlight] if($thread['sticky']) 2- Now go to the inc/languages/english/global.lang.php and search for: Code:[Highlight] $l['poll_prefix'] = "Poll:"; Below add: Code:[Highlight] $l['sticky_prefix'] = "<strong>Sticky:</strong>"; Note: You can change the "Sticky" for whatever you want to call the sticky thread (Pinned/Stickied...). Save all files and upload. RE: [Tutorial] Adding Thread Type (Sticky) - babjusi - 12-10-2009 08:23 PM A nice one. Thanks for the share. RE: [Tutorial] Adding Thread Type (Sticky) - skiilz - 12-10-2009 09:15 PM No problem! Thank you. RE: [Tutorial] Adding Thread Type (Sticky) - Krash - 12-12-2009 06:37 AM Nice tut, very helpful! Thanks =D |