vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Need News!!! Image Alignment Module/hack (https://vborg.vbsupport.ru/showthread.php?t=124264)

DementedMindz 09-25-2006 04:47 PM

Try this and let me know if it works for you.

Code:

<if condition="THIS_SCRIPT == 'adv_index'"><a href="showthread.php?$session[sessionurl]t=$news[threadid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>

<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="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
&nbsp;<if condition="$show['br']"><br /><br /></if></if>


project-Buckfas 09-25-2006 05:03 PM

Thats it! Works a treat.

Thanks for that!

DementedMindz 09-25-2006 05:06 PM

No problem I been messing with it and I kept going till I got It. At first my members had to be going crazy cause I had 2 attachments per news post until I figured out.

I also edited the phrase for it so it didnt show click to show larger image this way it just shows the image name and size.

Mecho 09-28-2006 02:47 PM

is that any hack for resize [img]files in vbadvanced ?? i realy need it ..

DementedMindz 09-28-2006 02:50 PM

how small do you want the images?

Mecho 09-28-2006 03:13 PM

250 * 300 pixel . and if possible fix the images so that it automaticly shows up in the top left corner of the box .

tnx

DementedMindz 09-28-2006 03:32 PM

thats a huge image.. you might want to look on vbadvanced to see if anyone resized them that large. personally I would never have them that large on my main page.

Mecho 09-28-2006 04:14 PM

u know in this site ( link in post #2 ) : http://www.niinterests.com/

all the pics are in 118*112pixel . i think its alitlle small for my job .. if i know the quality of big pics are not going to be low , this size is perfet size . otherwise i think 150*180 PIXEL is great ..

tnx

DementedMindz 09-28-2006 04:40 PM

no the quality of the pics dont change at all. test it out see how you like it. I use mine for news post this way I can have different images on each news post.

Mecho 09-28-2006 04:43 PM

ok .. good .. so the size is not important anymore .. i can use this size too ( 118 * 112 ) but how can i make it ? with which code or hack ?

Tnx anyway for ur quick response :)


All times are GMT. The time now is 02:20 AM.

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.01652 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete