forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: elwave on April 05, 2011, 01:42:50 pm

Title: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 05, 2011, 01:42:50 pm
Because, it seems at the moment when I set this option (to disallow guests from seeing the full size images), it simply doesn't make them a link at all, meaning the guest doesn't get encouraged to sign up.

For now, I have allowed them access to thumbnails only, but I feel this is not as good for our success on Google Images, and doesn't encourage members to sign up as much (I think our sign-ups daily has dropped by a very large number due to this minute change).

How can I do this? ._.


Elwave
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 05, 2011, 02:57:01 pm
What exactly do you want to change? Do you want to display some text above/below the picture or somewhere else in your gallery?
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 05, 2011, 05:07:11 pm
well, basically, when someone clicks a thumbnail image, and is not allowed to view "intermediate" images, it takes them to the sign in page (which is on my MyBB forum, as the two are bridged). I'd like to ideally make it so that this happens instead when they are on the intermediate image already, and click on it to view the full image. I feel like this will give Google bots more to crawl, and will make guests more tempted to sign in as they're being allowed just a bit more.

However I may add some text somewhere stating the person must log in to view full size images, but perhaps that's better done within MyBB somehow.

Is this fairly easy to do? or?
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 05, 2011, 05:15:38 pm
when they are on the intermediate image already, and click on it to view the full image.
Your visitor currently get a message, that they need to register/login to access that page (at least that happens in my local testbed while I just tested it). Maybe it's enough to extend that message in lang/english.php?
Code: [Select]
$lang_errors['login_needed'] = 'You need to %sregister%s/%slogin%s to access this page'; // cpg1.5
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 05, 2011, 07:44:34 pm
That's strange - on mine the intermediate image is completely unclickable.

Perhaps after this backup is done (I started one a little earlier) I will update Coppermine completely, and maybe that will make the image clickable to guests again :)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 06, 2011, 09:47:27 am
Please post a link to your gallery. Maybe I see a configuration difference that disables that message.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 11, 2011, 02:08:22 am
Oh, sure, I'll send it to you :)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 11, 2011, 02:11:12 am
Ah, no PMs.. is it ok if I do it like that instead of posting it up here?

Erm.. you allow people to use Coppermine for (in this case fairly mild) adult content right? :)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Walkinman on April 11, 2011, 02:47:01 am
hey elwave,

Not that it's any of my business - just to save André some time in responding - but here are the rules regarding posting adult content links on the board:

http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
"8. Post links
When posting a support request, it's helpfull for supporters in most cases to see what the actual page looks like, that's why it's mandatory that you always post a link to your coppermine gallery page when asking for support. If your site contains adult content, make sure to post a warning together with your link!
Supporters might get into issues if they accidentally visit a page that interferes with their employer's internet policy. If your site contains adult content (even mild nudity even falls into this category), post the words "not safe for work" next to the link."


Cheers

Carl
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 11, 2011, 02:52:45 am
kk

(not safe for work - adult content) http://sonichentai.net/gallery


(and apologies for the slightly unusual subject matter! lol ^^ )
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 11, 2011, 10:13:02 am
Quote
<!--Coppermine Photo Gallery 1.5.6 (stable)-->
Please upgrade to cpg1.5.12. Additionally, I'm not able to access your intermediate-sized view. So please (temporary) allow guest access or post a test user account, after you upgraded your gallery to the latest release.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 12, 2011, 03:13:15 pm
awesome man, you got it :)

Oh, by the way, while I've got you here this is a perfect time to answer the paranoid query as to why I haven't upgraded already lol!

And that is - if I just do a normal upgrade and let it do it's thing, is it likely to affect or break any of my settings, themes, etc? I didn't want to update it and run into any complications that's all!

Thanks very much, this is all very helpful! ^_^
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 12, 2011, 03:49:31 pm
Please read the upgrade docs and the changelog if you want to know exactly what has been changed since cpg1.5.6. Usually the update won't break anything, unless you modified core files.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 13, 2011, 02:51:08 am
Ok, we should be upgraded now!

It still has the same issue, although it's a little tricky showing you, as I don't want to alter guest access without having it fixed for too long as our sign-ups will plummet, and I only have 3 groups (guest, registered and admin).

Erm... I wish there was some way to show you this problem without editing all guest permissions! Even a test account... you can see the problem I run into!

It still simply doesn't acknowledge the intermediate image as a link if you don't have the permissions to view the full size image, which is weird!

I wish I could think of a way to show you without jeopardizing our sign-ups on the site...
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 13, 2011, 09:16:49 am
Without a view at your gallery I cannot help you, sorry.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 13, 2011, 03:31:26 pm
Ok erm, I've made the config change so it displays the issue on intermediate images :)

I really don't want to leave it for too long though lol

Here is an example image: http://www.sonichentai.net/gallery/displayimage.php?album=315&pid=6546


Thanks so much for the help!
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 13, 2011, 03:49:28 pm
Please check the following settings in your Coppermine config:

It should work if you enable new user registrations in Coppermine's config.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 13, 2011, 04:10:55 pm
Ah awesome! Now we get a pop-up message saying they must sign-up to view the full image!

Well, that's an improvement!

I could simply edit that popup box.. although of course it would be tricky to squeeze any hyperlinks to sign-up pages and things into it. Am i right in saying there is no external page with this error on it, or a way to make the sign-up notification a bit more interactive and persuasive for users? You can see why this might be useful for encouraging people to fully sign-up and remain on the website! :)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 13, 2011, 04:16:35 pm
Have a look at the function theme_html_picture in the theme.php file of your theme. If it doesn't exist, copy it from themes/sample/theme.php to your theme's theme.php file.

You'll find that line
Code: [Select]
$pic_html .= '<a href="javascript:;" onclick="alert(\''.sprintf($lang_errors['login_needed'],'','','','').'\');">';which you can change to your needs, e.g. to open a new page with more information instead of just opening a small popup.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: phill104 on April 13, 2011, 04:19:07 pm
You could also take a look at the following plugin which might also help - http://forum.coppermine-gallery.net/index.php/topic,63336.0.html
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 13, 2011, 04:32:10 pm
Have a look at the function theme_html_picture in the theme.php file of your theme. If it doesn't exist, copy it from themes/sample/theme.php to your theme's theme.php file.

You'll find that line
Code: [Select]
$pic_html .= '<a href="javascript:;" onclick="alert(\''.sprintf($lang_errors['login_needed'],'','','','').'\');">';which you can change to your needs, e.g. to open a new page with more information instead of just opening a small popup.

ok, I edited my themes theme.php file and added that section :)

I then changed that line to read
Code: [Select]
$pic_html .= '<a href="http://www.sonichentai.net/forum/member.php?action=login">';
However, it's still throwing the same popup window. Is there another change I have to make to tell the theme to use this new section?
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Joe Carver on April 14, 2011, 12:09:21 am
Please, in the future (or present), for better support and testing, set up a test gallery if you are concerned about your content and users.

I then changed that line to read.....$pic_html .= '<a href=......
Look again at the line...it uses a .js function. You should do the same.
Use the window.open function. I could post a snip, but you should choose/create
what you want yourself.
See this page: http://www.w3schools.com/jsref/met_win_open.asp
and http://www.w3schools.com/jsref/event_onclick.asp

However, it's still throwing the same popup window. Is there another change I have to make to tell the theme to use this new section?
That would depend more on your browser - make sure you clear your cache as a page refresh does not work with some inferior browsers.



Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 14, 2011, 09:07:45 am
Code: [Select]
$pic_html .= '<a href="http://www.sonichentai.net/forum/member.php?action=login">';
Look again at the line...it uses a .js function. You should do the same.
What's the advantage of using JS instead of a simple link?
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 14, 2011, 03:10:13 pm
What's the advantage of using JS instead of a simple link?

My thoughts exactly Αndré! It's only a link :)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 14, 2011, 03:19:58 pm
Oh, also, of course I would imagine the cache is always refreshed as i am running Chrome in incognito mode when I try to access my gallery as a guest.

I also just tried it in a browser with an empty cache (and everything else) - the latest Opera - and I still got the popup.

I wonder what I should edit to make it use this new section instead, I suppose it has to be some kind of pointer in the code of the theme. I'll be having a look, but if you guys know what it might be it might make it a bit more speedy for me! hehe

