Author Topic: [Mod] Popup message when user clicks thumbnail where they have no permission  (Read 76392 times)

0 Members and 1 Guest are viewing this topic.

Offline der moser

  • Pre-Newbie
  • Posts: 9
    • View Profile
Und wie geht das in der neuen Version 1.7.1 ??

genauso - nur heißt /includes/function.php jetzt /includes/functions.php (oder es hieß auch in 1.7 schon so und v@no hat sich vertippt) ;)

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
How can u get this to work for 1.7.1 ?

thanks for the support

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
How can u get this to work for 1.7.1 ?

thanks for the support

this mod works for V1.71 and V1.7 , just follow the instructions

RT

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
How can u get this to work for 1.7.1 ?

thanks for the support

this mod works for V1.71 and V1.7 , just follow the instructions

RT

Mine is different
but i put the codes side by side and figured it out


Offline Liyah

  • Newbie
  • *
  • Posts: 10
    • View Profile
Hey V@no! SUPER SUPER SUPER Mod! Den wollte ich schon immer mal haben!
Eine kleine bitte: Ich würde es gut finden wenn dort noch ein Link zur register.php wäre, also Beispiel:

Bla Bla Bla, klicke "hier" um dich zu registrieren.

Also keine Fehlermeldung sondern ein HTML fenster mit sagen wir mal 400 x 300 pixel mittig, dass am besten noch
extrern gelinkt ist, also dass man den link zum HTML fenster im Mod selber einfügen kann, Z.B. www.t-online.de (nicht umbedingt erforderlich, aber nützlich)
Ein HTML Fenster wär nämlich EXTREM praktisch, da man da noch Fehlermeldungsbilder, ne Navigation, oder sogar gleich
den Registriereungsbogen weiter unten mit reintun könnte. Meinst du nich? Ich fänds prima. Wär cool wenn das gehen könnte.

Würd mich über ne Antwort freuen.  :P

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Sorry, I don't speak deutsch...
the easiest solution I can give you at the moment is using "OK / Cancel" type of popup dialog box (not a popup window)
add this into header.html template (between <head></head> tags)
Code: [Select]
<script language="javascript">
function confirm_register()
{
  if (confirm('{members_only}'))
  {
    window.location = '{url_register}';
  }
}
</script>
And in includes/functions.php instead of
Code: [Select]
alert('".$lang['members_only']."');use:
Code: [Select]
confirm_register();Then in includes/page_header.php below
Code: [Select]
  "url_register" => (!empty($url_register)) ? $site_sess->url($url_register) : $site_sess->url(ROOT_PATH."register.php"),Insert:
Code: [Select]
  "members_only" => str_replace("\n", "\\n", str_replace("\r", "\\r", str_replace("'", "\'", $lang['members_only']))),
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Liyah

  • Newbie
  • *
  • Posts: 10
    • View Profile
Thank you! Somehow it unfortunately didn't work for me :( And I think i did everything right.

But anyway, let me translate what i've said so that you can understand me better:

Hey V@no! SUPER Mod! I always wanted to use this one!
I would appreciate it if there could be a link to the register.php, example:

Bla Bla, click "here" to register.

So no alert pop up but a HTML window that has about 400 x 300 pixels, in the middle of the screen,
with an extern link that you can choose all by urself. A HTML window would be EXTREMELY good because
you have the option to add alert pictures, a navigation or also the register form at the bottom of this page.
Don't you think so? It would be cool if there would be a way to do this  :D

I hope that you can help me on this one because it would be really useful!  :wink:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline mstgokcen

  • Newbie
  • *
  • Posts: 44
    • View Profile
great mode but can we improve it little more...

Is it possible to show a bigger thumbnail instead of a error message (u have to register bla bla)...A bigger thumbnail but not the full size and a message like u have to register to see full size :)

I hope noone will hit me :)

Offline F4F

  • Newbie
  • *
  • Posts: 14
    • View Profile
Nice mod, the idea is good...

But how can I modify it, that not a poup window comes?

I only want for users which have no permission, if they klick on the thump, that there is another link. I would put then the link inside, of the register page of my website...

How can I realize this?

Nice greetings from Austria
F4F

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
... und auch dafür haben wir hier eine Lösung ...  :wink:

[MOD] Information if Guest follows direct link to an image/category
http://www.4homepages.de/forum/index.php?topic=7062.0
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline goldcoin

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • Coly Wallpapers
Great mod!
Thanks.

Offline macaco007

  • Pre-Newbie
  • Posts: 3
    • View Profile
hi, first sorry for my bad english, but i will try to explain me
I was installed this mod in my gallery but I really looking a mod for the initial category i mean "when you try to enter to any category"
it display a new page with the register form, it is possible? thanks

Offline macaco007

  • Pre-Newbie
  • Posts: 3
    • View Profile
hi, first sorry for my bad english, but i will try to explain me
I was installed this mod in my gallery but I really looking a mod for the initial category i mean "when you try to enter to any category"
it display a new page with the register form, it is possible? thanks

i will answer me if someone wants the same as me
{if random_cat_image_file}
     {if user_loggedin}<a href="{cat_url}"><img src="{random_cat_image_file}" border="1"></a>{endif user_loggedin}
     {if user_loggedout}<a href="http://www.google.com"><img src="{random_cat_image_file}" border="1"></a>{endif user_loggedout}
{endif random_cat_image_file}   

Offline e@agle

  • Newbie
  • *
  • Posts: 20
    • View Profile
super you are the Best man