News:

SMF 2.1.3 has been released! Take it for a spin! Read more.

Main Menu

Registered Images

Started by husmen73 (Gulhin), April 11, 2007, 08:38:58 PM

Previous topic - Next topic

Ravac

tnx Husmen73 for this mod!

and i have Serbian and Croatian translate,if you need them just send me PM. :D

husmen73 (Gulhin)

-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

Ravac

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>";

baijianpeng

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.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

husmen73 (Gulhin)

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>&nbsp;or&nbsp;<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>&nbsp;or&nbsp;<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>&nbsp;or&nbsp;<a href="' . $scripturl . '?action=login">Login</a>' : '<img src="$1" alt="{alt}"{width}{height} border="0" />',
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

vojailic

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.


vojailic

Maybe the author himself can help me?

villasg

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

twentetoo

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!

Markus55

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?

kaamaru

Can you get this to work on certain boards rather than the whole forum?

Apllicmz

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&ecirc; n&atilde;o tem permiss&atilde;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&ecirc; n&atilde;o tem permiss&atilde;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>



crotalusco

has anyone found a fix for this for 1.1.11/1.1.12 ? If i manually edit code will it work?

noaccess

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.

Advertisement: