Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 08:02:07 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155440 Posts in 21702 Topics by 7732 Members
Latest Member: Smacki
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [solved] Including newspage  (Read 534 times)
BartA

Offline Offline

Posts: 15


« on: September 04, 2008, 03:57:01 PM »

i'm trying to include a wb news page into another page.

I've tried this in three ways;

1. putting <?PHP require (WB_PATH."/pages/news.php");?> in the template (before the load_content function
and doing the same thing without the <?PHP and ?> handles (I do reed tutorials and search the forum cool ),

2. editing the normal page, pressing the <CODE> button and past it there (both the whole code and the one without start and end declaration)

3. created a code page, and tried both the options as descr. above.

Result: 1. Either no content at all (not even the content of normal page, with the PHP handles, or a exact display of my code instead of a result. 2. Exactly the same. 3. Jups, you've guessed it.

What am I doing wrong?

thanks.
« Last Edit: September 04, 2008, 10:07:32 PM by BartAaldering » Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #1 on: September 04, 2008, 09:59:18 PM »

Did you ever hear something about the anyNews snippet?
http://www.websitebaker2.org/forum/index.php/topic,409.0.html

Maybe this fits your needs.

Best Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
BartA

Offline Offline

Posts: 15


« Reply #2 on: September 04, 2008, 10:07:13 PM »

ah, that's quite usefull indeed. Thanks.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #3 on: September 04, 2008, 10:18:18 PM »

you're welcome!

There is a place (unofficial for now), where you can find awsome and usefull modueles and snippets.
http://www.wbmod.bplaced.net/

Most of them are not on the downloads page but there is often a thread inside the WB Forum, so you will find answeres if needed.

Best Regards,
Stefek
« Last Edit: September 04, 2008, 10:29:13 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!