Support Forums
Ideas for randommybb.com - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49)
+----- Forum: Community Management (https://www.supportforums.net/forumdisplay.php?fid=60)
+----- Thread: Ideas for randommybb.com (/showthread.php?tid=2988)



Ideas for randommybb.com - Brainless Control - 11-17-2009

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.


RE: Ideas for randommybb.com - Grizzly - 11-17-2009

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.


RE: Ideas for randommybb.com - Gaijin - 11-17-2009

(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.


RE: Ideas for randommybb.com - Brainless Control - 11-18-2009

(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.


RE: Ideas for randommybb.com - manipulate - 11-18-2009

Protip:
Advertisement -> Wait X seconds -> Forwarded to Forum
????
PROFIT!


RE: Ideas for randommybb.com - Gaijin - 11-18-2009

(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.