How to edit the words "Powered By"

Kerean

Joined: 2008-04-24
Posts: 5
Posted: Thu, 2008-04-24 00:43

Hi there,

I was looking at messages.php and noticed that it is possible to edit the last line return sprintf(gTranslate('common', "Powered by %s v%s"), $link, $version); so as to change the words "Powered By ...." at the bottom of the page to something else.

I want to show the words "Powered by Gallery v1, Courtesy of XYZ" so can I just change "Powered by %s v%s" to "Powered by %s v%s, Courtesty of XYZ"?

Also, what if I want to create it such that it displays on the page, XYZ which when clicked, goes to "www.xyz.com"? I think it has to do with the $link defined a few lines up, but as I have no programming knowledge, I can't quite figure out what to do.

Hope someone can help.

Thanks!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2008-04-24 09:25

Hello,

Quote:
so can I just change "Powered by %s v%s" to "Powered by %s v%s, Courtesty of XYZ"?

That looks right to me. The complete code should look like this:
sprintf(gTranslate('common', "Powered by %s v%s, Courtesy of XYZ"), $link, $version);

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Kerean

Joined: 2008-04-24
Posts: 5
Posted: Sat, 2008-04-26 06:57

Thanks Tim, however that does not take care of linking of the words "XYZ" to link to "www.xyz.com".

I was wondering if it has to do with the definition of the $link variable a few lines above, and I tried to edit it to:

$link = '<a href="http://www.xyz.com"</a>'

But somehow it doesn't quite seem to work either.

Thanks for your patience as I'm not a programmer.

Hope to hera from you!

 
Kerean

Joined: 2008-04-24
Posts: 5
Posted: Sat, 2008-04-26 07:33

Sorry typo.

It shd have been

$link = '<a href="http://www.xyz"></a>'

Doesn't quite work though.

Wld appreciate some help.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2008-04-26 09:04

I did no understand you want that ..

Do this:

$mylink = '<a href="http://www.xyz"></a>';
sprintf(gTranslate('common', "Powered by %s v%s, Courtesy of %s"), $link, $version, $mylink);

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Kerean

Joined: 2008-04-24
Posts: 5
Posted: Sat, 2008-04-26 09:38

Ah I got the hang of it already! Thanks!

 
Kerean

Joined: 2008-04-24
Posts: 5
Posted: Sat, 2008-04-26 19:05

Just to add on another way that I found out - we can also use the html_wrap folder files to do the same thing by editing the html tags.