Jump to content


- - - - -

(M31) Sidebar Poll 1.0.1


  • Please log in to reply
30 replies to this topic

#1 MichaelJohn

MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 478 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 21 May 2010 - 08:45 AM

Posted Image

File Name: (M31) Sidebar Poll 1.0.1
File Submitter: MichaelJohn
File Submitted: 21 May 2010
File Updated: 2 Jun 2010
File Category: IP.Board v3.0.x
Resource Type: Hook
Version: 1.0.1

Resource Type: Hook
Version: 1.0.1 (10002) - Compatibility: IP.Board 3.0.x/3.1.x+
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.

v1.0.1 (28 May 10) Update: Fixed an issue with friendly urls and updated for IPB3.1 compatibility.

Click here to download this file

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#2 Antardhan

Antardhan

    Novice

  • Members
  • PipPip
  • 17 posts
  • Real Name:Antar
  • IPB Version:v3.0.x

Posted 21 May 2010 - 12:23 PM

Can't see the poll. Which Url is correct for the settings line? This one http://bla/index.php?showtopic=1 ?

Edited by Antardhan, 21 May 2010 - 12:49 PM.


#3 cinik

cinik

    Coder

  • Members
  • PipPipPipPipPip
  • 119 posts
  • IPB Version:v2.3.x

Posted 23 May 2010 - 12:37 PM

Thank you ;)

Edited by cinik, 23 May 2010 - 01:11 PM.


#4 MichaelJohn

MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 478 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 24 May 2010 - 12:45 AM

View PostAntardhan, on May 21 2010, 10:23 PM, said:

Can't see the poll. Which Url is correct for the settings line? This one http://bla/index.php?showtopic=1 ?

Yes either that or the friendly url version.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#5 Antardhan

Antardhan

    Novice

  • Members
  • PipPip
  • 17 posts
  • Real Name:Antar
  • IPB Version:v3.0.x

Posted 24 May 2010 - 08:46 AM

View PostMichaelJohn, on May 24 2010, 04:45 AM, said:

View PostAntardhan, on May 21 2010, 10:23 PM, said:

Can't see the poll. Which Url is correct for the settings line? This one http://bla/index.php?showtopic=1 ?

Yes either that or the friendly url version.


No, it's not working that, only in friendly url version, unfortunately. I've just cheked it on my forum.  ;)

Edited by Antardhan, 24 May 2010 - 11:10 AM.


#6 Monkeyman

Monkeyman

    Coder

  • Members
  • PipPipPipPipPip
  • 120 posts
  • Location:Russia
  • Real Name:Dmitry
  • IPB Version:v3.0.x
Contributor

Posted 27 May 2010 - 10:30 AM

Can't make it display as well. Sidebar block just doesn't show up, however I set full topic URL.

#7 MichaelJohn

MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 478 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 28 May 2010 - 01:47 AM

I've updated the hook file with a fix, you'll need to re-import the hook file again to update.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#8 Monkeyman

Monkeyman

    Coder

  • Members
  • PipPipPipPipPip
  • 120 posts
  • Location:Russia
  • Real Name:Dmitry
  • IPB Version:v3.0.x
Contributor

Posted 28 May 2010 - 06:37 AM

View PostMichaelJohn, on May 28 2010, 05:47 AM, said:

I've updated the hook file with a fix, you'll need to re-import the hook file again to update.
Now it works, thank you.

I'd also suggest you to make this block better looking. Now you have a block inside block which looks a bit ugly. Would be great if you got rid on inner frame which surrounds the poll.

#9 Shrimpkid

Shrimpkid

    Novice

  • Members
  • PipPip
  • 10 posts
  • IPB Version:v3.1.x

Posted 28 May 2010 - 06:50 AM

Is there copyright removal for this?

#10 MichaelJohn

MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 478 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 28 May 2010 - 08:15 AM

View PostMonkeyman, on May 28 2010, 04:37 PM, said:

View PostMichaelJohn, on May 28 2010, 05:47 AM, said:

I've updated the hook file with a fix, you'll need to re-import the hook file again to update.
Now it works, thank you.

I'd also suggest you to make this block better looking. Now you have a block inside block which looks a bit ugly. Would be great if you got rid on inner frame which surrounds the poll.

Most of the look is just pulled from the poll function, so unless I recreate the whole function it can be changed easily. You can however remove the outside box. Open Admin CP > Look & Feel Tab > select skin > Board Index > sidebarPollWrapper.

