to the default template to find template/postring_buttons.html found You usually edit the butt tag button to add the label that you want to add to the end of your post. Var bbtags = new Array ('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]') Lash=]','[/flash]', '','[/size]','[krabs=]','[/krabs]', {custom_tags.BBCODE_NAME});
you can see that I add'[krabs=]' in the back,'[/krabs]'then to.Lt; input; Ot; title=.quot; {L_BBCODE_D_HELP}.quot; /.gt;
added later (note is added later instead of replacement!!!) .lt; input type=.quot; button.quot; accesskey=.quot; d.quot; name=.quot; addbbcode18.quot; value=.quot; set hidden contents.Quot; title=.quot; add a hidden content (the user can browse after the user can browse).Quot; Please save the file as UTF8 and save the file after adding.
scavenging caching can see that the edit post has this option
next, we want to parse this content and come to the viewtopic.php
first we want to know the rule !
user access or visitor visit is not allowed.
you must reply to the post to see it!
visitors use a visitor's user's SID
user's SID
we get to the visitor's SID and USER_ID
to viewtopic.php, find $postrow = array (we add the following content! Notice is on the above
(here's the Baidu experience if you see a problem in the code format, please go to my blog to see Krabs)
$csid = (isset ($_COOKIE['phpbb3_itw5b_sid']))? $_COOKIE['phpbb3_itw5b_sid']: '';
$cid = (isset))? : '': '';
$cb = false; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / here to confirm that the user responded to the post
$con = mysql_connect. / / this is database ha!
if ($con) / / database connection successful
{
if (mysql_select_db (.Quot; localhost.quot; $con)) / / connection library name of your forum database name
//$tid = $row['forum_id'];
//$userid = $row['poster_id'];
break;
}
//echo.Quot;.Lt; br /.gt;.Quot; >
}
$message = $message. //message is the content of a post, and it is also the user's reply content.
$ts1 ='[krabs=]';
$ts2 ='[/krabs]'; / / the tag just added!
$ps = strlen ($message);
$ts3 ='.lt; P class=.quot; rules.quot;.Gt;
if ($cb = false)
{
$t1 = strpos. $message = substr ($message, 0, $t1). $ts3. Substr ($message, $t2, $ps);
//echo $ms. 3) -1;
}
//$message = $ms;