If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Poll 2.0 (MySQL version) - Strange problem  XML
Forum Index » Support Forum
Author Message
Anonymous



Bascially my content system builds a features bar along the right of every page and one section of this was going to include the poll. I'm having problems getting it to work though.

If I create a file called polltest.php just containing this:


Then it works fine.

However, the problem occurs when I try to put it into my content system.
The way it differs is the file display.php is called with a page name. As the cookie information needs to be sent before headers, this is where poll_cookie.php is included. display.php then includes global.inc.php for common functions including one called rightBar(). In rightBar rightBar.inc.php is included and this runs through drawing out the different sections. When it hit's:



I get:


I've also tried putting it all in a seperate file and including that but this just results in the same problems.

I've also tried moving the booth.php include to one of the preceding files (display.php or global.inc.php) but all this results in is a different error:



The only way I have got it to work so far is include it in display.php (the originally called file) so I guess I might be able to rework my rightBar function into 2 pieces so I can do the following in display.php:



But I really don't want to have to do that unless it's absolutely necessary, and this is the best poll system I've seen, so if anyone has any suggestions they'd be greatly appreciated.

Thx in advance

(Oh and I've tried the textfile version but this just results in a different problem, all the $question, etc variables in the templates get replaced with nothing so it doesn't work too well... :wink
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum