View Full Version : New Thread Question
Stunner Inc.
02-16-2006, 08:04 PM
I was wondering if a New Thread Button/Link could go on the Forum Home....I've added a pic to help show where I'd LIKE it to go.
http://img107.imageshack.us/img107/3897/newthread9iy.jpg
Thanks In Advance
Stunner Inc.
02-18-2006, 10:47 PM
Bumped
Talisman
02-18-2006, 10:56 PM
I was wondering if a New Thread Button/Link could go on the Forum Home....I've added a pic to help show where I'd LIKE it to go.
That would go in the main forum table of your Forumdisplay template (above the $forumbits variable and subforum code).
Stunner Inc.
02-19-2006, 11:01 AM
Well I tried just like you said and it didn't do anything. Possibly I got the wrong code. Which is no doubt the case so to embarass myself more here is the code I used....
[<img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" />]
Talisman
02-19-2006, 07:19 PM
Sorry, Stunner Inc... what I posted wasn't correct. It looked like a simple question, so I took a shot at a quick answer. I should know better than trying to post suggestions here without actually trying it out myself, first. I get lost all the time trying to make little changes... lol.
Since no one else with real knowledge ;) has jumped in yet with a proper answer, I have located the right spot for your button. But this still leaves a few other problems to work out.
The bit of code you posted would only show your "New Thread" button all by itself. You also need the "a href" link wrapped around the button code to activate a post-new-message process when they click on it. This is what I used to make sure I had found the right position for placement. And it goes in the forumhome_forumbit_level2_post template.
<!-- Testing Added Button -->
<td class="alt2" nowrap="nowrap"><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></td>
<!-- Testing Added Button -->
Here's the full template with this test button code inserted, so you can see where I positioned it...
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<!-- Testing Added Button -->
<td class="alt2" nowrap="nowrap"><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></td>
<!-- Testing Added Button -->
<td class="alt1" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt2">$forum[threadcount]</td>
<td class="alt1">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt2"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits
Now, if you add a new column here between ones already in place... you need to change the alt1 and alt2 color coding for subsequent columns for the colors to alternate correctly across each row.
There are also two other problems to resolve:
1. You need to go a little higher up in the forum display templates to find where the heading fields are formatted. The "colspan" has to be increased by one because this adds a new column beneath it. I didn't go looking for that but I think that's set inside an "if / else" conditional. The colspan number varies, depending on whether you have forum moderator designations turned on or off. I've circled the right side edge of the table heading area on my graphic to show you how it looks when the colspan number is short.
2. And so far... this only sets up a new button in this table for new threads. But when you click on that with the code I'm using to test this, you'll get an error message because all the buttons plugged in on all the forums on the page direct you to the same place.... and vB has no idea WHICH FORUM in which you want that new thread to post. You'll have to figure out how to tell vB which new "new thread" button corresponds to which forum to post in.
At least.. this is a partial answer to get you started.
Stunner Inc.
02-20-2006, 10:51 AM
Thanks for all the time and all you put into this Talisman. It gives me something to do with trial & error,lol.
Story of my life.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.