vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - lazy load, load your page faster & save bandwidth (https://vborg.vbsupport.ru/showthread.php?t=259302)

Arrogant-One 10-13-2013 09:24 PM

Quote:

Originally Posted by ForceHSS (Post 2453039)
You do know that is not the same version as mine its so old

I am not sure what you mean. I had 4.2.2 and had lots of problems. I won't be upgrading anytime soon as a result. My faith in vBulletin has been shaken a little bit.

ForceHSS 10-13-2013 10:58 PM

Quote:

Originally Posted by Arrogant-One (Post 2453042)
I am not sure what you mean. I had 4.2.2 and had lots of problems. I won't be upgrading anytime soon as a result. My faith in vBulletin has been shaken a little bit.

Whos talking about 4.2.2 I have 4.2.1

final kaoss 10-14-2013 11:56 AM

Thanks for the mod, using it on 4.2.2 without any issues :)

DemOnstar 10-14-2013 02:17 PM

Installed! 4.2.1

Not sure if it works yet but nothing seems out of place...:up:

Arrogant-One 10-14-2013 02:18 PM

Quote:

Originally Posted by ForceHSS (Post 2453051)
Whos talking about 4.2.2 I have 4.2.1

Oh, I didn't know you had a version of your own. Can you please tell me how to use your's instead? Will I need to uninstall it?

ForceHSS 10-14-2013 02:40 PM

Quote:

Originally Posted by Arrogant-One (Post 2453224)
Oh, I didn't know you had a version of your own. Can you please tell me how to use your's instead? Will I need to uninstall it?

lol my vb version is 4.2.1

smirkley 10-16-2013 04:53 PM

Tried to install and test, but no change and isnt operating for me.

vb v4.2.0pl3

tried with variations suggested.

note:am using pretty url's and "showthread" isnt part of the url anymore, tried with what does show on my threads, wondering if that is the problem.

DemOnstar 10-16-2013 05:28 PM

Can somebody please show me the difference or demonstrate the difference between:

Pretty urls
Advanced friendly urls (currently using)
Mod Rewrite Friendly URLs
Basic Friendly URLs

and

Standard URLs

What is best here and why all this choice?

Thank you....

smirkley 10-17-2013 01:43 AM

I shouldnt have used the phrase, "pretty", when all I meant was "Mod Rewrite" urls.
I think the pretty part is a wordpress phrase?

From the help link in acp:
Quote:

Enabling friendly URLs can increase your site's ranking in search engines and can be useful for users to understand the URL's that they follow.

•Standard URLs:
showthread.php?t=12345

•Basic Friendly URLs:
showthread.php?1234-Thread-Title

•Advanced Friendly URLs:
showthread.php/1234-Thread-Title

•Mod Rewrite Friendly URLs:
threads/1234-Thread-Title

Note: In order to use the Mod Rewrite Friendly URLs the appropriate rewrite rules must be defined for your server.
Mod Rewrite requires htaccess tweaking.

DemOnstar 10-17-2013 05:16 AM

Much appreciated.. Thanks for that.

I will look into Mod Rewrite out of curiosity...

Arrogant-One 10-18-2013 11:33 PM

Quote:

Originally Posted by ForceHSS (Post 2453227)
lol my vb version is 4.2.1

Can I please have a link to your download, I use 4.2.1 now too.

final kaoss 10-21-2013 03:38 AM

The only change you have to make to the code is here. I changed it to 1.9.0

Code:

http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js
Quote:

Originally Posted by Arrogant-One (Post 2454511)
Can I please have a link to your download, I use 4.2.1 now too.


@ngel 10-21-2013 09:28 AM

I tried to update with this, and it works:

http://ajax.googleapis.com/ajax/libs.../jquery.min.js

DemOnstar 10-22-2013 06:02 AM

So, do we need to upload a new script or keep the original script in place?

BTW I put it in clientscript/jquery folder..

Kolbi 10-22-2013 06:06 AM

Using jquery 1.9 you have to edit lazyload see details here: https://gist.github.com/mameier/5099718


// If needed I might have the fixed version on my server...

tpearl5 03-30-2014 04:09 PM

any ideas on getting this working for attachments?
edit: now that I look at this more carefully, I'm not seeing how this would ever work without modifying image tags to include "data-original=" in place of the img src.

fxdigi-cash 04-21-2014 08:29 PM

I don't think this mod works on attachment, but could be only on external pictures.

there is no jquery fade-in effect when loading pages so that means it is not working.

possibly there is a conflict with something else.

RichieBoy67 06-13-2014 04:28 PM

Quote:

Originally Posted by Kolbi (Post 2455262)
Using jquery 1.9 you have to edit lazyload see details here: https://gist.github.com/mameier/5099718


// If needed I might have the fixed version on my server...

Feel free to send me the fixed version :)

thetechgenius 06-14-2014 12:13 AM

I have a question.

Does this work with HTTPS/SSL? Because my entire forum runs on a SSL Connection, and I know if some things on a page are not running through SSL, users will get a "Partial" secure warning when visiting my site.

However, I know Google has SSL enabled on there servers, so I can just change:

Code:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"
To This:

Code:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"
But will that work, is that the only URL I have to change to use SSL?

ezak 06-14-2014 06:36 AM

does it affect on SEO and archiving ?

Firyou 09-04-2014 05:49 PM

1 Attachment(s)
The latest version of lazyload works with the newest version of jquery for this template edit.

Code:

<vb:if condition="THIS_SCRIPT == 'showthread'">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript" charset="utf-8"></script> 
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/jquery.lazyload.mini.js"></script>
  <script type="text/javascript" charset="utf-8">
      $(function() {
          $(".postbody img").lazyload({placeholder : "{vb:raw vboptions.bburl}/clear.gif", effect: "fadeIn"});
      });
  </script>
</vb:if>

This will keep you updated with the latest version of jquery at all times, if you want you could use the google hosted lib one of 2.1.1 here. Attached is the latest version of lazyload raw from git. Same instructions as before.

RichieBoy67 09-06-2014 07:47 AM

Quote:

Originally Posted by Firyou (Post 2513782)
The latest version of lazyload works with the newest version of jquery for this template edit.

Code:

<vb:if condition="THIS_SCRIPT == 'showthread'">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript" charset="utf-8"></script> 
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/jquery.lazyload.mini.js"></script>
  <script type="text/javascript" charset="utf-8">
      $(function() {
          $(".postbody img").lazyload({placeholder : "{vb:raw vboptions.bburl}/clear.gif", effect: "fadeIn"});
      });
  </script>
</vb:if>

This will keep you updated with the latest version of jquery at all times, if you want you could use the google hosted lib one of 2.1.1 here. Attached is the latest version of lazyload raw from git. Same instructions as before.

Actually Vbulletin has this built in..

Alan_SP 09-09-2014 11:39 AM

I just installed version from Firyou (two posts above) and I see that as I scroll through pages with lots of images bandwidth usage rises, i.e. I think images get loaded with scrolling.

Just to comment, as someone posted that this doesn't work.

friendlymela 10-05-2015 09:51 AM

will check it

final kaoss 11-11-2015 01:17 PM

Quote:

Originally Posted by Alan_SP (Post 2514375)
I just installed version from Firyou (two posts above) and I see that as I scroll through pages with lots of images bandwidth usage rises, i.e. I think images get loaded with scrolling.

Just to comment, as someone posted that this doesn't work.

About how much extra bandwidth/cpu resources are used with this mod enabled vs with it disabled? Chances are that it uses so little that the results are negligible.

Alan_SP 11-11-2015 07:31 PM

I think that depends on content you have. If you have many images per page, this could save a lot of bandwidth. But, if all is just plain text, nothing at all.

friendlymela 11-13-2015 03:47 AM

Its really working?

RichieBoy67 11-13-2015 04:47 AM

I do not think you need this anymore unless you have an older version of Vbulletin.

Better to use the htaccess code over at ozzmods.com. There is a bunch of good info there on making your page load faster.


All times are GMT. The time now is 03:03 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.03886 seconds
  • Memory Usage 1,785KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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