Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 06:20:04 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.
155439 Posts in 21702 Topics by 7755 Members
Latest Member: Smacki
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Anynews Module + html  (Read 518 times)
Bosan

Offline Offline

Posts: 1


« on: August 01, 2008, 06:53:57 PM »

Hi Everyone!

I'm trying to implent the Anynews Module around some html..
I opened a code page and doing this:

<?
print "<table><tr><td>
";
?>

display_news_items(0, 5, 50, 2, 'News', 'show full news text', 'uups, no news available', false);

<?
print "</td></tr></table>";
?>

I also want to add some more html, but onces i know how to implent this, i think i can do the rest myself..
What is the right way to do this.. is this possible?

Thanks a lot for helping!!
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: August 01, 2008, 09:39:44 PM »

Hi,

the help for pages type code says:

Quote
You are neither required nor allowed to use an opening “<?php”, nor a closing “?>”.

If you have to handle longer html parts inside the code, maybe the heredoc-syntax an option for you.

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
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!