Free Web Hosting Forum
(#1 (permalink))
Old
Member
Lovsan is on a distinguished road
 
Posts: 46
Join Date: Oct 2008
Default little help needed - 11-19-2008, 02:50 PM

i have lil chatbox

u can view it here > www.fbsk.co.cc/chatbox/index.php

part of the source code i need to get fixed..

PHP Code:
   # if nick or message is default show error message #
   
if($nick == "nick" || $msg == "viesti") { echo "You forgot to type your nick or message...or just pressing submit for fun?"; exit(); }
   
   
# Check if the cookie still exists (floodprotect) #
   
if(isset($m00)) { echo "Hey!.. No Flooding Please!.. wait atleast 5sec. before new post."; exit(); }

   
# Check if the nickfield is empty #
   
if(empty($nick)){ echo "Are you stoned or what? your forgot to type nickname O_o <a href="index.php" target="_top">Back</a>;" exit(); }

   
# Check if the message field is empty #
   
if(empty($msg)){ echo "Are you stoned or what? your forgot to type the message O_o"; exit(); } 
# Check if the nickfield is empty #
if(empty($nick)){ echo "Are you stoned or what? your forgot to type nickname O_o <a href=".index.php" target="_top">Back</a>;" exit(); }

i want the link to work and go to index page which is /this/chatbox/index.php


the chatbox is shown in frame on the index page > www.fbsk.co.cc/

i know this aint hard to do but no luck findin help...i feel so so nub atm
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Member
Lovsan is on a distinguished road
 
Posts: 46
Join Date: Oct 2008
Default 11-19-2008, 03:29 PM

figured it out... thx for every1 who helped :P
Reply With Quote
(#3 (permalink))
Old
Kirii's Avatar
Senior Member
Kirii is on a distinguished road
 
Posts: 558
Join Date: Sep 2008
Location: Malaysia
Send a message via MSN to Kirii
Default 11-20-2008, 01:02 AM

Nice posts..
1 karma for you..
thanks for sharing


Kirii,
Forum Moderator
www.000webhost.com

Use Search,Read Announcements and FAQ before asking a support question.

CLICK HERE to join 000websupport with different language.PM me to apply a forum for your language!

I would try to reply on every thread,if I don't reply on your threads,there are 3 main reason.
1)Sorry for my limited knowledge,I don't know how to help you.
2)I am not online right now.
3)The question is already answered by other members.
Reply With Quote
(#4 (permalink))
Old
Member
Lovsan is on a distinguished road
 
Posts: 46
Join Date: Oct 2008
Default 11-20-2008, 01:05 AM

sorry for spamming the forums with my problems , i just hate waiting

long time since i really did osmething with php but slowly startng to remember
Reply With Quote
(#5 (permalink))
Old
Member
Lovsan is on a distinguished road
 
Posts: 46
Join Date: Oct 2008
Default 11-20-2008, 07:05 AM

hoi again fellow coder fellas.

i have another problem.

i have pretty much users allreay using the chat and i dont know how they can keep the Nickname in nick field, they have to type the nick everytime when they make new post...

i am soon making registering possible and change to mysql so it should be lots easier...

but it takes time cuz i dunno nothing about mysql rly... i can run the querys in phpmydamin thats all and make tables.. eh
Reply With Quote
(#6 (permalink))
Old
Member
Lovsan is on a distinguished road
 
Posts: 46
Join Date: Oct 2008
Default 11-20-2008, 09:21 AM

hmm

server seems to be down?

or is it just my site?

the "chat" i have isnt rly using much resources... i dunno if its against rules to have it..
Reply With Quote
(#7 (permalink))
Old
Member
Lovsan is on a distinguished road
 
Posts: 46
Join Date: Oct 2008
Default halp! - 11-20-2008, 11:54 AM

here i am again... the nickname problem aint solved yet and got another problem.

i noticed that a script i made to view my chathistory is "endless loop"

took lots of time to figure how to do this and i want this to be fixed, this page loads soooo slow and when i opened sourcecode it made 65k empty lines. heh

so, i think i need to limit the lines posted by the script but i dont know how.

PHP Code:
<div class="chathead">
<?php
    $msg   
file("admin/data/chat.txt");
    
$kill  count($msg);
    
$nmb   $_POST['messages'];
    
    while (
$msg != "" || $cccp $nmb)
    {
        echo (
$msg[$kill-$cccp] . "\n");
        
$cccp++;
    }
    die();
?>
</div>
Reply With Quote
(#8 (permalink))
Old
Member
Lovsan is on a distinguished road
 
Posts: 46
Join Date: Oct 2008
Default 11-20-2008, 12:22 PM

removed the whole script, caused too high serverload...
Reply With Quote
(#9 (permalink))
Old
Banned
YaThisHostRox is on a distinguished road
 
Posts: 371
Join Date: Jul 2008
Location: IM me plz. I need more intelligence.
Send a message via AIM to YaThisHostRox Send a message via MSN to YaThisHostRox Send a message via Yahoo to YaThisHostRox Send a message via Skype™ to YaThisHostRox
Default 11-21-2008, 12:00 AM

header("Location: ../index.php");
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com