Embedding Phpbb 3.0 in website step by step tutorial

Posted: by Dim light in
0

Embedding Phpbb 3.0 in website step by step tutorial

Phpbb 3.0 is a free flat-forum bulletin board software solution that can be used to stay in touch with a group of people or can power your entire website.

To use the phpbb 3.0, you need to install it first, to be part of your website.

Follow this link to download the full package of php 3.0

http://www.phpbb.com/downloads/olympus.php?from=submenu

Since I will only share how to embed the phpbb in a website, please follow this link for the step by step intallation of the phpbb 3.0.

http://www.phpbb.com/support/documentation/3.0/?from=submenu

Assuming that the process of installation is done. I will now teach you how to embed the phpbb in your own site.

Step 1

Go to this directory inside your website folder.

\phpBB3\styles\prosilver\template

by default the prosilver is the default template of the phpbb3.0

After locating the folder, look for these two file.

overall_header.html
overall_footer.html

This files is use to customize the phpbb3.0 header and footer.

After do the changes, refreshing alone is not enough.

Step 2

Go to your ACP - Account Control Panel

How to go in here? This can be located at the below of the phpbb3.0 index.


After accessing the ACP

Go to style tab,template and to your prosilver theme. the click the refresh link.


Refresh your browser and check the phpbb3.0 and its done. :)

The Avengers 2012 Movie DVD Rip torrent

Posted: by Dim light in
0

The Avengers 2012 Movie DVD Rip torrent

I just cant wait to have a DVD rip copy of the movie The Avengers. I really like all the action figures specially the man cast iron man (Robert Downey Jr.),Hawkeye,Black Widow,Captain America and The Incredible Hulk plus the exciting the animation and the storyline of the movie avengers. So for those torrent uploaders, please upload the DVD rip copy of the avengers movie very soon, coz I cant wait for 2012 in cinema.I really love the trailer of the avengers the movie.

Summary 

Nick Fury and the international agency S.H.I.E.L.D. bring together a team of super humans to form The Avengers to help save the Earth from Loki & his various membered army. -imbd


Get Free Load From Smart By Earning More Points

Posted: by Dim light in
2

Get Free Load From Smart By Earning More Points

Smart telecommunication is now giving free load to their beloved smart subscribers. Want to know how to do it? For keep on loading, you will earn points. Every 1 peso load is equivalent of 5 points. This points will be use to redeem your smart free load.

To Inquire Your Current Points


Just simply type POINTS  and send to 9800 Or HELP and send to 9800

How to get your free load from smart?


Text REDEEM ITEM CODE to 9800 to avail of freebies using your points. See the List of Item Codes.

What are the item codes?

A.) REDEEM ALLTEXT10

B.) REDEEM ALLTEXT50

C.) REDEEM LAHATTEXT20

D.) REDEEM LAHATTEXT15 SEND TO 9800.

Other Redeemable Item Code

A.)REDEEM 100

B.) REDEEM ALLTEXT10

C.) REDEEM ALLTEXT50

D.) REDEEM LAHATTEXT20

E.) REDEEM LAHATTEXT15

F.) REDEEM LOAD100 send to 9800

Every item code has equivalent points, so make sure you will use it wisely.

God Love a Cheerful Giver

Send your friends free load or texts without having to spend a thing! With SMART Rewards,you can use your points to get free items such as an ALL TEXT 10, LAHAT TEXT 20, or even P100 SMART Buddy load, and pass it on to your friends.

Just text REDEEM FRIEND NUMBER and send to 9800.

Find out more details.

Text POINTS to 9800 for FREE to know your points balance while on-the-go.

Get Bonus Points On your birthday

Get 5,000 points on your birthday.

Just text REWARDS <MMDDYY>, and send to 9800 for free.

So what are you waiting for? Redeem your SMART FREE LOAD before this promo ends. 



Related Post:
Get Free Load From Smart By Earning More Points
Smart unli text promo to all networks
Smart unli 25 call and text all day promo 2010 2011 

My Top DVD Rip Torrent Links List!

Posted: by Dim light in
0

Here are the tops torrent link list for DVDrip copy movies! Enjoy!

 1.Transformer 3 Dark of the Moon DVD Rip torrent - http://thepiratebay.org/torrent/6697947/Transformers_3_Dark_of_the_Moon_%282011%29_DVDRip_XviD-MAX

2.Real Steal - http://thepiratebay.org/torrent/6927675/Real_Steel_2011_DVDRip.XviD.AC3-3LT0N



Smart unli text promo to all networks

Posted: by Dim light in
10

Smart unli text promo to all networks let the smart subscribers to enjoy unlimited text all day to all networks and a 10 mins call for talk n txt, smart and red mobile subscribers for only 15 pesos . Here is the procedure on how to avail the Smart unli text promo to all networks.

Promo Requirements:

    Smart prepaid (not sure if postpaid can avail)

Promo Mechanics:

    To avail this promo, just text L15 to 6416
    Just dial *2266+Smart/TNT number (ex. *640609181234567) to consume the 10 mins phone call. Valid for 1 day only.

