Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Countdown Timer for your users Details »»
Countdown Timer for your users
Version: 1.12, by Hellcat Hellcat is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 02-09-2006 Last Update: 06-06-2006 Installs: 142
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

(inspired by this thread: https://vborg.vbsupport.ru/showthread.php?t=107226)

This little AddOn gives your users the option to show a custom countdown timer at the bottom of their signature.

Features:
  • Fully configurable via UserCP (see screenshot)
  • BB-Code can be used for eventname and overmessage
  • fully phrased/templated, nothing hardcoded and so fully customizable
  • leading days or hours with a value of "0" are not shown
    (so it shows "42minutes" rather then "0days 0hours 42minutes")

Installation:
Painless:
  • Upload "plugins_usercountd.php" to ".../forum/includes"
  • Import the product .XML

DONE
That's it.
No template edits, no nothing


Usage:
Go into your UserCP -> Edit Options
On the very bottom you will find the options for the Countdown Timer.
Set it to whatever you like, if "Enable" is set to "Yes" the timer will automatically be shown on the bottom of your sig, set to "No" will hide/disable the time display



Have fun


Update 1.10
[high]IF YOU UPDGRADE FROM A PREVIOUS VERSION, BE SURE TO UNISTALL THE CURRENTLY INSTALLED ONE BEFORE INSTALLING THE UPGRADE![/high]
(unfortunately all events will be lost)
  • [FIX] Phrased the last three things that were not (Yes/No of the enable radio and main description)
  • [NEW] Added Usergroup Permissions for the countdown!
    In the usergroupmanager it now has an area "User Countdown Permissions" where the admin can allow/enable or disallow/disable the countdown timer for each usergroup.

[high]If the usergroup permissions do not work, or even don't show up at all, you might need to rebuild the bitfield using this URL:[/high]
http://yourdomain.tld/pathtoforum/ad...buildbitfields

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
kraghen

Comments
  #62  
Old 02-18-2006, 06:20 PM
SuperJETT SuperJETT is offline
 
Join Date: Jan 2006
Location: Louisville, KY
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I need help on manually removing this plugin, my board is down currently. I've never had any problems like this with other plugins or my years of running phpbb forums and manually editting stuff.

Can anyone help me out? before viewthread died completely, I had 7 entries in the usercp for events. I know I haven't tried this 7 times, and I dug around in the templates and don't see multiple entries for anything related to this.
Reply With Quote
  #63  
Old 02-18-2006, 06:27 PM
SuperJETT SuperJETT is offline
 
Join Date: Jan 2006
Location: Louisville, KY
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is my error:

Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT field FROM vbuserfield WHERE userid='106';;

MySQL Error : Unknown column 'field' in 'field list'
Error Number : 1054
Date : Saturday, February 18th 2006 @ 02:26:28 PM
Script : http://www.x-h2o.com/showthread.php?t=750
Referrer : http://www.x-h2o.com/search.php?searchid=22848

Classname : vb_database
Reply With Quote
  #64  
Old 02-19-2006, 02:31 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by got1-2
Same problem here, if i set event, ans save, it wont show, and go back to edit options...there is no event???

im at a complete loss....
I'm having the same issue on my own live server.
I already tracked it down to some sort of misbehaviour of eval()'d code on some occasions.
I think I have soon at least a workaround for this....


Quote:
Originally Posted by SuperJETT
Uploaded the .php file to /includes/ then added new product with the .xml file and there is nothing anywhere and I've tried 3 different test accounts.

I also tried with uploading /xml/bitfield_hc_countdown.xml and no errors, but no options anywhere for countdown.
Did you edit the usergrouppermissions to allow usage of the timer?



Quote:
Originally Posted by SuperJETT
I've tried 2 different ways so far because the instructions don't mention the /xml/bitfield_hc_countdown.xml so I tried both with and without it.
Upload the contents of the "upload to ...." folder, the subfolder layou tin there is how it's supposed to be uploaded already....



Quote:
Originally Posted by mholtum
Great Idea, but I am a little lost.
I have followed your instructions and installed the mod, then I edited the user group properties.. But if you look at the image, I am not sure what to do.
That's weird :ermm:
Shouldn't look that way. Have to see and find what may cause this....



Quote:
Originally Posted by SuperJETT
Ok, I need help on manually removing this plugin, my board is down currently. I've never had any problems like this with other plugins or my years of running phpbb forums and manually editting stuff.
  • In the table "settings" delete all entries with "varname" = "countdownfield"
  • In table "profilefield" delete all entries with "title" = "User Countdown"
  • In table "userfield" drop all columns added by the countdown
  • SQL: DELETE FROM plugin WHERE product = 'hc_usercountdown';
  • In the product table delete the "hc_usercountdown" entry
  • Delete uploaded files



[EDIT]
OK, I did a few quick test, it seeme vB re-runns the install code even if it's already there. That shouldn't have happened....
That could be the cause for much troubles....
Reply With Quote
  #65  
Old 02-19-2006, 07:45 AM
SuperJETT SuperJETT is offline
 
Join Date: Jan 2006
Location: Louisville, KY
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellcat
  • In the table "settings" delete all entries with "varname" = "countdownfield"
  • In table "profilefield" delete all entries with "title" = "User Countdown"
  • In table "userfield" drop all columns added by the countdown
  • SQL: DELETE FROM plugin WHERE product = 'hc_usercountdown';
  • In the product table delete the "hc_usercountdown" entry
  • Delete uploaded files

Just did that, showthread.php isn't working currently after removing everything from the db and the files from /includes.
Code:
Warning: Unknown(./includes/plugins_usercountd.php): failed to open stream: No such file or directory in /includes/class_postbit.php(279) : eval()'d code on line 3

Warning: Unknown(./includes/plugins_usercountd.php): failed to open stream: No such file or directory in /includes/class_postbit.php(279) : eval()'d code on line 3

Fatal error: (null)(): Failed opening required './includes/plugins_usercountd.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xh2ocomg/public_html/includes/class_postbit.php(279) : eval()'d code on line 3
After uploading the files again just to see if it works:
Code:
Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT field17 FROM vbuserfield WHERE userid='290';;

MySQL Error  : Unknown column 'field17' in 'field list'
Error Number : 1054
Date         : Sunday, February 19th 2006 @ 03:39:46 AM
Script       : http://www.x-h2o.com/showthread.php?p=12134
Referrer     : http://www.x-h2o.com/index.php?
IP Address   : my ip
Username     : me
Classname    : vb_database
field 17 is gone of course, was one that I deleted from the db. Can you point out the code modifications I need to remove? I'm new to the .xml and can sort of understand it, but not completely.

It's a beautiful day in the neighborhood, a beautiful day for a neighbor....

BTW, I love the idea of this plugin, and will definitely install it once it's sorted completely.

EDIT: since I was down anyway, decided to see if reinstalling would at least get me functional since the database was corrected, and it did, for now. Counters are even working. Can I get verification that the plugin uninstall works properly?
Reply With Quote
  #66  
Old 02-19-2006, 08:30 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SuperJETT
EDIT: since I was down anyway, decided to see if reinstalling would at least get me functional since the database was corrected, and it did, for now. Counters are even working. Can I get verification that the plugin uninstall works properly?
Weird that it still wanted to access the files when the plugins are deleted....
Did the product / the plugins still show up on the plugin manager?

I just installed, uninstalled and reinstalled it several times on a test installation - didn't encounter any problems :-/
Reply With Quote
  #67  
Old 02-19-2006, 11:33 AM
SuperJETT SuperJETT is offline
 
Join Date: Jan 2006
Location: Louisville, KY
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellcat
Weird that it still wanted to access the files when the plugins are deleted....
Did the product / the plugins still show up on the plugin manager?

I just installed, uninstalled and reinstalled it several times on a test installation - didn't encounter any problems :-/
Try installing, reinstall with overwrite, then uninstall and see where you end up. I think that's what got me.
Reply With Quote
  #68  
Old 02-19-2006, 11:50 AM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's the point: NO OVERWRITE
Besides, after unistalling the overwrite is somewhat meaningless, since there is nothing to overwrite.

I think that's what causing the problems. Reinstalling by overwriting the current one (without uninstalling it first), and vB also re-runs the installer code (wich it shouldn't) and that really messes things up.

I will enhance the installer somehow to prevent that!
Reply With Quote
  #69  
Old 02-19-2006, 12:55 PM
heynurse heynurse is offline
 
Join Date: Jan 2002
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice, I'm sure our users will like this, easy install.
Reply With Quote
  #70  
Old 02-19-2006, 01:52 PM
SuperJETT SuperJETT is offline
 
Join Date: Jan 2006
Location: Louisville, KY
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW Hellcat, thanks, both for writing this, and for helping me get mine straightened out.
Reply With Quote
  #71  
Old 02-20-2006, 07:34 AM
NoRespect NoRespect is offline
 
Join Date: Oct 2005
Location: Houston
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have this running on a large board? I am curious about performance. It sure does add a lot of queries.

Very nice hack though.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10641 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete