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)

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 12:51 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.02279 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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