Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 11:42 am EDT

Geeklog Forums

Bye Bye Geeklog!


Status: offline

uyghurmen

Forum User
Chatty
Registered: 02/16/11
Posts: 56
Hi Geeklog friend,
I liked geeklog, unfortunately didn't get help about forum direction RTL, and custom menu. So at last obligated remove my directory and bye bye. If in future someone solve those problem please let me know, I will come back.
eynekbiz@eynek.biz email my website master e-mail.
 Quote

Status: offline

Roccivic

Forum User
Moderator
Registered: 05/19/10
Posts: 136
I'm sorry to hear that your experience was negative.

As far as custom menu entries go, I posted some code for you to look at, but I guess that you could not interpret it. Anyway in geeklog 1.7.1sr1, it's as easy as deleting lines 494 and 515 in the file "system/lib-custom.php". Then you change the url at line 502 and the title at line 503. Copy and paste as necessary to make more.

Highlighted in red the parts to delete and in green the parts to change:

/**
* This is an example of a function that returns menu entries to be used for
* the 'custom' entry in $_CONF['menu_elements'] (see configuration).
*
*/
/*
function CUSTOM_menuEntries ()
{
global $_CONF, $_USER;

$myentries = array ();

// Sample link #1: Link to Gallery
$myentries[] = array ('url' => $_CONF['site_url'] . '/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/index.php?mode=personal',
'label' => 'My Calendar' );
}


return $myentries;
}
*/


Rouslan
 Quote

Status: offline

uyghurmen

Forum User
Chatty
Registered: 02/16/11
Posts: 56
Quote by: Roccivic

I'm sorry to hear that your experience was negative.

As far as custom menu entries go, I posted some code for you to look at, but I guess that you could not interpret it. Anyway in geeklog 1.7.1sr1, it's as easy as deleting lines 494 and 515 in the file "system/lib-custom.php". Then you change the url at line 502 and the title at line 503. Copy and paste as necessary to make more.

Highlighted in red the parts to delete and in green the parts to change:

/**
* This is an example of a function that returns menu entries to be used for
* the 'custom' entry in $_CONF['menu_elements'] (see configuration).
*
*/
/*
function CUSTOM_menuEntries ()
{
global $_CONF, $_USER;

$myentries = array ();

// Sample link #1: Link to Gallery
$myentries[] = array ('url' => $_CONF['site_url'] . '/gallery/',
'label' => 'Gallery' );

Thanks alot, although I deleted geeklog from my test directory, any way thanks your answer. You posted codes before that, but I nothing understand, This time little bit clear, but still some confusing. You said green color to change, but green color included some stable code: $_CONF,... so I confusing. change name is change "Gallery" to may desired title, right? what about URL? ? And red color lines all to delete? If some more menu copy 502 and 503 lines and change title and URL?
Also I not able to change theme you provided. Thatwas not provided steps.

 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hi,

This is another exemple:
Text Formatted Code
function CUSTOM_menuEntries ()
{
    global $_CONF;

    $myentries = array ();

    $myentries[] = array ('url'   => $_CONF['site_url'] . '/index.php?topic=Geeklog',
                          'label' => 'Blog');
    $myentries[] = array ('url'   => $_CONF['site_url'] . '/medias_corab/index.php',
                          'label' => 'Documents');
    $myentries[] = array ('url'   => $_CONF['site_url'] . '/forum/index.php',
                          'label' => 'Forum');
    $myentries[] = array ('url'   => $_CONF['site_url'] . '/staticpages/index.php?page=Contact',
                          'label' => 'Contact');

    return $myentries;
}


See menu in action here.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

uyghurmen

Forum User
Chatty
Registered: 02/16/11
Posts: 56
Quote by: cordiste

Hi,

This is another exemple:

Text Formatted Code
function CUSTOM_menuEntries ()
{
    global $_CONF;

    $myentries = array ();

    $myentries[] = array ('url'   => $_CONF['site_url'] . '/index.php?topic=Geeklog',
                          'label' => 'Blog');
    $myentries[] = array ('url'   => $_CONF['site_url'] . '/medias_corab/index.php',
                          'label' => 'Documents');
    $myentries[] = array ('url'   => $_CONF['site_url'] . '/forum/index.php',
                          'label' => 'Forum');
    $myentries[] = array ('url'   => $_CONF['site_url'] . '/staticpages/index.php?page=Contact',
                          'label' => 'Contact');

    return $myentries;
}


See menu in action here.

::Ben



This time absolutely clear. Thanks alot.
If you tell about your Theme like this Very very appreciate
 Quote

Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
Cusommenu plugin
http://www.geeklog.jp/downloads/index.php/330

Navman plugin can change custom menu, too.
Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

keithr

Forum User
Newbie
Registered: 07/11/08
Posts: 1
http://www.geeklog.jp/downloads/index.php/438
navman plugin mentioned by Ivy is here.
 Quote

Status: offline

uyghurmen

Forum User
Chatty
Registered: 02/16/11
Posts: 56
Quote by: keithr

http://www.geeklog.jp/downloads/index.php/438
navman plugin mentioned by Ivy is here.



What's this?
I ask about how to change THEME. Step by step.
 Quote

All times are EDT. The time is now 11:42 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