Jump to content
DevFuse Forums
Michael

(M34) Sidebar Poll

Recommended Posts

File Name: (M34) Sidebar Poll

File Submitter: Michael

File Submitted: 15 Jul 2011

File Category: IP.Board Modifications

 

Author: Michael John (DevFuse)
Description: 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.

Keep up to date with DevFuse mod development and releases.

2ze9ngh.jpg 53qo7q.png 2r7m3v9.png 2lkwa4w.jpg 24wfq0z.png

 

Click here to download this file

Share this post


Link to post
Share on other sites

This hook has been updated to v2 and includes some new features and improvements made to code and layout.

 

  • New block for IP.Content.
  • New block for Portal.
  • Improved style, including hiding of 3rd button overlap.
  • Option to pull latest poll from selected forum.
  • Support for new automatic copyright removal, see here.

Share this post


Link to post
Share on other sites

Would it be possible to implement a "set as featured poll" button on the public side of things, for certain groups? This way, I can allow a user to set the poll without having to give them full access to settings in the admin CP.

Share this post


Link to post
Share on other sites

Would it be possible to implement a "set as featured poll" button on the public side of things, for certain groups? This way, I can allow a user to set the poll without having to give them full access to settings in the admin CP.

 

I've attached a modified version of the hook I did some time ago for someone else. you'll need to uninstall the sidebar poll hook and import this one.

 

sidebarPollCustom.zip

Share this post


Link to post
Share on other sites

Adds a setting for you to choose which groups can set the poll url. Then at the bottom of the poll, it will add a text field so you can enter a different poll/topic url. Basically allowing certain groups to change the poll url without accessing the admin cp.

Share this post


Link to post
Share on other sites

When a new user registers while this mod active, they get a blank index.php page. No error no nothing. Other members who validated before i installed this mod can login without problems. When i disable this mod, no problem occurs.

Edited by sk8erboi

Share this post


Link to post
Share on other sites

When a new user registers while this mod active, they get a blank index.php page. No error no nothing. Other members who validated before i installed this mod can login without problems. When i disable this mod, no problem occurs.

 

A blank page usually masks a php error. See this article on how to get to the real error.

Share this post


Link to post
Share on other sites

This is the error message.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /var/www/admin/sources/classes/output/formats/coreOutput.php on line 497

Share this post


Link to post
Share on other sites

Is there any way to customize the style of this to make it fit in custom themes? I'm using the Deviant 3 skin and this hook doesn't look that good on it could use some tweaking is all ;)

Share this post


Link to post
Share on other sites

Is there any way to customize the style of this to make it fit in custom themes? I'm using the Deviant 3 skin and this hook doesn't look that good on it could use some tweaking is all ;)

 

Unfortunately the best option I know of is to override the style in the hook. Can you give me an example of the hook in action and then I'll know which parts need changing.

Share this post


Link to post
Share on other sites

Here's a side by side comparison Default IP. Board skin on the left and the Deviant 3 on the right side:

 

Sidebarpoll_zps7381d0cc.png

 

It looks sorta okay in the default skin but could be tweaked a bit too, ex. making the options table widther so the results fit better, instead of having it now fill the whole thing if you know what I mean. But the obvious bug I'm talking about it the buttons on the Deviant skin.

Edited by Cabola

Share this post


Link to post
Share on other sites

The template bit you want to edit is in ACP > Look & Feel Tab > select skin > Board Index > sidebarPollWrapper. Because the hook pulls the poll straight from the topic templates, you really only have control over the wrapper as changes made to the poll template bit is made in the topics as well. For example change ipsPad to ips_half or make more space or even remove the wrapper itself. Everything is there but if you need specific instructions, let me know.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×