Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:01 am EST

Geeklog Forums

function


Anonymous

Anonymous
if i was to create a script with say...function blah(){}can i add that to a block with geeklog..or does it has to be intergraded in lib-common.php?
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
The short answer is "Yes" ... But it's a bit more involved. Any custom code should be placed in {geeklog_dir}/system/lib-custom.php. This file is included by lib-common so any functions you place in there will be known. You should then look at any of the contributed blocks or the example in lib-custom. It depends what you want to do with this function as to the next steps. A good reference would be the Plugin Developers Guide - under Project Resources. Blaine
Geeklog components by PortalParts -- www.portalparts.com
 Quote

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