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

Author Topic: Member gallery showing in recent pictures  (Read 6122 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: 16436
    • 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: 16436
    • 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
3477 Views
Last post July 08, 2007, 02:08:43 am
by marcbkk
3 Replies
3603 Views
Last post June 21, 2007, 08:15:55 pm
by Marian
7 Replies
8893 Views
Last post January 18, 2008, 08:19:58 pm
by SMFHacks
2 Replies
5959 Views
Last post February 24, 2008, 04:27:34 pm
by Matth41
1 Replies
4730 Views
Last post March 02, 2008, 08:16:45 pm
by SMFHacks

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