The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Attachment in New Window (User Option) Details »» | |||||||||||||||||||||||||||
Attachment in New Window (User Option)
Developer Last Online: Mar 2005
This mod allows your members to select if they want attached images to appear in the same window (default) or in a new window. This is done by selecting OFF/ON from the USERCP: Thread Viewing Options.
Difficulty: easy Installation time: 5mins. Requires the Edit of (1) template, and the creation of a Custom User Profile Field. Enjoy Aceman www.scifi-meshes.com / www.military-meshes.com Show Your Support
|
Comments |
#2
|
||||
|
||||
Screen shot?
|
#3
|
|||
|
|||
I can't screen shot a new window opening on the click of an attached thumbnail image.
This merely gives the users the option of having fullsized images (attachment) either opening in the existing window, or opening in a NEW window. Aceman |
#4
|
||||
|
||||
Nice, small, effective mod.
|
#5
|
||||
|
||||
OK i tried to install this and i also need some help:
Code:
<if condition="$show['gtp_thumbnail_only']"> <img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1" border="0" alt="" title="$vbphrase[gtp_cannot_download]" /> <else /> <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a> </if> <if condition="$show['br']"><br /><br /></if> after replacing this part Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a> </if> <if condition="$show['br']"><br /><br /></if> Code:
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/sandeep/public_html/forums/includes/adminfunctions_template.php(3055) : eval()'d code on line 1 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. Also a small edit needs to be done in instructions file attached above from you 2. Select "Single-Line Text Box". to be change to 2. Select "Single-Line Text Menu". Waiting for a reply Regards, |
#6
|
|||
|
|||
I got this working well, but I think it's a typo where the instructions say to use a single line text input field, it works best with a radio button, placing "On" and "Off" on their own line in the box that appears.
It would be nice to have javascript spawned windows that are fitted to the size of the image, does anyone know if this can be done by dynamically passing the imge size to the script? I can do it with fixed hyperlinks by passing the new window open size dimensions to java like this: HTML Code:
<script>
function openpopup(){
var popurl="b4aft.jpg"
winpops=window.open(popurl,"","width=708,height=788,")
}
function openpopup1(){
var popurl="LS.jpg"
winpops=window.open(popurl,"","width=720,height=700,")
}
HTML Code:
<td width="25%" height="136" align="center"> <a href="javascript:openpopup()"> <img border="1" src="thumbs/b4aft.jpg" /></a></td> <td width="25%" height="136" align="center"> <a href="javascript:openpopup1()"> <img border="1" src="thumbs/LS.jpg" /></a></td> |
#7
|
||||
|
||||
How do I use this with 3.0.7? The instructions making the user profile field don't make sense.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|