Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 12:36 pm EST

Geeklog Forums

noob to this whole thing, topic/page help!!


Dukey

Anonymous
grumpy
Alright, so i know how to do the whole menu admin thing and make stories and topics and the like. But how would I make a Menu Item that links to a page that shows all the stories in a specific topic? And not just list them because I've figured that out, but I mean show them all as if they were on the index page.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The link itself is obvious, I guess - just take it from the Topics block. Then have a look at the function CUSTOM_menuEntries in system/lib-custom.php. It contains smaple code that adds two new entries to the menu bar. You need to enable that function (it's commented out) and you need to add an entry called 'custom' to the list of menu items in the Configuration.

bye, Dirk
 Quote

Dukey

Anonymous
Quote by: Dirk

The link itself is obvious, I guess - just take it from the Topics block. Then have a look at the function CUSTOM_menuEntries in system/lib-custom.php. It contains smaple code that adds two new entries to the menu bar. You need to enable that function (it's commented out) and you need to add an entry called 'custom' to the list of menu items in the Configuration.

bye, Dirk


I un-commented it out (you just remove the {}'s correct?) but now the page won't render. I don't know if it's because of this or if it's just being dumb for awhile. ill check again later.
 Quote

Dukey

Anonymous
freakingout
aww man, now it's RIGHT *censored*ed up.. i put hours into this site and now it's just gone pretty much... here's the web address if you can help www.blurrypron.com/index1.php
 Quote

DUKEY

Anonymous
stressed
so that section of lib-custom now looks like this:

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

$myentries = array ();

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


// 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'Wink;
}

return $myentries;
}


I know i changed something and I obviously did something wrong, if anyone can help me either change it back or have it set so i can do the whole pages that show the stories under each the topic thing that would be awesome!
 Quote

Dukey

Anonymous
excited
Okay.. i think I fixed it after tinkering around a bit because the site is back up. Now I just need to figure out how to un-comment it out..
 Quote

Dukey

Anonymous
Okay, I believe I have everything fixed, the only thing i"m not sure how to do is this part:
Quote by: Dirk

you need to add an entry called 'custom' to the list of menu items in the Configuration.

 Quote

Dukey

Anonymous
determined
Quote by: Dukey

Okay, I believe I have everything fixed, the only thing i"m not sure how to do is this part:

Quote by: Dirk

you need to add an entry called 'custom' to the list of menu items in the Configuration.


Did you mean Menu Elements? If so I have done that as of now, so now what do I do?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yes, I meant the Menu Elements, sorry. So add an entry "custom" there.

What other problem(s) do you have at this point?

bye, Dirk
 Quote

Dukey

Anonymous
Quote by: Dirk

Yes, I meant the Menu Elements, sorry. So add an entry "custom" there.

What other problem(s) do you have at this point?

bye, Dirk


I don't know how to make the page with all the stories from the topic show up, like I don't really know what to link to.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
As I said above: Take the link from the Topics block.

To link to all stories from the "Summer of Code" topic here on geeklog.net, you would use http://www.geeklog.net/index.php?topic=GSoC

bye, Dirk
 Quote

Dukey

Anonymous
cheerful
Quote by: Dirk

As I said above: Take the link from the Topics block.

To link to all stories from the "Summer of Code" topic here on geeklog.net, you would use http://www.geeklog.net/index.php?topic=GSoC

bye, Dirk


Holy shit.. I think I love you... Thank you SO much dude! You're a god among men!
 Quote

All times are EST. The time is now 12:36 pm.

  • 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