Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 06:34 am EST

Geeklog Forums

How to get the lib-custom to work


Status: offline

berek

Forum User
Newbie
Registered: 10/05/03
Posts: 6
confused
Hi Guys,
I ´can't seem to find info on how to use the lib-custom file instead of the lib-common, or in conjuction with.
I am trying to add a custom hack to use the gallery images in the articles (stories). I added the function in the lib-custom, and then I called the fuction in the text box when adding the new story, but I only get the text I type : [gallery/....].
I thought I would have hit the lib-custom automatically.

Can someone please enlighten me a little?
Thanks,
Berek
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What do you mean by
Quote by berek: and then I called the fuction in the text box when adding the new story

Functions added to lib-custom.php will be available to be called from Geeklog's core code (in case you made modifications there), from plugins and also from static pages (when using PHP in static pages). But you certainly can't call a function from a story ...

bye, Dirk
 Quote

Status: offline

berek

Forum User
Newbie
Registered: 10/05/03
Posts: 6
The following hack was created for this purpose, and I assumed it was text in a story (article):
http://www.andybloch.com/gl/pub/article.php?story=2002070110453661

I assumed that php would see the function in [] and use it.

/Berek
 Quote

Status: offline

berek

Forum User
Newbie
Registered: 10/05/03
Posts: 6
I found the proble: I had made a copy of my lib-common in the same directory /public_html/ I found it in the /system/ dir and put the function there. Works a treat! /Berek
 Quote

All times are EST. The time is now 06:34 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