vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Countdown Timer for your users (https://vborg.vbsupport.ru/showthread.php?t=107596)

Gizmo999 02-26-2006 12:40 PM

Quote:

Originally Posted by Hellcat
Usually a uninstall via the Product Manager works fine.
Onyl sometimes, esp. when re-installed with "Allow Overwrite" things could get a bit messy - therefor the cleanup script.

Also ATM countdowns only show when a sig is present and displayed - I'm going to tweak that as well.

So to unistall, remove via product manager, remove Includes/plugins_usercountd.php and includes/xml/bitfield_hc_countdown.xml files and then reinstall everything.

I didn't have a signature showing before the install and only added one after I installed then read the full thread :(

cbr929rrerion 02-26-2006 02:13 PM

Quote:

Originally Posted by cbr929rrerion
well i have it installed, its showing on edit options, i put in the info and it does not save anything.

so nothing in the sig line...

any ideas?


Help.. help

Gizmo999 02-26-2006 05:15 PM

phew, got it working, deleted the product, removed files then added text to my signature, made a test post, saw sig visible, upped files again, reimported product and hey presto all working fine.

Christie189 02-27-2006 09:13 PM

Please help me. I followed the instructions 100%. Now, the product is not showing up in the Installed Products list. And I have 3 of the slots in my profile. Yet, I cannot seem how to UNINSTALL this completly from my board? I got some SQL error a while ago. HELP!

Gabriela.B 02-28-2006 02:23 AM

Hello, I got everything installed; except something is not correct when I went to User Control Panel/Options

This is what it shows

Im not sure what it is

Gabriela.B 02-28-2006 01:43 PM

That thing really screwed my SQL Database, you might need to fix it! :ermm:

How do I delete it completely? Or does that mean I have to reinstall Forum?

Gabriela.B 02-28-2006 02:17 PM

Well I found how to fix it and SQL Database works better now, To the people who have SQL Database, this might help you

Go to Admin
User Profile Fields - User Profile Field Manager

Delete the Countdown, it will tell you that it has error but keep deleting all until you got them deleted, then your SQL Database will work as normal.

It worked for me. Hope this helps.

Calisse 02-28-2006 05:36 PM

Quote:

Originally Posted by The Chief
awesome hack :)

Wonderful. Mention in readme that you need to edit usergroups because at first i was like.. hmm that didnt work

Hellcat 02-28-2006 10:37 PM

@cbr929rrerion:
Try this (worked on my board):
Open the plugin "Usercountdown - Save Settings" and replace the complete contents with this:
Code:

  $vbulletin->input->clean_array_gpc('p', array( "countdownuserfield" => TYPE_STR,
                                                "cdsettings"        => TYPE_ARRAY ));

  $cdsettings    = $vbulletin->GPC["cdsettings"];
  $cdprofilefield = $vbulletin->GPC["countdownuserfield"];

  $cddata["enabled"] = $cdsettings[$cdprofilefield . "_enable"];
  $cddata["day"]    = $cdsettings[$cdprofilefield . "_day"];
  $cddata["month"]  = $cdsettings[$cdprofilefield . "_month"];
  $cddata["year"]    = $cdsettings[$cdprofilefield . "_year"];
  $cddata["hour"]    = $cdsettings[$cdprofilefield . "_hour"];
  $cddata["minute"]  = $cdsettings[$cdprofilefield . "_minute"];
  $cddata["event"]  = $cdsettings[$cdprofilefield . "_event"];
  $cddata["overmsg"] = $cdsettings[$cdprofilefield . "_overmsg"];

  $vbuserfields[$cdprofilefield] = serialize( $cddata );
  $vbuserfields[$cdprofilefield . "_set"] = "1";
  $vbuserfields[$cdprofilefield . "_opt"] = "";

  $userdata->set_userfields( $vbuserfields );



The cleanup script is almost done.... ;)

cbr929rrerion 03-01-2006 12:02 AM

Quote:

Originally Posted by Hellcat
@cbr929rrerion:
Try this (worked on my board):
Open the plugin "Usercountdown - Save Settings" and replace the complete contents with this:
Code:

  $vbulletin->input->clean_array_gpc('p', array( "countdownuserfield" => TYPE_STR,
                                                "cdsettings"        => TYPE_ARRAY ));

  $cdsettings    = $vbulletin->GPC["cdsettings"];
  $cdprofilefield = $vbulletin->GPC["countdownuserfield"];

  $cddata["enabled"] = $cdsettings[$cdprofilefield . "_enable"];
  $cddata["day"]    = $cdsettings[$cdprofilefield . "_day"];
  $cddata["month"]  = $cdsettings[$cdprofilefield . "_month"];
  $cddata["year"]    = $cdsettings[$cdprofilefield . "_year"];
  $cddata["hour"]    = $cdsettings[$cdprofilefield . "_hour"];
  $cddata["minute"]  = $cdsettings[$cdprofilefield . "_minute"];
  $cddata["event"]  = $cdsettings[$cdprofilefield . "_event"];
  $cddata["overmsg"] = $cdsettings[$cdprofilefield . "_overmsg"];

  $vbuserfields[$cdprofilefield] = serialize( $cddata );
  $vbuserfields[$cdprofilefield . "_set"] = "1";
  $vbuserfields[$cdprofilefield . "_opt"] = "";

  $userdata->set_userfields( $vbuserfields );



The cleanup script is almost done.... ;)


Thanks Hellcat that fixed it.. working perfect now..

Just one question, I want to change the way its displayed in the sig, like add breaks and maybe change font, where do I go to edit that part..

Thanks...

Hellcat 03-01-2006 12:13 AM

In your style manager locate the template "usercountdown_display" and edit it to your needs :)

cbr929rrerion 03-01-2006 12:45 AM

awesome, done deal.. looks great

Hanif 03-01-2006 05:28 AM

Does this work for 3.5.4???

Cant seem to get it working????

Ta,

Hanif

Hellcat 03-01-2006 08:48 AM

Should have no probs on 3.5.4.
Did you edit the usergroup permissions?

What exacltely doen't work?

Hanif 03-01-2006 06:25 PM

Quote:

Originally Posted by Hellcat
Should have no probs on 3.5.4.
Did you edit the usergroup permissions?

What exacltely doen't work?

Thanks for getting back in touch HellCat,
Ive edited it for the Usergroup, and said 'Yes' or enabled it, however, cant see it anywhere in the Signature options.

Kind regards,

Hanif

dxguru 03-13-2006 10:24 PM

Thanks for the great plugin Hellcat,
Just have one request/question about timezones ...

When setting up a countdown it doesn't seem to take into account the members timezone.
eg I set up a countdown that should have shown 30 minutes, instead I got 14 hours and 30 minutes.

Lottis 03-25-2006 09:14 AM

I get this error, when i try to import the xml- product file.
Duplicate entry 'countdownfield' for key 1

Does anyone know why, and how i can fix this?

presumined 03-29-2006 12:11 PM

I'm not getting it for some reason.

I uploaded the plugins_usercountd.php file to my includes directory, then went into the Admin CP > Plugin System > Manage Products > Add/Import Products, and uploaded the product-hc_usercountdown110.xml file.

I went to my User CP but nothing shows up. What have I done wrong? (Apologies - I'm new to VBulletin).

Also, how does clicking Install on this thread affect my plugin? I don't see how it can.

dano 03-29-2006 03:04 PM

Works fine on 3.5.4 btw. It is slowing my board down a bit as I have a pretty busy board. Wish there was a way to speed things up a bit. Any ideas?

oz_moses 03-30-2006 11:03 PM

Hi Dano, if the slowdown is due to one extra query per post, you could speed up your board by decreasing the number of posts shown on a page..

kr580 04-10-2006 07:26 AM

Have that cleanup script yet? :)

ijob 04-10-2006 03:22 PM

can u have more than 1 countdown?

Jordan17 04-10-2006 05:29 PM

[high]* Jordan17 installs (Installation 101 ;))[/high]

ChuckH 04-11-2006 06:04 PM

Quote:

Originally Posted by Hellcat
@cbr929rrerion:
Try this (worked on my board):
Open the plugin "Usercountdown - Save Settings" and replace the complete contents with this:
Code:

  $vbulletin->input->clean_array_gpc('p', array( "countdownuserfield" => TYPE_STR,
                                                "cdsettings"        => TYPE_ARRAY ));

  $cdsettings    = $vbulletin->GPC["cdsettings"];
  $cdprofilefield = $vbulletin->GPC["countdownuserfield"];

  $cddata["enabled"] = $cdsettings[$cdprofilefield . "_enable"];
  $cddata["day"]    = $cdsettings[$cdprofilefield . "_day"];
  $cddata["month"]  = $cdsettings[$cdprofilefield . "_month"];
  $cddata["year"]    = $cdsettings[$cdprofilefield . "_year"];
  $cddata["hour"]    = $cdsettings[$cdprofilefield . "_hour"];
  $cddata["minute"]  = $cdsettings[$cdprofilefield . "_minute"];
  $cddata["event"]  = $cdsettings[$cdprofilefield . "_event"];
  $cddata["overmsg"] = $cdsettings[$cdprofilefield . "_overmsg"];

  $vbuserfields[$cdprofilefield] = serialize( $cddata );
  $vbuserfields[$cdprofilefield . "_set"] = "1";
  $vbuserfields[$cdprofilefield . "_opt"] = "";

  $userdata->set_userfields( $vbuserfields );



The cleanup script is almost done.... ;)


fixed the no save problem for me!

ryancooper 04-11-2006 08:06 PM

Any way to use a javascript and make the countdown live so you can see it actulyl counting sown?

slim cutty 04-18-2006 02:52 AM

