• Welcome to Simple Machines Community Forum. Please login or sign up.
September 28, 2021, 09:21:36 AM

News:

Wondering if this will always be free?  See why free is better.


Hide Images From Guests

Started by Diego Andrés, July 12, 2009, 06:33:24 AM

Previous topic - Next topic

SinnerSaint

Quote from: forfun on June 30, 2010, 07:39:38 AM
Quote from: SAFAD on June 25, 2010, 05:29:55 AM
damn,
again ?
another fail ?
too bad
i'll work it out later

I have the same problem with SMF 2.0 RC3.  test failed with /sources/Sub.php

Is there any fix for this installation error? I tried installing this mod to a freshly installed SMF 2.0 RC3 WITHOUT ANY OTHER MODS INSTALLED but still got the same error:

./Sources/Subs.php    Test failed
SinnerSaint

Blipsqueak

I'm also getting the error on a fresh install.

I'll be able to manually install it, but I assume it's something you'd want to fix.

jaisi

Nice Mod

Please update it for SMF RC 

Tokzu

Hi~ Nice mod.

I want that the guests cannot see the images of certain boards, how could I modify it?
"I don't need a knight in a shinny armor, I need a angel in a trench coat"

My mods:

aquascape

May 04, 2011, 05:22:30 PM #44 Last Edit: May 04, 2011, 05:57:25 PM by aquascape
I installed this mod to my RC5 and found that when view page index as guest, some boards in my forum s disappeared and only be seen when registered. The board does not contained pics or some even no post at all.??

one other thing I found is the "log in or log in" is replacing the image so I go to parse and edit the
/public_html/board/Themes/default/languages/Modifications.english.php  the last word "log in" changed to "register".

$txt['prevent_view_pic'] = 'Guests can\'t see images. Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>';

gigashiga

I downloaded your version for 1.1.13 since my forum is same version

I got this error


!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


??

.Vapor


iverSUN


Adrek

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Venera

Nice mod. But I have problem. When I install "hide images", its block  nCode image risazer to resize images.

Help!  :)

villasg


willymmx

Quote from: villasg on June 09, 2015, 12:48:09 PM
Working for 2.0.10 ?

yes!

But I have a problem..... mod is working and it shows the visitors message, but the text is still a link to the image.... so.... if a visitors clicks on the link he will see the picture....



Any idea?

board www.hondacgclub.com.ar

Thanks!

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

woolly bugger

Quote from: Diego Andrés on November 04, 2020, 11:17:51 PM
Updated to SMF 2.1

installed, get "You cannot see attachments on this board." but no link to log in or sign up...

also only blocks attached images, not [img]linked image[/img]

smf 2.1 rc3

mods

2   Simple Audio Video Embedder   5.1.4   November 02, 2020, 12:59:37 PM   UNINSTALL LIST FILES DELETE
6   Forum Width Setting   1.2   November 02, 2020, 13:01:16 PM   UNINSTALL LIST FILES DELETE
18   Ad Managment   3.5d   November 02, 2020, 13:02:18 PM   UNINSTALL LIST FILES DELETE
14   Report BBC   1.0.0   November 02, 2020, 13:03:13 PM   UNINSTALL EMULATING: 2.1RC1 LIST FILES DELETE
4   SMF Gallery Lite   6.0d   November 02, 2020, 13:03:34 PM   UNINSTALL LIST FILES DELETE
10   Google Analytics Code   1.5.1   November 02, 2020, 13:04:06 PM   UNINSTALL EMULATING: 2.0 LIST FILES DELETE
5   EzPortal   4.5.10   November 02, 2020, 13:04:40 PM   UNINSTALL LIST FILES DELETE
16   FancyBox 4 SMF   0.7.2   November 02, 2020, 13:05:35 PM   UNINSTALL LIST FILES DELETE
12   Tapatalk SMF 2.1 Plugin   5.0.1   November 04, 2020, 19:30:34 PM   UNINSTALL LIST FILES DELETE
8   Hide Images From Guests

Diego Andrés

Quote from: woolly bugger on November 05, 2020, 10:44:01 AM
installed, get "You cannot see attachments on this board." but no link to log in or sign up...

The mod doesn't block attachments, that's a permission setting in smf, and doesn't generate this message either You cannot see attachments on this board.

Regarding the mod not working would have to test with other mods from your list.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

November 05, 2020, 01:23:34 PM #56 Last Edit: July 13, 2021, 04:56:03 PM by Diego Andrés
To make it work with FancyBox 4 SMF:

Edit the file Class-FancyBox.php
Code (Find) Select

foreach ($codes as &$code) {
if ($code['tag'] == 'img') {

Code (Replace) Select
foreach ($codes as &$code) {
if ($user_info['is_guest'])
continue;
if ($code['tag'] == 'img') {

SMF Tricks - Free & Premium Responsive Themes for SMF.

woolly bugger

Quote from: Diego Andrés on November 05, 2020, 01:23:34 PM
To make it work with fancy box edit Class-FancyBox.php

Code (Find) Select

foreach ($codes as &$code) {


if ($code['tag'] == 'img') {


Code (Replace) Select
foreach ($codes as &$code) {
if ($user_info['is_guest'])
continue;
if ($code['tag'] == 'img') {



Thanks!!!

Advertisement: