Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Attachment in New Window (User Option) Details »»
Attachment in New Window (User Option)
Version: 1.00, by imported_aceman imported_aceman is offline
Developer Last Online: Mar 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-15-2004 Last Update: Never Installs: 1
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-17-2004, 01:21 AM
fiber1's Avatar
fiber1 fiber1 is offline
 
Join Date: Jun 2004
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screen shot?
Reply With Quote
  #3  
Old 09-17-2004, 02:51 AM
imported_aceman imported_aceman is offline
 
Join Date: Sep 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 09-17-2004, 04:47 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, small, effective mod.
Reply With Quote
  #5  
Old 10-15-2004, 10:32 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]&amp;stc=1&amp;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]&amp;stc=1&amp;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>
this is my postbit_attachmentthumbnail field. i am using another mod alongwith which just shows thumbnails to guests (got from vb.org)

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]&amp;stc=1&amp;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>
with the code you provided in text file I get an error message as follows:

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.
How can i use the code provided by you ?

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,
Reply With Quote
  #6  
Old 10-30-2004, 04:52 AM
Limey-YMR Limey-YMR is offline
 
Join Date: Jul 2004
Location: Wake Forest, NC
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,")
}
and then calling each popup named in "openpopup" with it's own href linked thumbnail;

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>
so, anyone know how to "fit" the window to the image like on this page http://www.lovelybrides.com/images/makeup_pictures.htm
Reply With Quote
  #7  
Old 08-01-2005, 07:56 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I use this with 3.0.7? The instructions making the user profile field don't make sense.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:25 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
  • Page Generation 0.04428 seconds
  • Memory Usage 2,268KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete