Posted on: 10/15/04 12:59am
By: RickW
I created a lib-custom.php file and added the code from:
http://heatherengineering.com/staticpages/index.php/staticpages
I get this in my block:
Error in PHP Block. Function, phpblock_staticpages, does not exist.
Is there something else I need to do to get the lib-custom.php file working, if I haven't used it before?
staticpages block hack not working
Posted on: 10/18/04 02:38pm
By: RickW
Also, can I easily rename the "staticpages" folder? I would prefer if it were called "resources".
Back to my original post - I was trying to use that hack that allows staticpages to be listed as a block. Am I correct that is the only way to list them in a block, or am I misunderstanding what this hack is for?
staticpages block hack not working
Posted on: 10/18/04 02:53pm
By: Dirk
[QUOTE BY= RickW] Also, can I easily rename the "staticpages" folder? I would prefer if it were called "resources".[/QUOTE]
Doable, but not easily. You would have to find all occurences of "staticpages" (at least those that refer to the directory in public_html) and change them ...
bye, Dirk (not familiar with that hack, btw, so no help there)
staticpages block hack not working
Posted on: 10/18/04 03:04pm
By: RickW
[QUOTE BY= Dirk] bye, Dirk (not familiar with that hack, btw, so no help there)[/QUOTE]
Any suggestions on a new hack?
staticpages block hack not working
Posted on: 10/18/04 04:00pm
By: machinari
[QUOTE BY= RickW] I created a lib-custom.php file and added the code...
I get this in my block:
Error in PHP Block. Function, phpblock_staticpages, does not exist.[/QUOTE]I think that you didn't have to create that file because it already exists and even has a bit of code already in it. I would suggest that the file you created is not being accessed by GL and the original file is being accessed, but it doesn't have your added code. the file should already exist in path/to/geeklog/system/lib-custom.php. just add your function to the end of that file and your error should go away.
hope that helps in that regard.
staticpages block hack not working
Posted on: 10/18/04 04:31pm
By: RickW
[QUOTE BY= machinari]I think that you didn't have to create that file because it already exists and even has a bit of code already in it. I would suggest that the file you created is not being accessed by GL and the original file is being accessed, but it doesn't have your added code. the file should already exist in path/to/geeklog/system/lib-custom.php. just add your function to the end of that file and your error should go away.
hope that helps in that regard.[/QUOTE]
Ha! That was it. I must have misunderstand the sample path in the instructions and I just placed it in the geeklog root. Put the code in it's proper location (system/lib-custom.php), enabled the block, and now it works.
Thank you!
staticpages block hack not working
Posted on: 10/26/04 03:03am
By: Euan
Glad to see someone using this. Any examples?
Cheers,
Euan.