2009-07-29, 10:22 PM
OK. I want to know how to hide threads from guests. I want they to view that thread exist but i don't want they can read content in thread...
OR
I need something that will hide content in code tag from guests...
Please help me...
Thank you
I write it myself. Your support are sucks
look
go to inc/class_parser.php
FIND
and replace with
Please register or login to see links!
I can't belive that people need to pay 5-6$ on other sites to get this mod and I write it for 2-3 minutes without any support from this forum
Can you tell me how to increase size of "Please register or login to see links!"?
OR
I need something that will hide content in code tag from guests...
Please help me...
Thank you
I write it myself. Your support are sucks
look
go to inc/class_parser.php
FIND
if($options['allow_mycode'])
{
// First we split up the contents of code and php tags to ensure they're not parsed.
preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
$message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "<mybb-code>\n", $message);
}
and replace with
if($options['allow_mycode'])
{
// First we split up the contents of code and php tags to ensure they're not parsed.
if($mybb->user['uid'] == 0)
{
preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
$message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "<br><b>Please register or login to see links!</b><br>", $message);
}
else
{
preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
$message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "<mybb-code>\n", $message);
}
}
IF you register you wil get links and if you guest you wil getPlease register or login to see links!
I can't belive that people need to pay 5-6$ on other sites to get this mod and I write it for 2-3 minutes without any support from this forum
Can you tell me how to increase size of "Please register or login to see links!"?