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!
Posts: 6818
Hello,
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
Posts: 5
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!
Posts: 5
Sorry typo.
It shd have been
$link = '<a href="http://www.xyz"></a>'
Doesn't quite work though.
Wld appreciate some help.
Posts: 6818
I did no understand you want that ..
Do this:
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 5
Ah I got the hang of it already! Thanks!
Posts: 5
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.