![]() |
|
Mod Options |
![]() |
|||||||||||
Replace large images in posts with links to the images
![]() Developer Last Online: Jul 2012 ![]() ![]() ![]() This thread is in the Modification Graveyard.
No longer supported by the author.
Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Add-On Releases Forbid Users from Posting Links or Images if They Have Fewer than 15 Posts | lisss001 | vBulletin 3.7 Add-ons | 128 | 19 Nov 2011 18:00 |
Forbid Users from Posting Links or Images if They Have Fewer than 15 Posts | amykhar | vBulletin 3.5 Add-ons | 232 | 12 May 2011 15:18 |
Comments |
#2
|
|||
|
|||
First post reserved for notes, etc as I know some of you surf with the hacks collapsed.
No members have liked this post.
|
#3
|
||||
|
||||
Excellent! Thanks for the hack!
No members have liked this post.
|
#4
|
|||
|
|||
Has vb.org got something weird in it that turns double spaces into tabs? My beautifully indented code comes out all strange.
No members have liked this post.
|
#5
|
|||
|
|||
Not sure but if you put the intructions in a txt file and zip up both the instructions and the php file, it will aleviate that.
Will also make it easier for end users as they now have a neatly packaged hack stored locally. ![]() No members have liked this post.
|
#6
|
||||
|
||||
One question what about un-registered users? Do they see the link or a large image?
No members have liked this post.
|
#7
|
||||
|
||||
the JACKPOT hack will be when someone makes a "resize if >500px hack" or something
good try tho. No members have liked this post.
|
#8
|
|||
|
|||
Originally Posted by colicab-d
They see whatever the post contains at that time.
The JavaScript will fire, but the script web service that I have that services that JavaScript won't change the post when a guest calls it. I should note that in nearly all cases this means they see the link... because the moment a post is posted the author is returned to it, and it is they that trigger the conversion from [url] to [img]. So anyone who manages to see the post is usually just going to see a link. The exception to the above are historical posts, which require a registered user to go view for the conversion to occur. No members have liked this post.
|
#9
|
|||
|
|||
Originally Posted by COBRAws
From your perspective maybe. But from mine the jackpot hack stops the vast majority of users from downloading a 1.7mb 2000px wide image that some doofus put in a post.
Yes CSS and HTML can be written to re-format the size, create scroll bars on it or resize the image dimensions in JavaScript. However every user still ends up having to download that 1.7mb image for the CSS and/JavaScript to resize it. My idea of a jackpot hack for oversized images is to not have those users download the images in the first place. Of giving them the choice to download it. And as a result retain the perception that my forum is fast. This means converting inline images to links, which my hack does. So I guess whether you like this hack or not depends on point of view, whether you agree with my design decision that not having users download large images unawares is important, or whether you feel that the layout of the page is more important than the download experience for users. No members have liked this post.
|
#10
|
|||
|
|||
Originally Posted by Jenta
Yeah, I'll do that now
![]() No members have liked this post.
|
#11
|
|||
|
|||
Screenshots for those who need such things now attached.
I've used this image as an example: http://miam-miam.viabloga.com/images...ufs%20durs.jpg Because it's 1024 pixels wide, it gets replaced by a link after the first view. No members have liked this post.
|
#12
|
||||
|
||||
Would be great if it does what promiced
![]() No members have liked this post.
|
#13
|
||||
|
||||
Originally Posted by NuclioN
It should work with all [img] tags providing that they are [img]url[/img] or [IMG]url[/IMG].
The only thing it won't work with is pure HTML. But no-one allows users to post HTML because of security risks, right? Anyhow, so long as you have a DOM capable browser that supports XmlHttp and either element.parentElement (IE6) or element.parentNode (Mozilla and the others, this is the W3C implementation)... then it will call the script. Oh, but if you have edited your templates from the vb default and nuked the following from the postbit templates, then you will prevent the hack from working:
That's where I get the postId from... by walking up the DOM back to that DIV. No members have liked this post.
|
#14
|
|||
|
|||
And if you're sure it's not working, just say and I'll add some trace/debug stuff to it so that you can optionally see it working before you switch it to run silently.
No members have liked this post.
|
#15
|
|||
|
|||
Originally Posted by NuclioN
I think I read that wrong too.
With the hack installed you don't need to edit anything ![]() You just view them. Order of events:
![]() So you don't need to edit anything. Just CTRL+F5 to ensure your browser has the latest version of vbulletin_global.js, and then view the thread. Once viewed, click CTRL+F5 again to refresh the page and the image should be gone. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 14:30.