The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
New Post Parts
Well since my last thread was left to rot, i'll post this one here, my understanding of php has somewhat improved since then, but my vBulletin knowledge by very little :sleep:, so bare with me, if you see in the attachment i made, what i want done is new fields added to the reply to thread page, but only on specific forums i want, i was thinking on using the code for the custom post prefixes hack to do this, but i'm not sure if it would work out, since i need some inside the actual thread as well, i was thinking that putting something in forumdisplay.php which leads to a new thread posting template with the new fields in would work, but i'm not too sure what i would need to be editing and where abouts i would place the code in a file, so i need help, hopefully you will all be kind enough to help me
|
#2
|
||||
|
||||
Slynderdale is helping me out with something similar. Remember if it is based on forumid you need to edit editpost.php and newthread.php also
It's not too hard. Add a new column to the post table and change your queries to add it in. Then use an if statement to surround it. I'll let you know when i'm done - miSt |
#3
|
||||
|
||||
i know you'd have to edit forumdisplay.php (since i want certain things to be on the forumdisplay part), newreply.php, newthread.php and editpost.php, and add some new columns using phpMyAdmin, the only problem i have with it, is getting it to work with one forumid only, what code i need to put in and where abouts, vB hacking isn't my strong point
|
#4
|
||||
|
||||
The only part of getting it work with forumid is calling a different template for a different forum. You don't have to base the query on a forumid as you are allowed to insert blank data into a column
- miSt |
#5
|
||||
|
||||
Quote:
Code:
if ($foruminfo[forumid]==2) { eval("dooutput(\"".gettemplate("newthread_submissions")."\");"); exit; } |
#6
|
||||
|
||||
Getting vbcode and smilies to work with it isn't too hard. It's a matter of adding a line (or maybe two) of code above the template call. Somone will know the answer to this i'm sure..
I think it has to do with the bbcodeparse() function... I may be completely wrong though - miSt |
#7
|
||||
|
||||
well i just put
Code:
$vbcode_smilies = ''; $vbcode_buttons = ''; if ($foruminfo[allowsmilies]) { if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) $vbcode_smilies = getclickysmilies(); eval("\$disablesmiliesoption = \"".gettemplate("newpost_disablesmiliesoption")."\";"); } else { $disablesmiliesoption=""; } if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) $vbcode_buttons = getcodebuttons(); |
#8
|
||||
|
||||
well i placed all of the added code under
// ############################### start new thread ############################### and it worked perfectly, but a small question, one that should be easy to answer, once i've added the column in the thread table, what exactly do i have to add in newthread.php and where abouts, i have a rough idea, but i think that it needs more than one line of code to get it to work properly, also i get a mysql problem to do with postings.php, anything i got to do there? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|