The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#677
|
|||
|
|||
I still can't figure this out - how to use etc! It would be excellent if some sort of idiots guide was made to make a form or whatever!
Any takers? |
#678
|
|||
|
|||
Quote:
The first thing I did however, to make life easier on myself, was to rename (thru search replace) all the variable references in the script itself to simplier, more generic names like 'question1', 'answer1' and $answer1 (the php references). I assume you know HTML form processing right?? Step2 (prior to loading the XML) is deciding where the output 'answers' is to go and those options are embedded in the php code itself. In my case I chose 'reply to thread' leaving the reply to 'new thread' option '0' otherwise you'll get a double post. Having muddled thru all of that I designed my own 'custom' input 'form' (using the same 'answer' variables) and noticed 1 thing - I did not have to change the 'formname' (or modify the XML plugin) IF you manually assign the new template (in my case named 'testform') the same title $formtitle="form" as the hookcode will still execute!! In other words the only real reason I see to install a second XML is if the php processing code needs changing. Of course if ya need new / different php processing code (which you need to design) then the XML plugin and the 'formtitle' needs to change too but if Abe's processing code is good (and all ya need) you can manually force the issue AT RUNTIME . . . Make Sense?? I am using this in conjunction with Logician's 'Webtemplates' and it works very well posting user input data into a thread of my designation . . . . Eh, Questions?? Rabbit |
#679
|
|||
|
|||
Quote:
|
#680
|
|||
|
|||
Quote:
|
#681
|
||||
|
||||
Hi. I'm new to both vBulletin and php, but this hack looks like it could do what I'm after. Basically I want a form that submits a private log entry that only the user and moderator can see.
Can this hack be modified to set permissions on a new thread, and if so how? |
#682
|
||||
|
||||
It uses the permissions of the forum to send the message to.
|
#683
|
||||
|
||||
So I'd need a different form for every user?
|
#684
|
||||
|
||||
No. You say the form should send to Forumid 1.
Forumid 1 has permissions on what you want. The new thread with use thoughs permissions. |
#685
|
||||
|
||||
Then I'd need a separate forum for each user? Ideally I want each user within a forum to keep the results of the form private from the other users. I guess this isn't possible?
|
#686
|
||||
|
||||
Quote:
|
#687
|
||||
|
||||
Of course! Excellent, I'll give that a go. Very many thanks.
|
#688
|
|||
|
|||
Is there a way to get subscription working with this. Ive got a problem where if a user submits a thread to a forum using this form the global subscription wont work. Please can someone help with this, as I really like the hack, but really need users to get email notifications to replys to threads that they have started with this form.
???? Many thanks. |
#689
|
||||
|
||||
I'll have to look into it.
|
#690
|
|||
|
|||
I want to include a link to a form in the postbit....
My question - is there a way that when I click on the link the the username of the post i was in will become one of the variables for output? ill try to make it clear... I run a trading site...if I go to post made by User X and click on the link I want User X's username to be a variable in the form as the person I trade with (etc User X will become $normalquestion1). Any idea? |
#691
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|