The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Hide Images from Guests Details »» | |||||||||||||||||||||||||||||||
Hide Images from Guests
Description: Allows you to show a message to guests instead of images in posts. Installation:
Settings-> Options-> Thread Display Options (showthread)-> Enable Hide Images from Guests Languages: - English History: 28-12-10: v4.0 First Release This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation. Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
mapleleaffans |
Comments |
#42
|
|||
|
|||
Thanks for your help sv1cec. I was checking the plugin, and it is giving troubles with the preg_replace function. Works with any thing that i want insert into the post, but that function is not working on my installation. May be it's another hack giving conflicts, or my php version (5.3.3-7+squeeze16)
I stop to work with this mod because i choose another method to control the images in my site. So i unistall it. May be in the future i'll back to this mod. Thanks! |
#43
|
|||
|
|||
How it can work with vbulletin 4.2.1??? I have installed butt doesn't work.
|
#44
|
|||
|
|||
As I said, it works with 4.2.2. Have you set the "hideimg_enabled" setting to Yes? I don't remember where exactly that can be found, but it should be somewhere. The plugin checks if you have set that, if not it won't work.
Ah yes, here: Settings-> Options-> Thread Display Options (showthread)-> Enable Hide Images from Guests |
#45
|
|||
|
|||
Quote:
|
#46
|
|||
|
|||
It isn't working for me anymore either, it had been working, but it stopped with the 4.2.2 upgrade.
I've tried it with a default style as well, doesn't seem to help at all. This is a very important thing to have if you run Google adsense, they've been very strict lately with user uploaded photos. |
#47
|
|||
|
|||
Quote:
Code:
if($this->registry->options['hideimg_enabled'] AND $show['guest']) { $this->post['pagetext_html'] = preg_replace('/\[IMG\](.*)\[\/IMG\]/im', construct_phrase($vbphrase['hideimg_message'], $session['sessionurl_q']), $this->post['pagetext_html']); $this->post['pagetext'] = preg_replace('/\[IMG\](.*)\[\/IMG\]/im', construct_phrase($vbphrase['hideimg_message'], $session['sessionurl_q']), $this->post['pagetext']); } |
#48
|
|||
|
|||
Thank you
How can I change the language to French? |
#49
|
|||
|
|||
Quote:
Yeah that's pretty much what I'm doing - although it also seems to have affected random logged in members on certain styles (where they are logged in and can't see images). The crazy thing is that even if I disable the plugin it still hides the images for the logged in member, so it's as if the PHP logic itself has been stored in the post. If I edit and save the post as an admin after the plugin has been disabled it removes the logic and everyone can now see the image - anyone any ideas? |
#50
|
|||
|
|||
oh it turns out the replaced text is being stored in the vb_postparsed table, as if it's a guest - but only on one styleID and not on another styleID. Maybe the guest reading the page is caching it first - anyone any ideas?
|
#51
|
|||
|
|||
After a lot of hours I figured out how to finally get this working properly.
It turns out that the first person to view a thread via showthread.php would cache that version of the thread in vb_postparsed - so if a guest views the thread first it is cached with the replaced text and everyone else who uses that style logged in or not will have the cached version. I've managed to get around this by having a copy of a style dedicated to guests, setting it as the default and using the Restrict Style to Usergroup mod https://vborg.vbsupport.ru/showthread.php?t=95910 to prevent logged in members from changing to that style. |
Благодарность от: | ||
Denethor |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|