MyBB Community Forums

Full Version: Url add after 20 posts in threads.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello all members,
i am stuatt from india. i am new to mybb and installed it on my website somedays ago.
the problem is that, i want to allow my members, they can add external URL in their post after 20 posts.(not in signature).
how can i do that. please tell me step by step.

i also want to know how can i add some text with background in Homepage Like Mybb Community page.

Latest News: MyBB 1.6.9 Security Release (December 15, 2012)

Like MyBB on Facebook: Do you use Facebook? Like our page.

Follow: MyBB on Twitter.

Please help me to solve this issues.
thanks,

oh please reply someone...
i can see here is lot of reply but not any reply...

i didn't got any reply yet..
please tell me is that possible in mybb or not...
Go to Templates & themes -> Templates -> Your THEME Templates -> Index

& add this just below {$header}

<p class="alert"><strong>Latest News:</strong> I am from India [Replace this text :P]</p>

Now Go to Templates & themes -> Themes -> Your THEME -> Global.css -> Edit in advanced mode

& add this at the top:


.alert {
    background: COLOR CODE;
    border-bottom: 2px solid COLOR CODE;
    border-top: 2px solid COLOR CODE;
    margin: 10px auto;
    padding: 5px 20px;
   


Just replace COLOR CODE with the Hex of your color, example: #aaa, #ccc, #1a1a1a, etc.
thanks,
but what about URL in posts after 20 posts...???
Yes will be nice to have this function, in this cases we will not receive spamm, but only people who are really interested to post into the forum. Please help us
i found this function in phpbb and vbulletin but not in mybb...
how we can do that... if someone know then please help...
this is nice to have this feature in mybb...
thanks,
You can do this by ->

Go to inc/class_parser.php

Find:

if(!preg_match("#^[a-z0-9]+://#i", $url))
                {
                    $url = "http://".$url;
                } 

Add above it:
global $mybb;
            if($mybb->user['postnum'] >  20)
            { 

Now find:

$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
                return $link; 

Add below it:

}
            else
            {
                $link = "<a href=\"member.php?action=register\">You must have 20 Posts to view this link!!</a>";
                return $link;
            } 

Hope I helped you guy Wink