G2

boyakaa

Joined: 2003-03-19
Posts: 18
Posted: Tue, 2005-02-08 21:25

I was wondering if someone would tell me where I or how I can eliminate some of the action items currently showing when a user logs into his or her album.

I'm basically looking to limit the options a user can see when he or she logs in to a G2 gallery. For example I would like only for the user to be able to perform the following functions once they have registered and created an album.

Add album to cart
Add sub album.

It would also be helpful if I could rename above as well.
If you would like to see the site please visit http://www.ourdvdpictures.com.

I want to thank all of you for a job well done on G2. Also a big thank you to stubby for tossing the shopping cart my way.

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Tue, 2005-02-08 22:45

you would still want them to add item to their album, right? I presume the users don't have access to others' albums (you control that with permissions - and user album module setup allows you to set the defaults) So, it's easier to answer what options do you want to eliminate?

I think the best way to change the wording is to treat it as a translation. You can create a file en_US in po directory (core/po for "Add sub album" and cart/po for "Add album to cart") and find appropriate lines and change the wording... See localizing for more details. Of course, you can change it directly in the code, but you don't want to do that!

 
boyakaa

Joined: 2003-03-19
Posts: 18
Posted: Wed, 2005-02-09 02:33

thanks, for your quick reply. it sounds like it may involved will look at your suggestions closely. thanks again.

 
boyakaa

Joined: 2003-03-19
Posts: 18
Posted: Wed, 2005-02-09 17:46

--------------------------------------------------------------------------------
I was wondering if someone would tell me where I or how I can eliminate some of the action items currently showing when a user logs into his or her album.

I'm basically looking to limit the options a user can see when he or she logs in to a G2 gallery. For example I would like only for the user to be able to perform the following functions once they have registered and created an album.

Add album to cart
Add items to cart
Add sub album.

It would also be helpful if I could rename the three items listed above.
If you would like to see the site please visit http://www.ourdvdpictures.com.

I want to thank all of you for a job well done on G2. Also a big thank you to stubby for tossing the shopping cart my way.
Updated message

Hello Virshu,

I was only able to to modify the login text, I did not have a en_us in po directory under core. However i do have a en_gb which i modified but did not seem to change much. Can you be more specific with your instructions please. what are the names of the files including directory path?

1. to modify what a user sees within the Action bar on the left side of the gallery
2. What file controls the text use for the menu links.

Sorry if I was not very clear earlier hopefully this revision will help?

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Wed, 2005-02-09 20:32

boyakaa, the login text comes from the template; so it's fairly straightforward to modify it. The messages that you are asking about are coming from the code. So you have two options: (1) change the code and re-apply the changes every time you upgrade; or (2) create the translation file and put maintain your changes there.

The reason you don't see en_US is because there is not English (US) translation. That's the default language that Gallery falls to if there is no other language specified. If you make the changes in en_GB your users need to switch to English (UK) in order to see the changes.

You also need to read through docs/LOCALIZING to learn how to build a translation (my option 2 above is just like another translation - the fact that it is from English to English doesn't really matter). Also, you may visit http://www.rabinovich.org/gallery2/docs/ for additional instructions if you are on Windows. Note, that creating or modifying .po file is just the first step.

If you want to change the action bar, the menu links (breadcrumbs) it's a combination of templates and modules. I still am not quite sure whether you want to change the look-and-feel of the page (then you want to tinker with tpl files); or for example remove "edit captions" from the actions menu (then you want to change the permissions).

Maybe an example of what you want to do would help...