The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Form Hack Details »» | |||||||||||||||||||||||||
Form Hack 4.1 Features: Ever wanted an online form that a user can fill out, which when submitted gets:
Or any combination or all of the above? Well, this is the hack for you! You can use this for:
Or anything you like - this hack is totally customizable via the AdminCP. The beauty of this hack is that once you install this hack, to make a new form all you need to do is copy the main hook, rename it to whatever you want, edit the variables in the hook, and you have a totally new form!!! You do not need to touch the templates again, but can always create new ones and use different templates for different forms. Format of the form:
This is customizable via the hook. Also:
INSTALLATION Easy - takes only a few minutes:
Done! Use this hack to make as many forms as you like! Enjoy! Updates: Version 4.0: (09/15/2006)
Version 4.1: (04/24/2008)
MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released. Abe1 with rights from Dr Erwin Loh Supporters / CoAuthors Show Your Support
|
Comments |
#132
|
|||
|
|||
I'm still hoping someone can help with the drop down menu for which forum to post to.
I can offer pay for ANYONE who can help me. Support for this is pretty much no-existent. |
#133
|
||||
|
||||
Quote:
|
#134
|
|||
|
|||
That would have to deal with an if statement that checks the forumdisplay number, I would assume. I'll try to locate something and see if it works as I am looking for the same thing. Also, thanks for the template names. Just what I needed!
|
#135
|
||||
|
||||
Quote:
Glad I could help with the template names |
#136
|
|||
|
|||
Try this:
Code:
<if condition="$forum[forumid]=='x'">
new thread button for form application code
</else>
normal new thread button
</if>
Replace x with the forum ID. I have not tested it yet, but will do so once I finish an event my guild is doing. |
#137
|
||||
|
||||
Quote:
|
#138
|
|||
|
|||
Well, that script did not work for me, but the following did work below. Basically, the colored text is for the form application link and the black text is for the normal new thread button. Change XX to the forum where the form is in. I cannot remember the ELSE tag which I believe is simple. I'm too tired right now.
Find <!-- controls above thread list --> in FORUMDISPLAY. Code:
<if condition="$foruminfo[forumid] == XX"> <!-- controls above thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?do=formname" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above thread list --> </if> <if condition="$foruminfo[forumid] <> XX"> <!-- controls above thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above thread list --> </if> |
#139
|
||||
|
||||
Well I am not sure...I am not very good with the if then else stuff.
Without the else, does it make it so all NEW THREAD buttons link to the form? |
#140
|
|||
|
|||
What I have done was use two IF statements. The first IF statement checks to see if the forum is meant for the form. If it is, it displays the newthread button to the form page. The second IF statement checks to see if the forum is NOT meant for the form. If it is not, it displays the regular new thread button.
|
#141
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|