Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 01:59 am EST

Geeklog Forums

Execute php code on main page


Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
I have a php page that lists the most recent topics of my phpbb3:

http://www.antisource.com/activetopics.php

I went through the rigmarole of including this page in a staticpage center block, and failed horribly. There is an issue with relative paths and additional includes. Instead of fighting with this, I'd rather find another way to make this a center block.

So how can I make this php script a center block without staticpages?

(Btw, does 1.5.0 allow you to specify a php block as center, rather than just right/left?)

www.antisource.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
As of 1.5.0, you can provide your own CUSTOM_centerblock() function. See lib-plugins.php for details.

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hi Rick,

Did you try an iframe?

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
Quote by: cordiste

Hi Rick,

Did you try an iframe?

::Ben



No... for the sake of SEO, I must have those links presented on the main page as part of the actual page.
www.antisource.com
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Quote by: RickW

Quote by: cordiste

Hi Rick,

Did you try an iframe?

::Ben



No... for the sake of SEO, I must have those links presented on the main page as part of the actual page.



Why don't you parse an RSS feed in a php-enabled centerblock? That's okay for SEO, as long as you don't use javascript in the parser. Your forum has enough RSS feed options.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
No... for the sake of SEO, I must have those links presented on the main page as part of the actual page.


Maybe you can set a php Block

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Quote by: cordiste


Maybe you can set a php Block

::Ben



Your link is dead... Mr. Green
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
So I shoot once more Smile

See PHP Block :rtfm:

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

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