Jump to content


Photo

Can a Forum be made with PHP?


  • Please log in to reply
15 replies to this topic

#1 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 27 August 2006 - 04:09 AM

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.

#2 radar

radar
  • Members
  • PipPipPip
  • Advanced Member
  • 645 posts
  • LocationSLC

Posted 27 August 2006 - 04:17 AM

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

#3 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 27 August 2006 - 04:21 AM

Where would I find that?


#4 abdfahim

abdfahim
  • Members
  • PipPipPip
  • Abd Fahim
  • 535 posts

Posted 27 August 2006 - 04:29 AM

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.

#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 27 August 2006 - 06:43 AM

Where would I find that?


Google -> http://www.phpbb.com/downloads.php
Legend has it that reading the manual never killed anyone.
My site

#6 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 27 August 2006 - 08:29 PM

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?

#7 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 27 August 2006 - 10:14 PM

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?

#8 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 27 August 2006 - 10:16 PM

look at all my posts i posted the correct code to adapt phpbb with member login system ok.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#9 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 27 August 2006 - 10:43 PM

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?

#10 cursed

cursed
  • Members
  • PipPipPip
  • Advanced Member
  • 71 posts

Posted 27 August 2006 - 10:59 PM

er..

look above.. 1 post above u.

#11 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 27 August 2006 - 11:07 PM

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.

#12 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 27 August 2006 - 11:22 PM

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.tutoriali...m-tutorial/9962
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#13 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 27 August 2006 - 11:29 PM

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.

#14 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 27 August 2006 - 11:46 PM

<?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>&nbsp;</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 -->
&copy;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>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#15 radar

radar
  • Members
  • PipPipPip
  • Advanced Member
  • 645 posts
  • LocationSLC

Posted 27 August 2006 - 11:49 PM

PHPBB has two functions built in that helps a lot.. 

#1 Backup Database

#2 Restore Database

Run function 1.. move hosts install phpbb  log into your admin control panel and run function 2 and you should be set...

#16 Greaser9780

Greaser9780
  • Members
  • PipPipPip
  • Advanced Member
  • 326 posts

Posted 28 August 2006 - 02:16 AM

Redarrow,
    The script looks great. Being a newb I am not even sure where to place it or how to implement it.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users