Invalid SQL:
INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile, datatype, product) VALUES ('countdownfield', 'hc_usercountdown_settings', '7', '0', '', 0, 0, 0, 'number', 'hc_usercountdown');;

after the hack wouldn't show I tried to re-install ... and got the message above. When I tried to unistalll it said that the plugin wasn't available... however it was in my database.

I can't uninstall this ... can someone help me out on which queries to run??? This hack has dissappeared from the plugin menu in my admincp; however, it still shows in edit options and I assume that remnants are still in the database.

*Edited
I figured it out... had to do the uninstalls manually... now it works just fine... thanks

help please! Thanks

dirtycrow 04-18-2006 08:42 PM

i tried to install this and now i have this in the users CP.

anyone have any ideas how to remove this? also the plug in is not listed in the "manage plug ins" page.

http://img.photobucket.com/albums/v2...te41820061.jpg

dirtycrow 04-19-2006 06:14 PM

since installing this, and then uninstalling this i get this error, when i attempt to edit a users profile. I checked in the User Profile Field Manager and there is no "field 35" to be found. how do i correct this? thoughts?

Quote:

MySQL Error : Unknown column 'field35' in 'field list'
Error Number : 1054
Date : Wednesday, April 19th 2006 @ 03:02:13 PM
Script : http://forums.xxx.com/admincp/user.php
Referrer : http://forums.xxx.com/admincp/user.php?do=edit&u=587
IP Address : xxx
Username : xxxx
Classname : vb_database

ryancooper 04-26-2006 08:31 PM

Is there a way to get this to show in a vb block? I tryed adding it to my /modules directory and adding a php block but no go.

halpern 05-14-2006 02:47 AM

Is there a version this for vb 3.5.4? It seems as though this doesn't work for it because I have tried installing it and I dont see it.. Thanks.

mholtum 05-14-2006 02:52 AM

It works. The check usercp / options but, you must have something in your sig I think.

halpern 05-14-2006 04:20 AM

I currently have a signature and when I go to Edit Options in the Miscellaneous section I don't see anything.

napukjon 05-17-2006 04:12 PM

Hasnt worked for me! No options in Edit Options for me to make timer with.

Hellcat 05-17-2006 07:12 PM

Quote:

Originally Posted by napukjon
Hasnt worked for me! No options in Edit Options for me to make timer with.

Set up usergroup permissions?

UncoderMom 05-24-2006 05:10 AM

Great hack! TY very much!!

installed

JulianWolf 05-28-2006 06:07 PM

The Timer is great, but it doesn´t look so fine togehter with the signature.

There is a black line, then the signature, then, without a space, the border with the timer inside. It´s too much different stuff, different fonts and so on.

I love the border so I think about ... how could I remove the black line and put the signature inside the border also? Then everything is inside the border, that would look nice.

I tried it out but I have no clue. Any suggestions, where to look for?

Best wishes, Julian!

Lea Verou 05-29-2006 12:54 AM

Quote:

Originally Posted by docvader
I can use this for things, such as, well, counting down to my next date. Glad you put the "years" option in there.

LOOOL!!! :D


Hellcat thanks for the nice modification. It's always nice to see such orignal and creative ideas! Thumbs up! Will probably install when I get over my database & hosting problems. Btw how many queries does this add? (No time to look at the code, sorry)

webgroup 05-29-2006 01:23 AM

nice hack!
Would like to see a version for the forum home page, to place a countdown to an especial event on the forum.

Like:
Countdown to: Vin Diesel VideoChat on the forum
(i used this example cause I have an entertainment forum)

slickdawg 06-06-2006 04:08 PM

I'm new to vb, and tried to install this on 3.5.4 and it didn't work.

So I uninstalled, and tried to reinstall. Now I get this:

Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile, datatype, product) VALUES ('countdownfield', 'hc_usercountdown_settings', '5', '0', '', 0, 0, 0, 'number', 'hc_usercountdown');;

MySQL Error : Duplicate entry 'countdownfield' for key 1
Error Number : 1062
Date : Tuesday, June 6th 2006 @ 11:57:50 AM
Script : http://forums.2daves.org/admincp/plugin.php
Referrer : http://forums.2daves.org/admincp/plu...?do=productadd
IP Address : my ip
Username : me
Classname : vB_Database



What do I need to do to fix this? Thanks!

noob

Hellcat 06-07-2006 12:33 AM

Yooohooo!

Finally....
I just upload an updated version of the countdown timer!

There are no changes to the countdown itself, but I completely replaced the install/uninstall code to perform cleanup actions during install!

If you have a messed up install or you are unable to (re)install or even uninstall the coundown, download the new version 1.12 and import it with "Allow Overwrite" enabled.

During install the product will now perform a cleanup, removing all remains of a previous installation, including left over install/uninstall codes that may cause problems, before doing the actual installation.


All times are GMT. The time now is 08:19 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.01406 seconds
  • Memory Usage 1,835KB
  • 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
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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