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)
-   -   Closed Poll thread title (https://vborg.vbsupport.ru/showthread.php?t=52610)

noppid 05-06-2003 04:27 AM

Quote:

Yesterday at 08:15 PM WEForums said this in Post #8
...doesn't seem to do anything....strange.....

EDIT: Nevermind. It doesn't work when locking a poll (locking the entire thread, that is).

We do not have this issue. When we lock a thread with a closed poll, the closed poll tag still shows. Maybe you can show the block of code you edited so we can debug.

Regards

Boofo 05-06-2003 04:38 AM

Quote:

Today at 12:21 AM noppid said this in Post #10
A query occurs for each thread with a poll attached that is going to be displayed to see if it is open or closed.

The guys that wrote vB are sharp, we're not dealing with "ALL" the posts in the forum when we do a display. We get the number of threads that is set in the admin panel displayed. So, if I'm reading this code correctly, a forum display of 15 threads occuring would yield - worst case senario if all 15 threads have polls - 15 additional queries per forumdisplay. This is usually about 3 or 4 from what I've seen. Boards with more polls may want to be aware of the over head though.


Thanks. That help?

Regards

I have a forum that is just for polls. So all of the threads would have polls. Ouch. ;)

noppid 05-06-2003 06:53 PM

Quote:

Today at 01:38 AM Boofo said this in Post #12
I have a forum that is just for polls. So all of the threads would have polls. Ouch. ;)
When ya think about it in the terms of the amount of queries some pages have, IMHO 15 indexed queries is not really an ouch. I'd think most of the lookups would actually be cached after the first time it ran as well. If you have a way of benchmarking then perhaps a true measure of the overhead could be taken. I'm curious to know how effiecent a single field indexed lookup is or isn't.

Thanks for the reply.

Regards

Boofo 05-06-2003 06:59 PM

Your idea here might be a good thing to add to my Polls Start Date and Time hack. I could have it automatically do a Poll Closed when the poll is over. Could I save some queries doing it that way?

noppid 05-06-2003 07:03 PM

Unfortunatly I'm not familiar with the code you refer to, but I'd be glad to look at it. Perhaps we can create a tighter piece of code for the Poll closed hack.

Got a link? Can ya post the code snippet for the hack and where it goes in what form?

Thanks

Boofo 05-06-2003 07:32 PM

It's in my signature in this message. ;)

WEForums 05-06-2003 09:30 PM

Quote:

Today at 06:27 AM noppid said this in Post #11
We do not have this issue. When we lock a thread with a closed poll, the closed poll tag still shows. Maybe you can show the block of code you edited so we can debug.

Regards

I followed the instructions. I created a new thread, locked the entire thread, and get "Poll:" still.

Anyone else having this problem?

Locking the poll works, but not the thread.

Boofo 05-06-2003 09:46 PM

Does it say Closed Poll: before you close the thread?

noppid 05-06-2003 09:50 PM

If the poll is closed yes, they are seperate functions.

Boofo 05-06-2003 10:06 PM

Here is the link to my poll hack. Let me know if you think we can combine the two. ;)

https://vborg.vbsupport.ru/attachmen...&postid=372862


All times are GMT. The time now is 09:52 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.01275 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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