It's great that this is so close to working though! This should really give my forum sign-ups a boost! ^_^

(I had a system not dissimilar to this about a year ago that happened totally accidentally - hence I can't duplicate it easily! It increased my daily members by about 150!!! ^_^ )
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 14, 2011, 04:04:25 pm
I again cannot access your gallery. I wonder why you're scared to open the intermediate-sized view to guests, as that's exactly what your goal is?


I wonder what I should edit to make it use this new section instead, I suppose it has to be some kind of pointer in the code of the theme. I'll be having a look, but if you guys know what it might be it might make it a bit more speedy for me! hehe
There's no pointer. If the code exists in your theme.php file, it will be used. Please attach your theme.php file to your next reply.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 14, 2011, 08:31:48 pm
ok man :)

And sorry I'm still leaving it as thumbnails only, it's literally because the way we get floods of sign-ups every day is very fragile, and it depends on the traffic of the gallery and how enticed they are to sign-up.

Here is the theme.php file:

http://sonichentai.net/gallery/themes/eyeball/theme.txt
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Joe Carver on April 15, 2011, 12:37:35 am
What's the advantage of using JS instead of a simple link?

The thought was to change the pop up options (make it bigger, with links, etc.) so that the visitor would not lose the page...

After second thought the same thing could be done much easier by putting the link/page into a greybox.  :)

If I were to make the change myself that is the way I would do it.....  :)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 15, 2011, 08:15:01 am
You know, even making the Register link a little more visible on the login page increased our daily onlines from 210 to approaching 250 and beyond! With this gallery change, I predict we may hit 400 or higher! I can't WAIT! ^_^
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 15, 2011, 10:18:52 am
Can you please explain once more what exactly you want to accomplish? Your initial question was:
well, basically, when someone clicks a thumbnail image, and is not allowed to view "intermediate" images, it takes them to the sign in page (which is on my MyBB forum, as the two are bridged). I'd like to ideally make it so that this happens instead when they are on the intermediate image already, and click on it to view the full image.

If that still applies, allow guest access to your intermediate-sized view.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 15, 2011, 04:49:24 pm
Can you please explain once more what exactly you want to accomplish? Your initial question was:
If that still applies, allow guest access to your intermediate-sized view.

Yes that's still my goal :)

I'll enable guest access to intermediate images so you can take a look at what's going on:

http://www.sonichentai.net/gallery/displayimage.php?album=315&pid=6546


Thank you, and sorry this is taking a little while! It will be so great to watch my onlines skyrocket though! ^_^
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 15, 2011, 05:46:03 pm
Please have a look at your theme.php file. There's a second occurrence of
Code: [Select]
$pic_html = '<a href="javascript:;" onclick="alert(\''.sprintf($lang_errors['login_needed'],'','','','').'\');">';you need to replace with your code.
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 15, 2011, 07:34:57 pm
Please have a look at your theme.php file. There's a second occurrence of
Code: [Select]
$pic_html = '<a href="javascript:;" onclick="alert(\''.sprintf($lang_errors['login_needed'],'','','','').'\');">';you need to replace with your code.

haha yes it works! Thank you soooo much you're legend! I can't believe I didn't see that, I just.. I guess it didn't occur to me that it might be as simple as it being mentioned twice, I thought I'd have to sort out some complex way of including this new code!

Ok, well, I guess that's it! I'll add a bit of text or some kind of information box to say that a guest must be logged in to view full images (otherwise they may not understand why clicking an image takes them to a login page) and... then I'm done!

Thanks again, that was very helpful and I'm very sorry to take up so much of your time! I will recommend Coppermine Gallery to everyone who asks me about this stuff and support you guys! hehe

See you round I guess! Is there anything else I can do to say thanks? :)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: Αndré on April 15, 2011, 07:58:48 pm
Is there anything else I can do to say thanks? :)
You could write a positive review here (http://sourceforge.net/projects/coppermine/reviews/) or simply
tag your answer as "solved" by clicking on the little image in your initial posting on your thread.
;)
Title: Re: I'd like to encourage guests to sign up when they want to view full size images
Post by: elwave on April 15, 2011, 08:07:15 pm
Done and done! :)


Also, when I actually have money, I'll donate a bit to the project (whatever I can as I'm poor! hehe)