PDA

View Full Version : I'm Bored


keios
02-26-2008, 06:58 PM
......... lol, I think i wanna write a multi forum script. Any tips on what i need to know BMR?

kab012345
02-27-2008, 04:46 PM
Here are some references he sent me in a PM when I asked --
MFH for PHPBB3 (http://www.mihalism.com/index.php?showtopic=176)
AMFR PHPBB2 Multiforums (http://www.amfrservices.net/)http://www.webringamerica.com/mybbmf/
NBS Designz PHPBB2 Multiforums (http://www.nbsdesignz.com/Multi-Forums_phpBB)
SMFXXL for SMF Multiforums (Site is down, but I might have a copy of this somewhere) (http://www.smfxxl.com/)
You may know about some of them like I did. ;)

BMR777
02-27-2008, 05:15 PM
Yeah, the scripts kab012345 referenced are how I was able to write the MyBB Multiforums Script. Take a look at their code if you need pointers. You can also take a look at my script as I have commented it pretty well so you can see how I did things.

Keios, do you know any PHP? What forum software would you write the script for?

It would be great to have another multiforums script, the more the merrier.

BMR777

keios
02-27-2008, 05:20 PM
Ah i know a bit of PHP but im mainly Javascript well i know HTML but i'm pretty sure everyone knows that.

I have looked at those scripts but they are really sloppy (To me at least) I may have a peak into your code.

If i were to write a multi forum script i would probably write it for a lesser known forum software like Electron Forum http://www.anelectron.com

BMR777
02-27-2008, 05:27 PM
Maybe you and kab should write one for AEF together, I know he wanted to write one for AEF. I took a look at the AEF code and it was unlike other forum scripts I have seen before, it didn't seem to have a central config.php or anything like that. Some forum softwares are easier to write multiforum scripts for than others. Like MyBB was a piece of cake because everything as far as settings is kept in the database, other forum softwares are harder like AEF because they keep the settings in one file so each forum needs a separate settings file to work properly.

Don't let that get you down though. The MyBB Multiforums Script is my first and only PHP program. :)

BMR777

keios
02-27-2008, 05:30 PM
That sounds like a plan if Kab would be interested. If we can't figure out AEF then we could alway find another :D.

Then if we did do that we could start a forum hosting site and SMASH webringamerica lol j/k

I already have a domain for a forum hosting site 0.o

BMR777
02-27-2008, 05:35 PM
Keios, is this your site: http://phpbb4free.co.cc/

It looks good, now you just have to get some hits on there. I see that you're using MFH for the PHPBB3, but it looks like you modified it?

Also, I would recommend that you don't have your support forums on the same section as the hosted forums. On WebringAmerica I have the support forums on a separate server so if the forums go down the main website and support is up still. This has actually come in handy quite a few times, especially with the server issues I had last month.

BMR777

keios
02-27-2008, 05:42 PM
Ah that, well i made the site but it was more out of boredom than anything, the new domain i just got was forums4free.info (I'm cheep i know) But i did modify it a little i just striped it down and put it in with my own design then iframed the signup page :D.

Yea i think i read something about that on Mihislem forums. Your advice on defending from hacks, Really good tips lol.

Don't get me wrong i like Mihislem script EXCEPT for the no banner thing....Actually i think i seen a mod somewhere to allow you to let your members use a banner but it hast to be hosted somewhere else.

BMR777
02-27-2008, 05:51 PM
How much did you pay for the .info domain? I get all of my .com domains for $6 and I buy a new one whenever I roll out a new server or something drastically different. I even have a few domains that just sit around doing nothing, projects I started but never finished.

Yeah, those were my tips. :) When you've been hosting forums as long as I have you learn a few things.

If you write a simple file upload script for MFH you could allow members to upload files to the theme directory for their images, then select them from the ACP.

BMR777

keios
02-27-2008, 05:56 PM
the .info was 2 dollars a year, I also have a few domains laying around which i think i bought on impulse 0.o one i bought for my Game creation site rm-sanctum.com and no idea why i bought the other rm-sanctum.net lol

That would be something handy. Do you offer anything like that on your phpbb3 host?

BMR777
02-27-2008, 06:00 PM
No, I'd have to figure out how to write a safe file upload script, lately I have just been manually uploading images if a forum admin requests a custom logo. I used a file upload script a while back that someone else wrote but that had a hole in it somewhere that allowed an attacker to upload a malicious file to a directory on my server. Since then I am very suspicious of using a file upload script; I'd have to write one with some good safeguards in place.

BMR777

keios
02-27-2008, 06:06 PM
Yea you never know about those. I personally think the one i mentioned earlier would do fine, Thats what almost all big forum hosts like invisionfree ect use. All you have to do is paste the link and it appears lol.

Also i am sending you a pm i wanna ask you something :P

kab012345
02-29-2008, 07:25 PM
You registered on the official AEF Support Board?

Safe File Upload is pretty simple lol I think. Just use if, else, and ifelse statements. Ex. below is just to illustrate and probably won't work ;) if ($ext !== "bmp" && !== "jpeg") {
echo "Please contact the Host Administration Services for assistance.";
} else {
echo "Uploaded sucessfully..";

etc. ;)

I have a few host questions for you BMR: (in PHP format lol)


<?php
$poster = "kab012345";
function hostquestions() {
echo "1. So, how many total domains do you have? <BR />
2. What do you use to host, VPS, Dedicated, other? <BR />
3. How much space, bandwidth, etc do you have?<BR />
4. Do you know how you can make money from people posting on a central forum or have links to guides, etc?<BR />
(Thinking of other possible ways besides ads. (Ex. trap17.com))";
echo "---------- <BR />";
echo "|Posted by" <i>. $poster .</i>;
}
?>

<?php
hostquestions();
?>


Regular:

1. So, how many total domains do you have?
2. What do you use to host, VPS, Dedicated, other?
3. How much space, bandwidth, etc do you have?
4. Do you know how you can make money from people posting on a central forum or have links to guides, etc? (Thinking of other possible ways besides ads. (Ex. trap17.com))
----------
|Posted by kab012345

BMR777
02-29-2008, 07:33 PM
1. For forum hosting I have 5 domain names. 3 are actively hosting forums, one is for research for this script only (becomeaforumhost.com - expires in a few months, part of an old project) and one is there just in case I ever need to expand.

2 - 3. The bulk of my site is hosted on a reseller hosting account currently. I have 20GB disk space with 200GB monthly transfer on that reseller account. My site's main website and support forums are hosted on a seperate server with a much smaller shared hosting account. The older second server contains some of the oldest forums we host, not too many people still active on the old server but there are a few. I keep two servers so that if the main server hosting the forums goes down, support will still be up.

4. I don't know how much you could make from a post-to-host. What I do for my site is I try and bump people up from free forums to CPanel hosting for a few dollars a month. That's why the reseller comes in handy! :)

Also, as far as file uploads go, the one I tried actually checked the file type as you suggested and it still got hacked, so I have to find a bulletproof way of allowing uploads before I allow them on my servers again.

BMR777

kab012345
02-29-2008, 07:36 PM
Thanks.
If I start a free forum host, I guess I'll get a VPS or a good hosting account (Reseller is wise though) :P. May use ads or post-2-host, with remove button.

BMR777
02-29-2008, 07:41 PM
VPS servers can get expensive quick. It all depends on how much space you need, how much traffic you get and the amount of server resources you will need. I have been able to keep things under control so I can run things on shared servers (shared / reseller) no issues. Eventually I will need a VPS but I haven't needed one in two years yet so I think I am doing fine. The amount of traffic will dictate how big of a server you need. If you go too small you can easily crash a shared hosting server, but if you go too big you're burning money and space.

BMR777

kab012345
02-29-2008, 07:49 PM
I'm so eager to get started lol. Have to finish this Teenage Millionaire Book too. :)
Just need to actually program the script, and work on other projects people have me doing for them. :P