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)

PinkDaisy 02-12-2007 12:23 AM

Installed and seems to be okay!! I had to save a phrase to, in order to get all the text to show up!!

Jennifer Marx 02-12-2007 02:44 AM

This module works very well for me on 3.6.4. I did need to rebuild the phrases in order for it to display properly. It's also important to enable the countdown timer for each usergroup, as appropriate.

For the benefit of others trying to get this to work, be careful not to use the ampersand symbol (&) or quotes in the event name or end message, as this will cause the countdown timer to not display. And, of course, user's must have signatures for the countdown timer to display, too.

Additionally, you can get spaces in between the numbers and phrases (i.e., 15 hours instead of 15hours) by editing the necessary phrases.

Fitone 02-12-2007 07:23 PM

Anyone know what this error means?

Removing (remains of) pevious install.... DONE

Performing database alteration for new install....
Fatal error: Could not open public_html/includes/xml/bitfield_vbulletin.xml in /includes/class_bitfield_builder.php on line 126

I'm getting it when trying uploading the .xml file via VB.

Fitone 02-13-2007 01:40 AM

Ok I got it up and running however has anyone tried to hack in the seconds as well?

Can it be done?

Mum 02-13-2007 09:46 PM

Quote:

Originally Posted by Hellcat (Post 1009132)
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....)

Once i did this it worked perfectly :)

Mum 02-16-2007 01:47 AM

I installed this and thought it worked fine. However who's time frame does it use for the countdown? I set a countdown to something at 7pm tonight (which was 5 hours away), and it said 1 day 1 hour to the event. That's obviously wrong...

Deadly Assassin 02-18-2007 05:32 AM

Nah, this dont work for me, i have installed it a few times and various different bits are missing, either text or options.

Mum 02-18-2007 05:41 AM

I have now uninstalled.

akulion 03-23-2007 06:47 AM

ive tried it all
no workie :(

WAHMama 03-26-2007 03:08 PM

Thank you, had to do the phrase fix and now it's working great! Thanks for those who figured out how to fix that and for those who explained how to do that!

alfaowner 04-09-2007 11:01 PM

Quote:

Originally Posted by WAHMama (Post 1212772)
Thank you, had to do the phrase fix and now it's working great! Thanks for those who figured out how to fix that and for those who explained how to do that!

Hi all,

Worled first time for me on 3.6.4 will quite a lot of changes. BUT... I need to know what it is looking for in the template as it shows twice for me in the profile as I have a save button up the top of my profile and a svae button at the bottom and its puttng one box after each one!

Love to have this, please advise.

AO

idca 04-10-2007 12:24 AM

it didnt work. nothing shown in the usercp edit options.

xLYNZx 04-28-2007 06:11 AM

ive installed it with no probs, but no text is showing..imsure ill be able to figure it out but some members may not be able to

edit: the text doesnt show anywhere,not even on the countdown itself, only shows what i put in the boxes

alfaowner 04-28-2007 08:45 AM

This says it is supported, but I have asked that I am wanting to know what it is looking for in my template as I get two show up as I have two save buttons, any help lads?

bazzup 04-28-2007 09:48 AM

Quote:

Originally Posted by xLYNZx (Post 1236867)
ive installed it with no probs, but no text is showing..imsure ill be able to figure it out but some members may not be able to


edit: the text doesnt show anywhere,not even on the countdown itself, only shows what i put in the boxes



what i done to get text to show up is goto admincp/language phrases/phrase manager/ add phrase

type = global
product = user countdown
varname = usercountdown
text = usercountdown
add phrase

works for me

though it only works if you have a sig otherwise don't seem to show up

bazzup 04-28-2007 09:52 AM

Quote:

Originally Posted by idca (Post 1223707)
it didnt work. nothing shown in the usercp edit options.

you got to allow it in usergroup permissions


*edit just noticed times are in CMT i had to adjust the time by putting it forward 1 hour to suit my event.

can we not get this in gmt?

wengi 04-29-2007 11:37 AM

Hack is workin fine and showing in usergroups

Regards
Wengi

xLYNZx 04-29-2007 11:40 AM

Quote:

Originally Posted by bazzup (Post 1236933)
what i done to get text to show up is goto admincp/language phrases/phrase manager/ add phrase

type = global
product = user countdown
varname = usercountdown
text = usercountdown
add phrase

works for me

though it only works if you have a sig otherwise don't seem to show up

thanks, i took it off but will try again!

EDIT: did that and works perfectly, thanks!

bazzup 04-29-2007 11:48 AM

Quote:

Originally Posted by xLYNZx (Post 1237556)
thanks, i took it off but will try again!

EDIT: did that and works perfectly, thanks!

no worries ;)

Fireproof 05-04-2007 01:27 AM

Quote:

Painless:
Upload "plugins_usercountd.php" to ".../forum/includes"
Import the product .XML
Not really painless. It's definitely not as simple as those two steps, and I couldn't get it to work. Gave up.

Razin 05-05-2007 11:42 AM

Work it on 3.6.5??

zompus 05-20-2007 12:09 AM

I got it to work, check it out: http://www.doubleyellowcard.com/othe...html#post24992

V8Owner 05-20-2007 05:08 AM

Installed this & it works perfectly :)

Is there any way to bold & add some spaces to the date output?

"83days 17hours 6minutes"

leeman 05-20-2007 05:57 AM

Works like a charm on 3.6.7

giovannicosta 05-20-2007 10:11 AM

thanks:)

giovannicosta 05-20-2007 10:17 AM

nice mod but did not install...:(

teach1st 05-27-2007 01:56 PM

Quote:

Originally Posted by V8Owner (Post 1251257)
Installed this & it works perfectly :)

Is there any way to bold & add some spaces to the date output?

"83days 17hours 6minutes"

In Admin CP > Languages & Phrases > Search in Phrases

Make sure the product dropdown says "User Countdown" and do the three searches: "hours," "minutes," and "days."

Replace, for example, the word "day" with the word " day" ("day" with a space in front of it).

Works for me in 3.6.7:

http://www.pb5th.com/Polar_Bear_Fat/...5714#post35714

Aimee1969 05-28-2007 12:01 AM

thanks installed ;)

mtalks 05-28-2007 12:06 AM

Quote:

Originally Posted by teach1st (Post 1255536)
In Admin CP > Languages & Phrases > Search in Phrases

Make sure the product dropdown says "User Countdown" and do the three searches: "hours," "minutes," and "days."

Replace, for example, the word "day" with the word " day" ("day" with a space in front of it).

Works for me in 3.6.7:

http://www.pb5th.com/Polar_Bear_Fat/...5714#post35714


Yur stuff worked great. Where do you fix the box so you can put a ZERO for a year month or even day and also have the dropdown field be wider so you can see the day

teach1st 05-28-2007 01:01 AM

Quote:

have the dropdown field be wider so you can see the day
I've been mucking around, but can't find it.

mtalks 05-28-2007 01:13 AM

Ok after facing some of the same problems most users experienced we took everyones suggestions an added something to get it to look and work a little better.

I made a couple of changes to the plugins_usercountd.php

INSTALLED AND TESTED ON VB 3.67PL1 Corrected php file is attached at the bottom

The fields are the width of the phrase and you cant see the day, month or year unless you change the text to something other than day, year or month.


Find:
Code:

$profilefield["title"] = $vbphrase["day"];
Replace with:
Code:

$profilefield["title"] = $vbphrase["Select a Day"];
Find:
Code:

$profilefield["title"] = $vbphrase["month"];
Replace with:
Code:

$profilefield["title"] = $vbphrase["Select a Month"];
Find:
Code:

$profilefield["title"] = $vbphrase["year"];
Replace with:
Code:

$profilefield["title"] = $vbphrase["Select a Year"];
Find:
Code:

