![]() |
Attachment in New Window (User Option)
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 |
Screen shot?
|
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 |
Nice, small, effective mod. :)
|
OK i tried to install this and i also need some help:
Code:
<if condition="$show['gtp_thumbnail_only']"> 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> Code:
The following error occurred when attempting to evaluate this template: 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, |
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> HTML Code:
<td width="25%" height="136" align="center"> |
How do I use this with 3.0.7? The instructions making the user profile field don't make sense.
|
All times are GMT. The time now is 12:26 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:
|