Jump to content

rick001

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by rick001

  1. Hi i am trying to write a script which will allow me to add new channels and moderators to the frug ajax chat. Here is what i need to do, // Sample moderator user: $users[2] = array(); $users[2]['userRole'] = AJAX_CHAT_MODERATOR; $users[2]['userName'] = 'moderator'; $users[2]['password'] = 'moderator'; $users[2]['channels'] = array(0,1); the script needs to be able to search user.php file for this set of code and then append it to add new users. My problem is i can use fseek() to point to the position after //Sample moderator user: but the new entries needs to be made after the $users[2]['userRole'] = AJAX_CHAT_MODERATOR; line and below the previous user already assigned. Also i need to modify the last line $users[2]['channels'] = array(0,1); and add more values into the array(0,1) . Any suggestions?
  2. lol if you would read my last post properly u would notice i didnt call u an "idiot" rather i called the "301 redirect" loosing me link juice- "idiot"
  3. hey merylvingien just wanted to let u know that my site is back on the first page and ranks in 3rd position of google.co.in for the keyword "free php based chat rooms" and 4th for "php based chat rooms" on google.com i currently rank 6th for the keyword "php based chat rooms" Told you i will bounce back idiot 301 redirect lost me lot of link juice. Neways have a nice time
  4. ya i saw that myself too just after replying to ur post, a 301 redirect caused me that loss but i guess it will bounce back so i am not worried much. My page was at /chat.htm which has been redirected to /chat.html and then to just /chat so ya it will take some time but i am ok with it. Though i read google webmaster blogs which said that a low amount of link juice will drain but it wont mostly change my rankings so it's a bit of a setback to see my pages with contents like "chat setup" and "chat specification" is ranking higher than the actual chat page.
  5. honest opinions are always a plus i didnt ask for critique just so that i can hear some good words and suit my ego. By the way which browser are u using coz i dont see any problem with the pricing boxes and that highest paying service is highligted coz it is the complete package and as far as ranking goes the page currently ranks 186 in the 6th page of google for the keyword "Free SEO" and as you can see the service isnt yet active else i wouldnt be asking for critique. I will start my link building once the page is ready, i already rank 3rd in the frist page of google for my other service namely "free php chat" might want to take a look into those rankings. P.S :- that info "186th rank on page 6" is courtsey of IBP rank tracker
  6. ok rectified it i had mistakenly over written the intended signup.png file with that of another project i am working on
  7. No, an image is supposed to be in its place let me check it up
  8. Thank you creata.physics i am sorry i kind of had overlooked ur comments earlier and didnt get to reply, its only now that i noticed that u had taken the time to give me some valuable suggestions. Thanks and i will take a look into that, as i have said earlier, ur views no matter if its good or bad really is important and helps me improve, so thanks a ton and dont mind this late reply of mine to acknowledge ur views
  9. you still getting that error well may be i will shutdown cloudflare for a while but it would be very helpful if u could give me the following data so that i can take it up with cloudflare a traceroute your IP where you are connecting from if you are interested send me a mail at rick@techbreeze.in with those, if not plz let me know either way i will shut down cloudflare for a while so that you can take a look into it. I did try to incorporate all the changes u talked about. And if you are wondering why not shut down cloudflare right now, it's coz if are willing to give me those data then I would need them while cloudflare is active no use of having them with it turned off. Looking forward to your reply
  10. uggh idiot cloudflare !!!! could u plz clear ur cache once and reload the page if u still get the error let me know and i will just deactivate cloudflare. Its something wrong on their part my server is really online and that website not available msg just pops out randomly, if u use a VPN and change ur current ip the page will work fine, they say they are working on it any ways do reply
  11. Adam thanks for pointing out the errors i did re design the whole thing would u mind giving it a look again? thanks for ur critique
  12. ok i changed that part to <?php // validation expected data exists if( (!isset($_POST['uname']))|| ( !isset($_POST['pass'])) || (!isset($_POST['email'])) || ( !isset($_POST['website'])) || ( !isset($_POST['url'])) || (!isset($_POST['user']))) { die ('We are sorry, but all the fields are necessary. Please fill them up carefully!!'); } But it still doesnt work
  13. For some reason the !isset() function doesnt seem to work i cant find out why hope you guys will be able to help Here is the html code for the form where the user enters the data <div id="contact_form"> <h2>On Site SEO Signup Form</h2> <form method="post" name="contact" action="http://www.techbreeze.in/freeseo.php"> <label for="uname">Name:</label> <input name="uname" type="text" class="required input_field" id="uname" /> <div class="cleaner h10"></div> <label for="email">Email:</label> <input type="text" class="validate-email required input_field" name="email" id="email" /> <div class="cleaner h10"></div> <label for="website">Website:</label> <input type="text" class="required input_field" id="website" name="website"/> <div class="cleaner h10"></div> <label for="ftp">Your FTP Login URL:</label> <input type="text" class="required input_field" id="url" name="url" /> <div class="cleaner h10"></div> <label for="username">Your FTP Username:</label> <input type="text" class="required input_field" id="user" name="user" /> <div class="cleaner h10"></div> <label for="password">Your FTP Password:</label> <input type="password" class="required input_field" id="pass" name="pass"/> <div class="cleaner h10"></div> <input type="submit" value="Send" id="submit" name="submit" class="submit_btn float_l" /> <input type="reset" value="Reset" id="reset" name="reset" class="submit_btn float_r" /> </form> </div> And here is the code for the .php file where the !isset() function is used <?php // validation expected data exists if( !isset($_POST['uname'])) { die ('We are sorry, but all the fields are necessary you cant leave the "Name" field empty!'); } if( !isset($_POST['pass'])) { die ('We are sorry, but all the fields are necessary you cant leave the "Password" field empty!'); } if( !isset($_POST['email'])) { die ('We are sorry, but all the fields are necessary you cant leave the "Email" field empty!'); } if( !isset($_POST['website'])) { die ('We are sorry, but all the fields are necessary you cant leave the "Website" field empty!'); } if( !isset($_POST['url'])) { die ('We are sorry, but all the fields are necessary you cant leave the "FTP URL" field empty!'); } if( !isset($_POST['user'])) { die ('We are sorry, but all the fields are necessary you cant leave the "Username" field empty!'); Thanks in advance
  14. ya well err could u give me some ideas as to how i go abt logging the errors? and the site should be up though let me know if u are still getting the error
  15. Thank you for letting me know i was recently working on validating the HTML must have done something stupid if its alright check it once more in 20 min or so should be working by then
  16. OK i worked on Validating the page and have repaired most of the bad markup but i cant understand what to do abt attributes like - <iframe> proprietary attribute "allowtransparency" this one is coming from the facebook like box. or this <script> proprietary attribute "data-cfbadgetype" this one is coming from cloudflare my CDN. Need help regarding that also any suggestions regarding what you think would be good for the header or the footer is welcome.
  17. Hi, I just recently built my service page where i offer SEO and web design services, Would want to know what you guys have to say abt it. any suggestions or ideas to make it look better or just your views would be good. here is the link www.techbreeze.in/service.htm
  18. opps sorry typo; well versed in php just love it by the way i am working on that code and everything was going fine until i discovered i would need another function thats in a diff page to be called everytime that select value gets as well as creating a cookie so here is what i did didnt test it out yet let me know if u think it has faults <div id ="pfc_fonts_select" class="pfc_dropdown"> <label for="Font">Select Font </label> <select class="element select medium" id="fonts" onchange="findmyvalue()" name="fonts"> <option value="arial" selected="selected">Arial</option> <option value="algerian" selected="selected">Algerian font</option> <option value="bookman" selected="selected">Bookman</option> <option value="braggadocio" selected="selected">Braggadocio</option> <option value="courier" selected="selected">Courier</option> <option value="desdemona" selected="selected">Desdemona</option> <option value="garamond" selected="selected">Garamond</option> <option value="modern" selected="selected">Modern</option> <option value="verdana" selected="selected">Verdana</option> </select> <script type="text/javascript"> function findmyvalue() { var myval = document.getElementById("fonts").value; document.cookie ='font=myval; expires=Thu, 2 Aug 3001 20:47:11 UTC; path=/'; } pfc.changeFont(); </script> </div> the function changeFont is in another page and here is what it looks like // Set Font for the text changeFont: function() { fcookie = getCookie('font'); var wval = '<font ' + 'face' + '=' + fcookie + '>' + wval + '</font>'; }
  19. Thanks for the help worked just fine, and i dont know much abt javascript so the trouble trying to use php which i am somewhat well versed in thank though its working fine
  20. what do u suggest i do to achieve the result i want really running out of ideas so ne suggestion would be welcome
  21. here is the code <label for="rank">Font</label> <select class="element select medium" id="fonts" onchange="<?php echo 'selected'; ?>" name="fonts"> <option value="Arial" selected="selected">Arial</option> <option value="times" selected="selected">Times New Roman</option> </select> It is supposed to echo the value selected but it does nothing any ideas regarding what i should do? Also what i really want to do is create a cookie which will contain the selected value and then use this value of the cookie later. But I cant even manage to echo the values so thought it would be better to first learn how to echo and then try to create a cookie out of it
  22. Thought you would want to know how i solved that irritating problem. Thanks for your help but well it was a tough nut to crack didnt get much help frm that manual but I managed a dirty way around hope you enjoy it and after all this is done i would be glad if u could come arnd and give it a look, the final product.. here's the link http://www.techbreeze.in/chat I think the coding part is ok enough but i suck in CSS and have almost no designing capabilites so do ignore the poor look and give me some ideas i could use to make it look better. You may finally close this thread the project's completed successfuly thanks to phpfreaks !!! Hats off to u guys. <?php echo "&lthtml&gt &ltobject data=http://www.techbreeze.in/"; echo $_COOKIE["File"]; echo ' width="630"'; echo ' height= "'; echo $_COOKIE["cheight"]; echo '" &gt '; echo "&ltembed src=http://www.techbreeze.in/"; echo $_COOKIE["File"]; echo ' width="630"'; echo ' height= "'; echo $_COOKIE["cheight"]; echo '" &gt '; echo "&lt/embed&gt "; echo "Error: Embedded data could not be displayed. "; echo "&lt/object&gt "; echo "&lt/html&gt "; ?>
  23. The problem with the above code is, instead of treating it as a string and posting the msg; it gets implemented and php tries to load the chat itself rather than send those lines as an output.
  24. Thank you guys its been really helpful and i have got my script running but now i am into a diff problem, since it is related with this code i am posting it in here. So, here is the problem after the script ran its course it created a chat room which is located at say www.techbreeze.in/mychat/3.php now i want the user to just copy the code and paste it in their site to get the chat room in their pages. So i wrote the code I need a way to post this to the user so that he can copy it. I am unable to do so with the echo function any suggestions?
  25. I got to get it working by writing a newline character seperately but still dont know why it didnt work when i used the earlier code was something wrong in that? :confused:
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.