vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   auto resize huge images (https://vborg.vbsupport.ru/showthread.php?t=90208)

SecTa 02-23-2005 09:58 PM

If you don't want your logo to be resized, following changes should be done:
Styles & Templates-> Style Manager-> Edit Templates-> Header:
find
HTML Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
replace with
HTML Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" id="forumlogo"/>
Info was taken from here

mustang_lex 06-04-2005 09:43 PM

Ok .I got mine working. A few things I modified for others who may care.

I use vb 3.0.7 so I don't know if this will work for older boards

The original hack works once the thread has been posted. however I noticed that when you post a new thread and "preview" it or reply and "preview" it, the photo is still full size.

I thought I fixed it but I had 007pigs hack installed too and since removing it ( i like this one better because it works better) the "preview" still shows it full size.

I tried replacing the body tag in templetes newreply and newthread but got errors and the image link wouldn't work :confused: any ideas

Maybe its a javascript setting in newpost_preview templete?

mustang_lex 06-06-2005 03:38 PM

Quote:

Originally Posted by SecTa
If you don't want your logo to be resized, following changes should be done:
Styles & Templates-> Style Manager-> Edit Templates-> Header:
find
HTML Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
replace with
HTML Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" id="forumlogo"/>
Info was taken from here

Adding the
Quote:

id="forumlogo"
for any image works great. thanks. I have a image for my footer which was resized, but after adding the id part. It was fixed. :)

mr.gamesbay 07-02-2005 02:28 AM

*click install* lol ;)
The Demo Link has changed:
http://www.gamesbay.de/showthread.php?t=25

mustang_lex 07-03-2005 09:59 PM

Is there a way in the resizeall.js clientscript so any resized photos will have text under it saying something like "this photo has been resized automatically, click for full view"

Thanks

mustang_lex 07-05-2005 01:43 PM

I had to uninstall this hack and use another because my smilies wouldn't work on new post or reply, but the new one is god awful slow on the server, so now I want this one back but I can have the problem. Has anyone encountered this?

mustang_lex 07-05-2005 03:00 PM

Ok the problem with this hack is that it doesn't work with newreply or newpost and it has to do with the editInit() for the body onload part. So I'm trying to figure out how to load to variables in the body tag. I tried using a Javascript call but doesn't work

here the out put if I just do as the hack suggests and change the BODY tag in the newreply or repost . the end result is <body onload="editInit();" onload="fiImageResize();">

If we can load both the editInit() AND fiImageResize() in the <BODY> it will work I believe. BUT HOW!!!


****************************
THIS IS THE FIX TO MAKE IT WORK!!
****************************

As I stated I had a problem with this hack when it came to new threads (when you do a preview) and new replys. I been doing some research and I'm sure this was no brainer for many, but I'm pretty happy with it.

In newreply and newthread

look for
Quote:

<body onload="$onload">
or in my case
Quote:

<body$onload>
and replace it with

Quote:

<body onload="editInit();fiImageResize();">
And you will have this hack work for SHOWTHREAD , newreply and newthread!!

I think this should be added to the original hack :nervous:

Kirk Y 07-24-2005 04:00 PM

Great hack! acidburn0520 clicks install!

Blindchild02 07-25-2005 06:50 PM

this isnt working for me, could i get some help :|

Kirk Y 07-25-2005 07:43 PM

It's a fairly straight-forward modification, what's the problem?


All times are GMT. The time now is 07:57 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.01242 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_html_printable
  • (5)bbcode_quote_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