Next/Last Buttons too close together in G2/Joomla

cooltude

Joined: 2006-02-22
Posts: 8
Posted: Wed, 2006-02-22 23:24

Hello,
I'm wondering if anyone can help me find the file(s) I need to edit in order to make a cosmetic change. I have G2 embedded in Joomla 1.0.7 using com_gallery2_v2.0.13-beta2 for the component integration. Everything works great !
The cosmetic change I need to make is this:
When you go to the gallery inside the portal, if there are more than one page of pictures, it shows a set of links above and below the thumbnails for next/last.

Those links are literally right beside each other and it makes it confusing for people to understand how to navigate. Is this a gallery file I need to change or does it have to do with the component for joomla ?

I am at a loss. Usually I can handle things like this but I can't find any reference to those links anywhere ! **Pulls hair out**

;)
Cooltude

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2254
Posted: Thu, 2006-02-23 01:52
 
cooltude

Joined: 2006-02-22
Posts: 8
Posted: Thu, 2006-02-23 02:16

It shouldn't matter what the installation parameters are. The installation works fine. Everything works as it should. All I need to know is where to find how to change those links, specifically, where to edit the file to add the code I need in order to spread the visible links further apart.

It's a cosmetic change, I just don't know if it's part of the gallery files or the Joomla component.

Where are the files that define what to display ?

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2254
Posted: Thu, 2006-02-23 02:25

I mainly need a URL to your G2 so that I can take a look at it and see whats causing the spacing issue. Any changes you make will be in a CSS file somewhere, either for the Gallery theme or the Joomla theme.

 
cooltude

Joined: 2006-02-22
Posts: 8
Posted: Thu, 2006-02-23 03:53

I found what I was looking for. Located in the gallery root/modules/core/templates/blocks/Navigator.tpl file.
Made the changes I needed to Lines 34 and 70 by adding 3 non-breaking spaces. Everything still works ok. Wish I could add a border around them to make them more noticable but it's better.

Quote:
....
{/if}
</a>
{/if}

&nbsp; &nbsp; &nbsp; //added these to space out the navigation links

{if isset($navigator.last)}
<a href="{g->url params=$navigator.last.urlParams}" class="last">
{g->text text="last"}{$suffix}
....

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2254
Posted: Thu, 2006-02-23 04:20

the class="last" implies to me that you could use CSS to add a border to a .last { }. A better solution than the spaces would be a CSS margin property.

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2006-03-01 22:19

Hi,

the problem with the netxt/last buttons can appear when you enter a wrong "URL to G2:" in the configuration settings of the Joomla component.
You have to enter the full URL to your G2 for example: http://www.example.com/gallery2/main.php

Kai
-----
http://www.gallery-addons.com

 
cooltude

Joined: 2006-02-22
Posts: 8
Posted: Wed, 2006-03-01 22:27

Hi,
I've tried that and it won't accept anything I enter into the configuration'URL to G2:' field. When I try to save, the field reverts to being blank.
Do I have something not set correctly maybe ? File permissions perhaps ?

Thanks,
Cooltude

 
cooltude

Joined: 2006-02-22
Posts: 8
Posted: Wed, 2006-03-01 22:36

Hi,
It also gives me this error in administration, which leads me to believe something is set incorrectly.

sync error: We can sync your account to G2, ask webmaster tolower security settings or look up what the problem is.

Any ideas?

Cooltude

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2006-03-01 22:46

Hi,

maybe this topic helps with the blank field: http://opensource.4theweb.nl/index.php?option=com_joomlaboard&Itemid=&func=view&catid=5&id=1137#1137

For the sync error check the "User Checking Level:" in the component settings.

Kai
-----
http://www.gallery-addons.com

 
cooltude

Joined: 2006-02-22
Posts: 8
Posted: Wed, 2006-03-01 23:11

Hi,
Thanks for the info but that info is a bit vague. I did a search for key=relativeG2Path and relativeG2Path and g2Uri in my Database and found zero hits. Am I supposed to create a new row ?
If I am , what are the field names and default values ?

Also, it might be easier if i researched this but I don't know what search terms to use.

*EDIT* - Sync error fixed, it was the config settings, changed to username.

Thanks,
Cooltude

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2006-03-01 23:50

hmm, in my case it's in the table jos_gallery2, key= g2Uri, value= http://localhost:8888/gallery-2.1/main.php
With the previous version 2.0.12 of the component it's table jos_gallery2, key= relativeG2Path, value= ../gallery2

Have you tried a clean install of the Component?
Uninstall the component with the Joomla installer, delete the folder /components/com_gallery2/ and /administrator/components/com_gallery2/ and the table #__gallery2 and #__gallery2_useralbum from the Joomla database.

Please Backup files and DB before ;)

Kai
-----
http://www.gallery-addons.com

 
cooltude

Joined: 2006-02-22
Posts: 8
Posted: Thu, 2006-03-02 00:41

Hi,
I located the tables; I was looking in the gallery DB, not joomla (for the component tables).
Brain is overworked I think.

In any case, first solution did not work.
Uninstalling and manually removing the DB tables, then reinstalling the component worked.

All this considering I did the exact same thing last time except remove the DB tables.
Sheesh ! Heheh

Kai_tom, thank you very much for the assistance, everything works and looks great now.

Cooltude

 
spoco2

Joined: 2005-06-30
Posts: 9
Posted: Fri, 2006-03-03 05:13

Hey cooltude, thanks for your note about deleting the db tables as well as reinstalling the component, that has solved all formatting issues for me too... it all looks fantastic now. :D

 
cooltude

Joined: 2006-02-22
Posts: 8
Posted: Sat, 2006-03-04 10:30

Hi spoco2,
Thank Kai_tom, he smacked..err..pointed, yea pointed, me in the right direction.
Ok, light laughter mellows the soul, anyway, he helped remind me that it's always the little things we forget.

Glad it works,

Cooltude