SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2012, 11:21:13 pm

Login with username, password and session length
Members
Total Members: 10070
Latest: pipattra
Stats
Total Posts: 28683
Total Topics: 4976
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 52
Total: 53
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Remove Member galleries link  (Read 1353 times)
fotografo74
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 55


View Profile
« on: November 13, 2008, 05:57:57 am »

Hi  Smiley
how does he remove like attached image?
I don't want display "Member Galleries"....
I removed this:

Code:
// Check if they want the user galleries to show on the gallery index
if ($modSettings['gallery_index_showusergallery'] == 0)
continue;

// User Gallery Link
$cat_url = $scripturl . '?action=gallery;su=user;sa=userlist';

$ugalleryresult = db_query("
SELECT SUM(total) as totalpics
FROM {$db_prefix}gallery_usercat", __FILE__, __LINE__);
$userrow = mysql_fetch_assoc($ugalleryresult);
mysql_free_result($ugalleryresult);
$totalpics = $userrow['totalpics'];
from gallery.template.php
Thank you
Antonio
« Last Edit: November 13, 2008, 06:31:45 am by fotografo74 » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #1 on: November 13, 2008, 07:44:55 am »

There is actually setting to turn it off.
Under Admin -> Gallery configuration -> Settings -> Layout
Uncheck show member galleries on index.
Logged
fotografo74
SMF Gallery Pro Customer
Jr. Member
*****
Offline Offline

Posts: 55


View Profile
« Reply #2 on: November 13, 2008, 10:43:35 am »

There is actually setting to turn it off.
Under Admin -> Gallery configuration -> Settings -> Layout
Uncheck show member galleries on index.
Oh.... Grin...sorry.... Lips sealed
Thank's!
My friend  makes  little modify in Gallery.php ..now if i click on the thumbnail opens the topic !
Code:
// Show top Tabs
TopButtonTabs();

/*
EDIT BY: Roberto, 7 nov 2008:
faccio in modo di recuperare ID_TOPIC
e fare un redirect(bastera'?) al volo sul topic del forum,
solo se ID_TOPIC > 0
*/

$dbresult = db_query("
SELECT
ID_PICTURE, USER_ID_CAT, ID_CAT , ID_TOPIC
FROM {$db_prefix}gallery_pic
WHERE ID_PICTURE = $id  LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);

/** EDIT BY: Roberto, 7 nov 2008 */
if ($row['ID_TOPIC'] > 0) {
//http://www.macroforum.org/index.php/topic,28.0.html
header('Location: /prova/index.php/topic,' . $row['ID_TOPIC'] . '.0.html');
exit();
}

$USER_ID_CAT = $row['USER_ID_CAT'];
mysql_free_result($dbresult);
« Last Edit: November 13, 2008, 10:59:39 am by fotografo74 » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 05:17:53 pm]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.206 seconds with 20 queries.