![]() |
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?
|
Version 1.0.0 released.
@RobAC Uninstall all the stuff you did before and use the stuff in the new file and see if that helps. Also, what version of PHP are you running? Enjoy! :cool: |
I'll do a fresh install. I'm running the latest version of PHP and MySQL.
|
This hack still doesn't work. Now, the dropdown box in the newthread template is gone. I did a fresh install and ran new database queries.
|
Ok, it's late here and I just got home. Tomorrow as soon as I get some free time I will install a totally clean version of vB and test the install/etc. Sorry about this.:(
:cool: |
Thanks Andrew. If possible, post instructions on how to delete any additions that were made to the database with the queries. Next time I work on this, I'd like it to be completely fresh. I did what I could before I tried re-installing it.
|
Here, try running this query and see if it helps:
Quote:
:cool: |
Well...that helped in that now the dropdown box shows up in the newthread template when you go to make a post, but the custom prefix still doesn't show up in the title. :(
|
Hey is THIS the exact hack that the crew of vbulletin.org implemented on the Full Releases forum, the pull-down menu for selecting which version of vBulletin and all?
Is it _this_ hack? And if so, does the zipfile at the top come with the complete explanation/install notes now? (seeing as how you forgot some bits originally, I don't know if you've included those in the zip yet or not...) I *really* want this feature (those prefixes) installed ASAP on my board, so any help is greatly appreciated. Also, is it possible to make is so that when posting a new thread, you can have the option NOT to use a prefix, and have that option be the default option? |
I didn't make the one they are using, although they do appear to be similar. Yes, the install should totally work now. Yes, by default "Default (none)" is selected, and then nothing shows up in front of the thread.
Hope that answers your questions! :cool: |
cool, thanks! I'm implementing this as I type, I'll let you know when I'm done.
Oh wait, just one more question: how can I specify it so that the hack will only show up for new threads on ONE specific forum ?? |
has anyone else been able to successfully get this hack to work? I've gone through everything 2 and 3 times over and have had no luck.
|
I haven't installed it yet because I want to know, first, how I can define it so that it only shows up in ONE particular forum....
|
No, this is in all forums if you install it. In the next version I will add a per-forum option.
|
okay, well check out the requests forum, I made a thread about this, there. Would be an idea if you'd keep an eye on that as well, that way you could share ideas and skills concerning this particular hack with those who already made it but haven't made a thread for it (or at least, I can't find one). :)
|
This has sounds great and looks great from what I have seen but I have only one question (I may have missed this). But can you make it to where it only allows them in certain forums or is this already a part of the hack? If so I am going to use it for sure.
Thanks |
read the last 5 posts before yours...
|
I have noticed that the data query insert will be overwritten my Stars Hack, so I abandod the hack installation. Since I'm an idiot, can you make a new [b]usergroup.php[/] file that has stars hack already installed together with this? thanks.
|
Sorry, I'm not going to make different versions of this hack so they can be installed with other pre-existing hacks. You should be able to install it around it, it will just take a little bit more time and thought.
|
nevermind... ^^
|
Well I installed it. Dropdown box is showing up, I checked the thread table and my custom prefix was inserted where it should be but its not showing up in front of my thread :(
|
Same problem I had with this...
|
well currently I don't have this, NOR any of the other hacks installed anymore. My server messed up Big time with their hardware upgrade, and now my entire Board is inaccessible! I can't even log into the admin panel myself anymore! Nobody can post, we can only *view* the forum, and *read* it, but not log in or anything else! :(
bah |
...thanks for the code...I'm going to give it a shot.
|
Did you all make sure to edit all of the forumdisplay.php file, and add all the templetes? Thats all i can think that would have go wrong... O.o
(refering to Matt & RobAC) -Syphin |
Quote:
|
Yes I am sure did all of it, I just can't work out whats not working :(
HELP!! :eek: |
I'm sorry it's not working for you guys, but I've triple-checked everything. Make sure you have EVERYTHING exactly how it says to, and that if you have other hacks installed, you have it made to work around them (if they collide somewhere in the script).
|
Is this the code to make that drop down like usedo n this site in the hacks section? If so, have the bugs been worked out for 2.2 ..? Thanks!
|
Quote:
|
Ok well you coulda just explained it to me, that would be easier and more productive than telling me to re-read the whole thread.. :o Well I have read the thread and I still don't understand, care to explain please :confused:
|
All times are GMT. The time now is 04:52 PM. |
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:
|