![]() |
Optionally open thread in new window
This is something my users really enjoy. Appended to the end of each thread title in the forumdisplay is an image that they can click on to open it in a new window.
In your threadbit template find: Code:
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong> Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="New Window" width="16" height="16" border="0"></a> That's it! :) |
good stuff!
i shall click install. |
thanks :)
works on 3.5.2 |
Quote:
|
Nice idea, I've adapted this to work in 3.0 and used it there.
|
Nice idea :)
click install |
Dont show up on my forums.
|
Quote:
|
yep and still no show.
|
Quote:
|
nice hack thanks, installed
|
Not showing on mine either. Vb3.52 I uploaded the images and point the link directly to the image and still nothing.
|
Wheres the image as i would likr o try this?
Bashy |
K! Found my problem and hope it solves anyone else's.
Look for this: Code:
Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="New Window" width="16" height="16" border="0"></a> or you can place it after: Code:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a> |
where can we put this in 3.5 to work on forumdisplay and showthread
|
clicks install also
|
It's only showing up on one of my threads wtf? lol
|
Yeah I noticed its not showing on all of mine either.. like 1/2 of them..
|
I could not make it work with the instructions so here is what worked for me on the latest version of vb. Find the line bellow in the same place the original instructions say to in the threadbit template but instead look for the line bellow and add the code above or bellow it. If you add above it the icon will be to the left if you add bellow it the icon will be to the right. I have attached my threadbit for admin or anyone else to see.
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a> Here is mine to the right: <else /> <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a> <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="New Window" width="16" height="16" border="0"></a> </if> Admin/Mod ... Please edit my post accordingly I know you want it your way so please make changes as you see fit. I hope this helps anyone else with problems. |
U can also add like this:
<a href="showthread.php?goto=lastpost&$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="New Window" width="16" height="16" border="0"></a> to go to last post. I think that is better. |
That's cool :D
I combined macgyver24 and virtualno's tweaks and added a new image (attached) to my forum/images/misc directory to have the option of both :) I've attached a screen grab from my board as an example too. <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="New Window" width="16" height="16" border="0"></a> <a href="showthread.php?goto=lastpost&$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window_last.gif" alt="New Window" width="16" height="16" border="0"></a> |
Thanks Titania and Virtualno... finally got it working. And thanks to original author too
|
Just an addition -it needs done for both a new post (strong) thread and a read thread.
This may be a longer way around (I am no expert but this worked for me) Thank you to the original poster and the others. Mine turned out like this Code:
<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if> I realise that I am no expert so be gentle. |
I've got a little problem, "open in new window" icon appears only next to unread threads, when the subject have been read already there is no icon.
any suggestions ? forum.hdtv.com.pl |
Quote:
Thanks again :) |
Quote:
________________ I found the original icon a bit too vibrant on my board so I toned it down, I also cut the original icon down to make it very small (but it's not now as clear as the original icon as to what it does.) If anyone wants to use these versions feel free to do so. |
All times are GMT. The time now is 07:02 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:
|