*This Smart unli text promo to all networks is for mindanao subscribers only.

Related Post:
Get Free Load From Smart By Earning More Points
Smart unli text promo to all networks
Smart unli 25 call and text all day promo 2010 2011 

Learning PHP Object Oriented Programming Beyond the basic.

Posted: by Dim light in Labels:
0

Note: This is intended for my personal use only just incase I will for get this things during my PHP Test. However, I you find this helpful to you, feel free to copy the code. This set of code is base from what I learned from lynda tutorial beyond the basic. The video has been really useful to me and learn alot of things from it.

//Config.php



defined('DB_SERVER') ? null : define("DB_SERVER", "localhost");
defined('DB_USER') ? null : define("DB_USER", "root");
defined('DB_PASS') ? null : define("DB_PASS", "admin");
defined('DB_NAME') ? null : define("DB_NAME", "photo_gallery");


?>


//Database.php require_once("config.php"); class MysqlDatabase{     private $connection;     public $last_query;     private $magic_qoutes_active;     private $new_enough_php;     function __construct(){         $this->open_connection();         $this->magic_quotes_active = get_magic_quotes_gpc();     $this->new_enough_php = function_exists( "mysql_real_escape_string" ); // i.e. PHP >= v4.3.0                  }     public function open_connection(){         $this->connection = mysql_connect(DB_SERVER,DB_USER,DB_PASS);         if(!$this->connection){             die("Database connection failed:" .mysql_error());             }         else{             $db_select = mysql_select_db(DB_NAME, $this->connection);             if(!$db_select){                 die("Database selection failed:". msql_error());                                  }                          }                           }     public function close_connection(){         if(isset($this->connection)){             mysql_close($this->connection);             unset($this->connection);                                       }                           }     public function query($sql){         $this->last_query = $sql;         $result = mysql_query($sql,$this->connection);                  $this->confirm_query($result);                  return $result;              }     //Database Neutral Methods               public function insert_id(){         return mysql_insert_id($this->connection);         }     public function fetch_array($result){         return mysql_fetch_array($result);         }     public function affected_rows(){         return mysql_affected_rows ($result);         }     public function num_rows($result){         return mysql_num_rows($result);         }          private function confirm_query($result){                  if(!$result){                          $output = "Database query failed:". mysql_error()." ";         //    $output .= "Last SQL Query: ".$this->last_query;             die($output);             }                  }         public function escape_value( $value ) {          if( $this->new_enough_php ) { // PHP v4.3.0 or higher         // undo any magic quote effects so mysql_real_escape_string can do the work         if($this->magic_quotes_active ) { $value = stripslashes( $value ); }         $value = mysql_real_escape_string( $value );     } else { // before PHP v4.3.0         // if magic quotes aren't already on then add slashes manually         if( !$this->magic_quotes_active ) { $value = addslashes( $value ); }         // if magic quotes are active, then the slashes already exist     }     return $value; }          } $database = new MysqlDatabase(); $db = & $database; ?>
//Functions.php function strip_zeros($marked_string=""){     $no_zeros = str_replace('*0','',$marked_string);     $clean_string = str_replace ('*','',$no_zeros);     return $clean_string;          } function redirect_to($location = NULL){     if($location != NULL){         header ("Location: {$location}");         exit;              }          }      function output_message($message=""){     if(!empty($message)){         return "
{$message}
";     }     else     return "";     }     ?>
//User.php require_once('database.php'); class User{     public $id;     public $username;     public $password;     public $first_name;     public $last_name;                    public static function find_all()         {         global $database;         return self::find_by_sql("Select * FROM users");         }     public static function find_by_id($id=0)         {         global $database;         $result_set = $database->query("SELECT * FROM users WHERE id={$id}");         $found = $database->fetch_array($result_set);         return $found;         }     public static function find_by_sql($sql=""){         global $database;         $result_set = $database->query($sql);         return $result_set;                  }     public function full_name(){         if(isset($this->first_name) && isset($this->last_name)){             return $this->first_name." ".$this->last_name;                          }         }     private static function instantiate($result){                  $object                 = new self;         //$object->id             = $record['id'];         //$object->username     = $record['username'];         //$object->password     = $record['password'];         //$object->first_name     = $record['first_name'];         //$object->last_name     = $record['last_name'];                           foreach($record as $attribute=>$value){                      if($object->has_attribute($attribute)){             $object->$attribute = $value;             }             }         return $object;                  }     private function has_attribute($attribute){           // get_object_vars returns an associative array with all attributes       // (incl. private ones!) as the keys and their current values as the value       $object_vars = get_object_vars($this);       // We don't care about the value, we just want to know if the key exists       // Will return true or false       return array_key_exists($attribute, $object_vars);                  }     } ?>
//Index.php require_once("../includes/database.php"); require_once("../includes/user.php"); $record = User::find_by_id(1); echo $user->username; echo "
"; echo $user->full_name(); ?>