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
Not tested, but I believe this will work. In your custom page use.
<?php
include(_BASEDIR."blocks/poll/poll.php");
$output .= $content;
?>
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
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
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";
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
Are you turning tinyMCE off before pasting the code in?
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
Don't preview it. Just submit it.
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