vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Countdown Timer in signature (https://vborg.vbsupport.ru/showthread.php?t=118109)

Hellcat 06-08-2006 10:00 PM

Countdown Timer in signature
 
This is a port of my vB3.5.x "User Countdown Timer".
I had to change some parts of the install code to make it work with vB3.6, and here we go:

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 :D


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 :)

Ricky6039 06-09-2006 01:38 PM

Thanks Hellcat

Snake 06-10-2006 01:32 PM

Thanks a lot man! :D

Neal-UK 06-10-2006 04:19 PM

I installed this and noticed that the text for turning this on was missing and only the selection buttons were showing.

This text then appeared after a delay but now i've noticed that my search function text is missing.

SuperFly 06-10-2006 04:25 PM

Im getting no text for the selection in the admincp or in the usercp, just blank spots.

Neal-UK 06-10-2006 04:32 PM

Like i was above then, but they appeared suddenly for some weird reason. My Search functions text is missing now though, and i've re-uploaded the language.xml file to no avail and tried the tools.php file.

SuperFly 06-10-2006 04:50 PM

well, found out mine was just a conflicting hack, dont use v3pad with it.

Neal-UK 06-10-2006 04:52 PM

Never heard of that mod....

Problem only started since adding this, only got 4 hacks on the site as no point yet until it goes final.

Good hack though, users love it thanks very much.

KimmiKat 06-11-2006 03:16 PM

I installed it and I don't even see it in the options...

SuperFly 06-11-2006 04:37 PM

go to usergroup options youll see it there.

Neal-UK 06-12-2006 04:55 PM

This mod is not working, turned off and back on and all users get is this below.

SuperFly 06-12-2006 05:49 PM

did you edit usergroup permissions?

Try un-installing and re-installing

KimmiKat 06-12-2006 06:51 PM

Ah, didn't look there. Thanks! It works too. Some of my pregnent members will use it for the days until the birth of their young' uns!

Quote:

Originally Posted by KimmiKat
I installed it and I don't even see it in the options...


Alan @ CIT 06-16-2006 06:02 PM

Text isn't showing for me in the AdminCP -> Usergroup manager for me either

Edit 1: Or the UserCP

Edit 2: Also, you should change line 188 of plugins_usercountd.php to use $vbulletin->db->fetch_array() instead of mysql_fetch_array() as people like me who use MySQLi get:

Code:

Fatal error: Call to undefined function mysql_fetch_array() in C:\Program Files\Apache Group\Apache2\htdocs\vb_3.5.4\includes\plugins_usercountd.php on line 188
:)

Thanks,
Alan.

Hellcat 06-16-2006 07:33 PM

Somehow 3.6 doesn't rebuild the languages propperly here.... :confused:

A manual rebuild or simple resaving of any phrase will fix that (it does for me....)

Lottis 06-20-2006 05:02 AM

Installed and working good. Thanx Hellcat.

Lottis 06-30-2006 06:04 PM

This works, fore every users, unless one.
Do you have a clue why?

Ophelia 07-15-2006 06:29 PM

I had an older version installed.. now I get this error:

Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO vb_phrase ( languageid, varname, fieldname, text, product, username, dateline, version ) VALUES ( 0, 'field8_title', 'cprofilefield', 'User Countdown', 'vbulletin', 'Hellcat', '1152991682', '3.5.4' );

MySQL Error : Unknown column 'fieldname' in 'field list'
Error Number : 1054
Date : Saturday, July 15th 2006 @ 03:28:02 PM
Script : http://www.mysite.net/forum/boss/plugin.php
Referrer : http://www.mysite.net/forum/boss/plu...?do=productadd
IP Address : mynumber
Username : myname
Classname : vb_database

There are now to blank spaces under USERCP > OPtions, and if you try to save anything on this page, you get this:

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb_userfield SET
field7 = '',
field8 = ''
WHERE userid = 2564;

MySQL Error : Unknown column 'field7' in 'field list'
Error Number : 1054
Date : Saturday, July 15th 2006 @ 03:30:23 PM
Script : http://www.mysite.net/forum/profile.php
Referrer : http://www.mysite.net/forum/profile.php?do=editoptions
IP Address : mine
Username : me
Classname : vb_database
It no longer shows up in my plugins, so I can't remove it there. Any ideas how to get this removed? No one can update options now.

Ophelia 07-15-2006 07:26 PM

Okay.. got almost all of it figured out. I need to know how to remove the fields it created.

https://vborg.vbsupport.ru/

Until I get this figured out, we can't update Options.

Ophelia 07-16-2006 02:37 PM

Anyone know what I can do? Folks are trying to update their Options and I'm getting database errors up the whazoo.

Ophelia 07-17-2006 12:46 AM

This is also causing issues with our admin area. We can no longer edit a user's account without getting the database error. Someone PLEASE help!

Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb_userfield SET
field5 = '',
field1 = 'SAHM and wife',
field2 = 'Las Vegas',
field3 = 'reading, scrapping, chatting, spending time with family',
field4 = 'SAHM',
field7 = '',
field8 = '',
field10 = ''
WHERE userid = 6747;

MySQL Error : Unknown column 'field7' in 'field list'
Error Number : 1054
Date : Sunday, July 16th 2006 @ 09:42:18 PM
Script : http://www.mysite.net/forum/boss/user.php
Referrer : http://www.mysite.net/forum/boss/use...do=edit&u=6747
IP Address : myip
Username : me
Classname : vb_database

Cedric2 07-18-2006 11:32 PM

Installed then uninstalled until a fix for the text is found.

dknelson 07-28-2006 10:21 AM

Same here...I installed it but there is no text in the Usergroups in the admin panel or in the UserCP. Fields are there but no text or other explanation. Would like to use this when it is ready.

MrSDavidson 07-29-2006 06:06 PM

Quote:

Originally Posted by Ophelia
This is also causing issues with our admin area. We can no longer edit a user's account without getting the database error. Someone PLEASE help!

Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb_userfield SET
field5 = '',
field1 = 'SAHM and wife',
field2 = 'Las Vegas',
field3 = 'reading, scrapping, chatting, spending time with family',
field4 = 'SAHM',
field7 = '',
field8 = '',
field10 = ''
WHERE userid = 6747;

MySQL Error : Unknown column 'field7' in 'field list'
Error Number : 1054
Date : Sunday, July 16th 2006 @ 09:42:18 PM
Script : http://www.mysite.net/forum/boss/user.php
Referrer : http://www.mysite.net/forum/boss/use...do=edit&u=6747
IP Address : myip
Username : me
Classname : vb_database

are you using vB3.6, because it doesnt look like it and this is a 3.6 mod

dknelson 07-29-2006 08:39 PM

I'm using 3.6 RC 2. No text.

rex_b 08-08-2006 03:21 PM

Any updates on this for 3.6.0

TomasDR 08-09-2006 04:58 AM

I am using 3.6.0 Gold now and it isn't working. I see the permission setting, the settings in UserCP, I have some text in my normal signature, but no timer.

I have the proper settings and used this in 3.5.4 without problems.

Also for the record I uninstalled every hack before upgrading my board and then reinstalled the hacks I had.

dknelson 08-09-2006 10:25 AM

I too am running 3.6 gold. I still have it installed but disabled because I never did get any text to show up in RC3.

Don

Spookysalem 08-09-2006 11:04 AM

When i enable the plugin in manage products it does not show when i disable it it only shows on my edit opitions screen

User Countdown
Option to show a public countdown to a certain event
and thats all.

dknelson 08-09-2006 11:13 AM

Yea...I'll probably remove it completely soon. I was hoping for some help but I'm not sure that this one is being supported any longer. There have been no responses for a while.

Hicksatpd 08-14-2006 12:35 AM

Damn; I installed before reading the replies. I'm having the "it's there but there's no text" error. I'll have to uninstall. :(

Roxie 08-14-2006 01:27 AM

There is text. You need to save any phrase and it will rebuild. This is working fine on 3.6 Gold. :)

Takkero 08-19-2006 11:50 AM

i want this mod....any updates? :O

Maagic 08-22-2006 01:10 PM

I installed the 3.5 version then upgraded to 3.6 and it's still working fine.

Antyrael 08-23-2006 06:53 AM

Quote:

Originally Posted by Roxie
There is text. You need to save any phrase and it will rebuild. This is working fine on 3.6 Gold. :)

I can confirm this, after I saved a phrase, all the text appeared in both the Admin CP and the Edit Options page.

midirtrider 08-31-2006 05:23 AM

after install.. and when i try opening my usercp/ edit options I get this error..

Warning: require(./includes/plugins_usercountd.php) [function.require]: failed to open stream: No such file or directory in /includes/functions_user.php(362) : eval()'d code on line 3

Fatal error: require() [function.require]: Failed opening required './includes/plugins_usercountd.php' (include_path='.:/usr/local/lib/php') in /home/midirtri/public_html/vbulletin/forum/includes/functions_user.php(362) : eval()'d code on line 3

when I uninstall this mod, everthing works as normal???

rex_b 09-03-2006 04:10 PM

what template do I need to edit to move where the countdown is shown at?

rex_b 09-03-2006 04:52 PM

Also is there a way to create 2 or more countdowns?

tyranny 09-04-2006 01:29 AM

I got the countdown timer working perfectly, but if I try to move the countdown form the user fills in to any other part of the profile it stops saving the changes. The "Display Page" must be set to "Options: Other" or it does not save.

Is there anyway to fix it so you can select which area the options are shown in?
I can't even move it to "Edit Profile".

Thanks!

Goatpod 09-07-2006 10:22 AM

Working no probs, although I had to subtract 6 hours from the actual time of the event to get it accurate :)

Updating any phrase will get your missing text to show.


All times are GMT. The time now is 05:03 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.01501 seconds
  • Memory Usage 1,818KB
  • 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_code_printable
  • (4)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