Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 5 of 5
  1. #1
    Grunt
    Glory's Avatar
    Join Date
    Dec 2008
    Location
    try and find me :)
    Posts
    44
    Post Thanks / Like
    Rep Power
    16
    Reputation
    47

    Talking (PHP) A simple shout box for your site


    Register to remove this ad
    Hey guys im going to show you a simple step by step guide on how to make your own personal shout box feel free to customize the forum however you may like..I just left a default for you.

    Code:
    <?php
    $tag = ("<font size=\"2\" face=\"Arial\">
    
    <a  href=\"$website\">$name: $message
    </font>"); 
    
    $file = fopen("tag.php", "r"); 
    $read = fread($file, filesize("tag.php"));
    fclose($file);
    $invano = fopen("tag.php", "w"); //Leave alone look and learn, only edit if you know
    php 
    $tag=stripslashes($tag);
    fwrite($invano, "$news $read");
    fclose ($invano);
    print "<meta http-equiv=\"refresh\"  content=\"0;tag.php\">"; //edit path to where the tag.php file  falls
    ?>
    Save this file under addtag.php


    Now make a new file where it will store all the tags. Name it tags.php and CHMOD to 777.


    Okay now here comes the form remember to include the tag.php.



    Name:
    Website:
    Message:

    It should closely resemble this:
    Code:
    <iframe name="tag" src="tags.php"  marginwidth="1" marginheight="0" height="200" width="200" border="0"  frameborder="0"></iframe>
    <FORM action="addtag.php"  method="POST" targer="tag">
    Name:<br>
    <INPUT  TYPE="TEXT" name="name" size="20"><br>
    Website:<br>
    <INPUT  TYPE="text" name="website" size="20" value="http://"><br>
    Message:<br>
    <TEXTAREA  NAME="message" COLS=16 ROWS=2></TEXTAREA><br>
    <br>
    <INPUT  TYPE="Submit" name="submit" value="Tag it!" size="20">
    </FORM>

    Call this file tag.php

    Now post the code anywhere in your site probably the index to make it appear

    Code:
    <? include "tag.php";?>
    Enjoy


    › See More: (PHP) A simple shout box for your site



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Beginner

    Join Date
    Mar 2010
    Posts
    8
    Post Thanks / Like
    Rep Power
    15
    Reputation
    1
    nice

  4. #3
    Grunt
    Glory's Avatar
    Join Date
    Dec 2008
    Location
    try and find me :)
    Posts
    44
    Post Thanks / Like
    Rep Power
    16
    Reputation
    47
    thanks I hope it helped

  5. #4
    Beginner

    Join Date
    Jul 2010
    Posts
    8
    Post Thanks / Like
    Rep Power
    15
    Reputation
    1
    what means with "CHMOD to 777" ? and should i write something in the "tags.php"?

  6. #5
    Beginner

    Join Date
    Mar 2010
    Posts
    26
    Post Thanks / Like
    Rep Power
    15
    Reputation
    1

    Register to remove this ad
    thanks

 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 04:19 AM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org