Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
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
Posted on 03-09-05 09:32 PM Link | Quote
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("''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", '', $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
Posted on 03-10-05 06:13 AM Link | Quote
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
Posted on 03-10-05 06:26 AM Link | Quote
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
Posted on 03-10-05 10:46 AM Link | Quote
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
Posted on 03-10-05 10:53 AM Link | Quote
Originally posted by Nebetsu

if($action=='saveprofile'){


Then you should know what that does. That means if the users action is to saveprofile then submit all the data to the database.

Originally posted by Nebestu

Stupid smilies. Why doesnt Acmlm's have a [code] dealie?

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
Posted on 03-10-05 11:03 AM Link | Quote
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
Posted on 03-11-05 02:12 AM Link | Quote
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
Posted on 03-11-05 02:56 AM Link | Quote
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
Posted on 03-11-05 03:08 AM Link | Quote
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
Posted on 03-11-05 03:57 AM Link | Quote
Originally posted by Xeogred

Other than that, I'd say definintely make it more "attractive" and maybe do more things.



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
Posted on 03-11-05 10:45 AM Link | Quote
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
Posted on 03-11-05 10:37 PM Link | Quote
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 | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.028 seconds.