![]() |
Logician, I have to say it again - this is such a great idea! :) Absolutely minimal server overhead for a huge bandwidth saving! :) I use And such a simple concept, easily implemented, yet no one else thought of it. Pure genius.
|
Quote:
|
Quote:
Actually, this will just work for EVERY page that you output using vBulletin's doooutput function. That doesn't limit one to Webtemplates at all, most of my entire site is done using vB's dooutput function (and all of KFN 6 will be done using vB3's print_output() function), and as such this hack will apply to all those pages. :) works fine in vB3 as well btw, I just placed the code (with tiny changes) in vB3's print_output function in the proper place, works like a charm. Dunno yet if I'm gonna keep it though, unformatted source code might be 'more difficult for people to rip', but usually people don't rip sourcecode, they learn from sourcecode. Lack of proper indenting also looks unprofessional... |
One side effect - this hack does remove spaces in between images in the output as well. No big deal, but the buttons in the postbit are cramped next to each other. :)
|
Quote:
PHP Code:
Quote:
|
i noticed the buttons where all together and thought it was me
ok will fix with command above cheers |
This is great, I use to use this sort of thing to compress my html pages.
|
Excellent, though there seemed to be thousands of instances spanning thirteen styles/skins where I would need to replace relevant spaces with & nbsp;. So I decided to replay the backup functions file.
|
Logician, this is a great hack. However, i will not use it because i am too picky and html must look readable :p
i know there are many people that like to view the page source, i myself do. its just a habit by most coders to look at the page source. you also have to note that 1byte is extremely small, 1,000 bytes is just about 1KB. there really isn't much you'll be saving, as even a user on 56k would probably not even noticed a difference in 5,000 bytes. you might save a dollar or two by doing this, but a lot of page source viewers are gonna be like "what a crappy coder" lol ;):p seriously though, good thought. i am trying to focus my time in reducing vbulletin queries. that is what kills me. |
Quote:
PHP Code:
|
Quote:
Besides if you are on a server which you are paying according to your bandwidth consumption (on most dedicated it is so) and you have a high traffic, even %1 or %2 less consumption can make a difference when it comes to paying your server bills especially in the long term. But if you have a small site eating 2 GB. per month and your host allows you to spend 30 GB. per month, well you may not care about this hack or any other bandwidth related issues which is understandable. Quote:
As a matter of fact when I check source code of pages, I blame the developer if I notice a lot of inlined lines in the HTML code. It shows that dev. is either unaware of the results of these lines or don't care. So please label the correct person as "the crappy coder". :glasses: |
I like the idea of this hack very much. On our site this would make a hugh impact in bandwidth seeing we currently to about 1.7 Terabytes a month. (Yes, you read that right.) But I just could not get past some of of the spacing issues created. I did a quick test of it, it worked very well, but during the short test I got 3 e-mails telling me something is wrong with the spaces on the site. (Like the page links)
Oh well....great job non-the-less. David Bott AVS Forum http://www.avsforum.com |
Another excellent hack by the "Master". Thank you, sir. ;)
|
nice hack
|
Sorry but this just makes everything look weird on my forums.
|
Hmm it only changed the spacing of my page links in threads, rest was not effected. :)
|
Yeah I just didnt like that part :ermm:
|
all ya have to do as add html code for space, I just do not care enough to lmao.
|
I did that... it looked really weird :ermm:
|
all it did to me was make all buttons more compact but the above code fixed that.Besides that i aint noticed nothing weird.
|
Thx a lot, il will save bandwith :)
|
thanks logician
i always look forward to your releases :) |
Quote:
|
There are a lot more "spacing" issues then the ones mentioned above ... the "down arrow" button marking new posts also loses its spacing in forumdisplay ... the postbit buttons all become cramped together in some areas ... forum text links separated by white space all get smashed together, etc ...
I am giving this hack a chance, I really am, by hunting all templates in my test forum that contain visible white space and grumpily replacing them with ... just incorporating the hack isn't enough if you like your page to not look amateurish with all the lost white space... Even the slightest misalignment makes me cringe, what more for squished links :D |
faster load time/less bandwidth usage > a couple spacing issues :)
Very nice! This will definitely be helpful. |
Quote:
|
I have this code, in a PHP include file called from global.php
PHP Code:
Code:
<td align="center" > But using the compressor. they just stay in one long line and push the cell way off to the right. Is there anything I can do to fix this so that the compressor doesn't mess this up? |
@Matthew: First try to add to your buttons like:
PHP Code:
|
PHP Code:
|
Nope
I did try that, what it does is just put spaces between the buttons, and they stay in a horizontal line rather than wrapping at the table border. without compression: <body bgcolor="#9E93C1" text="#000000" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000020" vlink="#000020" alink="#000020"> <!-- BEGIN TEMPLATE: home_header --> <!-- logo and buttons --> <div class="txtcenter"> <table border="0" width="100%" cellspacing="0" cellpadding="0" > <tr> <td> </td> <td> </td> <td align="right"><bold><font face="verdana, arial, helvetica" size="2" >ASE is sponsored by:      </font></bold></td> </tr> <!-- logo --> <tr> <td valign="top" align="left" > <a href="index.php?s="><img src="http://www.screeneditors.com/images/aselogocol-230x76.gif" border="0" alt="Australian Screen Editors Guild" align="left" ></a> </td> <!-- buttons --> <td align="center" > <!-- buttons defined in ./forums/buttons.php --> <a href="../index.php?s="><img src="../forums/images/top_home.gif" alt="Home" border="0"></a> <a href="../forums/index.php?s="><img border="0" src="../forums/images/top_forums.gif" alt="Discussion Forums and Archives"></a> <a href="../forums/calendar.php?s="><img src="../forums/images/top_calendar.gif" alt="Events Calendar" border="0"></a> <a href="../forums/links.php?s="><img border="0" src="../forums/images/top_links.gif" alt="Useful Links"></a> <a href="../forums/misc.php?s=&action=faq"><img src="../forums/images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a> <a href="../forums/showthread.php?s=&threadid=125"><img src="../forums/images/top_contact.gif" alt="Contact ASE" border="0"></a> <a href="../forums/search.php?s="><img border="0" src="../forums/images/top_search.gif" alt="Search"></a> <a href="../forums/memberlist.php?s="><img border="0" src="../forums/images/top_members.gif" alt="Find other users"></a> <a href="../forums/usercp.php?s="><img border="0" src="../forums/images/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences"></a> <a href="../forums/member.php?s=&action=logout"><img border="0" src="../forums/images/top_logout.gif" alt="Logout"></a> <a href="../forums/admin/index.php?s="><img border="0" src="../forums/images/top_admincp.gif" alt="Admincp"></a> <a href="../forums/mod/index.php?s="><img border="0" src="../forums/images/top_mods.gif" alt="Moderators"></a> <br/> </td> <!-- sponsors --> <td valign="top" align="right"><a href="../sponsors.htm"><img src="forums/logos/Atlab_230x76_1.gif" border="0" alt="Sponsors"></a></td> </table> with compression: <body bgcolor="#9E93C1" text="#000000" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000020" vlink="#000020" alink="#000020"><!-- BEGIN TEMPLATE: home_header --><!-- logo and buttons --><div class="txtcenter"><table border="0" width="100%" cellspacing="0" cellpadding="0" ><tr><td></td><td></td><td align="right"><bold><font face="verdana, arial, helvetica" size="2" >ASE is sponsored by:      </font></bold></td></tr><!-- logo --><tr><td valign="top" align="left" ><a href="index.php?s="><img src="http://www.screeneditors.com/images/aselogocol-230x76.gif" border="0" alt="Australian Screen Editors Guild" align="left" ></a></td><!-- buttons --><td align="center" ><!-- buttons defined in ./forums/buttons.php --><a href="../index.php?s="><img src="../forums/images/top_home.gif" alt="Home" border="0"></a><a href="../forums/index.php?s="><img border="0" src="../forums/images/top_forums.gif" alt="Discussion Forums and Archives"></a><a href="../forums/calendar.php?s="><img src="../forums/images/top_calendar.gif" alt="Events Calendar" border="0"></a><a href="../forums/links.php?s="><img border="0" src="../forums/images/top_links.gif" alt="Useful Links"></a><a href="../forums/misc.php?s=&action=faq"><img src="../forums/images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a><a href="../forums/showthread.php?s=&threadid=125"><img src="../forums/images/top_contact.gif" alt="Contact ASE" border="0"></a><a href="../forums/search.php?s="><img border="0" src="../forums/images/top_search.gif" alt="Search"></a><a href="../forums/memberlist.php?s="><img border="0" src="../forums/images/top_members.gif" alt="Find other users"></a><a href="../forums/usercp.php?s="><img border="0" src="../forums/images/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences"></a><a href="../forums/member.php?s=&action=logout"><img border="0" src="../forums/images/top_logout.gif" alt="Logout"></a><a href="../forums/admin/index.php?s="><img border="0" src="../forums/images/top_admincp.gif" alt="Admincp"></a><a href="../forums/mod/index.php?s="><img border="0" src="../forums/images/top_mods.gif" alt="Moderators"></a><br/></td><!-- sponsors --><td valign="top" align="right"><a href="../sponsors.htm"><img src="forums/logos/AAV_Australia_230x76_1.jpg" border="0" alt="Sponsors"></a></td></table> with compress ion and spaces <body bgcolor="#9E93C1" text="#000000" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000020" vlink="#000020" alink="#000020"><!-- BEGIN TEMPLATE: home_header --><!-- logo and buttons --><div class="txtcenter"><table border="0" width="100%" cellspacing="0" cellpadding="0" ><tr><td></td><td></td><td align="right"><bold><font face="verdana, arial, helvetica" size="2" >ASE is sponsored by:      </font></bold></td></tr><!-- logo --><tr><td valign="top" align="left" ><a href="index.php?s="><img src="http://www.screeneditors.com/images/aselogocol-230x76.gif" border="0" alt="Australian Screen Editors Guild" align="left" ></a></td><!-- buttons --><td align="center" ><!-- buttons defined in ./forums/buttons.php --><a href="../index.php?s="><img src="../forums/images/top_home.gif" alt="Home" border="0"></a> <a href="../forums/index.php?s="><img border="0" src="../forums/images/top_forums.gif" alt="Discussion Forums and Archives"></a> <a href="../forums/calendar.php?s="><img src="../forums/images/top_calendar.gif" alt="Events Calendar" border="0"></a> <a href="../forums/links.php?s="><img border="0" src="../forums/images/top_links.gif" alt="Useful Links"></a> <a href="../forums/misc.php?s=&action=faq"><img src="../forums/images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a> <a href="../forums/showthread.php?s=&threadid=125"><img src="../forums/images/top_contact.gif" alt="Contact ASE" border="0"></a> <a href="../forums/search.php?s="><img border="0" src="../forums/images/top_search.gif" alt="Search"></a> <a href="../forums/memberlist.php?s="><img border="0" src="../forums/images/top_members.gif" alt="Find other users"></a> <a href="../forums/usercp.php?s="><img border="0" src="../forums/images/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences"></a> <a href="../forums/member.php?s=&action=logout"><img border="0" src="../forums/images/top_logout.gif" alt="Logout"></a> <a href="../forums/admin/index.php?s="><img border="0" src="../forums/images/top_admincp.gif" alt="Admincp"></a> <a href="../forums/mod/index.php?s="><img border="0" src="../forums/images/top_mods.gif" alt="Moderators"></a> <br/></td><!-- sponsors --><td valign="top" align="right"><a href="../sponsors.htm"><img src="forums/logos/Quantel_230x76_2.gif" border="0" alt="Sponsors"></a></td></table> |
put nowrap in the <td> area and drop the nbsp;'s
|
No that's the OPPOSITE of what I want to do. I WANT the buttons to always wrap ... <td nowrap> forces no wrapping for the cell.
|
sorry didn't read you post completely ;)
and this is a wild guess but maybe try adding hspace="#" in your image tags. |
Quote:
Maybe you can point me to the page where you are experiencing the problem so that I can see it myself. |
i got a problem...
please see my forum : http://forums.keeptouch.net/forumdis...?s=&forumid=19 Those page numbers are joining together... how to leave this alone? |
Quote:
found my own solution.. at template -> forumdisplay_multipagenav_pagenumber add a instead of space |
I uninstalled this hack in the end at my private forums, basically because some members using IE for some reason got really wide threads. Don't ask me why. :)
|
Quote:
yeah i am thinking of uninstalling it... i bascially have to find those affected templates and add in not worth... just to save that few percent of space and bandwidth |
Another problem seems to be that if a template contains " " ie. a space, it is deleted but if the template contains " " then it gets displayed as " " ie. 2 spaces. The script doesn't strip the extra space.
|
great hack :D
------------------------------------------------------------- Page generated in 0.14696705 seconds (87.31% PHP - 12.69% MySQL) with 18 queries. [Debug Mode OFF] [PHP v4.3.3] [GZIP enabled - level 1] [Output: 52.35 Kb. compressed to 49.96 Kb. by saving 2.39 Kb. (4.56%)] [Server Load: 2.92 ? 2.58 : 1.92] |
All times are GMT. The time now is 01:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|