Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 13:50

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 1. Jun 2008, 10:37 
Offline

Joined: 1. Jun 2008, 10:19
Posts: 3
Location: UK
Hi Michael,

This is really an amazing gallery script, I am very impressed with it. :D

My questions are:
1. How do I remove the view count on the main gallery page, ie: Image 3 /10 Ideally I want to know how to hide the full breadcrumbs line and also this view count

2. How do I remove the words: Please select a gallery in the overview page?

I hope these 2 things are possible. I'm using localhost to set it up before I upload it live to a site.

Thanks again,
Stephen.


Top
 Profile  
 
 Post subject:
PostPosted: 1. Jun 2008, 21:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
1. the view count can be disabled in the config. breadcrumb is not possible by config - you would have to change some code.

2. edit the language file for this.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 2. Jun 2008, 00:12 
Offline

Joined: 1. Jun 2008, 10:19
Posts: 3
Location: UK
Thanks Michael...

It hadn't occured to me to look in the language_en.php file to edit the text on the overview page. Thanks! :)

I've now managed to find the config line for removing the view count. Thanks again.


As for disabling the breadcrumbs I spent some time trying to see if I could do this myself by commenting out certain bits of code.
These are my findings which seem to be effective (my understanding of php is very limited):

The thumbnail page was showing this: Galleries > Pottery > 22 Images
By commenting out line 169 of inc/topnavigation.inc.php ....
Quote:
echo $nr_images . " " . (($nr_images == 1) ? $lang_picture : $lang_pictures);

the words "22 Images" were removed.

The main gallery page showed this: Galleries > Pottery > Images 3/22
By commenting out line 31 of inc/navpath.inc.php ....
Quote:
$printRoot = true;

the first part of the breadcrumb: "Galleries >" was removed.

Then by commenting out line 89 in inc/navpath.inc.php ....
Quote:
echo $fullpath;

the gallery folder "Pottery" is removed

This left a ">" and I found and removed this in line 166 of topnavigation.inc.php ....
Quote:
echo " > ";


This leaves me with the words "Image 3/22" which I do not know how to remove... except to colour the text the same colour as the background.
Is this a more difficult thing to do? If there is a way that is not too complex I would be interested to know.

I have been including twg as part of a cms website template for some students. I really am impressed with all of your hard work in creating this script. I will definitely be registering my copy.

Stephen


Top
 Profile  
 
 Post subject:
PostPosted: 2. Jun 2008, 10:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
i'll add a switch to disable the breadcrumb in the next small update.

i'm currently restructuring the website + the links from twg to e.g. the help pages have to be changed too.

When this is done (I think this week) you can simply disable it.

Only removing the breadcrumb is not a good idea because I do some calculations there that are needed later on.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 2. Jun 2008, 10:59 
Offline

Joined: 1. Jun 2008, 10:19
Posts: 3
Location: UK
Thanks Michael,

I really appreciate your willingness to help and your patience.
Many thanks again.

Stephen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy