1
GPboarder
Help making a basic change to link in MyAlbum 2.9

I have a simple request to change a link in MyAlbum. The link on the main page says "add photo". I am using this module to store files that are not photos and want the link to simply say "add file".

Clearly I am missing an important piece of how to do this and would appreciate some guidance.

I have cloned the template set and found the following code in the myalbum_index.html page:

<{if $lang_add_photo}><a href="submit.php"><{$lang_add_photo}><img src="<{$mod_url}>/images/pictadd.gif" border="0" alt="<{$lang_add_photo}>" title="<{$lang_add_photo}>" /></a><{/if}>

Since I am not a programmer, I am guessing that there is something really really basic that I am missing. Changing "photo" to "file" in the code above breaks the link or makes it disappear.

Do I have to change something in the database?
Optimism is the mother of disappointment.

2
sarahmx
Re: Help making a basic change to link in MyAlbum 2.9
  • 2008/4/2 2:16

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


no you dont have to change anything in database

just go to language folder in the module and find the add photo in one of the language files (try main.php in the english folder) and change it to add file

or you can make it hardcoded
<{if $lang_add_photo}><a href="submit.php">Add File<img src="<{$mod_url}>/images/pictadd.gif" border="0" alt="Add File" title="Add File" /></a><{/if}>


I suggest you use the method 1

3
GPboarder
Re: Help making a basic change to link in MyAlbum 2.9

Method 1 applied to main.php did it.

Thank you very much.
Optimism is the mother of disappointment.

Login

Who's Online

192 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits