PHPBB adds hidden tags to restore visible hidden content

time:16-09-19 forum:PHPBB forum program, plug-in collection and modification
  http://jingyan.baidu.com/article/03b2f7... 7ae9c.html

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; //echo $cout;
if ($cb = false)
{
$t1 = strpos. $message = substr ($message, 0, $t1). $ts3. Substr ($message, $t2, $ps);
//echo $ms. 3) -1;

}
//$message = $ms;


prev:Leisure tourists in the Mid Autumn Festi... next:The modification of the phpbb forum titl...
post comment
Notice



approved   Sichuan leg free man wrote thousands...   The domain name stolen and retrieved...   "Silly" old lady Ding Ruiyun: promis...   She is a former world champion, maki...   He was a high student at Yale, but h...
rand   The modification of the phpbb forum ...   PHPBB adds hidden tags to restore vi...   PHP framework, class library   Phpbb 3 display floor   Test backup function
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com