Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:18 am EDT

Geeklog Forums

Is Gallery supposed to be installed in the PLUGIN dir?

Page navigation


Status: offline

terminator

Forum User
Newbie
Registered: 07/07/05
Posts: 11
Yes. Here is an excerpt from lib-custom.php.

/*
function CUSTOM_menuEntries ()
{
global $_CONF, $_USER;

$myentries = array ();

Sample link #1:Link to Gallery
$myentries[] = array ('url' => '/home/cartiqco/public_html/vision/gallery/',
'label' => 'Gallery');

//Sample link #2: Link to the Personal Calendar - only visible for
// logged-in users
if (!empty ($_USER['uid']) && ($_USER['uid'] > 1)) {
$myentries[] = array ('url' => $_CONF['site_url']
. '/calendar.php?mode=personal',
'label' => 'My Calendar');
}

return $myentries;
}
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by terminator: Yes. Here is an excerpt from lib-custom.php.

/*
function CUSTOM_menuEntries ()


That /* up there is what I'm talking about. The entire function is in a comment ...

bye, Dirk
 Quote

Status: offline

terminator

Forum User
Newbie
Registered: 07/07/05
Posts: 11
ok, here is it as it stands now but it still doesn't work.

function CUSTOM_menuEntries ()
{
global $_CONF, $_USER;

$myentries = array ();

Sample link #1:Link to Gallery
$myentries[] = array ('url' => '/home/cartiqco/public_html/vision/gallery/',
'label' => 'Gallery');

//Sample link #2: Link to the Personal Calendar - only visible for
// logged-in users
if (!empty ($_USER['uid']) && ($_USER['uid'] > 1)) {
$myentries[] = array ('url' => $_CONF['site_url']
. '/calendar.php?mode=personal',
'label' => 'My Calendar');
}

return $myentries;
}
 Quote

Status: offline

terminator

Forum User
Newbie
Registered: 07/07/05
Posts: 11
Dirk, you know I don't want to waste your precious time on this issue. Since I already have the functionality I was looking for anyway. However, I appreciate your help. Infact, if you would be interested in helping me with a more interesting problem then I would be eternally gratefully. So, if you are so inclined please check out the link below. I posted this previously, and whilst they have been lots of views, noone has as yet responded to it. Maybe, you might have some insight.
Thanks in advance.

     14  Quote

Status: offline

terminator

Forum User
Newbie
Registered: 07/07/05
Posts: 11
http://www.geeklog.net/forum/viewtopic.php?forum=2&showtopic=55200
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by terminator: Dirk, you know I don't want to waste your precious time on this issue. Since I already have the functionality I was looking for anyway.

Well, it irks me when a function that we added precisely for your problem doesn't work for whatever reason.

Besides, hacking lib-common.php is never a good solution, as that is the one file in Geeklog that changes the most (see the recent security release ...). So it's almost bound to cause problems with the next update.

Quote by terminator: However, I appreciate your help. Infact, if you would be interested in helping me with a more interesting problem then I would be eternally gratefully. So, if you are so inclined please check out the link below.

Sorry, I know next to nothing about the random gallery block. But there are gazillions of posts about this block, both here and over on squatty.com ...

bye, Dirk
 Quote

Page navigation

All times are EDT. The time is now 05:18 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content