
noman
How to Change Polls Block's Default Tab
Comments
| zaestar | 54 days ago![]() |
![]() | ![]() | |
![]() | I should have noted that I am running 6.1 as well. I tried looking through the source code but to no avail. | ![]() |
![]() | ![]() | ![]() |
| okweb | 54 days ago![]() |
![]() | ![]() | |
![]() | Change Polls Block's Default Tab to Admin, 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 edit, $mode = strlen($_GET['ppoll_mode']) ? $_GET['ppoll_mode'] : 'last'; To: $mode = strlen($_GET['ppoll_mode']) ? $_GET['ppoll_mode'] : 'admin'; best of luck!! | ![]() |
![]() | ![]() | ![]() |
| okweb | 54 days ago![]() |
![]() | ![]() | |
![]() | You have do this also, because lose of database array. 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 = "<b><a href=\"".getProfileLink($poll_arr['ID'])."\">{$poll_arr['NickName']}</a></b>"; Have no install with 6.0.0005, so this are not tested, but I think it will work. | ![]() |
![]() | ![]() | ![]() |
Post a Comment
Please login to post a comment.


































