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)

Hellcat 02-14-2006 04:24 AM

Quote:

Originally Posted by BrandiDup
Can I kiss your feet? Seriously, thank you so much. I've been requesting this since I got vB last year. Installed flawlessly and my members LOVE it. Thank you sooo sooo much.

[high]* Hellcat puts off his shoes
[/high]
Sure, get over here ;):D

Seriously: Glad you have so much use for it :):up:
Quote:

Originally Posted by BrandiDup
Is there a way to make more than one countdown?

At the moment it can only be installed once for one countdown.
(I tried to just change the product ID in the XML and some other identifiers - the second install still messed up the whole thing down to the unability to uninstall it - thankfully it was on my local dev. vB :D)

I might think of a way how to do more than one countdown per user....
[high]* Hellcat thinks
[/high]



Quote:

Originally Posted by BrandiDup
One quick question. Is there any way I can keep the border around the countdown, but stop it from spanning the whole width of the signature? I'd like to have it around the text, but not span the whole width of the board.

If you put the contents of the counter display template inside a 1x1 cells table it should do the trick.



Quote:

Originally Posted by Wachtmeister
Great, just 3 phrases cannot be translated:

Option to show a public countdown to a certain event
Yes
No

Maybe you can phrase these three in an update. Good work!

Whoops.... those slipped by....
The first however is the userprofilefiled decription, those don't use phrases :-/
But I'll overwrite the description with a phrase text, that should do it :D
Will all be phrased in the next update :up:

ConKien 02-15-2006 08:05 PM

Quote:

Originally Posted by Hellcat
Yes, that's right.
The countdown only shows if there's a signature for that post.
So if someone disabled sigs showing it's also not shown.
That's on purpose, but might be enhanced in future updates :)

Can you seperate the signature & this countdown event? I want the count down shown & no signature, if no countdown then show the signauture, something like

If (has countdown)
Show countdown
Else
Show signature (if enable)

My users hav to sacrify! They can't have both since it's will slow down if we have a big board and everyone showing theirs!

ktp101 02-15-2006 08:56 PM

nice hack, i'm useless at installing things but done this no problems

rammbs 02-17-2006 09:36 PM

mod installed. thanks!

Edit (spoke too soon):

installation went fine. no problems.

but when i go to "Edit Options" i get the error below...

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/thebe6/public_html/forums/profile.php(2687) : eval()'d code on line 64

if i move it to "Edit Profile". I see it there and no error like the above. BUT after making a countdown. i don't see it in my sig portion.

help please...

G_Man 02-17-2006 11:18 PM

Quote:

Originally Posted by Lineman28645
Question. Is there anyway we can make it so only admins or specified groups can use this feature?


Same question. Hack looks GREAT, but I would like to limit who has access, also.

If you get around to implementing something like this I will back to install in a heartbeat. :D

Hellcat 02-17-2006 11:36 PM

@rammbs:
That's weird.... I'll check it....

Also working on the usergroup permissions :)

rammbs 02-18-2006 03:49 AM

Hellcat, no need!

i found my culprit. it was an extra "if" in the "modifyoptions" template after installing another hack.

it's all good! again, nice mod and thanks!! :up:

ConKien 02-18-2006 03:54 AM

Quote:

Originally Posted by G_Man
Same question. Hack looks GREAT, but I would like to limit who has access, also.

If you get around to implementing something like this I will back to install in a heartbeat. :D

Or better yet, let the user purchase this option through Ebux/Estore system! :)

Hellcat 02-18-2006 07:28 AM

Happy news :)
While I was walking through the code anyway, I got the usergroup permissions working :up:

You can now choose what usergroup(s) can use the countdown via the usergroupmanager!
New archive has been uploaded.


Quote:

Originally Posted by rammbs
Hellcat, no need!

i found my culprit. it was an extra "if" in the "modifyoptions" template after installing another hack.

it's all good! again, nice mod and thanks!! :up:

Cool, so I can stop looking ;)


Quote:

Originally Posted by ConKien
Or better yet, let the user purchase this option through Ebux/Estore system! :)

Hmm.... cool idea!
I might think about a way of including this as an action in eStore :up:

Diggazz 02-18-2006 10:45 AM

Not working here it wont save the info or display anything

got1-2 02-18-2006 11:54 AM

Quote:

Originally Posted by Diggazz
Not working here it wont save the info or display anything


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....

SuperJETT 02-18-2006 01:41 PM

I'm baffled, nothing appears to have changed.

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.

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.

Uninstalled for now sadly. This sounds like a great addon.

BTW, 3.5.3 with a few addons, PHP 4.4.1 with Apache 1.3.34 on Linux.

G_Man 02-18-2006 02:56 PM

Quote:

Originally Posted by Hellcat
Happy news :)
While I was walking through the code anyway, I got the usergroup permissions working :up:

You can now choose what usergroup(s) can use the countdown via the usergroupmanager!
New archive has been uploaded.



Fantastic! Up to my ears with some other things atm, but will be back to install this later this weekend. Thanks! :D

rammbs 02-18-2006 03:04 PM

thanks for the update!

mholtum 02-18-2006 03:16 PM

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.

rammbs 02-18-2006 03:26 PM

Quote:

Originally Posted by SuperJETT
I'm baffled, nothing appears to have changed.

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.

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.

Uninstalled for now sadly. This sounds like a great addon.

BTW, 3.5.3 with a few addons, PHP 4.4.1 with Apache 1.3.34 on Linux.


@SuperJETT, please try this...

1. upload "plugins_usercountd.php" to ".../forum/includes/"
2. upload "bitfield_hc_countdown.xml" to "..forum/includes/xml"
3. then under "Plugin System" --> "Manage Products" --> "Add/Import Product"
4. import "product-hc_usercountdown110.xml"

5. go to "Usergroups"
6. edit your "Registered Users"
7. Scroll all the way down and click "Yes" to enable.
8. click "Update"

you're done.

hope this helps...

mholtum 02-18-2006 04:14 PM

Ok, Now I am getting the Options for the countdown displaying twice.

SuperJETT 02-18-2006 04:36 PM

I decided to give it one more shot, had to go in and edit the db manually though because on the last remove it didn't take the fields out properly apparently.

Short story = db is messed up. I have some work to do.

Quote:

Originally Posted by rammbs
@SuperJETT, please try this...

1. upload "plugins_usercountd.php" to ".../forum/includes/"
2. upload "bitfield_hc_countdown.xml" to "..forum/includes/xml"
3. then under "Plugin System" --> "Manage Products" --> "Add/Import Product"
4. import "product-hc_usercountdown110.xml"

5. go to "Usergroups"
6. edit your "Registered Users"
7. Scroll all the way down and click "Yes" to enable.
8. click "Update"

you're done.

hope this helps...


lordofgun 02-18-2006 05:22 PM

Yikes. This is causing an extra query per post on showthread.php. 38 queries had me freaked out!

SuperJETT 02-18-2006 06:08 PM

Argh.

SuperJETT 02-18-2006 06:20 PM

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.

SuperJETT 02-18-2006 06:27 PM

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

Hellcat 02-19-2006 02:31 AM

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....

SuperJETT 02-19-2006 07:45 AM

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?

Hellcat 02-19-2006 08:30 AM

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

SuperJETT 02-19-2006 11:33 AM

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.

Hellcat 02-19-2006 11:50 AM

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!

heynurse 02-19-2006 12:55 PM

very nice, I'm sure our users will like this, easy install.

SuperJETT 02-19-2006 01:52 PM

BTW Hellcat, thanks, both for writing this, and for helping me get mine straightened out.

NoRespect 02-20-2006 07:34 AM

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

ImportPassion 02-25-2006 02:54 AM

I just realized that if you don't have a sig, this will never show either. Is there a way around that?

ImportPassion 02-25-2006 03:10 AM

Quote:

Originally Posted by lordofgun
Yikes. This is causing an extra query per post on showthread.php. 38 queries had me freaked out!

do u have ur options set to allow all posts on one page?

ImportPassion 02-25-2006 03:16 AM

Quote:

Originally Posted by BrandiDup
One quick question. Is there any way I can keep the border around the countdown, but stop it from spanning the whole width of the signature? I'd like to have it around the text, but not span the whole width of the board.

I know this was a couple weeks ago, but to solve this, just use the style attribute inline for the fieldset.
in template usercountdown_display
FIND:
PHP Code:

<fieldset class="fieldset"

REPLACE WITH:
PHP Code:

<fieldset class="fieldset" style="width:300px;"

or whatever width you want. You can also use percentage.
REPLACE WITH:
PHP Code:

<fieldset class="fieldset" style="width:50%;"

You also may need to add a <br/> before the fieldset tag.

lordofgun 02-25-2006 03:21 AM

Quote:

Originally Posted by 7thgenCivic.Com
do u have ur options set to allow all posts on one page?

nope

cbr929rrerion 02-25-2006 04:23 AM

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?

kr580 02-25-2006 04:53 AM

I somehow installed the product twice. Not sure how but now it's all messed up. After the second install it disappeared off the 'Manage Products' page.

I deleted most of the related parts in SQL but there's a few instances of the countdown that are mingled into certain tables that contain other stuff and I don't want to mess it up. Can you help me get rid of it completely? All in are in table 'datastore'. If you need the specific code LMK.

SuperJETT 02-25-2006 10:19 AM

Quote:

Originally Posted by kr580
I somehow installed the product twice. Not sure how but now it's all messed up. After the second install it disappeared off the 'Manage Products' page.

I deleted most of the related parts in SQL but there's a few instances of the countdown that are mingled into certain tables that contain other stuff and I don't want to mess it up. Can you help me get rid of it completely? All in are in table 'datastore'. If you need the specific code LMK.

Read his replies to me, had the same problem and he helped\me get it straightened out.

Hellcat 02-26-2006 07:39 AM

I'll punch together a "clean up script" this weekend for broken installs!

Gizmo999 02-26-2006 09:24 AM

Quote:

Originally Posted by rammbs
Hellcat, no need!

i found my culprit. it was an extra "if" in the "modifyoptions" template after installing another hack.

it's all good! again, nice mod and thanks!! :up:

I've installed but can't see the countdown, also got a modified modifyoptions template ( user select new searches). what do I need to do to alter this to get countdown to show up please??

A safe uninstaller would be useful or can i just delete the product and remove the Includes/plugins_usercountd.php and includes/xml/bitfield_hc_countdown.xml files??

I only want a small user group to have access to this product so I'm hoping queries won't be too much.

Hellcat 02-26-2006 10:00 AM

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.


All times are GMT. The time now is 11:36 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.01723 seconds
  • Memory Usage 1,866KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (26)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
  • (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