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)

SH0CK 06-09-2007 06:49 PM

Quote:

Originally Posted by mtalks1 (Post 1255878)
Find:
Code:

for ( $i = 2006; $i <= 2010; $i++ )

Just a suggestion, but try this so you don't have to keep changing the year every year:
Code:

for ( $i = date("Y"); $i <= 2020; $i++

Mum 06-09-2007 08:30 PM

Quote:

Originally Posted by Mum (Post 1183570)
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...

I'm still waiting for an answer from Feb :(

PinkLiquorice 06-10-2007 12:54 PM

I have tried all the things here but am still getting the same as Fireproof;1259800 with the little drop down bits. Any ideas?! I have changed everything apart from

Find:

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

Code:
for ( $i = 2007; $i <= 2010; $i++ )

I cant find it

PinkLiquorice 06-14-2007 05:02 PM

Anyone?! x

Mum 06-20-2007 01:59 AM

Still waiting :(

HaCaoChien 06-25-2007 03:41 PM

Installed but did not see User Countdown in Edit Options neither in vBulletin Options ?_?

ShawneyJ 07-26-2007 07:43 AM

works great took a few days till things appeared but mate its a day out for everyone lol.

Hellcat

Last Activity: 04. Jul 2006 11:21

why bring a mod out and never come back online, leave members in the lurch?

why is this mod still available for download?

RTFA 07-29-2007 02:03 AM

Nice Hack once I saw the phrase's thing. Clicked install.

Transverse Styles 08-12-2007 08:40 PM

make sure you upload all the files correctly! that is the problem. it's a tricky mod. and yes, try to install and then reinstall, and it'll work.

yaoren 08-13-2007 12:08 AM

installed, uninstalled and once more for luck... STILL couldn't get it to work on a 3.6.7 board.
Ah well, it was worth a try :)

ringleader 08-14-2007 10:20 AM

The following is a template and file change to show signature only, counter only, or both signature and counter depending on which are turned on in the UserCP by the member.

In the postbit template (not tested in postbit_legacy)

FIND
Code:

f condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>

REPLACE WITH
Code:

<!-- sig and countdown mod -->
                <if condition="$post['signature'] AND $counterhtml">
                        <div>
                                __________________<br />
                                $post[signature]
                                <br /><br />
                                $counterhtml
                        </div>
                <else />
                        <if condition="$post['signature'] OR $counterhtml">
                        <div>
                                __________________<br />
                                $post[signature]
                                $counterhtml
                        </div>
                        </if>
                </if>
<!-- /sig and countdown mod -->

In the file included with this mod plugins_usercountd.php

FIND AND DELETE
Code:

  if ( strlen($post["signature"]) > 0 )
  {

FIND
Code:

       
          eval('$counterhtml = "' . fetch_template('usercountdown_display') . '";');
         
          $sig = $post['signature'] . $counterhtml;
      $post['signature'] = $sig;
        }
  }
}

REPLACE WITH
Code:

          eval('$counterhtml = "' . fetch_template('usercountdown_display')  . '";');
  }
}

Hope this helps someone else.
Took me the good part of an hour to figure out how to do that :)
I just installed with no problems on 3.6.8

ravyn 08-16-2007 06:27 PM

ok, I uploaded the corrected php file, reinstalled the xml file, saved the phrases, but I do not see anything in the usergroup permissions that will allow/disallow the countdown timer and it does not show up anywhere in the usercp. I am running on vb 3.6.4. any suggestions?

paidtoshop 08-30-2007 10:20 AM

Does anybody know how i can get the drop down options to expand more so i can see the selections, I have installed ok on 3.6.7. but the drop down options are not easy to see

Thanks in advance

Ophelia 12-02-2007 12:20 PM

Installed twice and both times, code was missing from the usergroup area (no text showing what you were to change, but said YES/NO) and no text in the descriptions in USERCP. Uninstalling.

Catziggy 12-02-2007 07:20 PM

Tried it didnt work nice idea but unsupported and released with too many bugs

FCS-Webmaster 01-10-2008 04:04 AM

I had some trouble first too.
So I uninstalled and reinstalled it.
Refresged a lot and and used patience around 30 minutes.
I have to search the phrases - you find it under Phrases -> Global Settings - and rebuild it.

Works like a charm
Thnx for the great mod

Mum 01-12-2008 05:56 AM

Has anyone fixed the problem i reported? People are in different time zones, and this seems to work off the system timezone, which of course isn't correct. Has this been sorted out?

DieselMinded 01-15-2008 04:54 AM

Any Word on this?

plastourgos 01-15-2008 07:19 AM

didn't work on 3.6.8

TCE Killa 01-15-2008 10:54 AM

Quote:

Originally Posted by FCS-Webmaster (Post 1418773)
I had some trouble first too.
So I uninstalled and reinstalled it.
Refresged a lot and and used patience around 30 minutes.
I have to search the phrases - you find it under Phrases -> Global Settings - and rebuild it.

Works like a charm
Thnx for the great mod

Doesn't work for me, no text shows so what do you put into the phrases for it to all work? Thanks.

I use 3.6.8

kimmie-99 01-16-2008 12:00 PM

I don't see anything. I've installed this and there isn't anything showing up in the users Options!

FCS-Webmaster 01-17-2008 10:00 PM

Quote:

Originally Posted by TCE Killa (Post 1421849)
Doesn't work for me, no text shows so what do you put into the phrases for it to all work? Thanks.

I use 3.6.8

Go into your ACP -> Search for phrases

Search for Countdown then you will find several empty phrases.
Another way to find all containing phrases in this mod is to open the xml file in a editor like dreamweaver, note ++.
Then search in ACP for it and fill it yourself. As I reconized you need some patience for this mod :D

Mum 01-26-2008 05:42 AM

Quote:

Originally Posted by Mum (Post 1419972)
Has anyone fixed the problem i reported? People are in different time zones, and this seems to work off the system timezone, which of course isn't correct. Has this been sorted out?

Just making sure this doesn't get lost :)

BucShot 01-27-2008 05:18 PM

lol, yeah I guess you could say this mod has a learning curve but it does work. (I have it running fine on 3.6.8) Probably not the best mod for a newbie to start out with but if you get Mtalks1's edited file attachment and follow his instructions from page 8 of this thread, you should be able to get it working.

Also...
If you don't mind a little editing (what the heck at this point right?) you can make it look a little better in the UCP by adding text and spaces to userfield_countdown in your User Profile Fields Templates. See attached...

FCS-Webmaster 01-29-2008 02:08 AM

Anyone who does have clue how to let this work in the profile?

Droptop 01-29-2008 04:06 PM

Not working for me either on 3.6.8 PL2, *uninstalled* :(

gbox master 01-30-2008 08:40 PM

Quote:

Originally Posted by Droptop (Post 1431779)
Not working for me either on 3.6.8 PL2, *uninstalled* :(

works for me m8 on the vB 3.6.8.PL2
installed and very nice
1 thing missing in the install txt
you must enable it in the usergroups :up:

sometimes the coders miss the point by miles
and they make the finest mods
so please coders put in the topic a very good how to do
we are all noobs don't forget :p

ChaosBurnt 02-09-2008 08:42 AM

What a great Mod', will prove invaluable for remembering those special days like anniversaries and birthdays, brilliant, thanks for this.

*installed*

rainyleaves 02-28-2008 04:47 AM

Please porting for VB3.7.0!!!

gbox master 03-24-2008 01:16 PM

some how the mod dont work anymore
i think its not compatible with other mods maybe

could i say this meens unstable ?
anyway i like the hack when it did work so i would like to get it to work again
if any wizzz here can help me out that would be apriciated

Chachacha 04-12-2008 06:52 PM

Wow, I wish I would have read this thread before wasting my time installing this on my site. Doesn't work. Uninstalling.

Aquestor 04-17-2008 10:06 PM

please make it usable for 3.7 :D

Ren? Kunze 04-19-2008 04:13 PM

Das wäre klasse ich habe es unter 3.6.9 installiert und es funktionierte super.
Leider aber nicht unter 3.7.

Wäre super wenn man es auch für 3.7 machen könnte ich vermisse es dort.

Bounce 04-29-2008 05:23 PM

Quote:

Originally Posted by Aquestor (Post 1493335)
please make it usable for 3.7 :D

vb's went gold , is this hack gonna be :D

Aquestor 05-06-2008 09:53 AM

Please porting for VB3.7.0!!!

Has someone done something like that? Is it possibel to use this Hack with 3.7?

Bounce 05-13-2008 08:12 PM

Quote:

Originally Posted by Aquestor (Post 1510233)
Please porting for VB3.7.0!!!

Has someone done something like that? Is it possibel to use this Hack with 3.7?

not yet no :(

Fireproof 05-17-2008 06:06 PM

Someone please fix this for vb3.7.0. My members are begging. :)

Andreas 05-23-2008 10:33 AM

plugins_usercountd.php
PHP Code:

    eval('$tempcustom = "' fetch_template('userfield_countdown') . '";');
    
$tempcustom str_replace"userfield""cdsettings"$tempcustom );
    
$tempcustom .= '<input type="hidden" name="countdownuserfield" value="' $profilefieldname '" />'

PHP Code:

$wrapper_template 'userfield_countdown';
$fields = array('radio_enable''text_event''text_overmsg''dayselect''monthselect''yearselect''hourselect''minuteselect');

foreach (
$fields AS $field)
{
    $
$field str_replace('userfield''cdsettings', $$field);


userfield_countdown
Code:

<input type="hidden" name="countdownuserfield" value="$profilefieldname" />

Fireproof 05-23-2008 01:29 PM

Quote:

Originally Posted by Andreas (Post 1528816)
plugins_usercountd.php
PHP Code:

    eval('$tempcustom = "' fetch_template('userfield_countdown') . '";');
    
$tempcustom str_replace"userfield""cdsettings"$tempcustom );
    
$tempcustom .= '<input type="hidden" name="countdownuserfield" value="' $profilefieldname '" />'

PHP Code:

$wrapper_template 'userfield_countdown';
$fields = array('radio_enable''text_event''text_overmsg''dayselect''monthselect''yearselect''hourselect''minuteselect');

foreach (
$fields AS $field)
{
    $
$field str_replace('userfield''cdsettings', $$field);


userfield_countdown
Code:

<input type="hidden" name="countdownuserfield" value="$profilefieldname" />

Is that the fix for VB3.7.0? Are we supposed to add the code somewhere? Replace some existing code with yours? Or what?

I have no idea what I'm doing, so if you can help me get this working by explaining a little more, that would be awesome.

thanks!

Bounce 05-23-2008 09:07 PM

Quote:

Originally Posted by Fireproof (Post 1528957)
Is that the fix for VB3.7.0? Are we supposed to add the code somewhere? Replace some existing code with yours? Or what?

I have no idea what I'm doing, so if you can help me get this working by explaining a little more, that would be awesome.

thanks!

agreed, i've tried adding the code to plugins_usercountd.php and editing the userfield_countdown template to no avail :(


All times are GMT. The time now is 12:16 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.01585 seconds
  • Memory Usage 1,845KB
  • 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
  • (9)bbcode_code_printable
  • (4)bbcode_php_printable
  • (10)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