Jump to content

Search the Community

Showing results for tags 'help'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hey there! I want to style an "echo" in PHP. ( You know. Make it blue, position it, ect. ) All the examples and places I have learned about this work, but this echo has a variable in it: echo '<div id="welcome_username">"Welcome, " . $myusername . "!"</div>'; The variable is $myusername ( Making it say "Welcome, Username!" =P ) Is there a different way to style an echo, when it has a variable? Thanks for your time. ~ Spencer ( If you must, here is the whole code... I do't think it is needed though. ) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <?php session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php"); } $myusername = $_SESSION['myusername']; ?> <html> <head> <title>Mbox:homepage</title> <script> window.setInterval(function(){ window.scrollTo(40, 220); }, 50); </script> <style> /*3DS SCREEN START*/ div#topscreen { position: absolute; top: 0px; left: 0px; height: 218px; width: 320px; background-color:#E0FFFF; z-index:2; } div#bottomscreen { position: absolute; top: 218px; left: 0px; height: 212px; width: 320px; background-color:#E0FFFF; } /*3DS SCREEN STOP*/ /* WELCOME USERNAME STYLE START */ div#welcome_username { color:#0000EE; font-weight: bold; position:absolute; top:5px; left:50px; } /* WELCOME USERNAME STYLE STOP */ </style> <meta name="viewport" content="width=320"> </head> <body> <!-- TOP SCREEN --> <div id="topscreen"> <?php echo '<div id="welcome_username">Welcome, . $myusername . !</div>'; ?> <p style="color:red; text-decoration:underline;">Homepage under construction.</p> </div id="topscreen"> <!-- BOTTOM SCREEN --> <div id="bottomscreen"> </div id="bottomscreen>" </body> </html>
  2. Hey there! Recently, I have made a comment section on my website. It worked great, but to show who posted a comment, a user would have to type in who they are in the "Comment By:" inputbox. I don't want this anymore, due to users being able to impersonate one another. I want to make it show actually who posted it. ( Yes. I have a working register and login ). Here is my news:chatroom_first_priority.php code ( Note: I have removed the Comment By: inputbox and all the rest of that stuff. This is my attempted code. If needed, tell me you want to see my original code. ) : <?php session_start(); if(!session_is_registered(myusername)){ header("location:/login/main_login.php"); } $myusername = $_SESSION['myusername']; ?> <html> <head> <title>Mbox:News</title> <script> </script> <style> /*3DS SCREEN START*/ div#topscreen { position: absolute; top: 0px; left: 0px; height: 1300px; width: 320px; background-color:#1E90FF; z-index:2; } div#bottomscreen { position: absolute; top: 218px; left: 0px; height: 212px; width: 320px; background-color:#1E90FF; } /*3DS SCREEN STOP*/ /* WELCOME USERNAME STYLE START */ div#welcome_username { text-decoration:none; color:#000000; font-weight: bold; background-color:aqua; text-align:center; } /* WELCOME USERNAME STYLE STOP */ a.logout { text-decoration:underline; color:#000000; font-weight:bold; background-color:#FFFFFF; position:absolute; top:0px; left:250px; } a.home { text-decoration:underline; color:#000000; font-weight:bold; background-color:#FFFFFF; position:absolute; top:0px; left:5px; } a:link { color:#000000; text-decoration:underline; } a:visited { color:#000000; text-decoration:underline; } a:hover { color:#FF0000; text-decoration:none; } p.article_by { background-color:lime; text-align:left; font-weight:bold; } </style> <meta name="viewport" content="width=320"> </head> <body> <!-- TOP SCREEN --> <div id="topscreen"> <?php //echo "Welcome, " . $myusername . "!"; ( OLD CODE ) echo "<div id=\"welcome_username\">Welcome, $myusername ! </div>"; ?> <!-- WELCOME USERNAME PHP SCRIPT STOP --> <!-- REST OF STUFF DOWN --> <a href="../login/logout.php" class="logout">Log out</a> <a href="../homepage.php" class="home">Home</a> <!-- MAKE THE LINE BELOW THE WELCOME --> <br/> <hr/> <a href="/news/news.php"><img src="http://www.pokernewsreport.com/wp-content/uploads/2011/04/news-icon.png" style="width:75px; height:75px; position:absolute; top:60px; left:120px;"></a> <br/> <br/> <br/> <p class="article_by">Spencer:</p> <!-- ARTICLE START --> <p style="background-color:white;">This is just a test section for now</strong> <br/> <strong>~ Spencer</strong></p> <!-- ARTICLE STOP --> <hr/> <form action="/news/post_comment.php" method="post"> <table> <tr><td> </td><td><input type="hidden" name="comment_on" size="" readonly="readonly" value="<?php print md5($_SERVER['PHP_SELF']); ?>"/></td></tr> <tr><td>Comment: </td><td><textarea name="comment" cols=24></textarea></td></tr> <tr><td></td><td><input type="submit" value="Submit" /></td></tr> </table> </form> <?php $db_sitename="spencer_register"; $db_hostname="localhost"; $db_username="spencer_mega"; $db_password="PASSWORD HERE"; $no_of_comments="10"; /* Leave the script below as it is */ mysql_connect($db_hostname, $db_username, $db_password); mysql_select_db($db_sitename); $pagename=md5($_SERVER['PHP_SELF']); $query=mysql_query("Select * from comments where comment_on='$pagename' ORDER BY id DESC LIMIT 0, $no_of_comments"); echo "<hr />"; echo "<h3>Latest Comments</h3>"; while($fetch=mysql_fetch_array($query)) { echo "<p>".$fetch['comment']."<br/><sub><b>Comment by: </b>".$myusername."</sub><hr /><p>"; } mysql_close(); ?> </div id="topscreen"> <!-- BOTTOM SCREEN --> <div id="bottomscreen"> </div id="bottomscreen"> </body> </html> Here is my post_comment.php: <?php $db_sitename="spencer_register"; $db_hostname="localhost"; $db_username="spencer_mega"; $db_password="PASSWORD HERE"; /* Leave the script below as it is */ mysql_connect($db_hostname, $db_username, $db_password); mysql_select_db($db_sitename); $comment_on=$_POST[comment_on]; $comment_by=$_POST['$myusername']; $comment=$_POST[comment]; $query=mysql_query("INSERT INTO comments (comment_by,comment_on,comment) VALUES ('$myusername','$comment_on','$comment')"); if($query) { $ref=$_SERVER['HTTP_REFERER']; header("location: $ref"); } else { echo "Error when posting the comment."; } mysql_close(); ?> I actually know what I am doing wrong, but don't know how to fix it. myusername whatever the person types into the username login inputbox before logging in, to make it at the top say, Welcome, Username! So now, it will say all of the comments are posted by YOU. Thanks for the help! I appriciate it! ~ Spencer
  3. Can someone please help me? My heliohost website got hacked, it seems that the hacker changed my cPanel password, and the contact mail so I can't reset my password. My cPanel username is: ermando My website: http://3DSFun.heliohost.org Can someone send me the password (or reset) to the GMX mail account which I created the website with? Regards, MarioErmando.
  4. Hello i am having troubble with my website on uploading the script. each time I upload i it shows me an error saying it was uploaded ti the worng place. Please help thanks Brodie
  5. Username: xstone Server: stevie Domain: xlooter.com Why my site is queued? If you see my site is valid, please active agian. Thank you very much!
  6. Something drastic seem's to have happened, my website has disappeared and also my login details seem to have disappeared. I get message that user name not found in database. Thats a couple of years worth of work gone, as i update my site 5 days a week with new content My website is http://www.informationation.co.cc/ a. HelioHost username = onmy6 b. Server account is on = stevie c. HelioHost main domain = http://www.informationation.co.cc/
  7. Hey! So my problem is that my site looks perfect when it's on fullscreen, but when you resize the browser window, it will go out of the screen from the right side. I'd like it to be like normal sites that, when you resize the window and it's about to go out of the screen, it will ignore the "margin" and glide to left corner and "attach/stick" to it. Everything in HTML is inside <div id="contain"> tag. I hope you understood, if you didn't ask for a better explanation. Thanks, Ermu. ----------CSS----------- @charset "utf-8"; /* CSS Document */ * { margin:0; padding: 0; } html, body { height: 100%; width: 100%; padding: 0; margin: 0; } #full-screen-background-image { z-index: -999; min-height: 100%; min-width: 100%; width: 100%; height: 100%; position: fixed; top: 0; left: 0; } h1 { font-family:Arial, Helvetica, sans-serif; font-size:42px; color:#000000; text-align:center; text-decoration:underline; } h2 { font-family:Arial, Helvetica, sans-serif; font-size:30px; color:#000000; text-align:left; text-decoration:underline; } h3 { font-family:Arial, Helvetica, sans-serif; font-size:22px; color:#000000; text-align:left; text-decoration:none; } #contain { margin-left:25%; margin-top:4%; margin-right:25%; margin-bottom:0px; } #TBFLogo { margin-right:0px; margin-left:0px; margin-bottom:0px; margin-top:0px; width:900px; height:500px; border-width:14px; border-bottom-width:0px; border-color:#000000; border-style:solid; background:url(Images/planks.png); } #Mainbox { margin-left:164px; margin-right:0px; margin-bottom:0px; margin-top:0px; border-bottom-width:14px; border-right-width:14px; border-left-width:14px; border-top-width:14px; border-style:solid; border-color:#000000; position: relative; background:url(Images/planks.png); width:720px; padding-right:8px; padding-left:8px; padding-top:20px; padding-bottom:20px; } #Mainbox a { color:#00FF00; } #Sidebarbg { background:url(Images/planks.png); } #Sidebarlowestpad { border-bottom-width:0px; border-top-width:0px; border-right-width:0px; border-left-width:0px; border-style:solid; border-color:#000000; } #Sidebarblock { border-bottom-width:14px; border-top-width:0px; border-right-width:0px; border-left-width:0px; border-style:solid; border-color:#000000; } #Sidebar { margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; border-top-width:14px; border-bottom-width:14px; border-right-width:0px; border-left-width:14px; border-style:solid; border-color:#000000; position:absolute; background:url(Images/planks.png); width:150px; } #Sidebar ul { list-style-type: none; padding: 0; text-decoration:none; color:#000; } #Sidebar a { font-family:Arial, Helvetica, sans-serif; color:#000000; text-decoration:none; font-size: 130%; font-weight: bold; display: block; padding: 4px; padding-right:70px; } #Sidebar a:hover { background:url(Images/planksdark.png); color: #FFF; } #copyright { border-width:6px; border-style:solid; border-color:#000000; margin-bottom:0px; margin-top:8px; margin-left:170px; margin-right:0px; width:724px; padding: 6px; font-style:oblique; font-weight:bold; font-family:Arial, Helvetica, sans-serif; font-size:12px; background:url(Images/planks.png); }
  8. Hey guys. Rather new here and looking to get my blog rolling. I really like this host and everything you guys are doing. I'm trying to setup my email with Thunderbird. I keep getting this lovely little error: "Sending of password did not succeed. Mail server mail.threefatasses.info responded: Login failed." I have searched the forums for similar issues but nothing I have found has helped. Here is what I have done. In Cpanel, I created a new email account: enlightenedshadow@threefatasses.info with my password. All went well. Then I went to Thunderbird and started to create my account there. I entered my email/password and it found all the servers just fine. But I get that error listed above and can go no further. If anyone knows why this is happening or knows of a Rookie mistake I am making, please let me know! Thanks in advanced.
  9. I have seem to forgotten my database password isnt there a way to get it back or change it without knowing it please i dont want to delete it and start a new one If an admin or a mod can reset it for me that would be great
×
×
  • Create New...