Replace the contents of the template bit with the follow then Save.

{parse js_module="topic"}
{$pollContents}

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#11 Monkeyman

Monkeyman

    Coder

  • Members
  • PipPipPipPipPip
  • 120 posts
  • Location:Russia
  • Real Name:Dmitry
  • IPB Version:v3.0.x
Contributor

Posted 28 May 2010 - 11:46 AM

View PostMichaelJohn, on May 28 2010, 12:15 PM, said:

Most of the look is just pulled from the poll function, so unless I recreate the whole function it can be changed easily. You can however remove the outside box. Open Admin CP > Look & Feel Tab > select skin > Board Index > sidebarPollWrapper.

Replace the contents of the template bit with the follow then Save.

{parse js_module="topic"}
{$pollContents}
Well, this way it just removes sidebar block wrapping, that's all. Still looks ugly, to be honest.
And my point was to have a more conventional poll view inside the standard side block.

Anyway, if you're planning to develop your hook any further, would be great to have more options for it. Maybe it's indeed wiser to have your own poll template, so we could change it. Right now I can't even change a poll template for the sidebar, because it's pulled from poll function :-(

#12 Shrimpkid

Shrimpkid

    Novice

  • Members
  • PipPip
  • 10 posts
  • IPB Version:v3.1.x

Posted 30 May 2010 - 10:35 PM

Clicking to view who voted for what on public polls does not work. D:

#13 MichaelJohn

MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 478 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 31 May 2010 - 08:16 AM

View PostShrimpkid, on May 31 2010, 08:35 AM, said:

Clicking to view who voted for what on public polls does not work. D:

Could you clarify what you mean, do you get any error? An example I can look at ?

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#14 Shrimpkid

Shrimpkid

    Novice

  • Members
  • PipPip
  • 10 posts
  • IPB Version:v3.1.x

Posted 31 May 2010 - 04:00 PM

Well this is what I want to see.
Posted Image

But when I click on it below
Posted Image

I just get taken to the top of the index.

#15 Monkeyman

Monkeyman

    Coder

  • Members
  • PipPipPipPipPip
  • 120 posts
  • Location:Russia
  • Real Name:Dmitry
  • IPB Version:v3.0.x
Contributor

Posted 31 May 2010 - 04:43 PM

Actually, I must say, that this is a very, very useful hook, but it definitely needs a fine tuning.
Michael, I hope, you'll find some time to improve it.

#16 Makaaveli

Makaaveli

    Post-aholic

  • Members
  • PipPipPipPipPipPipPip
  • 579 posts
  • Real Name:Anthony
  • IPB Version:v3.2.x

Posted 31 May 2010 - 10:28 PM

There's only one bug and shrimpkids mentioned it.

For public polls it doesn't let you view who voted, it just takes you to the top of the board when you try to click it.

Please can you fix this :S

#17 MichaelJohn

MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 478 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 01 June 2010 - 09:40 AM

Regarding the public poll problem, try this edit and let me know how it goes.

Open Admin CP > Look & Feel Tab > select skin > Board Index > sidebarPollWrapper.

Find:
{parse js_module="topic"}

Replace With:
<script type='text/javascript' src='{$this->settings['board_url']}/public/js/ips.topic.js'></script>

Save.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#18 Shrimpkid

Shrimpkid

    Novice

  • Members
  • PipPip
  • 10 posts
  • IPB Version:v3.1.x

Posted 01 June 2010 - 03:47 PM

Looks like it worked. (:

#19 Makaaveli

Makaaveli

    Post-aholic

  • Members
  • PipPipPipPipPipPipPip
  • 579 posts
  • Real Name:Anthony
  • IPB Version:v3.2.x

Posted 01 June 2010 - 03:52 PM

Do I need to do that for every skin? Or can i re-import the hook (would be alot quicker)?

#20 MichaelJohn

MichaelJohn

    Programmer

  • Modders
  • PipPipPipPipPipPip
  • 478 posts
  • Location:Australia
  • Real Name:Michael
  • IPB Version:v3.1.x
Contributor

Posted 02 June 2010 - 09:13 AM

View PostMakaaveli, on Jun 2 2010, 01:52 AM, said:

Do I need to do that for every skin? Or can i re-import the hook (would be alot quicker)?

Yes or you could apply the file edit to the hook.xml file and re-import it.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users