for ( $i = 2006; $i <= 2010; $i++ )
Replace with:
Code:

for ( $i = 2007; $i <= 2010; $i++ )
Save the file and upload the files as in the original instructions and then import the modified plugins_usercountd.php file. If you already have this installed then select to overwrite.

Goto admincp/language phrases/phrase manager/ add phrase

type = global
product = user countdown
varname = usercountdown
text = usercountdown
add phrase


In order for this mod to show you MUST go to the Manage User Groups and edit each group you wish to have access to this feature. It is located at the very bottom of the User Group Permissions. And each user must go to their UserCP and enable the countdown timer and have a signature enabled (it can be simple text but I suggest you add a couple <BR><BR> to give a few spaces between you signature and the countdown timer)

Enclosed are 3 screenshots of what it should look like in the UserCP, Group Permissions and the forum signature. I also included the fixed php file. <-- did not know if it was ok to do that and if not admin will remove I am sure.

Aimee1969 05-28-2007 01:22 AM

thanks mtalks1 ;)

cheekymonkey2 05-29-2007 10:44 AM

Great, thanks. Is there a way to give a user a signature by default?

That way, when they set the countdown up it appears immediately.

Fireproof 06-02-2007 03:00 PM

mtalks1 - I followed your directions, i think, but still have the problem with setting the dates. Can't see anything in the dropdowns besides the slider bar. see pic.

Would also like an automatic space added before the "My Countdown" signature starts. I don't have html enabled in sigs, so users can't put <br> spaces in their sig.

SLY LS1 06-05-2007 11:02 AM

edit

SLY LS1 06-05-2007 11:20 AM

Quote:

Originally Posted by Fireproof (Post 1259800)
mtalks1 - I followed your directions, i think, but still have the problem with setting the dates. Can't see anything in the dropdowns besides the slider bar. see pic.

Would also like an automatic space added before the "My Countdown" signature starts. I don't have html enabled in sigs, so users can't put <br> spaces in their sig.

Yes im getting the same thing..

the post did quite make sense to me, it asked to edit the plugins_usercountd.php file and upload it then down load another plugins_usercountd.php file and upload that ?

shouldnt your attached file be the product-hc_usercountdown_vb36b1.xml ?

Fireproof 06-05-2007 11:59 AM

I believe he applied the edits to the php file for us (even though he laid them out in his post) and attached that so we wouldn't have to do that. however, there appears to be a disconnect between it and the XML now or something. Something like the phrases aren't right anymore or something. I dunno - I'm a complete php noob.

But i would like to get this to work. :( It would be so useful for my forums, counting down to the end of a dieting cycle or something.

SLY LS1 06-05-2007 12:00 PM

Ok I couldnt work out mtalks1 edit so I changed the edits back and went to the AdminCP - Languages & Phrases - Language Manager - Edit / Translate English (US) Phrases

and found the ones to change

day - change to - Select a day

month - change to - Select a month

year - change to - Select a year

that basicly did the same thing and fixed it perfect

cheers

SLY LS1 06-05-2007 12:13 PM

To put the gap between the signature and the countdown go to

Admin CP - Styles & Templates - Search in Templates

Search for - usercountdown_display

Change from;

Code:

<fieldset class="fieldset">
<legend>$vbphrase[countdown_title]</legend>

<strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br />
<em>$counter</em>

</fieldset>

To;

Code:

<br><br>
<fieldset class="fieldset">
<legend>$vbphrase[countdown_title]</legend>

<strong>$vbphrase[countdown_counting_down_to]:</strong> $event <br />
<em>$counter</em>

</fieldset>

then click save

Fireproof 06-05-2007 02:21 PM

Awesome - you can ignore my PM. I sent it before seeing your post here. Let me try this tonight and see if that fixes it for me. I bet it does.


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.01740 seconds
  • Memory Usage 1,830KB
  • 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
  • (10)bbcode_code_printable
  • (11)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