View Full Version : Need assistance with auto resize hack.
bhxtyrant
07-10-2006, 04:06 PM
Hey guys,
I was hoping someone out there might be able to help me with a small problem reguarding this modification for VB 3.5 https://vborg.vbsupport.ru/showthread.php?t=99286&page=7
It's an Image auto resize hack that works quite well but for some reason will not work on my custom skin.I tryed using the default VB skin for testing and it works fine but my custom one causes issues.Now i notice using my custom skin the mod does work to a degree the image gets resized in the view single post screen and also in the reply screen.But in Showthread it simply will not work.My showthread template isn't modded to much i only added two pieces of code in order to make it match the rest of my site but i can't seem to understand why it causes a problem.Hopefully someone here can helop me out.If needed i can post the templates code.Thank you for your time.
a simple fa?ade
07-10-2006, 04:28 PM
Did you remember to make the template edit to your Headinclude template on the custom skin?
bhxtyrant
07-10-2006, 05:04 PM
Yep i did,Like i said it seems to work fine in certain templates on the custom skin such as the one for viewing a single post or quoting a reply or replying to a thread.The problem only occurs in the showthread pages.I notice if i edit the post with the image in it then the mod works but once i refresh the page the image is large again.
The only edits i made to that template are the following and removing them causes the mod to work correctly.I assume it has something to do with the onload command.Is here something i can add to fix this?
This code directly under the $header code
<!-- begin mainbody custom begin -->
<div align="center">
<table width="984" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5" height="428" background="$vboptions[bburl]/images/re-wu/mainfiles/lborder.jpg"> </td>
<td align="center" valign="top" background="$vboptions[bburl]/images/re-wu/mainfiles/backround.jpg"style="background-repeat:repeat-y;"><div align="center">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
<!-- end mainbody custom begin -->
And this right above the $footer code
<!-- begin mainbody custom end -->
<br />
</td>
</tr>
</table>
</div>
</td>
<td width="9" colspan="2" align="right" valign="top" background="$vboptions[bburl]/images/re-wu/mainfiles/rborder.jpg"style="background-repeat:repeat-y;background-position: top right;"><table width="161" height="361" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="26" height="348"><img src="$vboptions[bburl]/images/re-wu/mainfiles/rb1.gif" alt="" width="26" height="348"></td>
<td width="114"><img src="$vboptions[bburl]/images/re-wu/mainfiles/rb2.jpg" alt="" width="114" height="348"></td>
<td width="21"><img src="$vboptions[bburl]/images/re-wu/mainfiles/rb3.jpg" alt="" width="21" height="348"></td>
</tr>
<tr>
<td height="12" background="$vboptions[bburl]/images/re-wu/mainfiles/rb4.gif"> </td>
<td height="20" background="$vboptions[bburl]/images/re-wu/mainfiles/rb5.jpg"> </td>
<td height="12" background="$vboptions[bburl]/images/re-wu/mainfiles/rb6.jpg"> </td>
</tr>
</table></td>
</tr>
</table></div>
<!-- end mainbody custom end -->
bump
bhxtyrant
07-11-2006, 05:49 PM
No ones else has this issue?
bhxtyrant
07-13-2006, 07:03 PM
just a bump for this.and also a question if this problem can't be solved are there any auto thumbnail hacks out there for vb 3.5.4/3.6.0? I saw one hack that adds scroll bars to large images so it doesnt break layouts but thats not really what im looking for.Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.