![]() |
Hack: Custom Post Prefixes
Version of vB: 2.2.0, although may work on earlier versions but not tested Current Version: 1.0.0 Description: This hack allows you to add custom prefixes to post, like "Poll: " and "Sticky: ", only custom ones editable in the control panel. All feedback is appreciated, and everything you need is in the attached file. NOTE: If you downloaded this prior to 5:10 CT please re-download it, I fixed something in the directions. Version 1.0.0 released, go here for details. |
Thank you Andrew! :)
|
Cool :D
|
I can't seem to get this to work. I've done everything and received no errors. I've added a couple prefixes via the admin cp and tried a test post.....they don't show up in the post titles.
|
Dalius Hack Reviews
I have been looking for something like this for a while, thanks alot man! RATING: 9/10 |
I like it but havent tried it :) Is it possible to make the custom ones stick?
|
Rob, are you sure you edited forumdisplay.php? If you forgot to do that I can see why it isn't working, but otherwise it should. Also, you can try looking in phpMyAdmin to see if the table "thread" has anything in the customprefix column in the posts you tried it on. Make sure you have edited all of the templates, too.
Hope that helps. :cool: |
Hamma, yes, you can still Stick threads if you use a custom prefix on them. In the install you can edit it (change a = to .=) to still display the "Sticky: ", otherwise it will be overwritten by the custom one. In the next version I am going to add some more options in the control panel for it, including an option to overwrite "Sticky: " and others, or put them on also.
:cool: |
Quote:
|
The only change that I see to make in the newreply template is to add the : $posttype to the template. I have made the custom templates, etc. Has anyone else gotten this to work?
|
All times are GMT. The time now is 02:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|