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 ---- |
|

Posts: 13451
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.
Posts: 15
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=
Posts: 114
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
Posts: 25966
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
Posts: 114
Getting this error
Fatal error: Call to undefined function: gtranslate() in /home/asdfasd/public_html/gallery/view_album.php on line 413http://www.trueppc.com
http://www.trueppc.com/gallery
Posts: 25966
version?
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 114
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
Posts: 15
Sorry yes I have Gallery 1.5.2 too.
EDIT: I get exactly the same error.
Posts: 25966
let me upgrade now

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 25966
looking at the error you might have forgot to capitailize:
the function is:
gTranslate
If that dont work I will look closer
Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 114
The code has gTranslate but the error on the site displayed it as gtranslate
http://www.trueppc.com
http://www.trueppc.com/gallery
Posts: 25966
it works for me:
http://langleycom.com/ipw-web/gallery/Frames
see the register icon?
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 114
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
Posts: 25966
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 114
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 211http://www.trueppc.com
http://www.trueppc.com/gallery
Posts: 114
Ok that worked great dave thanks.
Just wrote over the other one.
http://www.trueppc.com
http://www.trueppc.com/gallery
Posts: 15
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.
Posts: 25966
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