Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 126
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 99
Total: 99

Author Topic: Titles for thumbnails in GalleryLite?  (Read 12843 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: 16428
    • 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: 16428
    • 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: 16428
    • 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: 16428
    • 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
3503 Views
Last post March 03, 2007, 04:51:26 am
by maker
2 Replies
5904 Views
Last post February 03, 2008, 12:56:31 pm
by cralor
0 Replies
4370 Views
Last post July 12, 2008, 08:21:34 pm
by SarahOVA
0 Replies
3276 Views
Last post May 16, 2009, 04:19:12 am
by just4dosti.com
8 Replies
3700 Views
Last post February 07, 2017, 02:25:52 am
by landyvlad

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal