The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Ok, i really need help on this! im still desiging it, adn im stumped! please help me!
|
#12
|
||||
|
||||
-Add field to database
See KirbyDE's post above (best done with install code though)-Add the form element to newthread... Edit the newthread template and add your field.-Clean data, place into GPC array: Hook: newthread_post_start-Set datamanager value: Hook: newpost_process-Validate the field for the datamanger (if you don't you get an error): Hook: threadfpdata_start-Replace every occurance of "fieldname" with your form element name (preferably have it the same as the database field you make), and also replace every occurance of TYPE_UINT with how you want to clean your data. |
#13
|
|||
|
|||
ok, thanks, that really explains some things!
i have one question, its for forum id #26 only! that one, and that one only, how do i rig it up do diaply the information for that forum only! and, how do i get that border around the text like Quote:
|
#14
|
|||
|
|||
if ($type == 'thread')
{ $dataman->setr('fieldname', $post['fieldname']); } will that add this to the post? bgecause, i want it to add the crap to the postbit |
#15
|
|||
|
|||
Quote:
I did find the "newthread" template so I can add the new form field, but for the life of me I couldn't find: newthread_post_start newpost_process threadfpdata_start I'm currently running vB version 3.0.7. Could that be why? Anyone else successfully get this to work or know of any other helpful links? Thanks in advance for your help! |
#16
|
|||
|
|||
Hihi!
Okay I got all the above working just fine, and it's great... however there's one problem with this... I can't edit any of the new fields once they're posted. Even if I add them to the editpost template it doesn't populate or update the fields. I know I need to add the fields into one of the editpost hooks , but which hooks would I use and what would I update them with? I guess I need a hook or two to add in the new fields to the edit post code, and a a hook to get the data to populate the edit form with the current data? Any help would be massively appreciated! Cheers, Ben. |
#17
|
|||
|
|||
Well, i could help you, i dont really like using the posting method, if u ahve a im program (or irc) id love to chat with ya
|
#18
|
|||
|
|||
Check your private messages!
|
#19
|
|||
|
|||
I've got this all working and I can use it just fine from the SHOWTHREAD template (with $threadinfo[myvar], but could anyone tell me how I'd go about using it in the threadbit template?
It doesn't seem to be available there. Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|