Support Forums

Full Version: Ideas for randommybb.com
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The idea for randommybb.com is a bit shitty imo GlareGlare http://www.supportforums.net/showthread.php?tid=2901 ,what else do you think i can do?
ideas? something would help.If you liked the idea tell me what else can i improve.
Unfortunately there really isn't much you can do with that domain Sad

You could turn it into kind of a directory of random MyBB Forums. You'd have to write/find a directory script that could display a random site each time someone visits on a certain part of the site.
(11-17-2009, 05:27 PM)Grizzly Wrote: [ -> ]Unfortunately there really isn't much you can do with that domain Sad

You could turn it into kind of a directory of random MyBB Forums. You'd have to write/find a directory script that could display a random site each time someone visits on a certain part of the site.

That's actually a good idea, and it's even easy to do.

PHP Code:
<?php

/*****************************************************************************
    @Name: Random MyBB Forum Preview
    @Author: NinjaGeek
*****************************************************************************/

$randomPage rand(0,255);

if(!
$searchResponse file_get_contents("http://www.google.com/search?q=intext%3A+\"Powered+By+MyBB\"&start={$randomPage}")) {
    exit;
}

$matches null;

preg_match_all("/<h3 class=r><a href=\"http:\/\/(.*?)\/(.*?)\"/"$searchResponse$matches);

print 
file_get_contents("http://".$matches[1][rand(09)]);

?>


edit: I forgot to say that thie script above will not work right if your user starts browsing the forum, the links are mostly not pointing to the forum it self but to a page on your site.
(11-17-2009, 06:59 PM)Master of The Universe Wrote: [ -> ]That's actually a good idea, and it's even easy to do.

PHP Code:
<?php

/*****************************************************************************
    @Name: Random MyBB Forum Preview
    @Author: NinjaGeek
*****************************************************************************/

$randomPage rand(0,255);

if(!
$searchResponse file_get_contents("http://www.google.com/search?q=intext%3A+\"Powered+By+MyBB\"&start={$randomPage}")) {
    exit;
}

$matches null;

preg_match_all("/<h3 class=r><a href=\"http:\/\/(.*?)\/(.*?)\"/"$searchResponse$matches);

print 
file_get_contents("http://".$matches[1][rand(09)]);

?>


edit: I forgot to say that thie script above will not work right if your user starts browsing the forum, the links are mostly not pointing to the forum it self but to a page on your site.
Awesome idea Grizzly and ninja geek thanks for the script i've tested it and it's brilliant.
Protip:
Advertisement -> Wait X seconds -> Forwarded to Forum
????
PROFIT!
(11-18-2009, 07:38 AM)Xenocide Wrote: [ -> ]Awesome idea Grizzly and ninja geek thanks for the script i've tested it and it's brilliant.

No prob. I also like Grizzly's idea and that script was just 2-3 minutes work to show how easy it can be to do that.
If you want I can improve the code for you to give you a bit more control, and keep the users on your domain while they still browser the forums.

As iintens said you could put ads up on there, but I wouldn't do it like he said, I would put a ads block on the top just over the loaded forum it's self.