The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New Thread image as a button
I'm having some trouble making a submit button work to create a new thread in the FORUMDISPLAY template.
Here's the code i'm using: Code:
<td class="smallfont"><if condition="$show['newthreadlink']"> <form method="link" action="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"> <input type="submit" class="button" value="New Thread" /> </form> <else /> </if></td> It just says "You did not select any valid threads" as you can see here: http://www.rockonpublishing.co.uk/forumdisplay.php?f=5 (click the top new thread button) Interestingly, I just noticed that from the button it links to this URL: http://www.rockonpublishing.co.uk/in....php?forumid=5 but the original image at the bottom links to: http://www.rockonpublishing.co.uk/ne...=newthread&f=5 which is what I want my button to do! Any ideas? |
#2
|
||||
|
||||
The threadbits are actually part of the inline moderation form (the ticks down the right side). This is the root of the problem you are having.
|
#3
|
|||
|
|||
I'm not very good with this. I'm unsure of where to edit to achieve a submit button as the new thread image and what code / link to use.
Can you help? --------------- Added [DATE]1248436562[/DATE] at [TIME]1248436562[/TIME] --------------- No worries. I fixed it Here's what fixed it: Code:
<input type="button" name="create" value="New Thread" onClick="window.location='newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]'" class="button"/> |
#4
|
|||
|
|||
What I did was replace the img-code with a table with a table-cell containing the same background image I use for the navbar and put the text on it. You can also put the link within span-tags and put background-color and border attributes on it to make it look like a button.
But nevermind, now I see you got it to work. That's what a few beers does to me. :-) |
#5
|
|||
|
|||
Haha brilliant. Thanks for the advice though
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|