How to Change Polls Block's Default Tab
Hi there,
I'm running Dolphin 6.0.0005 and would like to know how to change the default tab that shows up in the Polls block on the main page. Right now, it defaults to displaying the Latest tab, but I would like to have it default to the Admin tab. Or, if that is not possible, at least have the latest Admin poll displayed under the Latest tab (though that seems to be for profile polls only....)
:)
I am looking to do the exact same thing.
Dol Ver 6.005
Open file: templates/tmpl_uni/scripts/index.php
Find:
function PageCompProfilePollContent($sCaption)
And edit,
$mode = strlen($_GET['ppoll_mode']) ? $_GET['ppoll_mode'] : 'last';
To,
$mode = strlen($_GET['ppoll_mode']) ? $_GET['ppoll_mode'] : 'admin';
----------------------------------------------------------------------------
Dol Ver.6.1
Open file: templates/base/scripts/BxBaseIndex.php
Find: function getBlockCode_ProfilePoll()
And see more
Dol Ver.6.1
Move this code:
if( $mode == 'admin' )
$ret = $this->getBlockCode_SitePolls();
else {
$ret = '';
Bellow this line:
$sPic = get_member_icon( $poll_arr['ID'], 'left');
$sPoll = ShowPoll( $poll_arr['id_poll'] );
-------------------------------------------------------
Dol Ver 6.0.0005
Move this code:
if( $mode == 'admin' )
{
$ret = PageCompSitePolls();
}
else
{
$ret = '';
Bellow this line:
$NickName see more
Cheers.
Solve my problem too ...