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)

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


All times are GMT. The time now is 02:01 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.01238 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)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