Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 12:18 am EST

Geeklog Forums

Stac Pages help please


Status: offline

Statyk

Forum User
Newbie
Registered: 11/01/04
Posts: 3
I'm running Geeklog version 1.3.9sr1 which came with my hosting plan. For whatever reason, the version of Static Pages that came with it is 1.0. Is there a an upgrade version of 1.4? If not, where can I get 1.4 and how hard is it to uninstal 1.0 and install 1.4? I'm pretty new to encoding php.

Thanx in advance for the help.
Statyk
 Quote

Status: offline

Remdotc

Forum User
Chatty
Registered: 06/12/02
Posts: 55
Assuming you have access to the php files, just download Geeklog 1.3.9.sr2 and do an upgrade.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Updating only the Static Pages plugin isn't easy, unfortunately. The problem is that all the updates of the plugin's table structure are done when updating Geeklog (i.e. by running the install script in update mode). But since the rest of Geeklog is already up to date, you can't simply run the install script.

Your best bet is probably to uninstall the plugin (which means that you would lose all your static pages!) and then installing it again. Both can be done from the "Plugins" entry in the Admin's block.

bye, Dirk
 Quote

Status: offline

Statyk

Forum User
Newbie
Registered: 11/01/04
Posts: 3
Thanx for the help guys. I got it upgraded but it still wouldn't run the scripts that I was trying to run so I'm giving up on using geeklog and every other portal system for that matter. I've tried 6 different portals and none of them will run my scripts. *shrugs*...guess it's back to hand coding everything.
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
Quote by Dirk: Updating only the Static Pages plugin isn't easy, unfortunately. The problem is that all the updates of the plugin's table structure are done when updating Geeklog (i.e. by running the install script in update mode). But since the rest of Geeklog is already up to date, you can't simply run the install script.

...snippage...

bye, Dirk


Maybe a reason to keep even the integrated plugins a little further separated...? Or is this in the works?



Cheers,

Euan
-- Heather Engineering
-- No job too small
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Statyk: I got it upgraded but it still wouldn't run the scripts that I was trying to run

You must be doing something wrong then. There are several ways to integrate existing scripts into Geeklog. Using PHP in static pages may not be the best way, especially for complex scripts.

bye, Dirk
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by euan: Maybe a reason to keep even the integrated plugins a little further separated...? Or is this in the works?

They are still pretty much independent. The only thing missing is a separate upgrade option.

bye, Dirk
 Quote

Status: offline

Statyk

Forum User
Newbie
Registered: 11/01/04
Posts: 3
Quote by Dirk:
Quote by Statyk: I got it upgraded but it still wouldn't run the scripts that I was trying to run

You must be doing something wrong then. There are several ways to integrate existing scripts into Geeklog. Using PHP in static pages may not be the best way, especially for complex scripts.

bye, Dirk

If you know of a way to make it work I'm all ears. Everytime it gets to the part where it calls from the database it goes haywire for me. Might it be that I'm calling from a db other than geeklogs?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Statyk: If you know of a way to make it work I'm all ears.

Often, all you'll have to do is add a few lines of Geeklog's code to your existing scripts:
Text Formatted Code
<?php

require_once ('lib-common.php');
echo COM_siteHeader ('menu');
echo COM_startBlock ('Some block title here');

// your code here

echo COM_endBlock ();
echo COM_siteFooter();

?>
 



Quote by Statyk: Everytime it gets to the part where it calls from the database it goes haywire for me. Might it be that I'm calling from a db other than geeklogs?

Geeklog's database handling shouldn't interfere with your code.

bye, Dirk
 Quote

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