HI,
I have G2B4, and just added a header as indicated in the sticky of cutomisation. In the admin panel it works well but when I click the albums the header images (buttons etc.) don't show.
The images are in the /images folder.
What I have seen is that in the admin panel this is the path
a.com/g2/main.php?g2_view=core.SiteAdmin&g2_
and whien I click the album this is the path
a.com/g2/v/
Its when gallery adds the /v/ when I can't see the header images, the albums images show OK. If I delete the /v/ in the address bar manually everything works fine.
in the theme tpl the path to my images is
<td width="100" align="center"><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','images/nav/nav-bar-home-02.gif',1)">
Where am I going wrong in the path. do I have to add something before images so that when G2 adds the /v/ it also adds it to the header images.
Thanks
Roshlin
Posts: 32509
i guess you should use plain old html / css / js and not any of the {} things.
without seeing your actual modified / customized file, i don't understand what you're trying to do / what you should do.
please add a link to your customized theme.tpl or whatever file you have customized.
Posts: 70
Hi Valint,
here
you can see the header.
enter as trial, passowrd trial
and click an image the v/ appears and no header buttons
Thanks for your quick response.
Roshlin
Posts: 32509
http://www.fotorima.com/g2/themes/matrix/templates/local/theme.tpl
this is not valid html.
you should add your head stuff into the existing <head> section of theme.tpl. you can't just add a second <head> section.
the same goes for the <body> tag, there can only be a single body tag.
Posts: 70
Hi Valiant,
I just copied and pasted the code from the header of my site fotorima dot com, and palced the images in the images folder of g2 as that is where it was pointing to, I'm a newbie so didn't check for the head and body tags.
Now i've placed them correctly but the problem persists.
on the main page you have the images, when you click the image the /v appears and the buttons are no more there and if you add the album to the cart the v/ dissapears and the buttons appear, click the album and /v appears and the buttons are gone.
now that you can see the tpl can you pinpoint where am I going wrong.
Thanks
Roshlin
Posts: 32509
http://www.fotorima.com/g2/themes/matrix/templates/local/theme.tpl is still incorrect.
there are still 2 <body> tags etc.
Posts: 70
Hi valiant,
The only four instances where body comes are;
1. <body class="gallery"> this is part of the gallery theme
2. <body onload="MM_preloadImages etc... this is part of the header for preloading the button images, and I've taken this whole paragraph out.
3.{*
* Give Gallery a chance to output any cleanup code, like javascript that
* needs to be run at the end of the <body> tag. If you take this out, some
* code won't work properly.
*}
This is again part of the G2 theme.
4. </body> this is also part of the G2 theme
And the problem persists, and only happens in the album view and the photoview, where the /v appears.
on all other pages it works fine, eg, add album, add item , edit permissions, move photo ete.etc...
I even tried putting the whole path www.mysite .com/g2/images but as it adds www.mysite .com/g2/vwww.mysite .com/g2/images and as the mysite part is repeated the buttons don't show.
Any guess
Thanks
Roshlin