The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Heh, I'm suddenly requesting hacks on a frenzy, eh?
Ah well, this one's for the Infogrames North America board again. Suppose, we have a forum there, the Wheel of Time Book Forum, where there are on-topic threads, roleplaying threads, and off-topic threads. Now, we would like to see a prefix used in a similar way as currently "Poll: ", "Sticky: " and "Announcement: " are used, but then have the options "WoT: ", "RP: ", and "OT: " and have those options as three radio buttons somewhere in the New Thread template/page. This way, a user can post a thread, point out which type it is, and then that type will show up as a prefix in the same way Poll etc. do, now. Also, this should only be visible on the WoT-specific templates, so that those three options don't show up on forums that AREN'T using the WoT Styleset. Oh and it'd be best if none of the three prefixes is turned on by default, and that if the user doesn't select one, no prefix is used, either. Is this possible? |
#2
|
||||
|
||||
Umm, this can be done very easily, but only if the type isn't editable.
If you want it to be, I think it'll involve some more comprehensive hacking. |
#3
|
|||
|
|||
I'd prefer the options in all forum's - as it would probably require less hacking, not to mention detailed stuff is not needed for me.
|
#4
|
||||
|
||||
[QUOTE]Originally posted by FireFly
Umm, this can be done very easily, but only if the type isn't editable. If you want it to be, I think it'll involve some more comprehensive hacking. |
#5
|
||||
|
||||
[QUOTE]Originally posted by FireFly
Umm, this can be done very easily, but only if the type isn't editable. If you want it to be, I think it'll involve some more comprehensive hacking. |
#6
|
||||
|
||||
Ok.
Add something like this in your newreply and newthread templates, right after the Title row: Code:
<tr bgcolor="{secondaltcolor}"> <td bgcolor="{secondaltcolor}"><normalfont><b>Thread type:</b></normalfont></td> <td bgcolor="{secondaltcolor}"> <select name="threadtype"> <option value="WoT">WoT</option> <option value="RP">RP</option> <option value="OR">OT</option> </select> </td> </tr> PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#7
|
||||
|
||||
Awesome, just one quick Q: this will ONLY work and show up in the templates in which I add that first piece, and it won't do -anything- to the newreply/newthread pages in all other templates?
|
#8
|
||||
|
||||
Oops you're right.
Use this: PHP Code:
PHP Code:
|
#9
|
||||
|
||||
There we go, awesome, thanks!
Now if I can just fix the massive problem I have on my server right now (nothing works anymore *cries* Blah, stupid .htaccess is messing up! ) I'll tell you if I ever come across a bug or so! |
#10
|
||||
|
||||
Heh, I just tested it, and, well.. the selector works. Buuuuuuuuuuuuuuut it doesn't quite put a prefix in front of the thread title on the forum index. Help?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|