1
Chainsaw
need help - creating a php block for wfchannel page 1
  • 2004/4/3 8:48

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Can someone please tell me if this is doable?

WFChannel has a way to select one of its page as the index and if I set WFchannel as the top page then that page becomes the home page (as is in my case right now).

However - the home URL become site.com\modules\wfchannel

I've recently seen people typing in the full URL as the website address (instead of typing in http://www.albanycc.org.nz, they type in http://www.albanycc.org.nz\modules\wfchannel)

Can't blame them, most are not IT literate users.

I've tried the short URL hack, both hacks didn't work. I've also tried doing some fancy things with htaccess modrewrite but that didn't work either.

So I am thinking the only way is to extract the channel page in a PHP Block and enable it in the top page which do not load any module as its default.

The record I am after is xoops_wfschannel's CID=1. The fields are index image, page title, page

I know the SQL statement will be

SELECT CID, indeximage, pagetitle, page
FROM wfschannel
WHERE CID=1

How do I get the result (in this case wfschannel.page to display in a php block?

I'm not much of a PHP programmer unfortunately, trying to get there though.

Thanks for any help.

Login

Who's Online

905 user(s) are online (347 user(s) are browsing Support Forums)


Members: 0


Guests: 905


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits