Log in

View Full Version : viewpost.gif instead of being taken to the original quoted post


Wonksta
07-26-2009, 11:30 PM
Hi Guys

Before I start this problem is happening across ALL themes including Default System (default vBulletin).

When a user quotes someone you get the usual Originally Posted By XXXX viewpost.gif.

Viewpost.gif is that little picture where you click and it takes you to that post. When a user clicks on that image it opens up a new tab and opens the image just if you where to go right click > view image and in the other tab it loads the original post.

Very strange here is what the code looks like:

<if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]"/></a></if>

Lynne
07-26-2009, 11:43 PM
So if you click the little viewpost.gif, you are getting the gif opening instead of a post? Do you have a link to a page where this is happening?

Wonksta
07-27-2009, 12:26 AM
So if you click the little viewpost.gif, you are getting the gif opening instead of a post? Do you have a link to a page where this is happening?

Hi Lynne,

Yes well it opens up a new tab and opens the viewpost.gif while at the same time in the other tab it loads the actual post.

Check it out here as an example.

http://www.aussiestreetbikes.com/forum/showthread.php?p=49392#post49392

Again - this occurs on vBulletin Styles even the unmodified default one. I have tried in two browsers , latest FF and IE8 with the same issue.

Lynne
07-27-2009, 02:33 AM
This is the html for the clickable quote image, https://vborg.vbsupport.ru/external/2011/11/11.gif, in the post above:
<img class="inlineimg" src="images/cstyle/blue/buttons/viewpost.gif" border="0" alt="View Post" />This is the html for the image on your site:
<img style="max-width: 550px; cursor: pointer;" onclick="window.open(this.src)" class="inlineimg" src="images/redbar/buttons/viewpost.gif" border="0" alt="View Post"/>You've got some strange javascript added to your image tag which is probably causing this problem. Since it isn't shown in your template code above, I am guessing you've got a modification adding stuff to your image tags.

Wonksta
07-27-2009, 05:03 AM
Ahhh nicely said Lynne it turns out:

Quick Auto Image-Resize (Posts & Signature)

Mod was causing the problem. Looking for an alternative now.