Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 178
Total: 178

Author Topic: Pic Names  (Read 9481 times)

0 Members and 1 Guest are viewing this topic.

Offline TolerancE

  • Member
  • *
  • Posts: 11
    • View Profile
Pic Names
« on: November 14, 2006, 08:10:49 pm »
is there anyway to add a name above the thumbnail in the gallery?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pic Names
« Reply #1 on: November 14, 2006, 08:29:53 pm »
Yeah you could like the title of the image? above the thumbnail would involve editing Gallery.template.php
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 TolerancE

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Pic Names
« Reply #2 on: November 14, 2006, 08:42:05 pm »
anything in particular I have to edit?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pic Names
« Reply #3 on: November 14, 2006, 08:56:32 pm »
Around Line 82 IN Gallery_template.php find in template_main() function
Find
Code: [Select]
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '"><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 TolerancE

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Pic Names
« Reply #4 on: November 14, 2006, 09:19:09 pm »
Awesome! Thanks again man. One last thing and I SWEAR I will leave you in peace. How do I remove this from under the thumbnail?

Filesize: 24.96KB
Date: Today at 09:00:55 PM
Comments (0)
By: name

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pic Names
« Reply #5 on: November 14, 2006, 09:31:54 pm »
Just remove in Gallery.template.php line 84
Code: [Select]
echo $txt['gallery_text_filesize'] . round($row['filesize'] / 1024, 2) . 'KB<br />';
echo $txt['gallery_text_date'] . timeformat($row['date']) . '<br />';
echo $txt['gallery_text_comments'] . ' (<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">' . $row['commenttotal'] . '</a>)<br />';
echo $txt['gallery_text_by'] . ' <a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">'  . $row['realName'] . '</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/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3398 Views
Last post January 22, 2008, 12:02:46 pm
by eg-eliteghost
1 Replies
3415 Views
Last post March 28, 2008, 07:26:54 pm
by SMFHacks
8 Replies
8968 Views
Last post October 29, 2008, 08:50:18 am
by rbh
2 Replies
3175 Views
Last post February 13, 2011, 11:15:25 am
by clothahump
10 Replies
1439 Views
Last post July 28, 2021, 03:36:31 pm
by Anmer

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

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

Powered by EzPortal