![]() |
New Post Parts
1 Attachment(s)
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 ;)
|
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 |
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
|
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 |
Quote:
Code:
if ($foruminfo[forumid]==2) { |
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 |
well i just put
Code:
$vbcode_smilies = ''; |
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? |
All times are GMT. The time now is 06:30 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:
|