Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 208
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 202
Total: 202

Author Topic: Titles for thumbnails in GalleryLite?  (Read 12904 times)

0 Members and 1 Guest are viewing this topic.

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Titles for thumbnails in GalleryLite?
« 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.  ???

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!  :)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« 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/
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« Reply #2 on: November 22, 2006, 03:56:18 pm »
Thanks so much for the reply!!!!!  ;)
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« 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

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« Reply #5 on: November 22, 2006, 04:47:00 pm »
ooooppps!!!!!
« Last Edit: November 22, 2006, 04:59:13 pm by wannabee »

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« Reply #6 on: November 22, 2006, 04:48:48 pm »
ooooppps!!!!!
« Last Edit: November 22, 2006, 04:59:27 pm by wannabee »

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« Reply #7 on: November 22, 2006, 04:50:26 pm »
ooooppps!!!!!
« Last Edit: November 22, 2006, 04:59:43 pm by wannabee »

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« Reply #8 on: November 22, 2006, 04:55:23 pm »
SORRRRRRYYYYY!!!!!  ???

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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« 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!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« Reply #11 on: November 22, 2006, 08:24:41 pm »
That was strange like an extra character something
Gallery.template.php
Find
Code: [Select]
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: [Select]
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 />';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline wannabee

  • Member
  • *
  • Posts: 9
    • View Profile
Re: Titles for thumbnails in GalleryLite?
« 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


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3525 Views
Last post March 03, 2007, 04:51:26 am
by maker
2 Replies
5933 Views
Last post February 03, 2008, 12:56:31 pm
by cralor
0 Replies
4390 Views
Last post July 12, 2008, 08:21:34 pm
by SarahOVA
0 Replies
3279 Views
Last post May 16, 2009, 04:19:12 am
by just4dosti.com
8 Replies
3715 Views
Last post February 07, 2017, 02:25:52 am
by landyvlad

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal