Stupid Newbie Question -adding a link to the gallery header
BullmarketFrogs
Joined: 2004-09-24
Posts: 10 |
Posted: Fri, 2004-09-24 18:00 |
Well, I did warn you that this was a typical stupid newbie question. I'm using the Matrix layout on this gallery: http://www.bullmarketfrogs.com/gallery2/main.php I'd like to make the logo at the top of the page link to our main website, but for the life of me I can't seem to figure out how to do it. Can anyone point me to the file that I need to alter, and give me a few tips on how to do so? I'll edit in either Dreamweaver or notepad, depending on which is more appropriate. Thanks for the help, Carol |
|
Posts: 8601
look at templates/global.tpl
Posts: 10
K, so I took a look at it via notepad, and found the src for the title image. However, I'm still confused as to how I change that to the form of a linked image, without screwing with the current formatting of the document.
Any ideas would, again, be appreciated.
-- Carol
Posts: 154
Posts: 10
OK, here's how the coding shows up in global.tpl currently:
<img src="{g->url href="images/galleryLogo_sm.png"}" alt="" />
Shall I assume I'm going to write it as follows?:
<a href="http://www.mydomainhere.com">
<img src="{g->url href="images/galleryLogo_sm.png"}" alt="My Name" />
</a>
Or am I missing something critical? The basic formatting seems easily enough understood, if I'm to base it on html - however, the {g->url line in the original code is what's confusing me.
Thanks,
Carol
Posts: 32509
don't know smarty, but that looks good to my.
all {} tags get intepreted by smarty, everything else should be static html.
Posts: 8601
yes, that will work fine.. remember to make your changes in global.tpl.local (instructions at top of global.tpl) if you haven't already made your local copy..
Posts: 10
Oh crap.
The good news - the changes I made worked fine.
The bad news - I made them directly onto the global.tpl file. What are the ramifications of this? Do I NEED to change both?
Fark. I hate trying to figure this out. I feel so clueless!
That said, I think this is the most ROCKING piece of add on software out there - the uses are never ending! I'm setting up galleries that will allow club members to add their own photos, etc.
I hope I don't use up all my server space doing this
-- Carol
Posts: 154
no ramifications really. Just better to copy to .local version and work with it in case you screw something up You can just renemae the global.tpl to global.tpl.local, then reupload the original global tpl
Keep in mind that this is not a production version, and a newer beta or the actual release may be diffrent enough to have to redo all your changes. I am only litely testing with it. I have thousands of pictures waiting to be uploaded but will wait untill a stable release is... um... released.
You may want to do the same.
Posts: 10
Eeep! So should I upload Gallery, instead, and start from scratch, just in case?
I'm working on a site for our club, and I expect there to be quite a few photos uploaded, and I'd hate to have to re-load all of them. Should I use the original version of Gallery for that site, just in case?
Also, could you point me to a site that explains more fully how to edit .tpl files? I feel like I'm flying blind when I tinker with it, and I *hate* that. :o
Thanks for all of the help - it's really appreciated.
-- Carol
Posts: 154
Prolly better off, as you could update to gallery 2 at a later date. G2 has an import from g1 function that even now works pretty well, so I think that would be best.
Posts: 8601
http://smarty.php.net has documentation on most of the tags you see in curly braces {}.. but the ones that start with {g-> are G2 custom tags, like {g->url}.. I don't think we have documented those anywhere yet. The rest of the content is xhtml 1.0, see http://www.w3.org/MarkUp/#recommendations