SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
February 11, 2012, 11:44:50 am

Login with username, password and session length
Members
Total Members: 9906
Latest: mdebruijne
Stats
Total Posts: 27818
Total Topics: 4860
Online Today: 86
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 76
Total: 78
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Remove Member galleries link  (Read 1265 times)
fotografo74
Jr. Member
**
Offline Offline

Posts: 53


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: 9407


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
Jr. Member
**
Offline Offline

Posts: 53


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 10:54:27 am]

[Today at 09:32:34 am]

[Today at 08:49:33 am]

[Today at 08:36:58 am]

[February 10, 2012, 02:42:09 pm]

[February 10, 2012, 02:23:51 pm]

[February 10, 2012, 10:26:45 am]

by exit
[February 09, 2012, 04:47:13 pm]

[February 08, 2012, 09:09:16 pm]

[February 08, 2012, 09:11:02 am]
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.211 seconds with 19 queries.