![]() |
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']"> 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? |
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.
|
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"/> |
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. :-) |
Haha brilliant. Thanks for the advice though :)
|
All times are GMT. The time now is 02:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|