View Full Version : Better Similar Threads Placement
Lionel
05-13-2005, 10:00 PM
open showthread.php and before
eval('$similarthreads = "' . fetch_template('showthread_similarthreads') . '";');
put
$similar="1";
In showthread template, right before
</tr>
</table>
<!-- / toolbar -->
put
<if condition="$similar==1"><td class="vbmenu_control"> <div id="similar" class="vbmenu_control"><a href="#similar">Similar Threads</a> <script type="text/javascript"> vbmenu_register("similar"); </script></div></td></if>
and replace
$similarthreads
<br />
with that
<div class="vbmenu_popup" id="similar_menu" style="display:none">
$similarthreads
</div>
dsboyce8624
05-14-2005, 01:34 AM
Dude, please fix that post, I like your idea, but I can't read it.
Lionel
05-14-2005, 01:37 AM
Why can't you read it? I am reading it without my glasses
Guest190829
05-14-2005, 01:45 AM
Replace your quote tags with PHP tags...and put PHP tags around every piece of code you have. It will make it more readable.
IE...
eval('$similarthreads = "' . fetch_template('showthread_similarthreads') . '";');
Very nice idea BTW. :up:
dsboyce8624
05-14-2005, 01:48 AM
Why can't you read it? I am reading it without my glasses
I've been rebuilding my site all day. With the mismatched code tags it made me cross eyed. But I'm installing it. ;)
Lionel
05-14-2005, 01:49 AM
here you go ....
Lionel
05-14-2005, 01:53 AM
Very nice idea BTW. :up:
Thanks guys. What I really wanted to do is way out of my league. I'll leave that for the big guys here.
Just like yahoo. here (http://www.haitiwebs.com/haitianforums/test.htm)
Boofo
05-14-2005, 04:07 AM
Nice idea. ;)
How about a txt file so others can re-install it after an upgrade? ;)
Lionel
05-14-2005, 04:14 AM
Nice idea. ;)
How about a txt file so others can re-install it after an upgrade? ;)
uploaded ...
Slave
05-14-2005, 05:22 PM
Nice idea .. installed :)
Slave
05-14-2005, 06:36 PM
Slight problem ..
I've got my styles as 100% width .. and I'm finding the Similar Threads dropdown is going past the browser width .. see the attachment to see what I mean ..
I've tried changing the width of the table .. but that doesn't seem to fix it.
Any ideas?
Lionel
05-14-2005, 06:40 PM
Do you have a nowrap tag somewhere?
TWTCommish
05-14-2005, 06:43 PM
Brilliant idea. I didn't like the clutter the Similar Threads box added, but this allows me to give my members the feature without eating up more screen space. :)
I'm having some mild display problems, though; the menu appears to jump around each time I hover over it...it never unfolds in the same place twice in a row. Anyone else having this problem?
Slave
05-14-2005, 06:47 PM
Do you have a nowrap tag somewhere?
Hmm .. yeah I do have a couple ..
I'll try without them and see what happens .. :)
Lionel
05-14-2005, 06:52 PM
Brilliant idea. I didn't like the clutter the Similar Threads box added, but this allows me to give my members the feature without eating up more screen space. :)
I'm having some mild display problems, though; the menu appears to jump around each time I hover over it...it never unfolds in the same place twice in a row. Anyone else having this problem?
why not try putting at the end of the similar template table a <tr><td><img src="invisible.gif" border="0" width="uptoyou" height="1"></td></tr> with the proper colspan?
the Sandman
05-14-2005, 06:56 PM
Won't removing the similar threads from their usual location and putting them like this stop spiders from seeing them and thus hurt seo?
TWTCommish
05-14-2005, 06:58 PM
why not try putting at the end of the similar template table a <tr><td><img src="invisible.gif" border="0" width="uptoyou" height="1"></td></tr> with the proper colspan?
Hm, tried it, and it fixed half the problem: it still shows up far on the left, but then I hover off, and then hover back on, and it moves to the right. It does this two or three times, but then it stays put underneath the link (whereas before, it would keep going right and then jump back to the left and repeat the whole thing). I'm probably explaining this in a pretty confusing way. Might help to see it in action:
http://www.movieforums.com/community/showthread.php?t=8480
Lionel
05-14-2005, 06:59 PM
Similars are threads that are being seen somewhere else. If you remove them all together spiders still will see those threads.
Lionel
05-14-2005, 07:01 PM
Hm, tried it, and it fixed half the problem: it still shows up far on the left, but then I hover off, and then hover back on, and it moves to the right. It does this two or three times, but then it stays put underneath the link (whereas before, it would keep going right and then jump back to the left and repeat the whole thing). I'm probably explaining this in a pretty confusing way. Might help to see it in action:
http://www.movieforums.com/community/showthread.php?t=8480
looks good to me the first try.
TWTCommish
05-14-2005, 07:02 PM
looks good to me the first try.
Hmm...where's it intended to show up? On the left, or right underneath the menu? Mine starts on the left, then I click on one of the other menus, then click back on the Similar Threads menu and it's moved to the right. Does it move for you if you close the menu, then click on it again?
Lionel
05-14-2005, 07:09 PM
I am using IE and after every refresh on your page, it opens to the same place from right to left. When I click on one of your other menus, the click back on similar, it shifts a little to the right, but that is not a problem. hat's the way all oversize menus behave.
Slave
05-14-2005, 07:10 PM
Yeah .. I see what you mean TWTCommish .. starts over on the left a bit .. then 2nd go it moves over to the right a bit .. and then 3rd go it ends up where I would of thought it should be ..
Weird .. :p
Slave
05-14-2005, 07:13 PM
Ok .. in the end I needed to get ride of all the nowrap tags as well as the widths for each <td> .. seems to be fine now, and I'm not getting what TWTCommish is getting ..
One thing .. I notice that the Similar Threads drop down doesn't appear on all my threads .. I take it that if there aren't any Similar Threads is just doesn't bother showing the option?
Lionel
05-14-2005, 07:17 PM
Yep, if there are no similars it will not show up (nothing to display).
Slave
05-14-2005, 07:18 PM
Cool .. :)
heh .. Thought I was going mad for a second .. :p
Lionel
05-14-2005, 07:21 PM
I just looked at your site. It looks nice :-)
Slave
05-14-2005, 07:25 PM
hmm .. this has got me thinking ..
I've got a couple of forums where I've got five or more sub forums which then get in the way of the main forum discussion, with people having to scroll down the page to get to the threads ..
Lionel .. could you look at doing something like this hack for sub forums? Perhaps have a drop down next to the search forum drop down?
What do you think?
Slave
05-14-2005, 07:27 PM
I just looked at your site. It looks nice :-)
Hey! .. thanks :)
Lionel
05-14-2005, 07:31 PM
I am not sure I understand you. You mean the subforums display first, then the threads after? If so that is how vb is built. I got around that problem by not allowing to post in the first forum, creating instead a subforum where all those threads that were supposed to go in original forum, are placed. This way when you open forum, all you see is subforums.
Lionel
05-15-2005, 07:14 AM
Looks like if you change the similarthreadbits templates alt1 and alt2 into vbmenu_option
the table opens properly on the right every time.
David_R
05-15-2005, 07:14 PM
i have attached my showthread template, but i cannot edit it.
can you please help me placing the codes properly ?
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
</head>
<body onload="$onload">
$header
$navbar
<div style="font-size: 200%; text-align: center;"><b>$thread[title]</b></div>
<br />
$poll
<if condition="$+++++ad and $bbuserinfo[usergroupid]==6">
<table cellpadding="10" cellspacing="0" border="1" width="100%">
<tr valign="top">
<td class="alt1">$total+++++ad users have seen this thread: $+++++ad</td></tr></table><br/>
</if>
<a name="poststop" id="poststop"></a>
<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$show['largereplybutton'] AND $bbuserinfo[userid] != 0">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><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>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above postbits -->
<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">
<div class="smallfont">
<if condition="$show['firstunreadlink']">
<a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
</if>
</div>
</td>
<td class="vbmenu_control" id="threadtools">
<a href="#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
</td>
<if condition="$show['search'] AND $bbuserinfo[userid] != 0">
<td class="vbmenu_control" id="threadsearch">
<a href="#goto_threadsearch">$vbphrase[search_this_thread]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>
</td>
</if>
<if condition="$show['threadrating']">
<td class="vbmenu_control" id="threadrating">
<a href="#goto_threadrating"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
</td>
</if>
<if condition="$vboptions['allowthreadedmode']">
<td class="vbmenu_control" id="displaymodes">
<a href="#goto_displaymodes">$vbphrase[display_modes]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
</td>
</if>
</tr>
</table>
<!-- / toolbar -->
<!-- end content table -->
$spacer_close
<!-- / end content table -->
<if condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>
<div id="posts">$postbits</div>
<!-- start content table -->
$spacer_open
<!-- / start content table -->
<!-- controls below postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%"<if condition="$vboptions['legacypostbit']"> style="margin-top:3px"</if>>
<tr valign="top">
<if condition="$show['largereplybutton'] AND $bbuserinfo[userid] != 0">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><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>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls below postbits -->
<br />
<div class="smallfont" align="center">
<strong>«</strong>
<a href="showthread.php?$session[sessionurl]t=$threadid&goto=nextoldest">$vbphrase[prev_thread]</a>
|
<a href="showthread.php?$session[sessionurl]t=$threadid&goto=nextnewest">$vbphrase[next_thread]</a>
<strong>»</strong>
</div>
<br />
$quickreply
<!-- currently active users -->
<if condition="$show['activeusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
</tr>
</table>
</if>
<!-- currently active users -->
<if condition="$show['popups']">
<!-- popup menu contents -->
<br />
<!-- thread tools menu -->
<div class="vbmenu_popup" id="threadtools_menu" style="display:none">
<form action="postings.php" method="post" name="threadadminform">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="3">$vbphrase[show_printable_version]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&t=$threadid">$vbphrase[email_this_page]</a></td>
</tr>
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
</if>
<if condition="$show['addpoll']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
</tr>
</if>
<if condition="$show['adminoptions']">
<tr>
<td class="thead">$vbphrase[admin_tools]<a name="goto_threadadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><label for="ao_oct"><input type="radio" name="do" id="ao_oct" value="openclosethread" checked="checked" /><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></label></div>
<div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div>
<div><label for="ao_sut"><input type="radio" name="do" id="ao_sut" value="stick" /><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></label></div>
<div><label for="ao_edt"><input type="radio" name="do" id="ao_edt" value="editthread" />$vbphrase[edit_thread]</label></div>
<div><label for="ao_dlt"><input type="radio" name="do" id="ao_dlt" value="deletethread" />$vbphrase[delete_thread]</label></div>
<div><label for="ao_dlp"><input type="radio" name="do" id="ao_dlp" value="deleteposts" />$vbphrase[delete_posts]</label></div>
<div><label for="ao_mgt"><input type="radio" name="do" id="ao_mgt" value="mergethread" />$vbphrase[merge_threads]</label></div>
<div><label for="ao_spt"><input type="radio" name="do" id="ao_spt" value="splitthread" />$vbphrase[split_thread]</label></div>
<div><label for="ao_rrd"><input type="radio" name="do" id="ao_rrd" value="removeredirect" />$vbphrase[remove_redirects]</label></div>
<if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pollid" value="$pollid" />
<input type="submit" class="button" value="$vbphrase[perform_action]" />
</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread tools menu -->
<!-- ************************************************** ** -->
<!-- thread display mode menu -->
<div class="vbmenu_popup" id="displaymodes_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[display_modes]<a name="goto_displaymodes"></a></td>
</tr>
<tr>
<if condition="$show['linearmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <strong>$vbphrase[linear_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['hybridmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <strong>$vbphrase[hybrid_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <a href="showthread.php?$session[sessionurl]mode=hybrid&t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['threadedmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <strong>$vbphrase[threaded_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></td>
</if>
</tr>
</table>
</div>
<!-- / thread display mode menu -->
<!-- ************************************************** ** -->
<if condition="$show['search']">
<!-- thread search menu -->
<div class="vbmenu_popup" id="threadsearch_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / thread search menu -->
</if>
<!-- ************************************************** ** -->
<!-- thread rating menu -->
<div class="vbmenu_popup" id="threadrating_menu" style="display:none">
<form action="threadrate.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td>
</tr>
<if condition="$show['ratethread']">
<tr>
<td class="vbmenu_option" title="nohilite">
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="submit" class="button" value="$vbphrase[vote_now]" />
</td>
</tr>
<else />
<tr>
<td>$vbphrase[already_rated_this_thread]</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread rating menu -->
<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
<td class="thead" <if condition="!$show['search']">colspan="2"</if>>$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
<if condition="$show['search']"><td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td></if>
</tr>
<tr valign="top">
<td class="alt1" <if condition="!$show['search']">colspan="2"</if>>
<!-- thread tools -->
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p">$vbphrase[show_printable_version]</a></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&t=$threadid">$vbphrase[email_this_page]</a></div>
<if condition="$show['member']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
<if condition="$show['addpoll']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
</if>
</div>
<!-- / thread tools -->
</td>
<if condition="$show['search']">
<td class="alt1">
<!-- search this thread -->
<form action="search.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<strong>$vbphrase[search_this_thread]</strong>:<br />
<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
<a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a>
</div>
</form>
<!-- / search this thread -->
</td>
</if>
</tr>
<if condition="$vboptions['allowthreadedmode'] OR $show['threadrating']">
<tr>
<if condition="$vboptions['allowthreadedmode']"><td class="thead" $nodhtmlcolspan>$vbphrase[display_modes]<a name="goto_displaymodes"></a></td></if>
<if condition="$show['threadrating']"><td class="thead" $nodhtmlcolspan>$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td></if>
</tr>
<tr valign="top">
<if condition="$vboptions['allowthreadedmode']">
<td class="alt2" $nodhtmlcolspan>
<!-- thread display modes -->
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" vspace="1" /> <if condition="$show['linearmode']"><strong>$vbphrase[linear_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" vspace="1" /> <if condition="$show['hybridmode']"><strong>$vbphrase[hybrid_mode]</strong><else /><a href="showthread.php?$session[sessionurl]mode=hybrid&t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" vspace="1" /> <if condition="$show['threadedmode']"><strong>$vbphrase[threaded_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></if></div>
</div>
<!-- / thread display modes -->
</td>
</if>
<if condition="$show['threadrating']">
<td class="alt2" $nodhtmlcolspan>
<!-- rate this thread -->
<form action="threadrate.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<strong>$vbphrase[rate_this_thread]</strong>:<br />
<select name="vote" onchange="this.form.submit()" style="width:175px">
<optgroup label="$vbphrase[choose_a_rating]">
<option value="5" $voteselected[5]>5 : $vbphrase[excellent]</option>
<option value="4" $voteselected[4]>4 : $vbphrase[good]</option>
<option value="3" $voteselected[3]>3 : $vbphrase[average]</option>
<option value="2" $voteselected[2]>2 : $vbphrase[bad]</option>
<option value="1" $voteselected[1]>1 : $vbphrase[terrible]</option>
</optgroup>
</select>$gobutton
</div>
</form>
<!-- / rate this thread -->
</td>
</if>
</tr>
</if>
</table>
<br />
<!-- / controls for non-popup browsers -->
</if>
<!-- forum rules and admin links -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
<td class="smallfont" align="$stylevar[left]">
$forumrules
</td>
<td class="smallfont" align="$stylevar[right]">
<table cellpadding="0" cellspacing="0" border="0">
<if condition="!$show['popups'] AND $show['adminoptions']">
<tr>
<td>
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
<form action="postings.php" method="post" name="adminoptionsform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<strong>$vbphrase[admin_tools]</strong>:<br />
<select name="do" onchange="this.form.submit()">
<optgroup label="$vbphrase[thread_admin_tools]">
<option value="openclosethread" selected="selected"><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></option>
<option value="movethread">$vbphrase[move_copy_thread]</option>
<option value="stick"><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></option>
<option value="editthread">$vbphrase[edit_thread]</option>
<option value="deletethread">$vbphrase[delete_thread]</option>
<option value="deleteposts">$vbphrase[delete_posts]</option>
<option value="mergethread">$vbphrase[merge_threads]</option>
<option value="splitthread">$vbphrase[split_thread]</option>
<option value="removeredirect">$vbphrase[remove_redirects]</option>
</optgroup>
</select>$gobutton
</form>
</div>
</td>
</tr>
<br />
</if>
<tr>
<td>
$forumjump
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /forum rules and admin links -->
<br />
$similarthreads
<br />
$footer
<!-- temp -->
<div style="display:none">
<!-- thread rate -->
<if condition="$show['ratethread']">
<!-- thread ratings form here -->
<else />
<if condition="$show['threadrating']">
$vbphrase[you_rated_this_thread]: <b>$threadinfo[vote]</b>
</if>
</if>
<!-- / thread rate -->
</div>
</body>
</html>
David_R
05-15-2005, 07:16 PM
Won't removing the similar threads from their usual location and putting them like this stop spiders from seeing them and thus hurt seo?
I highly doubt if spiders are really catching similar threads ?
Does not works for me.
TWTCommish
05-16-2005, 02:56 PM
Looks like if you change the similarthreadbits templates alt1 and alt2 into vbmenu_option
the table opens properly on the right every time.
Didn't seem to do the trick for me...
http://www.movieforums.com/community/showthread.php?t=3222
yoyoyoyo
08-20-2005, 05:17 PM
I am able to stop the threads from dropping off of the left hand side of the page by editing my showthread_similarthreads to look like this:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="right">
<tbody id="collapseobj_similarthreads" style="$vbcollapse[collapseobj_similarthreads]">
<tr class="thead" align="center">
<td class="thead" width="500px">$vbphrase[thread]</td>
<td class="thead" width="120px" nowrap="nowrap">$vbphrase[thread_starter]</td>
<td class="thead" width="180px">$vbphrase[forum]</td>
<td class="thead" width="3px">$vbphrase[replies]</td>
<td class="thead" width="120px">$vbphrase[last_post]</td>
</tr>
$similarthreadbits
</tbody>
</table>however the left hand side has a large blank white area in the dropdown, so the size of the dropdown is controlled by some other factor elsewhere, but at least the results are viewable this way.
Does anyone know what is controlling the size of this table?
Haiko
08-29-2005, 05:26 PM
Lionel,
Great Hack!!! You have no idea how many old threads were being revived by noobs clicking the similar threads on the bottom, this has worked wonders!!!
Ok now on to business ... How can can I do this with active users?
mfizzel
09-09-2005, 10:47 PM
Hey man, thanks, this fixed the dropping off to the left crap, but like you there's a HUGE blank white space to the left of the similar threads...if someone could take a look at this and tell how to fix it it would be greatly appreciated!
I am able to stop the threads from dropping off of the left hand side of the page by editing my showthread_similarthreads to look like this:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="right">
<tbody id="collapseobj_similarthreads" style="$vbcollapse[collapseobj_similarthreads]">
<tr class="thead" align="center">
<td class="thead" width="500px">$vbphrase[thread]</td>
<td class="thead" width="120px" nowrap="nowrap">$vbphrase[thread_starter]</td>
<td class="thead" width="180px">$vbphrase[forum]</td>
<td class="thead" width="3px">$vbphrase[replies]</td>
<td class="thead" width="120px">$vbphrase[last_post]</td>
</tr>
$similarthreadbits
</tbody>
</table>however the left hand side has a large blank white area in the dropdown, so the size of the dropdown is controlled by some other factor elsewhere, but at least the results are viewable this way.
Does anyone know what is controlling the size of this table?
tpearl5
08-15-2007, 02:04 PM
Anything like this made into a plugin for 3.6 ?
periphrastic
11-13-2007, 12:05 AM
^^that'd be wondrous
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.