MyForum Beta Version

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MyForum Beta Version

    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 :P)
    - 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
    Attached Files
    Last edited by Matrix; 30.03.12, 13:10. Reason: attaching screenshot

    #2
    Thanks for the share
    My site: http://mimobifunclub.tk
    sigpic

    Comment


      #3
      Originally posted by mobidev View Post
      Thanks for the share
      welcome
      but u may use the thanks button alsp :P

      Comment


        #4
        Nice, maybe you'll find this useful for signup.php ;)

        PHP Code:
            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

        Comment


          #5
          Originally posted by arnage View Post
          Nice, maybe you'll find this useful for signup.php ;)

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

          Comment


            #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

            Comment


              #7
              You are welcome.
              <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

              Comment


                #8
                Here is an demo



                Comment


                  #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

                  Comment


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

                    Comment


                      #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:

                      PHP Code:
                      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:
                      PHP Code:
                          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:

                      PHP Code:
                      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.

                      PHP Code:
                      var_dump(isset($_POST['name'])); // bool(true) ! 
                      Change it to:

                      PHP Code:
                      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.
                      Last edited by arnage; 31.03.12, 19:53.
                      <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                      Comment


                        #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

                        Comment

                        Working...
                        X