Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4339
  • *Latest: AJ

  • *Total Posts: 15833
  • *Total Topics: 2396
  • *Online Today: 5
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 3
  • *Total: 3

Author Topic: HTML and php block question  (Read 2107 times)

0 Members and 0 Guests are viewing this topic.

Offline AmokPaule

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
HTML and php block question
« on: 23.09.09, 04:03:09 »
Hello,
i have a question about a html block and a php block.

Code: [Select]
</head>
<body>
<p>
 <a href="http://test.acrania.eu/test/testsmf/index.php?rss">RSS</a> <br>
</p>
</body>
</html>
But in the box itself it shows me only the html code.




For the php block i try to include a site
i used some code i found here in there forum to test:
Code: [Select]
$result = ParseXmlurl('http://test.acrania.eu/test/mumbleviewer_v0.91/mumbleviewer.php, 5, 'none');
if(!empty($result))
  echo $result;
else
  echo $context['PortaMx']['feed_error_text'];

It just gives me the following error in the box
Parse error: syntax error, unexpected T_STRING in /var/www/domains/test.acrania.eu/test/testsmf/Sources/PortaMx/Class/php.php(31) : eval()'d code on line 1

Hope someone can help :)


Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5614
  • Gender: Female
Re: HTML and php block question
« Reply #1 on: 23.09.09, 13:42:39 »
Code: [Select]
</head>
<body>
<p>
 <a href="http://test.acrania.eu/test/testsmf/index.php?rss">RSS</a> <br>
</p>
</body>
</html>
But in the box itself it shows me only the html code.
You can't use html header in ANY block, while at this time the header is already send. Also you can't use body in a block. In a html block you can use only html code, they is IN the body part, for obove example:
Code: [Select]
<p>
 <a href="http://test.acrania.eu/test/testsmf/index.php?rss">RSS</a> <br>
</p>
But that is a link .. they is not called if the block shown, you must click on it !
If you want to read and show a RSS feed, you have to use a RSS Block.

Quote from: AmokPaule
For the php block i try to include a site
i used some code i found here in there forum to test:
Code: [Select]
$result = ParseXmlurl('http://test.acrania.eu/test/mumbleviewer_v0.91/mumbleviewer.php, 5, 'none');
if(!empty($result))
  echo $result;
else
  echo $context['PortaMx']['feed_error_text'];
It just gives me the following error in the box
You string no closed with a single qoute. Correct is:
Code: [Select]
$result = ParseXmlurl('http://test.acrania.eu/test/mumbleviewer_v0.91/mumbleviewer.php', 5, 'none');
Fel
Many are stubborn in relation to the path, a few in relation to the target.

Offline AmokPaule

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
Re: HTML and php block question
« Reply #2 on: 23.09.09, 15:22:24 »
With the html block i want to create something like a menu to all my single pages. Is there maybe a better way to do?

About the php block. It now shows nothing can it be that it is too large to be shown maybe?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5614
  • Gender: Female
Re: HTML and php block question
« Reply #3 on: 23.09.09, 17:24:10 »
About the php block. It now shows nothing can it be that it is too large to be shown maybe?
I don't know what you want to see from the link .. but I notice, that the site needs a login.
That not work with the used function, so it returns nothing.

Fel
Many are stubborn in relation to the path, a few in relation to the target.

Offline AmokPaule

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
Re: HTML and php block question
« Reply #4 on: 23.09.09, 21:25:05 »
Thanks.
Seems the php issue was related to an configuartion in my php.

Offline antechinus

  • PortaMx Supporter
  • *
  • Posts: 680
Re: HTML and php block question
« Reply #5 on: 25.09.09, 22:53:08 »
With the html block i want to create something like a menu to all my single pages. Is there maybe a better way to do?

About the php block. It now shows nothing can it be that it is too large to be shown maybe?
I've actually done that on a test site. I'll dig the code out tonight.  :)
Using Internet Explorer 6 on the internet is like urinating in a public swimming pool.
It's rude, there's no excuse for it, and anyone who does it should be ashamed of themselves.