Bbcode help

Started on the old forum in May 2011 · view the original in the archive · old links redirect here

No replies · 378 views · started 15 years ago · 1 min read

tamucq Junior · 13 posts #1

hey mate want to use a bbcode like @userprofile using this code but it wont work can any0ne help me?

if(substr_count ($text,"@")<=5) { $text=preg_replace ("/@(.*?)/ i","<a href= "index.php? a=viewuser&who=$ 1">$2</ a>", $text); }

ALL PROFESIONAL START FROM A NOOB !

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close