MyForum Beta Version

Started on the old forum in March 2012 · view the original in the archive · old links redirect here

#akismet #myforum #protected #script #spam

11 replies · 1,626 views · started 14 years ago · 1 min read

4 participants
Matrix Junior · 12 posts #1

Hi frndz 🙂

Today am sharing an wap forum script coded by me a while ago. That is in beta version may have some bugs. so plz notify me about them and try it once.

Some feature-

  • Registration/Login system
  • Private msg system
  • Users Profile
  • Smilies and bbcode support
  • Nice css and design
  • Admin can create categories and post
  • Users can create threads and can comment
  • Added Akismet api support so it is protected from spam msgs (may be 😛)
  • For more try it

INSTALLATION

  1. Upload and extract it in your server
  2. Create an new database and user.
  3. Edit ur database details in connect.php
  4. Signup a new account and give permission 1 to ur account from phpmyadmin to give admin permissions to the user.
  5. To create new categories go to ursite.com/create_cat.php

Enjoy 🙂

You may leave my copyright to use this script. If u found any mistake or error plz notify me and provide ur suggestions. Hit Thanks button

No demo but attaching an screenshot

The King is Back...

Matrix Junior · 12 posts #3

mobidev wrote: Thanks for the share

welcome but u may use the thanks button alsp 😛

The King is Back...

arnage Lead · 811 posts #4

Nice, maybe you'll find this useful for signup.php 😉

	if (!preg_match('/^[a-z]{1,1}[\w\p{Zs}]+$/iD', $_POST['user_name'])) {
		$errors[] = 'The username must start with a letter.';
	}
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
Matrix Junior · 12 posts #5

arnage wrote: Nice, maybe you'll find this useful for signup.php 😉

	if (!preg_match('/^[a-z]{1,1}[\w\p{Zs}]+$/iD', $_POST['user_name'])) {
		$errors[] = 'The username must start with a letter.';
	}

Thanks dude 🙂

The King is Back...

Matrix Junior · 12 posts #6

hmmm i done the coding within my localhost and it is working fine may be is show some errors on web server but they can be solved easily 🙂

The King is Back...

arnage Lead · 811 posts #7

You are welcome. 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
Matrix Junior · 12 posts #9

yaa i know it riderz

i coded it 5 months before and my coding is not so good at that time thats why this is in beta version :d

The King is Back...

CreativityKills Lead · 833 posts #10

So why should I use it if your coding wasn't that good? Just saying. I appreciate that you shared, that's very good but if you're not confident of your PHP then don't make it open-source, lest we see your vulnerabilities more. My advice, organize your coding better, and restructure it so at least some other developer might not be too discouraged to code on top of it... I Was.

arnage Lead · 811 posts #11

Well in general i must agree with riderz an CreativityKills so here is some practical for editprofile.php for example to keep you busy with it. 🙂

Validate url no matter is there http or not:

function isValidURL($url)
{
return preg_match('/^(http:\/\/)?[a-z0-9-\.]+\.[a-z]{2,4}(\/.*)?$/iD', $url);
}

... than check is it there right where is needs to be and if not add it:

	if(isValidURL($_POST['avatar']))
	{
	if (strpos($_POST['avatar'], 'http://') !== 0) {
		$_POST['avatar'] = 'http://'.$_POST['avatar'];
	} else {
		$_POST['avatar'] = $_POST['avatar'];
	}
	} else {
		$errors[] = " Please enter valid avatar URL<br>";
	}

... so you can get ridof that extra page just because http. 🙂

Next is this:

if(isset($_POST['name'])) // ...
	// and than
else
	{
		$errors[] = 'The name field must not be empty.';
	}

The thing is that isset will return true even on empty field.

var_dump(isset($_POST['name'])); // bool(true) !

Change it to:

var_dump(!empty($_POST['name'])); // bool(false) :)

Should check in whole script and explore in general how to apply with globals. At 87. line there is typing error, $_POST['name'] instead $_POST['avatar'].

If is gonna be some V2 post it. 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
Matrix Junior · 12 posts #12

thanks for the suggestions guys

i already told that it is an old script by me i shared it bcz i not need it and someone may use it or get any idea from it

now am thinking to work on its v2 that will be far better than this i will share it when it will be completed and i promise that it will not give problem to anyone who use it 🙂

The King is Back...

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close