Addnig in welcome message in the first page

qwertyx

Joined: 2005-06-13
Posts: 21
Posted: Fri, 2006-12-29 07:36

Hi,
my G2 (2.1.2) is installed in the root directory, that means that anyone who enters my domain, sees the gallery.
There are no public albums (you need to reguster in order to see the albums) thus, anyone who enter the domain gets th "This album is empty." page.

Is there a way to make gallery show a special page or a message in that page, that won't show up after the user loggs in?
Something like, "this site contains some private albums, please register to gain access..."

The only way I was thinking about is to make an index.html file that will show what I want, with a link to gallery. in such a page, can I insert a login module for gallery? so I can design the page the way I want, and one l/p is entered in the same page - the user is transfered to main.php already logged in.

thanks

 
jkimbo

Joined: 2006-12-29
Posts: 18
Posted: Fri, 2006-12-29 16:18

8 hours and still no anwser to this very good question? Makes me wonder who are using Gallery and how! I would think some thing this obvious would come implemented with the package, along with gallery opening on a index.php instead of main.php!

This is a great program but is missing some really verrrrry basic features! And it seems these features are not missed by the majority of users as no mention is given about them. SO who's using it and for what? I would think a text message block or module would be included just for some thing like this!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-12-29 16:34

@jkimbo:
i think that's an inappropriate tone. sometimes questions get answered within an hour, sometimes it needs a week, sometimes there's no answer.
if that's not good enough for you, well then. there are alternatives, maybe you like other communities better.

@index.php vs main.php:
FAQ: Can I rename main.php?

@qwertyx:
you can remove the "view item" permission from the root album. once that is done, users always get a login page page when browsing to your gallery.

 
jkimbo

Joined: 2006-12-29
Posts: 18
Posted: Fri, 2006-12-29 17:22

inappropriate tone? You think? Even though I said this was a great program? Just pointing out the obvious here, and stating my opinion, sorry if that's not good enough. But I think we should be able to handle crtism as well as praise.

As for the main.php, you have to admit, that is a looser for sure. What where the programmers thinking of? Surely not search engines or end users.

Yes, I found the page you referred to, I do search before I post, and it was not very clear at all.

* Copy or symlink main.php to the new filename.
* Add a line like this in config.php before the ?> at the end:

This does not explain to me what I am suppose to do or how. There already is a index.php file. WHat happens to it if I rename my main.php to index? No mention of this possible confusion for newbies.

And the original posters question has still not been anwsered.

What to do if you set the permissions for registered users only? They will see a blank page with a login. Is there a way to customize that? Or are we to wait another 8 hours, week or never? This is basic stuff! Being able to customize pages. The need to add custom text or messages, usually in the form of text blocks or modules, but surprisingly this was missed, or perhaps I missed how to do it.

My tone is that of frustration. Because I took the time to install Gallery2, and read thru the docs, and forum, and still not able to get the information I am looking for, but as you pointed out, perhaps it doesn't exist yet, in which case all some one has to say is, that is not possible yet, may be it will be added. BTW, this could have been worked around if there was a login template we could edit, but there isn't one, at least not that I could find.

BTW, if you know of other alternative programs, by all means, tell me. I need to get a gallery up as soon as possible and really do not want to wait days, weeks or psossible never.

Thank you.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2006-12-29 23:27
qwertyx wrote:
Is there a way to make gallery show a special page or a message

Why not make the first album viewable with only thumbs viewable by guests.
Then you can add a graphic that says "this site contains some private albums, please register to gain access..."
That way all users will see something and will know that you have to login to view more.

Dave
____________________________________________________
Blog with G2 || G2 theme contest: $3K in Prizes

 
qwertyx

Joined: 2005-06-13
Posts: 21
Posted: Sat, 2006-12-30 13:19

valiant, floridave, thanks for the answers.
I think I'll just make an index.html page which I can design the way I want. shame I cant embed a g2 login block in it...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-12-30 17:12

qwertyx

you can add any message you want to the login block.

modules/core/templates/UserLogin.tpl is the template used for the login page.

and some themes have a "welcome" message. none of the official themes though.

 
jkimbo

Joined: 2006-12-29
Posts: 18
Posted: Sat, 2006-12-30 17:15

I'm trying to figure out how to embed the html the way I went in to G2! Until I can do that, Dave's advice is about the best so far. But I'm not giving up on this. If I can figure out how to do it, I will share!

G2 is a great program, but needs some improvements to make it more user friendly, seo friendly, and webmaster friendly. Basically it needs the ability to create custom blocks and put them where you want, like on phpnuke, and postnuke. This would solve a lot of design limitiations for most webmasters. Unless your really good at programming and coding (I'm not), G2 is hard to crack and hack. Another great feature which it seems G2 is on the verge of accomplishing is to provide more html based templated, or better notes in the tpl they have. For example, a note where to place your adsense ad shoulkd you want to, or any text or html code.

Wait until I get over to feature requests :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2006-12-30 18:58

It is up to the theme developer to do what you suggest. The PG theme and PGLightbox has some of your requirements. Like adding extra links to various places.
There is also some modules to add extra content:
Contact Owner, Links Page, About Page from User Contributions

G2 is Not a Content Management System. Other CMS are better suited to do what they do best so we can focus on what we do best. (photo management)
See:
What is Gallery not

We know there is limitations and one of the remedies is to get some good themes. Thus we have offered some GREAT prize monies to get some good themes. There is only so much we can do.

It all takes time.

Dave

____________________________________________________
Blog with G2 || G2 theme contest: $3K in Prizes

 
Fohap
Fohap's picture

Joined: 2009-09-09
Posts: 19
Posted: Sat, 2009-09-26 04:16

You can use Drupal and the Gallery 2 module to run Gallery within Drupal, but I've had a lot of problems finding support. If you know how to program very well, you should just build from scratch. It will probably save you a lot of headache in the long run.

http://sierrawildflowers.newbott.net