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: 191
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 209
Total: 209

Author Topic: Member gallery showing in recent pictures  (Read 6160 times)

0 Members and 1 Guest are viewing this topic.

Offline Ronlx2

  • Member
  • *
  • Posts: 41
    • View Profile
Member gallery showing in recent pictures
« on: November 25, 2006, 05:50:30 pm »
I didn't find any setting to keep a members gallery showing on recents posts, most rated or any other. Is their a way to have members gallery all by itself and not show up on the front page of the main gallery?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Member gallery showing in recent pictures
« Reply #1 on: November 25, 2006, 05:57:13 pm »
Good idea, this feature does not currently exist.
If you want I could come up with some code for you to alter to hide the user gallery images to show up on the main page blocks for the gallyer index.
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 Ronlx2

  • Member
  • *
  • Posts: 41
    • View Profile
Re: Member gallery showing in recent pictures
« Reply #2 on: November 25, 2006, 06:12:54 pm »
If you come up with some before and after code I can change that would be perfect. Otherwise I can wait till you come up with something for all your members.

By the way just want to say your gallery pro and the new look and layout of the links mod is just great.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Member gallery showing in recent pictures
« Reply #3 on: November 25, 2006, 06:19:30 pm »
Open Gallery.template.php in function MainPageBlock around line 2391
Find
Code: [Select]
switch($type)
{
case 'recent':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 ORDER BY p.ID_PICTURE DESC LIMIT 4";
break;

case 'viewed':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 ORDER BY  p.views DESC LIMIT 4";
break;

case 'mostcomments':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 ORDER BY p.commenttotal DESC LIMIT 4";
break;

case 'toprated':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 ORDER BY p.rating DESC LIMIT 4";
break;
}
Change to
Code: [Select]
switch($type)
{
case 'recent':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 AND p.USER_ID_CAT = 0 ORDER BY p.ID_PICTURE DESC LIMIT 4";
break;

case 'viewed':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 AND p.USER_ID_CAT = 0 ORDER BY  p.views DESC LIMIT 4";
break;

case 'mostcomments':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 AND p.USER_ID_CAT = 0 ORDER BY p.commenttotal DESC LIMIT 4";
break;

case 'toprated':
$query = "SELECT p.ID_PICTURE, p.commenttotal, p.totalratings, p.rating, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER AND p.approved = 1 AND p.USER_ID_CAT = 0 ORDER BY p.rating DESC LIMIT 4";
break;
}
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 Ronlx2

  • Member
  • *
  • Posts: 41
    • View Profile
Re: Member gallery showing in recent pictures
« Reply #4 on: November 25, 2006, 09:45:53 pm »
No didn't work, got this error

2406:             case 'viewed':

Offline Ronlx2

  • Member
  • *
  • Posts: 41
    • View Profile
Re: Member gallery showing in recent pictures
« Reply #5 on: November 25, 2006, 10:30:19 pm »
I got it and it seems to be working great. Thanks for your help. :D

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3499 Views
Last post July 08, 2007, 02:08:43 am
by marcbkk
3 Replies
3617 Views
Last post June 21, 2007, 08:15:55 pm
by Marian
7 Replies
8975 Views
Last post January 18, 2008, 08:19:58 pm
by SMFHacks
2 Replies
5978 Views
Last post February 24, 2008, 04:27:34 pm
by Matth41
1 Replies
4750 Views
Last post March 02, 2008, 08:16:45 pm
by SMFHacks

+- 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