Michael.J Posted July 19, 2011 Share Posted July 19, 2011 View File (M34) Sidebar Poll Adds the poll contents from a topic into your forums sidebar. Topic selected from the admin cp. Includes permissions for who can view the sidebar poll. More information on copyright removal can be found here. Find IP.Board 4 version here.Keep up to date with DevFuse mod development and releases. Submitter Mike John Submitted 07/19/2011 Category User and Social Engagement Discussion URL Support Info <p>Get support from discussion topic.</p> Supported Versions IP.Board 3.3.x,IP.Board 3.4.x Link to comment Share on other sites More sharing options...
Timberwolf1771 Posted July 19, 2011 Share Posted July 19, 2011 This is a great idea, and I've just added your 3.1 version to my board and I love it! I was just curious if you were going to make a version where it pulls randomly from a forum, not just a thread. :D Great mod by the way!! Link to comment Share on other sites More sharing options...
HellaWicked Posted July 19, 2011 Share Posted July 19, 2011 This is a great idea, and I've just added your 3.1 version to my board and I love it! I was just curious if you were going to make a version where it pulls randomly from a forum, not just a thread. :D Great mod by the way!! Do you happen to have the link to the 3.1 sidebar poll Timberwolf? Thanks in advance. Link to comment Share on other sites More sharing options...
Michael.J Posted July 20, 2011 Author Share Posted July 20, 2011 This is a great idea, and I've just added your 3.1 version to my board and I love it! I was just curious if you were going to make a version where it pulls randomly from a forum, not just a thread. :D Great mod by the way!! I do still have the suggestion saved for future use but for the IPB 3.2 upgrade, I'm just updating for IPB 3.2 compatibility without any major changes. I don't want to get bogged down testing new features, once all the upgrades are out of the way, I will revisit upgraded mods. Do you happen to have the link to the 3.1 sidebar poll Timberwolf? Thanks in advance. http://community.invisionpower.com/files/file/3170-m31-sidebar-poll-101/ Link to comment Share on other sites More sharing options...
HellaWicked Posted July 20, 2011 Share Posted July 20, 2011 Thanks Michael. Link to comment Share on other sites More sharing options...
Isabella89 Posted September 1, 2011 Share Posted September 1, 2011 Get this when activating it: Fatal error: Uncaught exception 'Exception' with message 'topics is not an object' in /home/xxxxx/public_html/admin/sources/base/ipsRegistry.php:1039 Stack trace: #0 /home/xxxxx/public_html/admin/applications/forums/modules_public/forums/topics.php(690): ipsRegistry::getClass('topics') #1 /home/xxxxx/public_html/hooks/sidebarPollHook_ae17de73c362e91d47f7169182f1243a.php(91): public_forums_forums_topics->_generatePollOutput() #2 /home/xxxxx/public_html/admin/sources/classes/output/publicOutput.php(3336): sidebarPollHook->getOutput() #3 /home/xxxxx/public_html/admin/sources/classes/output/publicOutput.php(2639): output->templateHooks('<!DOCTYPE html>...') #4 /home/xxxxx/public_html/admin/applications/forums/modules_public/forums/boards.php(127): output->sendOutput() #5 /home/xxxxx/public_html/admin/sources/base/ipsController.php(302): public_forums_forums_boards->doExecute(Object(ipsRegistry)) #6 /home/xxxxx/public_html/admin/sources/base/ipsController.php(120): ipsCommand->execute(Object(ipsRegistry)) #7 /home/xxxxx/public_html/adm in /home/xxxxx/public_html/admin/sources/base/ipsRegistry.php on line 1039 Poll URL is added too. Hope this can be fixed :smile: Thanks. EDIT: Removing topic from the URL stops the board from throwing the error but no poll is shown. Link to comment Share on other sites More sharing options...
Michael.J Posted September 2, 2011 Author Share Posted September 2, 2011 Just tested on my test board no issue, if anyone else is able to reproduce this please let me know. What version of IPB are you using? Link to comment Share on other sites More sharing options...
media Posted October 24, 2011 Share Posted October 24, 2011 Why am i getting this error message when i turn this hook on????? Fatal error: Call to undefined method skin_boards_1::sidebarPollWrapper() in /home/my-host/httpdocs/forum/hooks/sidebarPollHook_4a5d534a1d3f97a5af30dfa2ecad066a.php on line 130 Link to comment Share on other sites More sharing options...
Michael.J Posted October 25, 2011 Author Share Posted October 25, 2011 Looks like the template bit wasn't added or cached in the skin files. Can you try rebuilding your skin cache and if that doesn't work an uninstall then re-install of the hook files. Link to comment Share on other sites More sharing options...
demoneyezer Posted October 25, 2011 Share Posted October 25, 2011 thank you ! ;) Link to comment Share on other sites More sharing options...
media Posted October 26, 2011 Share Posted October 26, 2011 Looks like the template bit wasn't added or cached in the skin files. Can you try rebuilding your skin cache and if that doesn't work an uninstall then re-install of the hook files. Thank you Michael, Uninstall/Reinstall solved the problem... :) Link to comment Share on other sites More sharing options...
changeindia Posted October 30, 2011 Share Posted October 30, 2011 how can i post a poll ? i can't seem to find any thing inside the hook to post a new poll. Link to comment Share on other sites More sharing options...
HellaWicked Posted October 30, 2011 Share Posted October 30, 2011 how can i post a poll ? i can't seem to find any thing inside the hook to post a new poll. Have you tried following step 3 of the hook's read me file? Step 3: Using Hook Open the Admin CP > System Tab > System Settings > DevFuse tab > (M32) Sidebar Poll. From there you can setup the settings for this hook. Link to comment Share on other sites More sharing options...
changeindia Posted November 2, 2011 Share Posted November 2, 2011 yes i have read that. I only see these things inside that installed hook. How am i suppose to enter the questions and the options to be displayed in the community? Link to comment Share on other sites More sharing options...
Marcher Technologies Posted November 2, 2011 Share Posted November 2, 2011 yes i have read that. I only see these things inside that installed hook. How am i suppose to enter the questions and the options to be displayed in the community? in the topic you link on the input there? :logik: Seems rather self-Explanatory setting. Link to comment Share on other sites More sharing options...
HellaWicked Posted November 2, 2011 Share Posted November 2, 2011 yes i have read that. I only see these things inside that installed hook. How am i suppose to enter the questions and the options to be displayed in the community? We're not using 3.2+ just yet, but we were using this hook for 3.1.4, but I'm assuming the settings are the same. So from my understanding of how to set up this hook is, first you start a topic that will include a poll with your desired question/s and its options. Once you're done creating the topic/poll, copy and paste the link to that topic/poll you just created in the field marked: "Topic URL". Link to comment Share on other sites More sharing options...
Michael.J Posted November 2, 2011 Author Share Posted November 2, 2011 Yep still the same, it pulls the poll data from the topic url you enter. Obviously you need a poll added to the topic url you enter. Link to comment Share on other sites More sharing options...
changeindia Posted November 3, 2011 Share Posted November 3, 2011 oh, i thought we could directly add poll without making topic. BTW, their seems slight problem :- Link to comment Share on other sites More sharing options...
Michael.J Posted November 3, 2011 Author Share Posted November 3, 2011 Because I'm using the template from the topic view, I can't fix this without writing my own template. The extra button is only shown to the topic creator however, so members won't see it like that. Link to comment Share on other sites More sharing options...
changeindia Posted November 3, 2011 Share Posted November 3, 2011 well, doesn't matter, it looks perfect for members. BTW, why does it say that guest cannot vote when in the settings, i have set permissions for everyone to vote ? Link to comment Share on other sites More sharing options...
Michael.J Posted November 3, 2011 Author Share Posted November 3, 2011 No particular reason, you can change the block permission setting to allow guests to view the hook. But I believe IPB doesn't allow guests to vote anyway? Link to comment Share on other sites More sharing options...
changeindia Posted November 3, 2011 Share Posted November 3, 2011 block permission already set to allow guest but still it doesn't, i guess its IPB issue. Link to comment Share on other sites More sharing options...
HellaWicked Posted November 3, 2011 Share Posted November 3, 2011 But I believe IPB doesn't allow guests to vote anyway? You're right, IPB doesn't. I could be wrong, but I think I read somewhere that the reason for that was because guests would tend to abuse the voting in the polls and some other resource reason I can't remember. That's a shame though. It would be nice to allow guests to vote, but also include a way to somehow control the abuse of the voting. Sometimes it's interesting to know what people (who are not members) think about a certain topic using a poll hook like this without necessarily forcing them to register. Link to comment Share on other sites More sharing options...
Aussie Cable Posted December 19, 2011 Share Posted December 19, 2011 I have a dark skin and the sidebar poll title color is too dark, how do I change this to show the same color as all other (Main) text? Text on all other skins are fine, the poll text is also fine on the dark skin (see examples bellow): Dark skin text (as you can see the other text is fine): All other skins are fine: Example 1 (IP.Board Skin): Another dark skin: Same dark skin with wrong color text in sidebar poll, but you can see all other sidebar text is fine: Any suggestions? Link to comment Share on other sites More sharing options...
Michael.J Posted December 20, 2011 Author Share Posted December 20, 2011 Try adding this to the skins ipb_styles.css file. Should make links the same color as the h3 text..ipsSideBlock a { color: #fff; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.