Registered Images

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

Previous topic - Next topic

haiwasnm

can use it to the topic for user must be reply to see the topic

U1NO

thank you very much for this mod! /
can anyone tell me how can i put the text in red color?? thanks in advance.

Aileen

nice mod, is there any notification for guest to log in to view the image

thanks

05185736

is it possible to hide the link to the linked image?

[URL=ThisLinkIsHiddenToGuests][IMG]Thumbnail[/IMG][/URL]
.::.

cubitfx

I am having trouble with this mod. My site is hxxp:www.lotsatopics.com [nonactive] 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?

Harvester

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.

Harvester

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)',
),

husmen73 (Gulhin)

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
-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?

foxdie

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)

husmen73 (Gulhin)

I have updated login links.

[Sağol foxdie, mesajları tekrar okuyunca anladım]
-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?

foxdie


Dante_Arg

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

husmen73 (Gulhin)

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
-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?

cme1st2302

#33
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) 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?
SMF Version: 1.1.11
SimplePortal Version: 2.3.2

Admin

He who waits for perfect conditions sees nothing!!
If you need help adding a button or tab PM me!!

LinuxFanatic

#34
Hi husmen73 (Gulhin),

Thank you very much for this plugin   :)

We make use of them in our German Pardus support forum:
http://pardususer.de/smf/index.php [nofollow]



Best regards,
LinuxFanatic

[nofollow]

LinuxFanatic

#35
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

[nofollow]

husmen73 (Gulhin)

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) 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'))
-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?

LinuxFanatic

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 ... ;)

[nofollow]

husmen73 (Gulhin)

this modification don't about attachments. this is affect just to img tags into topics.

Send me your Subs.php file
-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?

LinuxFanatic

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, Selamlar
LinuxFanatic

[nofollow]

Advertisement: