The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
New posts or new threads button above quickreplay
How can i get a button saying: New posts, or new threads above quickreplay on every end of the thread i am viewing?
|
#2
|
||||
|
||||
There is already a Post Reply in the SHOWTHREAD template, so you may copy that code and put it right aboe the Quick Reply code. You can copy the New Thread code from the FORUMDISPLAY template and put it above the Quick Reply code also (you may have to change the variable names). If you get stuck, post the *exact* code you are using and a couple of lines from the default template above and below your lines of code.
|
#3
|
||||
|
||||
Thank you for your answer, but coding? I have never done it. How do i find the correct code?
|
#4
|
||||
|
||||
Quote:
Find this in your SHOWTHREAD template: HTML Code:
<if condition="$show['quickreply']"> <!-- quick reply --> HTML Code:
<!-- controls below postbits --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:$stylevar[margin_3px_fix]px"> <tr valign="top"> <if condition="$show['largereplybutton']"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td> <else /> <td class="smallfont"> </td> </if> <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> </tr> </table> |
#5
|
||||
|
||||
You are so nice that is trying to help.
Sorry to say, the code did not work, the button does not show up at all. --------------- Added [DATE]1253706707[/DATE] at [TIME]1253706707[/TIME] --------------- I also tryed to change (in the new thread section) $foruminfo[forumid] to $threadinfo[forumid], but no button shows up above quickreplay. |
#6
|
||||
|
||||
Try taking the conditions out and see what you get. So try just:
HTML Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:$stylevar[margin_3px_fix]px"> <tr valign="top"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></a></td> <td class="smallfont"><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> </tr> </table> |
#7
|
||||
|
||||
Trying this is getting me a fatal error message.
The following error occurred when attempting to evaluate this template: The conditional on line 284 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed. This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. --------------- Added [DATE]1253720710[/DATE] at [TIME]1253720710[/TIME] --------------- Is it just to add </if> in the end of that line, that is the first line you have written. This line: <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></a></td> |
#8
|
||||
|
||||
In my enthusiasm to remove the conditions, I removed one too many </if>s. try this:
HTML Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:$stylevar[margin_3px_fix]px"> <tr valign="top"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td> <td class="smallfont"><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> </tr> </table> |
#9
|
||||
|
||||
You are an angel. :hug:
Yes, that is working for starting a new thread, but what about what i really asked for: a button thas shows new threads. can you help me? I think you are very, very nice. )) |
#10
|
||||
|
||||
Argh! I totally misunderstood what you wanted! I thought you wanted another New Post (New Reply) and New Thread button! Now I see you want a link to the New Posts/New Threads page. This is the code for the New Posts button (the one you see in the navbar):
HTML Code:
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|