The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Ok, I am sure it may be of some use to others as well and I am not sure it can be done (although I am sure if it can be done firefly or one of the other talented hackers can do it).
Here Goes: I need a hack to where that in a certain forum when a member goes to post something, it fills in some information automatically in the post instantly (see below). Say I am running a forum like this one and I will take hack submissions for example. With this hack it would fill in the following right after they click the new post button (this would be filled in the test box): Hack Name: Hack Version: Hack Author: ect..... All the submitter would have to do is place the required information beside it such as: Hack Name: (information goes here) Hack Version: (version goes here) and so on. Is there anyway that this can be done? Or am I confusing someone in anyway? Should I *try* to provide a better example? Any help with this would be appreciated and I would be greatful to the person that could help me out with this (whoever it may be). Please at least look into it. |
#2
|
||||
|
||||
The only thing I could think of is this:
Have custom fields that the user enters and place the PHP code in Postbit template linking back to "post new topic / reply" templates... OR, have custom fields for a certain forum (or the entire board), when you post a new topic that the user fills out such as his name, hack name, release version, etc.. Sound like what you want? |
#3
|
||||
|
||||
Well I need it to where when they click "New Post" that it will already have the above information (or something of my choice) in the text area (only on certain forums though), all they have to do is fill in the information for each submission.
If you think you know how I would edit, please let me know Val... Thanks, |
#4
|
||||
|
||||
You need to edit the templates and PHP for newthread and newreply... as well as make a few templates and custom user fields.
In the php files... add an eval() statement that gets a template (see later) IF the forum ID is right. I don't remember the syntax for a template eval()... just copy/paste another one. Make it return a variable like $hackname Make a hackname (or whatever) TEMPLATE... It should have the HTML code for a text field that you type in... Make it something like Hack Author: < INPUT VALUE=$bbuserinfo[field7] > Make field7 whatever field is the right custom user field. Then in the newreply template... Add $hackname to the appropriate spot where you want the text field to show up. I'm too tired to try coding this, but this is a start... |
#5
|
||||
|
||||
Thanks for your help, but I am not really sure what all to add that to or what all to do. I would appreciate it if anyone could provide some step-by-step instructions on what to edit and where to edit, ect. I appreciate your help though Palmer, Thanks, |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|