Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 09-19-2007, 01:19 AM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be nice to see.
Reply With Quote
  #22  
Old 09-19-2007, 02:15 AM
G0F0RBR0KE G0F0RBR0KE is offline
 
Join Date: Mar 2005
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope it's release, if not. I'll take a look at it (which I am rite now )
Reply With Quote
  #23  
Old 09-21-2007, 07:17 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EvilAkuma View Post
I hope it's release, if not. I'll take a look at it (which I am rite now )
This is a good new, now 2 coders will look at it

In my forum there is only 1 usergroup for banned users and i use a hack that shows banned users in a list. Permanently banned users and the users banned for a while appear in this list together, but in messages (Postbit) both users appear as "Banned User". If in postbit or anywhere else in the message area shows the lift date of the ban, then it will be very understandable for users, admins and mods.

If this is not so hard to do, i will be glad to see this hack completed as soon as possible. :up:
Reply With Quote
  #24  
Old 09-23-2007, 08:49 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If all you want to do is display the time remaining on the ban whenever the user tries to log on, then...

1). Open 'includes/functions.php'
2). Find eval(standard_error(fetch_error('nopermission_bann ed', $reason['reason'], $date)));
3). ABOVE it insert:
PHP Code:
// start code 'ban time'

        
if ($date != $vbphrase['never'])
        {
            
$remain $reason['liftdate'] - TIMENOW;
            
$remain_days floor($remain 86400);
            
$remain_hours ceil(($remain - ($remain_days 86400)) / 3600);
            if (
$remain_hours == 24)
            {
                
$remain_days += 1;
                
$remain_hours 0;
            }

            if (
$remain_days <= 0)
            {
                
$timeremaining "<i>Will be lifted soon.</i>";
            }
            else
            {
                if (
$remain_days == 1)
                {
                    
$day_word $vbphrase['day'];
                }
                else
                {
                    
$day_word $vbphrase['days'];
                }
                if (
$remain_hours == 1)
                {
                    
$hour_word $vbphrase['hour'];
                }
                else
                {
                    
$hour_word $vbphrase['hours'];
                }

                
$timeremaining "$remain_days $day_word$remain_hours $hour_word";
            }

            
$date .= "<br />Time Remaining: $timeremaining";
        }

// end code 'ban time' 

Cheers,
David.
Reply With Quote
  #25  
Old 09-23-2007, 10:08 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol...

I was about to tell them
Reply With Quote
  #26  
Old 09-23-2007, 10:48 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FullyTested View Post
If all you want to do is display the time remaining on the ban whenever the user tries to log on, then...

1). Open 'includes/functions.php'
2). Find eval(standard_error(fetch_error('nopermission_bann ed', $reason['reason'], $date)));
3). ABOVE it insert:
PHP Code:
// start code 'ban time'

        
if ($date != $vbphrase['never'])
        {
            
$remain $reason['liftdate'] - TIMENOW;
            
$remain_days floor($remain 86400);
            
$remain_hours ceil(($remain - ($remain_days 86400)) / 3600);
            if (
$remain_hours == 24)
            {
                
$remain_days += 1;
                
$remain_hours 0;
            }

            if (
$remain_days <= 0)
            {
                
$timeremaining "<i>Will be lifted soon.</i>";
            }
            else
            {
                if (
$remain_days == 1)
                {
                    
$day_word $vbphrase['day'];
                }
                else
                {
                    
$day_word $vbphrase['days'];
                }
                if (
$remain_hours == 1)
                {
                    
$hour_word $vbphrase['hour'];
                }
                else
                {
                    
$hour_word $vbphrase['hours'];
                }

                
$timeremaining "$remain_days $day_word$remain_hours $hour_word";
            }

            
$date .= "<br />Time Remaining: $timeremaining";
        }

// end code 'ban time' 

Cheers,
David.
FullyTested, thanks for your interest but i'm not talking about this. I need a countdown which will show in postbit under the nick name or under the age, and only unbanned users will see this countdown.
Reply With Quote
  #27  
Old 09-24-2007, 12:02 AM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Breathex,

I've attached a simple mod to this post.
It will display the time remaining on a ban inside the postbit.
All members will see this.

Edit...
For the actual code, please see:
https://vborg.vbsupport.ru/showthread.php?t=158800
Reply With Quote
  #28  
Old 09-24-2007, 02:41 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FullyTested View Post
Hi Breathex,

I've attached a simple mod to this post.
It will display the time remaining on a ban inside the postbit.
All members will see this.

Install Instructions:

1). Import the product via the Admin CP
2). Open the 'postbit' and 'postbit_legacy' templates and
Find:
Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
BELOW it insert:
Code:
<!-- start code 'sbt' -->
<if condition="$post['ban_time_remaining']"><div class="smallfont">$post[ban_time_remaining]</div></if>
<!-- end code 'sbt' -->
3). Done.

I hope this is what you are looking for.
David.
Hi David,

It works like a charm my friend, thanks alot.
Reply With Quote
  #29  
Old 09-24-2007, 05:10 PM
FullyTested FullyTested is offline
 
Join Date: Aug 2007
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are very welcome.
Reply With Quote
  #30  
Old 09-24-2007, 11:20 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

David, i have a small but important problem with the codes. After i imported the product, it writes "Ban is Permanent!" on some of my members postbits but they are not banned. I'll be glad if u find a solution for this problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:09 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.07703 seconds
  • Memory Usage 2,295KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete