The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New Thread Question
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.
Thanks In Advance |
#2
|
|||
|
|||
Bumped
|
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
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" />] |
#5
|
||||
|
||||
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. Code:
<!-- 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 --> Code:
<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 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. |
#6
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|