vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Poll Start - End - Days Run/Remaining Hack v1.1 (https://vborg.vbsupport.ru/showthread.php?t=50785)

Bison 04-17-2003 08:15 PM

Well after taking that out, it seems to work ok for me. Long as the polls are printing out the date, it's ok with me!

Boofo 04-17-2003 08:20 PM

What's really strange is that is has been working for me with no problems. It seems it doesn't do this with everyone. Only certain sites. I'm curious as to why some have problems and some don't. That is why I want to fix it. ;)

Bison 04-17-2003 08:27 PM

I forgot to mention that the $pollrun has to be initialized to zero (No String) before executing the "if" statement.

subu1 04-17-2003 08:32 PM

Quote:

Today at 08:53 PM Zzed said this in Post #38
Try this:
PHP Code:

$pollrun "";
if(
$thread[pollid]) {
  
$polldatetime $DB_site->query_first("SELECT dateline, timeout from poll where pollid = $thread[pollid];"); 


yes sorry, for my remove :bunny: now it works perfekt :banana:

Boofo 04-17-2003 08:42 PM

Quote:

Today at 03:27 PM Rolodex said this in Post #43
I forgot to mention that the $pollrun has to be initialized to zero (No String) before executing the "if" statement.
https://vborg.vbsupport.ru/showthrea...480#post383480 ;)

Boofo 04-17-2003 08:43 PM

Quote:

Today at 03:32 PM subu1 said this in Post #44
yes sorry, for my remove :bunny: now it works perfekt :banana:
Great! I'll update the first post. ;)

subu1 04-17-2003 08:51 PM

on Pic my Forumdisplay

subu1 04-17-2003 08:55 PM

and my showthread :)

greetz subu

Boofo 04-17-2003 08:57 PM

What does Heute mean? Today? ;)

StealthAnime 04-17-2003 08:58 PM

danka for this hack m8, this will come in handy :)

Boofo 04-17-2003 09:00 PM

Quote:

Today at 03:58 PM StealthAnime said this in Post #50
danka for this hack m8, this will come in handy :)
Thank you for the kind words. ;)

Don't forget to click install. ;)

Bison 04-17-2003 09:29 PM

I saw that Boofo, but I had already done this before posting what I call "my fix" to this.

But I see no need for the $Pollrun to be *concatenated* to the forumdisplaybit>nav ... unless you have polls that show outside the forum.

Boofo 04-17-2003 09:35 PM

I did it for the forumdisplay so that users could see how long a poll had to run without having to go into the poll itself.

subu1 04-17-2003 09:40 PM

Quote:

Today at 09:57 PM Boofo said this in Post #49
What does Heute mean? Today? ;)
oh yes, this is my german Board. Today is Heute, Umfrage is poll, Tage is Day

greetz subu1

Boofo 04-17-2003 09:42 PM

Great! I just learned 3 German words. ;)

moosey 04-25-2003 10:29 PM

Boofo - great hack! worked first time and so easy to use!!

now for my cheeky bit!! :)

Is there a way of delaying the start dates for the polls to actually open?

say if I was running a competition thread and at a certain date the pool just opened for voting and then closed on the given date?

any ideas here?

many thanks

Boofo 04-25-2003 10:58 PM

You're very welcome. ;)

Don't forget to click the install button. ;)

As far as the delaying part goes, I'm not quite sure I understand what you are wanting to do.

moosey 04-26-2003 06:57 AM

clicked it mate :)

many thanks - as far as my request goes..

I run a competition in certain threads ...

some of these competitions are 7 days long but I dont want people voting until 2 days before the end of the competition.

So I need a delay in the poll, so is there a way of setting the poll to start on a different date then it starting automatically on that day

so a delayed poll i guess :)

thx man

Crazy Pete 05-16-2003 07:50 PM

Very nice addition. :D Installed.

Boofo 05-16-2003 07:57 PM

Thank you for the kind words. Enjoy! ;)

Mike Gaidin 05-16-2003 09:22 PM

Great hack Boofo. Gonna install it tonight. :)

Boofo 05-16-2003 09:32 PM

Thank you and enjoy! ;)

DelFDgfd_gT 05-21-2003 02:04 AM

how do i change the colors?

In showthread.php when viewing a thread you see this:

test poll forum
Start Date: 05-20-2003 | End Date: 05-25-2003 | Days to Run: 5 | Days Remaining: 4

the "test poll forum" is in white and the "Start Date: 05-20-2003 | End Date: 05-25-2003 | Days to Run: 5 | Days Remaining: 4" is in black.
This is unreadable because it is on adark blue background.

Anyways to help?

Boofo 05-21-2003 02:07 AM

You need to add the colors to the code in the showthread.php. Also, there is going to be an update to this in the next week or so, so you might want to click the install button so you will be notified when it is updated. ;)

DelFDgfd_gT 05-21-2003 02:10 AM

can you tell me how to change the colors to #ffffff

Mike Gaidin 05-21-2003 02:28 AM

Forgot to mention that I installed it and it works great Boofo.

DelFDgfd_gT 05-21-2003 04:14 AM

well.....can you tell me how to change the colors to #ffffff

DelFDgfd_gT 05-22-2003 04:37 AM

un-installing due to lack of support. help me out, and i'll re-install.

Boofo 05-22-2003 04:46 AM

How did I know you had it installed if you never clicked the install button? ;)

DelFDgfd_gT 05-23-2003 01:17 AM

why cant you just tell me how to change it so I can re-install it.

Thanks.


All times are GMT. The time now is 01:02 AM.

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.01225 seconds
  • Memory Usage 1,771KB
  • 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
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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