TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 253
  • Total: 253

phpbox issue

Started by Storm2, May 23, 2008, 06:46:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Storm2

In a box would be nice since we want to use it on the left blocks.

JPDeni

If you're getting the headings, but not the data, it's obviously not picking up the data.

The stuff on your test.php file is what you want to print out?

The problem isn't obvious, I'm afraid, and I'm not familiar with that programming style, so I find it very difficult to follow.

You might be able to use an iframe in your block. I've never used one, but a lot of people seem to get them to work very well.

Ianedres

Other than renaming $startTag and $endTag throughout the script to try to clear the redeclare error...  XML parsing has caused some profane language when I've tried to work with it.

efe


Storm2

Yes the errors are gone now but the xml parsing is not working somehow.

Storm2

When I import it as an article ( http://www.teamcp.com/forum/tracker/test.php ) it is showing correct on the frontpage (Last article on bottom http://teamcp.com/forum/index.php ), but when i try to display that same imported article in a block(left or right) it shows nothing.

JPDeni

I really don't know why it makes a difference. You could try using an articlebox and see if that works.

It's all trial and error. :)

vdesai

1. I think you may know this already but dont include the <? when you are creating a phpbox (but do include the ?>, maybe not i maybe forgetting try both but i know for a fact u dont need the <?)
2. If nothing works just include the php file in the box include './tracker/test.php';
should do it for ya

Genie

I have an rss feed being run through a php script.  I am using the phpbox and did NOT use either the opening or closing php declaration - no problem.


<?php

?>



These were NOT needed in my case.

Storm2

Tried all so far but without luck yet.

The include './tracker/test.php'; is also not working.

The only time when it is working is when the imported article option is used.
But when I try to display that in a block again it only shows the headings.
So there must be a difference in plain import article and displaying the same imported article in a block.

This website is proudly hosted on Crocweb Cloud Website Hosting.