[SOLVED] Poll in cu...
 
Notifications
Clear all

[SOLVED] Poll in custom page

10 Posts
2 Users
0 Reactions
2,413 Views
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Is it possible to move the poll to a custom page for a particular skin?

I set a custom page up, named it and linked it  and tried to use {poll_content} and {poll} to pull the poll into the custom page. Also set the options from Index to Active.  All that displayed though was {poll_content}. tried with tinymce both on and off

What we want is a link on the index page to a custom poll page where the poll would display and function as if it was on the index page.

Any help greatly appreciated.
jacci

ps sorry if this should have gone in mods, wasnt really sure if it was a skin thing or a mod


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 05/06/2008 10:49 pm
(@tammy)
Posts: 2577
Member Moderator
 

Not tested, but I believe this will work.  In your custom page use.


<?php
include(_BASEDIR."blocks/poll/poll.php");
$output .= $content;
?>


 
Posted : 07/06/2008 1:36 pm
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

thank you Tammy

Will give it a try and report back, let you know if it went

thanks again


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 07/06/2008 8:53 pm
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Chanced code to

<?php
include(_BASEDIR."blocks/poll/poll.php");
$output .= $content;
?>

it shows up fine on the preview, but once it is submitted, it shows blank space on the actual custom page
http://www.pretendercentre.com/renewal/efic/viewpage.php?page=pretenderpoll

and seems it generate another duplicate custome page too
20 pretenderpoll PretenderPoll Edit | Delete
22 pretenderpoll PretenderPoll Edit | Delete

page id 20 is the page i edited, and it has then made a page 21 duplicate (which i deleted) then edited pageid 20 and it then generated a page 22.

If this is too much of a hassle, then don't worry about it, woudl have been nice to have, but can live without.
thanks


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 07/06/2008 11:09 pm
(@tammy)
Posts: 2577
Member Moderator
 

Almost had it right.



<?php
include(_BASEDIR."blocks/poll/poll.php");
$text = $content;
?>

You can assign a page title using the variable $title. Example:


$title = "Poll of the Week";

 
Posted : 08/06/2008 11:55 pm
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

Hey Tammy, thanks again, but still no go

That code shows up with the poll in preveiw just fine, but when i submit and check the page, it still shows with no content, and it generates a duplicate entry in the  custom page list.


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 09/06/2008 1:15 am
(@tammy)
Posts: 2577
Member Moderator
 

Are you turning tinyMCE off before pasting the code in?


 
Posted : 09/06/2008 5:12 pm
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

yes, turning it off, not turning it back on either before submitting. It is weird cos it shows up fine in the preview... which made me think it was going to be fine... but the actual page itself is just blank  and each time i do it, i grow a duplicate page in the custom page list with ascending ID... none of which seem to work


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 09/06/2008 9:32 pm
(@tammy)
Posts: 2577
Member Moderator
 

Don't preview it.  Just submit it.


 
Posted : 11/06/2008 12:05 am
(@jacci)
Posts: 503
Honorable Member
Topic starter
 

thanks tammy, you rock!!!!
duh to me, didnt even think to try to do without previewing
it is working fine now and no duplicate entries generated either

can add a link to index now and still have a poll
*does happy dance*


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 11/06/2008 12:57 am
Share: