Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 19, 2013, 04:09:46 am

Login with username, password and session length
Members
Total Members: 10757
Latest: DTroup
Stats
Total Posts: 32348
Total Topics: 5473
Online Today: 56
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 41
Total: 42
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Titles for thumbnails in GalleryLite?  (Read 7672 times)
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« on: November 22, 2006, 12:35:58 pm »

First off.... GREAT MOD!

I would love to have a title for each gallery pic but I am having problems doing it.  Huh

I did a search on the forum and found something related at:
http://www.smfhacks.com/index.php/topic,269.0.html

It says to edit the file: Gallery.template.php

I searched my server and could find no such file. I found Gallery.php but the code mentioned to change was not there.

Any light you might be able to shine my way?

BTW: I am on a Linux Apache server, 1.1 RC3, and GalleryLite

TAHNKS!  Smiley
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #1 on: November 22, 2006, 12:40:43 pm »

Galler.template.php is located in your themes folder.
For the default theme it would be under Themes/default/
Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #2 on: November 22, 2006, 03:56:18 pm »

Thanks so much for the reply!!!!!  Wink
I found the file and inserted the code on line 82 as indicated:

echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['title'] . '<br /><img src="' . $modSettings['gallery_url'] . $row['thumbfilename']  . '" /></a><br />';

I am now getting the following error when I select Gallery:

Template Parse Error!

There was a problem loading the /Themes/default/Gallery.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

Do you see anything wrong with the code above?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #3 on: November 22, 2006, 04:17:09 pm »

Nothing wrong with that code above but I would need to see the whole file to figure out the problem.
Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #4 on: November 22, 2006, 04:34:23 pm »

I would love to, but when I pasted it in and posted it said there was a 20000 character limit. Could you 'IM' me for a solution to send it to you?

Much appreciated!
Joseph
Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #5 on: November 22, 2006, 04:47:00 pm »

ooooppps!!!!!
« Last Edit: November 22, 2006, 04:59:13 pm by wannabee » Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #6 on: November 22, 2006, 04:48:48 pm »

ooooppps!!!!!
« Last Edit: November 22, 2006, 04:59:27 pm by wannabee » Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #7 on: November 22, 2006, 04:50:26 pm »

ooooppps!!!!!
« Last Edit: November 22, 2006, 04:59:43 pm by wannabee » Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #8 on: November 22, 2006, 04:55:23 pm »

SORRRRRRYYYYY!!!!!  Huh

I was trying to send it to you in pieces, but I lost track of my cutting and pasting. Man is the MOD long!

If there is any way I can send this to you, I would certainly appreciate it!

Thanks again,
Joseph
« Last Edit: November 22, 2006, 05:52:40 pm by wannabee » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #9 on: November 22, 2006, 07:02:23 pm »

You should be able to attach the file I think.

If not just post the code around it.
Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #10 on: November 22, 2006, 08:11:15 pm »

Great idea! I have attatched the file. I hope it works.

If you can let me know if you got it, I can sit still!

* Gallery.template.php (76.14 KB - downloaded 294 times.)
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10987


View Profile
« Reply #11 on: November 22, 2006, 08:24:41 pm »

That was strange like an extra character something
Gallery.template.php
Find
Code:
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['title'] . '<br /><img src="' . $modSettings['gallery_url'] . $row['thumbfilename']  . '" /></a><br />';

Replace with
Code:
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['title'] . '<br /><img src="' . $modSettings['gallery_url'] . $row['thumbfilename'] . '" /></a><br />';
Logged
wannabee
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #12 on: November 22, 2006, 08:35:51 pm »

WOW!!!!!! How sweet it is!

I works perfectly!

I can't thank you enough. I will definitely be looking at the Pro version, especially with the support that I have been given.

Keep up the great work. I wish I had your brain power.

Thanks a million,
Joseph

Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 15, 2013, 11:31:24 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]

[May 07, 2013, 02:37:14 pm]

[May 06, 2013, 10:29:56 pm]

[May 04, 2013, 03:22:01 pm]

[May 04, 2013, 01:08:57 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.218 seconds with 22 queries.