Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Acmlmboard support?. |
Acmlm's Board - I2 Archive - Acmlmboard support? - I want to make a User CP | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Nebetsu Shmee Level: 55 Posts: 1183/1574 EXP: 1291130 For next: 23059 Since: 09-01-04 From: Nebland Since last post: 3 hours Last activity: 1 hour |
| ||
Yeah I want to make a User CP because people are idiots and cant find things even when the only settings they can change are on one friggen page. Anyways: I've basically decided to cut up the Edit Profile page to a make it more "User Friendly" or "Idiot Proof". So I pretty much understand everything that goes on in the editprofile.php page, except for a small chunk. Can someone explain the significance of this code, please? if($action=='saveprofile'){ sbr(0,$postheader); sbr(0,$signature); sbr(0,$bio); if(!isset($title) or !$titleopt) $title=$loguser[title]; if($sex>2) $sex=2; $title=preg_replace("'<(b|i|u|s|br)>'si", '[\\1]', $title); $title=preg_replace("'(b|i|u|s|font)>'si", '[/\\1]', $title); $title=preg_replace("'].*?)>'si", '[img \\1]', $title); $title=preg_replace("'].*?)>'si", '[font \\1]', $title); $title=preg_replace("'<[\/\!]*?[^<>]*?>'si", '', $title); $title=preg_replace("'\[font ([^>].*?)\]'si", '', $title); $title=preg_replace("'\[img ([^>].*?)\]'si", '', $title); $title=preg_replace("'\[(b|i|u|s|br)\]'si", '<\\1>', $title); $title=preg_replace("'\[/(b|i|u|s|font)\]'si", '\\1>', $title); $title=preg_replace("'(face|style|class|size)=\"([^ ].*?)\"'si", '', $title); $title=preg_replace("'(face|style|class|size)=\'([^ ].*?)\''si", '', $title); $title=preg_replace("'(face|style|class|size)=([^ ].*?)'si", '', $title); Stupid smilies. Why doesnt Acmlm's have a [code] dealie? (edited by Nebetsu on 03-09-05 12:35 PM) (edited by Nebetsu on 03-09-05 12:36 PM) |
|||
DarkSlaya POOOOOOOOOOOORN! Level: 88 Posts: 3484/4249 EXP: 6409254 For next: 241410 Since: 05-16-04 From: Montreal, Quebec, Canada Since last post: 8 hours Last activity: 5 hours |
| ||
The $title thing filters things that can be put in a Custom Title. if($action == "saveprofile"){ is to check if the Edit Profile button has been hit... Seriously, anyone with little knowledge of php would know what it is. and sbr() stuff, I dunno because it's a custom function and I'm too lazy to check at Acmlmboard's source right now. |
|||
Sandy53215 Acmlm (10:55:31 PM): they're having fun for the first time in so long Level: 47 Posts: 382/948 EXP: 713034 For next: 53169 Since: 03-15-04 From: Milwaukee, Wisconsin (U.S.A) Since last post: 1 day Last activity: 4 hours |
| ||
If I am not mistaken I believe sbr gets rid of BR tags inside those fields. And yeah those things help filter things that users are stupid enough to put in. | |||
Nebetsu Shmee Level: 55 Posts: 1185/1574 EXP: 1291130 For next: 23059 Since: 09-01-04 From: Nebland Since last post: 3 hours Last activity: 1 hour |
| ||
Ok thanks. Also: I am editing PHP from previous programming experiance only. I dont know PHP all that well, but I understand enough programming to understand about 75 percent of whats going on. | |||
Sandy53215 Acmlm (10:55:31 PM): they're having fun for the first time in so long Level: 47 Posts: 383/948 EXP: 713034 For next: 53169 Since: 03-15-04 From: Milwaukee, Wisconsin (U.S.A) Since last post: 1 day Last activity: 4 hours |
| ||
Originally posted by Nebetsu Originally posted by Nebestu I asked for this feature a while back. (edited by Randy53215 on 03-10-05 02:08 PM) |
|||
Nebetsu Shmee Level: 55 Posts: 1186/1574 EXP: 1291130 For next: 23059 Since: 09-01-04 From: Nebland Since last post: 3 hours Last activity: 1 hour |
| ||
That wasnt really the trouble. It was the rest of it. That just made it in for some reason. | |||
Xeolord - B l u e s - Power Metal > All Level: 81 Posts: 1465/3418 EXP: 4884196 For next: 108653 Since: 03-15-04 From: Yeah Since last post: 15 hours Last activity: 15 hours |
| ||
Ha, not a bad idea for the ['code'] bit there. It would be extremely easy, just unsure of how you'd go about adding it to the toolbar I guess. |
|||
Sandy53215 Acmlm (10:55:31 PM): they're having fun for the first time in so long Level: 47 Posts: 384/948 EXP: 713034 For next: 53169 Since: 03-15-04 From: Milwaukee, Wisconsin (U.S.A) Since last post: 1 day Last activity: 4 hours |
| ||
Adding it to the toolbar part isnt that hard. But we are getting off track. What you adding to this CP besides all the user crap? I plan on making one soon. | |||
Xeolord - B l u e s - Power Metal > All Level: 81 Posts: 1466/3418 EXP: 4884196 For next: 108653 Since: 03-15-04 From: Yeah Since last post: 15 hours Last activity: 15 hours |
| ||
Honestly, the UserCP seems to be pointless other than it being a "placeholder" for more links. That's all it really is, a nice place to put links so the index isn't cluddered, and not a bad place for users to have their buddy list stored. Other than that, I'd say definintely make it more "attractive" and maybe do more things. ... Something I've been meaning to do myself. |
|||
Sandy53215 Acmlm (10:55:31 PM): they're having fun for the first time in so long Level: 47 Posts: 385/948 EXP: 713034 For next: 53169 Since: 03-15-04 From: Milwaukee, Wisconsin (U.S.A) Since last post: 1 day Last activity: 4 hours |
| ||
Originally posted by Xeogred Exactly what I plan on doing in mine. |
|||
Nebetsu Shmee Level: 55 Posts: 1188/1574 EXP: 1291130 For next: 23059 Since: 09-01-04 From: Nebland Since last post: 3 hours Last activity: 1 hour |
| ||
I've decided I dont want to make a User CP. Whenever I get started on it, I start thinking about how STUPID people are and it's because of other people's stupidity that I am doing this. So screw the stupid people. | |||
Sandy53215 Acmlm (10:55:31 PM): they're having fun for the first time in so long Level: 47 Posts: 386/948 EXP: 713034 For next: 53169 Since: 03-15-04 From: Milwaukee, Wisconsin (U.S.A) Since last post: 1 day Last activity: 4 hours |
| ||
Ah, well I will probably be making one soon. I see a lot of Erks control panel going around that wasnt even released. But anywho I think I have some pretty good ideas for the one I will be making. |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Acmlmboard support? - I want to make a User CP | | | |