Showing the "register yourself" link in sub-albums

scop

Joined: 2004-04-20
Posts: 5
Posted: Thu, 2004-09-09 06:55

Hi,

This is my first post here, so thank you in advance for any help. I am embedding gallery sub-albums in Moodle, a course management system. My students are Korean and I have installed the Korean language pack so that they can easily self-register. However, I have created sub-albums, one for each class, and disabled the "return to" because I want them to stay in their own class's sub-album.

However, it appears that despite having enabled self-registration the "register" link is only appearing on the front page and not on the nested albums. I have looked everywhere for a setting for it to be shown elsewhere, but can't find it.

Does this functionality exist or not? If yes, how can I enable it, if not, is there a simple hack that will achieve this?

Data:

Gallery version: 1.4.3pl2
Url: http://ancoraimparo.info/gallery
Apache version: 2.0.50
PHP version: 4.3.8
OS: Fedora Core 1

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-09-09 07:16

The register link is only displayed on the front page. I'm moving this thread to the customizations forum, hopefully someone there can assist you in making apropriate modifications/hacks.

 
stounedi

Joined: 2005-09-26
Posts: 15
Posted: Wed, 2006-02-01 15:55

I am looking for answer to this question too. How could I put links to register new users into sub-albums too?

EDIT: I also tried to put a link to register in the album text, but it doesnt work either. In the html it looks good but I think javascript is scrambling it to look like this: http://domain/what-ever-directory/gallery/%3Ca%20href=

 
Jelly

Joined: 2005-01-15
Posts: 114
Posted: Wed, 2006-02-01 16:31

One of my clients has been asking about this as well.
Lets see if Flordave will help :)

http://www.trueppc.com
http://www.trueppc.com/gallery

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25966
Posted: Wed, 2006-02-01 20:57

Not tested but:
in view_album.php look for :
$iconElements[] = popup_link($iconText, "login.php", false, true, 500, 500);
and paste below

if (!strcmp($gallery->app->selfReg, 'yes')) {
            $iconText = getIconText('yast_sysadmin2.gif', gTranslate('core', "register"));
            $iconElements[] = popup_link($iconText, "register.php", false, true, 500, 500);
        }

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
Jelly

Joined: 2005-01-15
Posts: 114
Posted: Wed, 2006-02-01 22:21

Getting this error

Fatal error: Call to undefined function: gtranslate() in /home/asdfasd/public_html/gallery/view_album.php on line 413

http://www.trueppc.com
http://www.trueppc.com/gallery

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25966
Posted: Wed, 2006-02-01 23:11

version?
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
Jelly

Joined: 2005-01-15
Posts: 114
Posted: Wed, 2006-02-01 23:21

1.5.1 *Note: i just noticed that the orginal poster is on a much older version. my mistake for not mentioning that
* updated: Now running 1.5.2

http://www.trueppc.com
http://www.trueppc.com/gallery

 
stounedi

Joined: 2005-09-26
Posts: 15
Posted: Wed, 2006-02-01 23:35

Sorry yes I have Gallery 1.5.2 too.

EDIT: I get exactly the same error.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25966
Posted: Thu, 2006-02-02 00:19

let me upgrade now
:-)

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25966
Posted: Thu, 2006-02-02 00:32

looking at the error you might have forgot to capitailize:

Quote:
Fatal error: Call to undefined function: gtranslate() ...

the function is:
gTranslate

If that dont work I will look closer

Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
Jelly

Joined: 2005-01-15
Posts: 114
Posted: Thu, 2006-02-02 00:37

The code has gTranslate but the error on the site displayed it as gtranslate

http://www.trueppc.com
http://www.trueppc.com/gallery

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25966
Posted: Thu, 2006-02-02 00:47

it works for me:
http://langleycom.com/ipw-web/gallery/Frames
see the register icon?

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
Jelly

Joined: 2005-01-15
Posts: 114
Posted: Thu, 2006-02-02 00:58

Yes, I just copy and pasted what you orginally put.

hes using Icon and text if that makes a difference.

oh and i dont see an attachemnt
http://www.trueppc.com
http://www.trueppc.com/gallery

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25966
Posted: Thu, 2006-02-02 00:59

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

AttachmentSize
view_album.php.txt.txt39.08 KB
 
Jelly

Joined: 2005-01-15
Posts: 114
Posted: Thu, 2006-02-02 01:03

Werid

I'm getting this error now.

al error: Call to undefined function: pluralize_n2() in /home/j343ea/public_html/gallery/view_album.php on line 211

http://www.trueppc.com
http://www.trueppc.com/gallery

 
Jelly

Joined: 2005-01-15
Posts: 114
Posted: Thu, 2006-02-02 01:05

Ok that worked great dave thanks.

Just wrote over the other one.

http://www.trueppc.com
http://www.trueppc.com/gallery

 
stounedi

Joined: 2005-09-26
Posts: 15
Posted: Thu, 2006-02-02 01:39

Strange, it still gives me the error I was getting earlier. Do you use icons + text? I tried to change just text, just icons and icons + text but it didnt make any difference?

EDIT Ok, sorry. Now it works fine! Thank you for your time.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25966
Posted: Thu, 2006-02-02 04:13

Glad you both got it sorted
I thought I was going mad.....2 guys with the same error ......
must be Friday some place. or 13:00 :-)

Dave

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery