vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin Forum Sideblocks - Show Poll In Forum Sideblock (https://vborg.vbsupport.ru/showthread.php?t=266481)

Badshah93 07-07-2011 10:00 PM

Show Poll In Forum Sideblock
 
1 Attachment(s)
.::Show Poll In Forum Sideblock::.

-> Special Thanks To Paul M For allowing me to use one of the code from his one of the mod.

What is it?
=====================================

This mod will show the Poll in Forum Sideblock.

Features
=====================================

1. Enable/Disable the mod from admincp.
2. Get Latest Poll From Multiple Forum. New!
3. Get Poll From Particular Thread.
4. Fully Integrated with Vbulletin Forum Sideblock Manager

-> You can change display order
-> Cache Time


5. No Template Edits.

Upgrade Instructions
=====================================

1. Upload The New xml from Product manager in Admincp. (Don't Forget to click on overwrite)
2. Enable the mod and enter threadid or forumid's for fetching the poll.
3. Run clear system cache under Maintenance



New Installation Instructions
=====================================
1. In the Product Manager in AdminCP, import the product XML file.
2. Open Settings -> Show Poll In Forum Sideblock
Enable the mod and enter threadid or forumid for fetching the poll.
3. Run clear system cache under Maintenance



Uninstalling:
=====================================
1. You can disable the mod from admincp OR Uninstall the product from the Product Manager in the AdminCP.



Mod History:

v1.0 : 08 Jul 2011 : First Release.
v2.0 : 10 Jul 2011 : With More Features And Integrated with Vbulletin Forum Sideblock Manager.
v2.1 : 28 Jul 2011 : Fix Table Prefix Issue and added multiple forums feature.



-> Click On Mark As Installed If You Have Installed This Mod.
-> You Can Nominate it also for Mod Of The Month.

dlewisr 07-08-2011 04:38 PM

Great mod and so easy to install too. Marked as installed and rated too.
Thank you

Dr.osamA 07-08-2011 05:32 PM

thank you

installed

TheLastSuperman 07-08-2011 07:40 PM

Please keep comments related to this modification, all recent messages have been removed, those who posted will realize why otherwise reference here: https://vborg.vbsupport.ru/info.php?do=rules

Da-Vinci 07-08-2011 11:26 PM

Any chance we could have this mod to pull the latest polls from a Forum, rather than from a thread?

What I mean is this is designed for me to select the latest poll.

On my forum I have a dedicated section for polls, so Ideally, I would put that forum ID in and the latest poll would be displayed automatically rathter than me adding the the latest thread ID for a poll manually. Also is there a way to make the Poll's display at the top of my sidebar instead of at the bottom?

IMO, this should be a deafault Sidebar block for VB, but good work all the same installed and rated 4.

Badshah93 07-09-2011 02:29 AM

Quote:

Originally Posted by Da-Vinci (Post 2218375)
Any chance we could have this mod to pull the latest polls from a Forum, rather than from a thread?

What I mean is this is designed for me to select the latest poll.

On my forum I have a dedicated section for polls, so Ideally, I would put that forum ID in and the latest poll would be displayed automatically rathter than me adding the the latest thread ID for a poll manually. Also is there a way to make the Poll's display at the top of my sidebar instead of at the bottom?

IMO, this should be a deafault Sidebar block for VB, but good work all the same installed and rated 4.

Good Idea. will add that feature in updated version which i will releases soon.

and you can move the Poll at top of Sideblock by doing this:

Find:
Code:

{vb:raw sidebar}
ADD ABOVE IT


Code:

{vb:raw sideblock_poll}

BlueCheri 07-09-2011 06:13 AM

Thanx very useful

David_R 07-09-2011 06:52 AM

Thank You I have installated, looks good. :)

Aramist 07-09-2011 01:08 PM

HI

Any way to put it inside a forum block?

I guess it will be more flexible as a block.

Btw nice work. Gratz

Ty in advance..

tanerokutan 07-09-2011 04:35 PM

Installed but did not work. My version is 4.1.0

Badshah93 07-09-2011 05:14 PM

Quote:

Originally Posted by tanerokutan (Post 2218557)
Installed but did not work. My version is 4.1.0

i haven't tested this in 4.1.0 but it should work i think.

did u added


Code:

{vb:raw sideblock_poll}
After

Code:

{vb:raw sidebar}
AND

Enable the mod and enter threadid where poll is posted in Settings -> Show Poll In Forum Sideblock

Aramist 07-09-2011 07:48 PM

Same for me... 4.1.4..

I did all the steps bot does not show anything.. =/

Any clue?

Ty in advance

Badshah93 07-09-2011 08:03 PM

Quote:

Originally Posted by Aramist (Post 2218623)
Same for me... 4.1.4..

I did all the steps bot does not show anything.. =/


Any clue?

Ty in advance

have u made any sideblock for latest threads, or latest posts or custom html..

if not, then u need to create it to get these mod working.

Aramist 07-09-2011 11:35 PM

I have block for custom html

ccr 07-10-2011 07:02 AM

thank you so much

Only a question:

the poll block appears at the end

Is it possible to move up in the sidebar?

Badshah93 07-10-2011 07:08 AM

Quote:

Originally Posted by ccr (Post 2218819)
thank you so much

Only a question:

the poll block appears at the end

Is it possible to move up in the sidebar?

You can move the Poll at top by doing this:

Find:
Code:

{vb:raw sidebar}
ADD ABOVE IT


Code:

{vb:raw sideblock_poll}

OR

I will be releasing a new updated version soon which will be having all feature as other sideblock.

Ex:
Cache Time:
Displayorder

ccr 07-10-2011 10:38 AM

thank you for your help
I think this mod is very useful

bluered 07-10-2011 11:04 AM

Thanks:)

tanerokutan 07-10-2011 12:04 PM

Quote:

Originally Posted by aayushagrawal90 (Post 2218574)
i haven't tested this in 4.1.0 but it should work i think.

did u added


Code:

{vb:raw sideblock_poll}
After

Code:

{vb:raw sidebar}
AND

Enable the mod and enter threadid where poll is posted in Settings -> Show Poll In Forum Sideblock

Yes I did all of them but did not work :mad:

anyway, thank you . :)

Badshah93 07-10-2011 12:58 PM

Quote:

Originally Posted by tanerokutan (Post 2218897)
Yes I did all of them but did not work :mad:

anyway, thank you . :)

New Version (2.0) is now released which has little different coding then prev released. I would suggest you to try this.

reddyink 07-10-2011 01:32 PM

excellent features added on 2.0 update. Author seem to be taking feedback seriously and providing timely updates.

Aramist 07-10-2011 03:36 PM

I have no idea why.... but it doesnt work with "Everywhere Siderbar" Mod.

When i turn off "Everywhere Siderbar" it works fine.

Any Tip?

Ty

Lord. Dela 07-10-2011 03:40 PM

Dont Work For me :(

VB 4.05

Badshah93 07-10-2011 03:49 PM

Quote:

Originally Posted by Aramist (Post 2218978)
I have no idea why.... but it doesnt work with "Everywhere Siderbar" Mod.

When i turn off "Everywhere Siderbar" it works fine.

Any Tip?

Ty

Open Plugin Manager in Admincp

Search For Poll For Forum Sideblock By Ayush

Below that you will see a Cache Templates plugin, click on edit

Replace All with

Code:

$cache = array_merge((array)$cache,array(
'sideblock_polloption',
'sideblock_polloptions_table',
'sideblock_polloption_multiple',
'sideblock_pollresult',
'sideblock_pollresults_table'));

$cache[] = 'block_sideblock_poll';



let me know if this works out as i am using sidebar for index page only.

Aramist 07-10-2011 05:48 PM

No effects =/

It does not shows the poll block on the side bar...even in index.

=/

Badshah93 07-10-2011 06:29 PM

Quote:

Originally Posted by Aramist (Post 2219026)
No effects =/

It does not shows the poll block on the side bar...even in index.

=/

i don't use everywhere sideblock mod so for me there is default sideblock, which comes in index page only.

i will test this mod with everywhere sidebar mod and will try to find out the solution for it.


UPDATE:

HERE IS TRICK TO MAKE IT WORK WITH EVERYWHERE SIDEBAR MOD

Edit Poll For Forum Sideblock By Ayush in Forum Blocks Manager

find:

Template to Use

Change block_sideblock_poll to block_html

and save it...


Now Open Block_html template in style and manager

Paste the Following Code At Top

Code:

<style type="text/css">
.pollbar1,
.pollbar2,
.pollbar3,
.pollbar4,
.pollbar5,
.pollbar6 {
        height:10px;
      margin-top:1px;
 
}

.pollbar1 {
        background:{vb:stylevar pollbar1_background};
}

.pollbar2 {
        background:{vb:stylevar pollbar2_background};
}

.pollbar3 {
        background:{vb:stylevar pollbar3_background};
}

.pollbar4 {
        background:{vb:stylevar pollbar4_background};
}

.pollbar5 {
        background:{vb:stylevar pollbar5_background};
}

.pollbar6 {
        background:{vb:stylevar pollbar6_background};
}

#pollbarwrapper {
        position: relative;
        width: {vb:math {vb:stylevar pollbars_result_bit_width}+13};
        display:block;
        float: {vb:stylevar left};
        clear: {vb:stylevar right};
}

#pollbarwrapper div {
        float:{vb:stylevar left};       
}

.percentvotes {
        position: relative;
        margin: -12px 0 0 0;
        font-size:{vb:stylevar small_fontSize};
        font-weight:bold;
}


.pollquestion {
        font-size:12px;
}

.pollbuttons {
margin-top: 10px;
}

.pollres {
font-weight: bold;
font-size: 13px;
display: inline-block;
color: #B00;
}

.pollquestionmain {
font-weight: bold;
font-size: 13px;
display: inline-block;
color: #3E3E3E;
}
</style>


Aramist 07-10-2011 08:46 PM

Nice !

Works fine now.!!

Ty for the mod and your support !:D

Dr.osamA 07-11-2011 12:03 AM

thank you for update

keep it up man

ccr 07-11-2011 05:42 AM

You've made a great job with this update, thank you

Big-K 07-11-2011 06:25 PM

Installed, and nominated. thanks

wildheart 07-13-2011 03:05 PM

I love this mod but I am clearly doing something wrong.

I also have everywhere sideblock mod and I followed all your instructions on what to do, thanks.

I think I am misunderstanding this part:
2. Enable the mod and enter threadid or forumid for fetching the poll.

Do I only type in threadid? When I do and save it just goes back to 0?

What am I suppose to type there?

Sorry, I know it is a stupid question.

Badshah93 07-13-2011 03:13 PM

Quote:

Originally Posted by wildheart (Post 2220048)
I love this mod but I am clearly doing something wrong.

I also have everywhere sideblock mod and I followed all your instructions on what to do, thanks.

I think I am misunderstanding this part:
2. Enable the mod and enter threadid or forumid for fetching the poll.

Do I only type in threadid? When I do and save it just goes back to 0?

What am I suppose to type there?

Sorry, I know it is a stupid question.

You need to enter threadid if u want to fetch poll from particular poll..

if u want to fetch latest poll from a particular forum, then enter the forumid.


it goes back to zero, because you maybe typing threadtitle.

for ex:

Code:

http://x.com/x-forum/3463-x.html

3463 is a threadid


wildheart 07-13-2011 03:14 PM

Ok so I did everything right. Is it suppose to go back to zero after I typed threadid and saved?

wildheart 07-13-2011 03:17 PM

Wait a minute you mean the ID? I only learned that the forums actually had ID's a few hours ago. LOL. Sorry, I only started using vB on Saturday and I am Afrikaans spoken.

wildheart 07-13-2011 03:22 PM

Ok but I have several different numbers (Id's) where a poll can be, how do I add more than one Id?

This is how my forum is setup so far: http://reptile-parrots.com/forums/forum.php

I started a poll just to test this and added that forum's id and it is still not working.

Badshah93 07-13-2011 03:24 PM

Quote:

Originally Posted by wildheart (Post 2220051)
Ok so I did everything right. Is it suppose to go back to zero after I typed threadid and saved?

it should not go to zero.

Quote:

Originally Posted by wildheart (Post 2220053)
Wait a minute you mean the ID? I only learned that the forums actually had ID's a few hours ago. LOL. Sorry, I only started using vB on Saturday and I am Afrikaans spoken.


Ya every thread has id and which is unique. Just open any thread in ur forum which has poll and see for number in a url.

Badshah93 07-13-2011 03:28 PM

Quote:

Originally Posted by wildheart (Post 2220056)
Ok but I have several different numbers (Id's) where a poll can be, how do I add more than one Id?

This is how my forum is setup so far: http://reptile-parrots.com/forums/forum.php

I started a poll just to test this and added that forum's id and it is still not working.

For ex:

Code:

http://reptile-parrots.com/forums/showthread.php?42-Reptile-First-Aid-Emergancy-Kits
42 is a threadid. enter that in sidebar poll settings.

then see if that works.

If it doesn't work

then disable everywhere sidebar mod and then see if sidebar poll working.

wildheart 07-13-2011 03:34 PM

That means I have to search my whole board for where a poll is, or how would I put more than one Id in the forum part?

I did what you said and my test poll is now showing but with the wrong wording? Is it showing right or is it suppose to show the actual poll question and options?
http://reptile-parrots.com/forums/forum.php

wildheart 07-13-2011 03:36 PM

I see that the colour in my top stats has now gone to grey where it was white? Plus right at the top is now a forum bar in white that never used to be there and the part under it used to be white and is now grey?

Badshah93 07-13-2011 03:55 PM

Quote:

Originally Posted by wildheart (Post 2220062)
That means I have to search my whole board for where a poll is, or how would I put more than one Id in the forum part?

I did what you said and my test poll is now showing but with the wrong wording? Is it showing right or is it suppose to show the actual poll question and options?
http://reptile-parrots.com/forums/forum.php

1. you can enter the forumid if u want to fetch latest poll automatically. (only 1 forumid)
2. you must have done something wrong, thats why colour is changed.
3. You change sidebar Poll Title from Forum Sideblock manager
4. you can uninstall the mod if u don't like it :)


All times are GMT. The time now is 06:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01665 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete