Greaser9780 Posted August 27, 2006 Share Posted August 27, 2006 Hello all, I recently started the build of a new site and it's looking like it will require a forum. Can this be done with PHP, and if so how would I go about it. Newbie here so please don't get too technical. Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/ Share on other sites More sharing options...
radar Posted August 27, 2006 Share Posted August 27, 2006 Since you are new I wouldn't even think of starting your own forum set. Just use a pre-built such as phpbb2.. Work Wonders for you.... Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81001 Share on other sites More sharing options...
Greaser9780 Posted August 27, 2006 Author Share Posted August 27, 2006 Where would I find that? Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81005 Share on other sites More sharing options...
abdfahim Posted August 27, 2006 Share Posted August 27, 2006 hi,4 months earlier, I was in the same position as you. I decided to start a new website based on php (by learning php) and also I, just like you, wanted a forum. With my experience, I advice you to use a prebuilt forum, as RADAR said, in your website. I used miniBB forum. You can get many such prebuilt forum free in internet. The problem with such forum that, its hard to apply your website design template to the forum page. But don't worry, as you will be master of php, you can understand the code of those forums and will be able to start urs. And believe me, it'll not take long. Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81007 Share on other sites More sharing options...
AndyB Posted August 27, 2006 Share Posted August 27, 2006 [quote author=Greaser9780 link=topic=105782.msg422676#msg422676 date=1156652494]Where would I find that?[/quote]Google -> http://www.phpbb.com/downloads.php Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81026 Share on other sites More sharing options...
Greaser9780 Posted August 27, 2006 Author Share Posted August 27, 2006 This looks like it will take awhile to upload to my server. Will I be able to incorporate phpBB into my existing site without too many changes to appearance? Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81242 Share on other sites More sharing options...
Greaser9780 Posted August 27, 2006 Author Share Posted August 27, 2006 Worked awesome and ty for showing me where to go. Is there a way to use my site logins to automatically log them into my phpBB forum? Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81302 Share on other sites More sharing options...
redarrow Posted August 27, 2006 Share Posted August 27, 2006 look at all my posts i posted the correct code to adapt phpbb with member login system ok. Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81303 Share on other sites More sharing options...
Greaser9780 Posted August 27, 2006 Author Share Posted August 27, 2006 Would it be possible for me to just send the registration.html to my site registration=register.php and my forum registration at the same time? Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81319 Share on other sites More sharing options...
cursed Posted August 27, 2006 Share Posted August 27, 2006 er..look above.. 1 post above u. Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81331 Share on other sites More sharing options...
Greaser9780 Posted August 27, 2006 Author Share Posted August 27, 2006 Went through like 8 pages out of 102 and didn't find it. Having a geocities prob now. I can't access some of my phpBB files that get tied to my db. this is like the third time in 24 hours that I can't even view my site. Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81339 Share on other sites More sharing options...
redarrow Posted August 27, 2006 Share Posted August 27, 2006 heres a way to build your own forum not that hard just follow the link.apart from that i think you need to change hosts as you keep getting weried problams.http://www.tutorialized.com/tutorial/Creating-simple-PHP-forum-tutorial/9962 Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81345 Share on other sites More sharing options...
Greaser9780 Posted August 27, 2006 Author Share Posted August 27, 2006 How difficult would it be for me to transfer my site to a different host. As far as retaining the same DB files. Would it take me an entire evening to move everything.I already successfully downloaded and uploaded phpBB into my site and it works fine when my host is cooperating. I couldn't find your post on registering at both my site and my forum after searching for about 30 minutes. Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81351 Share on other sites More sharing options...
redarrow Posted August 27, 2006 Share Posted August 27, 2006 [code]<?php<br><table cellpadding=5><tr valign=top class=mes><td align=center><fieldset><legend style="color: #ffffff; font-family: verdana; font-size: 10pt;"> <b>Forum Setup</b> </legend><table width="300" class=mes><tr><td align=center><?if ($mode==''){//// EDIT THIS LINE ////$table_prefix = 'phpbb_'; // your phpBB table_prefix (check your phpBB config.php after installation)////////////////////////$phpBB_table = 'users';$tmp=mysql_query("SELECT * FROM ".C_MYSQL_MEMBERS." WHERE status = '7'"); while($phpBB=mysql_fetch_array($tmp)) { $phpBB_id = ($phpBB['id']);$phpBB_n = ($phpBB['fname']);$phpBB_p = md5($phpBB['password']); // use md5 encryption$phpBB_e = ($phpBB['email']);$phpBB_reg = ($phpBB['regdate']);$sql = "INSERT INTO ".$table_prefix.$phpBB_table." (user_id, username, user_level, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_viewemail, user_style, user_aim, user_yim, user_msnm, user_posts, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_pm, user_notify_pm, user_allow_viewonline, user_rank, user_avatar, user_lang, user_timezone, user_dateformat, user_actkey, user_newpasswd, user_notify, user_active) VALUES ( '$phpBB_id', '$phpBB_n', 0, '$phpBB_reg', '$phpBB_p', '$phpBB_e', '', '', '', '', '', '', 0, NULL, '', '', '', 0, 0, 1, 0, 1, 0, 1, 1, NULL, '', '', 0, '', '', '', 0, 1)";mysql_query($sql) or die(mysql_error());}}echo "Your AzDG members have been added to your phpBB users table.<br><br>";echo "If you are logged in to the AzDG script,<br><a href=phpBB_setup.php?mode=test_login class=menu>click here</a> to test the forum login.";if ($mode!=''){$tmp=mysql_query("SELECT * FROM ".C_MYSQL_MEMBERS." WHERE id= '".$_SESSION["m"]."' LIMIT 1"); while($phpBB=mysql_fetch_array($tmp)) {$phpBB_n = ($phpBB['fname']);$phpBB_p = ($phpBB['password']);//// EDIT THIS LINE ////echo "<form action=\"http://url.com/azdgforum/login.php\" method=\"post\" target=\"_blank\">";////////////////////////echo "<input type=\"hidden\" name=\"username\" size=\"25\" value=\"$phpBB_n\" maxlength=\"40\">";echo "<input type=\"hidden\" name=\"password\" size=\"25\" value=\"$phpBB_p\" maxlength=\"32\">";echo "<input type=\"submit\" name=\"login\" value=\"Test Login\">";echo "</form>";}}?></td></tr></table></fieldset><br><!-- DO NOT remove my copyright links -->©Copyright 2005 <a href="http://freesingles.ath.cx" target=_blank class=menu>redarrow™</a><br>phpBB Intergration Script</td></tr></table><br><br><br><br><br>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81358 Share on other sites More sharing options...
radar Posted August 27, 2006 Share Posted August 27, 2006 PHPBB has two functions built in that helps a lot.. #1 Backup Database#2 Restore DatabaseRun function 1.. move hosts install phpbb log into your admin control panel and run function 2 and you should be set... Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81359 Share on other sites More sharing options...
Greaser9780 Posted August 28, 2006 Author Share Posted August 28, 2006 Redarrow, The script looks great. Being a newb I am not even sure where to place it or how to implement it. Quote Link to comment https://forums.phpfreaks.com/topic/18779-can-a-forum-be-made-with-php/#findComment-81422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.