Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=721)
Languages: Turkish, English, Spanish and German
ENGLISH;
If you can translated other languages, I can add your translate.
Allows you to stop guests from viewing Images. Informs the guest to register or login.
Good Luck.
--------------------------------------------
Türkçe;
Bu modifikasyon mesajlarınızda bulunan link halinde ki resimleri ziyaretçilerinizden saklamanızı ve onların kayıt olmalarını söyleyen bir yazı ile yasaklar.
Başarılar.
thank you so much! Very nice mod ;)
Nice mod! Thanks... I'm using it. Though there's one problem:
The link to Login and Register is pointed to only one action which is ?action=register.
Quote from: yrral on April 21, 2007, 05:08:24 AM
Nice mod! Thanks... I'm using it. Though there's one problem:
The link to Login and Register is pointed to only one action which is ?action=register.
But its working. This is no problem ;)
Like that;
index.php?action=register
Yeah.. It's working I didn't say its not... but the error I'm mentioning is the two diffrent action that need to be implemented... one is index.php?action=register for the wod "register" and index.php?action=login for the word "login"
which can be easily replaced in the file manually but would be great if you could change it in your mod so none coders doesn't have to deal with it.
but anyway, thanks for the mod.. it is really good.
yrral, I can't understand to you, My English not good. I'm sorry.
I wrote <a href=?action=register>login</a> because if i write <a href=?action="register">login</a> it isn't working.
index.php?action=XXX and ?action=XXX These are same function.
I think explaining to you ???
I have problems...
Quote from: husmen73 on April 23, 2007, 10:12:19 PM
yrral, I can't understand to you, My English not good. I'm sorry.
I wrote <a href=?action=register>login</a> because if i write <a href=?action="register">login</a> it isn't working.
index.php?action=XXX and ?action=XXX These are same function.
I think explaining to you ???
The URL for login should be $scripturl . 'index.php?action=login', and the URL for register should be $scripturl . 'index.php?action=register'.
Register and Login are two different actions, not one single action.
Quote from: Matt @ ARTcom on May 18, 2007, 12:35:49 PM
Quote from: husmen73 on April 23, 2007, 10:12:19 PM
yrral, I can't understand to you, My English not good. I'm sorry.
I wrote <a href=?action=register>login</a> because if i write <a href=?action="register">login</a> it isn't working.
index.php?action=XXX and ?action=XXX These are same function.
I think explaining to you ???
The URL for login should be $scripturl . 'index.php?action=login', and the URL for register should be $scripturl . 'index.php?action=register'.
Register and Login are two different actions, not one single action.
You are right. I know this. But if I write
' . $scripturl . 'index.php?action=login, it doesn't work :) I must wrote this way
bodyboard_jerez Could you give a membership and with your site name?
Hello, I love the registeredimages mod, I have istall it in my 1.1.2 and some bugs I have found in my opinion... I wrote they in the correct way (mod's forum) but not results or replies yet... I try you could help me...
I am working in the forum at localhost only... not online... sorry...
I combine it with the reglinks mod too...
All works fine less when the user post the image how this:
[flash ... image-url [/flash] Solved at this moment !!
[email ... image-url [/email] Solved at this moment !!
[ftp ... image-url [/ftp] Solved at this moment !!
[code ... image-url /code]
Nothing runs then, because guest can view the content of the urls !! ...
I would like you to fix it please... Or if you preffer it, you can let me know what I have to do about it... thank you very much !!
Sorry, it's very important to me... Thank's !!
I have translated this mod to arabic how I can add it?
Quote from: CuTe_MaN on May 28, 2007, 06:26:49 AM
I have translated this mod to arabic how I can add it?
sent it to me
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Sources/Subs.php Test failed
Website name : http://revlimit.co.in
Quote from: pulkit on August 08, 2007, 04:56:18 AM
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Sources/Subs.php Test failed
Website name : http://revlimit.co.in
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => $user_info['is_guest'] ? '' : '($1)',
),
Seem to install ok,
Is there a option I need to check mark to turn it on?
I can still view images as a guest.
Thanks,
ok, seems to work.
The register and login links both seem to take me to the register page.
Can I change it so someone that has already signed up can click login to just login?
Quote from: yrral on April 22, 2007, 04:33:55 AM
Yeah.. It's working I didn't say its not... but the error I'm mentioning is the two diffrent action that need to be implemented... one is index.php?action=register for the wod "register" and index.php?action=login for the word "login"
which can be easily replaced in the file manually but would be great if you could change it in your mod so none coders doesn't have to deal with it.
but anyway, thanks for the mod.. it is really good.
How would I easily replace it in the file manually?
Thanks,
24 hour bump,
Anyone?
great mod!!!!!!!
Thank you! ;)
But i have a problem/feature request, perhaps someone can help me.
i do not want to hide signature-images for guests, only images in posts...
can someone perhaps point me to the right direction where i have to "look" in code?
Markus :)
Hello.
Thank you for this Mod. Only one thing: I think it's compatible with SMF 1.1.4. You can see running in the forum of the web
http://www.losbabillosos.com/
Also I translated the Mod into Spanish. Can You insert it in the Mod? It should be very nice for the spanish community.
I send you the spanish traslation in a PM.
Thanks anyway.
Regards.
can use it to the topic for user must be reply to see the topic
thank you very much for this mod! /
can anyone tell me how can i put the text in red color?? thanks in advance.
nice mod, is there any notification for guest to log in to view the image
thanks
is it possible to hide the link to the linked image?
[URL=ThisLinkIsHiddenToGuests][IMG]Thumbnail[/IMG][/URL]
I am having trouble with this mod. My site is http://www.lotsatopics.com and there is an image in the first post on there. As a guest, it is just a blank post. It is not displaying the text. Any thoughts?
I love that it makes the images disappear for guests BUT I would like if it left some kind of marker behind so that guests KNEW they were not seeing the image and they needed to register to do so.
What is all this??? I am using it on an english board running 1.1.4 but this is definitely not english.
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => $user_info['is_guest'] ? '' : '($1)',
),
Quote from: Harvester on April 06, 2008, 10:48:21 AM
What is all this??? I am using it on an english board running 1.1.4 but this is definitely not english.
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => $user_info['is_guest'] ? '' : '($1)',
),
$txt['ziyaretciler_resimleri_goremez'] this is "guests dont see images". Its just string. Language not so important
kardes adamlar sana "register" linkiyle "login" linkini aynı yapmısın, dieri ?login.php diye bitmesi gerekio demisler sen olmuyo demisin
soliim dedim
(explained him about the "register" and the "login" links being the same)
I have updated login links.
[Sağol foxdie, mesajları tekrar okuyunca anladım]
no prob
I ve this error when i trying to install:
1. Ejecutar Modificación ./Themes/default/languages/Modifications.english.php Éxito (EXIT)
2. Ejecutar Modificación ./Themes/default/languages/Modifications.spanish.php Prueba fallida (FAIL) <<<
3. Ejecutar Modificación ./Themes/default/languages/Modifications.turkish.php Omitiendo archivo - (it dosen´t matter)
4. Ejecutar Modificación ./Sources/Subs.php Éxito (EXIT)
forum: foro.nihonshiki.com.ar
Quote from: Dante_Arg on May 19, 2008, 03:44:09 PM
I ve this error when i trying to install:
1. Ejecutar Modificación ./Themes/default/languages/Modifications.english.php Éxito (EXIT)
2. Ejecutar Modificación ./Themes/default/languages/Modifications.spanish.php Prueba fallida (FAIL) <<<
3. Ejecutar Modificación ./Themes/default/languages/Modifications.turkish.php Omitiendo archivo - (it dosen´t matter)
4. Ejecutar Modificación ./Sources/Subs.php Éxito (EXIT)
forum: foro.nihonshiki.com.ar
You can setup as manuel
I installed this mod and love it. One question is can you make it so it won't do it for a certain board. I have a astronomy site (www.sjaaaa.com (http://www.sjaaaa.com)) and i want people to see the images in certain boards but not others. Any help is appreciated.
Thanks in advance,
Chris
Edit: I tried to uninstall it and it said it was successful but if I go into the board as a guest the image doesn't show up. Any ideas why?
Hi husmen73 (Gulhin),
Thank you very much for this plugin (http://www.simplemachines.org/community/Themes/smsite/images/post/thumbup.gif) :)
We make use of them in our German Pardus support forum:
http://pardususer.de/smf/index.php
Best regards,
LinuxFanatic
Hi again,
I deinstalled this mod. But images are still hidden to guest - wath is wrong with them?
My SMF version is 1.1.6 and here the new code from Subs.php ():
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
hope, that someone can help me :-[
Greetings,
LinuxFanatic
There is no wrong on codes :S Are you sure right Subs.php. I have tried to deinstall and there was no wrong
Quote from: cme1st2302 on July 23, 2008, 09:07:06 PM
I installed this mod and love it. One question is can you make it so it won't do it for a certain board. I have a astronomy site (www.sjaaaa.com (http://www.sjaaaa.com)) and i want people to see the images in certain boards but not others. Any help is appreciated.
Thanks in advance,
Chris
Edit: I tried to uninstall it and it said it was successful but if I go into the board as a guest the image doesn't show up. Any ideas why?
Findi in Subs.php (there is two same codes)
$user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez']
Change with;
($user_info['is_guest'] && $board_info['id'] == '1')
If you want to make to more board, you should do like that;
($user_info['is_guest'] && ($board_info['id'] == '1' || $board_info['id'] == '18' || $board_info['id'] == '21'))
Hi husmen73,
I activated option to show images for guest too. (in the Aministrator Center > Premissions > Guest/unregistered Users > Attachments ...) see screenshot.
It's a German board, but I think you'll understand, what I mean ... ;)
this modification don't about attachments. this is affect just to img tags into topics.
Send me your Subs.php file
Quotethis modification don't about attachments. this is affect just to img tags into topics.
Exactly that was my problem, I misunderstood that this plugin hiddes also attachments ...
Now my problem is solved, thanks a lot for your patience ;)
-----
Ben bu modifenin fonksiyon'u ters anlamisim. Sorunum artik cözüldü ;D
-----
Hehe, hope that's right in Turkish ^^^^ :D
Best regard,
SelamlarLinuxFanatic
tnx Husmen73 for this mod!
and i have Serbian and Croatian translate,if you need them just send me PM. :D
you can ;)
Modifications.serbian-utf8.php
// Registered Images (husmen73 http://www.smfturk.net SMF Support) Translated by "ravac"
$txt['ziyaretciler_resimleri_goremez'] = 'Није вам дозвољено да видите слике.';
$txt['login_or_register'] = "Молимо Вас <a href=?action=register>региструјте се</a>, или се <a href=?action=login>пријавите</a>.";
_______________________________________________
Modifications.croatian.php
// Registered Images (husmen73 http://www.smfturk.net SMF Support) Translated by "ravac"
$txt['ziyaretciler_resimleri_goremez'] = 'Ne možete pregledavati slike.';
$txt['login_or_register'] = "Molimo vas <a href=?action=register>Registrirajte se</a>, ili se <a href=?action=login>prijavite.</a>";
_______________________________________________
Modifications.serbian-utf8.php (Latinic)
// Registered Images (husmen73 http://www.smfturk.net SMF Support) Translated by "ravac"
$txt['ziyaretciler_resimleri_goremez'] = 'Nije vam dozvoljeno da vidite slike.';
$txt['login_or_register'] = "Molimo vas <a href=?action=register>registrujte se</a>, ili se <a href=?action=login>prijavite.</a>";
I tested this Mod (v2.3 ) on SMF 1.1.6 today, it can Hide the Image to guests, but the Warning/Informing message did not show up.
I was using the default template and English language.
What's wrong?
If the author will improve it, I hope he can also put those warning messages in a special style box with dashed border to distinguish them from the original post tests.
Thanks.
I couldnt find error. IT doesnt seems any error. All codes same before version. Also Registered Links doesnt work. If you want you can do that, open your Subs.php and find that;
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . '<a href="' . $scripturl . '?action=register">Register</a> or <a href="' . $scripturl . '?action=login">Login</a>' : '<img src="$1" border="0" />',
Change with;
'content' => $user_info['is_guest'] ? 'You cannot see images, please <a href="' . $scripturl . '?action=register">Register</a> or <a href="' . $scripturl . '?action=login">Login</a>' : '<img src="$1" border="0" />',
Also find that;
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="{alt}"{width}{height} border="0" />',
Change with;
'content' => $user_info['is_guest'] ? 'You cannot see images, please <a href="' . $scripturl . '?action=register">Register</a> or <a href="' . $scripturl . '?action=login">Login</a>' : '<img src="$1" alt="{alt}"{width}{height} border="0" />',
OK, I have installed this mod and it works just fine, except that images in signatures are also replaced with warning to login in order to see them, any idea how can I fix this. I want only images which are in post(message) to be replaced with warning not the ones in signatures.
Any one?
Maybe the author himself can help me?
If you have error in upgrade to 1.1.11 try this (failure in ./Sources/Subs.php ).
Make some edits in the installer (smf_1-1-10_to_1-1-11_patch )
#6
need find
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
and replace
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="{alt}"{width}{height} border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
#7
and find
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
replace
'content' => $user_info['is_guest'] ? $txt['ziyaretciler_resimleri_goremez'] . "\n" . $txt['login_or_register'] : '<img src="$1" alt="" border="0" />',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
and work !
or replace with this file
Sorry to bring up an old topic but this is the exact mod I am looking for! Unfortunately like stated above in 1.1.11 when attempting to apply I am getting the error: " Execute Modification ./Sources/Subs.php Test failed "
I have been trying to figure out how the heck to do the stuff listed above and change adjustments in the installer but am having absolutely no luck! I was wondering if there is a way for you to come out with a new version of this package that will work with the updated 1.1.11? thanks in advance any help would be greatly appreciated!
Quote from: twentetoo on April 19, 2010, 03:11:52 PM
Sorry to bring up an old topic but this is the exact mod I am looking for! Unfortunately like stated above in 1.1.11 when attempting to apply I am getting the error: " Execute Modification ./Sources/Subs.php Test failed "
I have been trying to figure out how the heck to do the stuff listed above and change adjustments in the installer but am having absolutely no luck! I was wondering if there is a way for you to come out with a new version of this package that will work with the updated 1.1.11? thanks in advance any help would be greatly appreciated!
I am experiencing the same thing as well. Extremely frustrating... This sounds like a great mod that I would love to add to my forum if it were working. Is there an updated version being made for 1.1.11?
Can you get this to work on certain boards rather than the whole forum?
Portuguese
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// Registered Images (husmen73 http://www.smfturk.net SMF Support) Thanks to vbgamer45
$txt['ziyaretciler_resimleri_goremez'] = 'Você não tem permissão para ver as imagens.';
$txt['login_or_register'] = "Por favor de <a href=?action=register>registar</a> ou <a href=?action=login>Entrar</a>";
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// Registered Images (husmen73 http://www.smfturk.net SMF Support) Thanks to vbgamer45
$txt['ziyaretciler_resimleri_goremez'] = 'Você não tem permissão para ver as imagens.';
$txt['login_or_register'] = "Por favor de <a href=?action=register>registar</a> ou <a href=?action=login>Entrar</a>";
]]></add>
</operation>
</file>
has anyone found a fix for this for 1.1.11/1.1.12 ? If i manually edit code will it work?
Quote from: vojailic on December 29, 2008, 04:53:45 PM
OK, I have installed this mod and it works just fine, except that images in signatures are also replaced with warning to login in order to see them, any idea how can I fix this. I want only images which are in post(message) to be replaced with warning not the ones in signatures.
I would also like to know this.