 |
 |
 |
 |
#280752 - 10/14/04 04:34 AM
Finished-[6.5] Time ban and notifications 1.04
|
Code Monkey
Registered: 05/23/01
Posts: 562
Loc: Austria
Add to del.icio.us
Digg it
|
Mod Name / Version: Time ban and notifications 1.04 <br /> <br /> Version 1.04 <br /> <br /> Description: <br />In previous versions of UBBThreads there has been a notification of staff when a user was banned or unbanned. <br />In the 6.5 this feature disappeared. <br />This mod ads this feature back. <br />In addition to this the mod adds the ability to specify the ban duration. If the user tries to login before the ban time is over, he is shown the time that still remains until he is going to be unbanned. After the time is over, the user is automatically unbanned when he tries to login. <br />The banned user receives an email about his ban, the ban reason and the ban duration. He also receives an email if he is manually unbanned. <br /> <br /> Working Under: UBB.Threads 6.5 <br /> <br /> Mod Status: Finished <br /> <br /> Any pre-requisites: none <br /> <br /> Author(s): Anno <br /> <br /> Date: 10/14/04 <br /> <br /> Credits: Ythan for testing and bug finding <br /> <br /> Files Altered: <br />/admin/showuser.php <br />/admin/changeuser.php <br />/templates/default/admin/showuser.tmpl <br />/ubbt.inc.php <br /> <br /> New Files: <br />none <br /> <br /> Database Altered: <br />yes <br /> <br /> Info/Instructions: <br />In the attachment. <br /> <br /> Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Edited by Anno (01/20/05 02:32 AM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#280754 - 10/15/04 12:42 AM
Re: Finished-[6.5] Time ban and notifications 1.0
[Re: domain123]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#280759 - 11/13/04 10:18 AM
Re: Finished-[6.5] Time ban and notifications 1.01
[Re: domain123]
|
User
Registered: 08/17/02
Posts: 34
|
I have no clue on what I am talking about, but I did not get it to work in 6.5 without some changes. <br /> <br />Since $isbanned always was 1 in my test, i was banning another moderator as test... this is when it always sent an banned PM (maybe mail) even if the $hasaccess checkbox was not changed... is this check if status moderator to avoid banning of mods? I never tried banning a normal user btw. but are experimenting there maybe now... if i have time. <br /> <br />I changed like this, and now it works for me, thought i dont really know what I have done <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />if ($hasaccess == "1") { <br /> $isbanned = "0"; <br />} <br />else { <br /> $isbanned = "1"; <br />} <br /> <br />Then later when one used showuser.php to look for the ban status it always said permanently banned... so i had to change the list(x,x,x,x,x) thing to fetch variables $banover and $banreason from the query... <br /> <br />list(xxxxxxxxxxxxxxxx,$floodcontrol,$banover,$banreason)=$dbh->fetch_array($sth); <br /> <br />have no clue what I am doing wrong from the start, does any of this make any sense, i am really newbie in php things...
Edited by Organizer (11/13/04 07:39 PM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#280766 - 01/03/05 06:42 PM
Re: Finished-[6.5] Time ban and notifications 1.01
[Re: domain123]
|
User
Registered: 10/14/03
Posts: 25
Loc: Russia, Moscow
|
Small bag in "Time ban and notifications 1.02" Attachment <br />need to add <br />#### in admin/showuser.php <br /> <br />## Search for: <br />list($lname,$dname,$email,$femail,$fullname,$sig,$homepage,$occ,$hobbies, <br />$loc,$bio,$textcols,$textrows,$extra1,$extra2,$extra3,$extra4,$extra5, <br />$picture,$visible,$acceptpriv,$onlineformat,$birthday,$showbday,$picwidth, <br />$picheight,$display,$view,$postsper,$textcols,$textrows,$stylesheet, <br />$preview,$picview,$picposts,$chosenlanguage,$flatposts,$timeoffset, <br />$frontpage,$startpage,$showsigs,$timeformat,$ereplies,$notify,$adminemails, <br />$emailformat,$regdate,$regip,$lastpost,$lastpostip,$rating,$rates,$usertitle, <br />$namecolor,$status,$banned,$coppa,$groups,$floodcontrol)=$dbh->fetch_array($sth); <br />## Replace with: <br />list($lname,$dname,$email,$femail,$fullname,$sig,$homepage,$occ,$hobbies, <br />$loc,$bio,$textcols,$textrows,$extra1,$extra2,$extra3,$extra4,$extra5, <br />$picture,$visible,$acceptpriv,$onlineformat,$birthday,$showbday,$picwidth, <br />$picheight,$display,$view,$postsper,$textcols,$textrows,$stylesheet, <br />$preview,$picview,$picposts,$chosenlanguage,$flatposts,$timeoffset, <br />$frontpage,$startpage,$showsigs,$timeformat,$ereplies,$notify,$adminemails, <br />$emailformat,$regdate,$regip,$lastpost,$lastpostip,$rating,$rates, <br />$usertitle,$namecolor,$status,$banned,$coppa,$groups,$floodcontrol, <br />$banover,$banreason)=$dbh->fetch_array($sth);
Edited by JoshPet (01/29/05 02:17 PM)
_________________________
Sorry for my english.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|