Jump to content

mike12255

Members
  • Posts

    439
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mike12255

  1. smooth design i like the color scheame only one validation error! perfect css overall good job for an hour!
  2. and we have no errors! still working on css that will take a bit longer
  3. thanks for correcting my bad grammer mates going through in about an error to make all the pages, i know tutorials page is down, its cause im working on my video script, and profile im still trying to make a unique style for it Donation page, profile page, and tutorails page are all under construction!
  4. thanks pages should not be dead any more, ill work on the grammer and vailidation errors soon, appriciate the comments
  5. hey, so i was wondering if some of you could take a look at my new design and give me some constructive critisiom,thanks. The website URL is: http://www.tutsondemand.com/new/
  6. I was wrong sorry its a diffrent query thats wrong: $cat = mss($_POST['cat']); $title = mss($_POST['title']); $msg = mss ($_POST['message']); if ($cat && $title && $msg){ $sql = "SELECT admin FROM fourm_subcats WHERE id ='".$cat."'"; i echoed that query and got this:
  7. tried to echo the query to see what it was entering it, but it didnt work, error happened before the die was inserted
  8. So i got the following query: <?php $date = date("m-d-y") . " at " . date("h:i:s"); $time = time(); $sql2 = "INSERT INTO forum_topics (`catid`,`title,`uid`,`date`,`time`,`message`) VALUES ('".$cat."','".$title."','".$_SESSION['uid']."','".$date."', '".$time."','".$msg."')"; die($sql2); $res2 = mysql_query($sql2) or die (mysql_error()); $tid = mysql_insert_id(); header("Location: index.php?act=topic&id=".$tid.""); ?> problem is my server is yelling this at me: can anyone figure out why?? appriciate the help. thanks,
  9. WARNING: VIOLENT LANGUAGE IN THE MOVIE! Hey so im working on some tutorials and im turning them into videos I want some of you to take a look at the video quality, is it fine or does it need improvements. This video does not have sound though so its graphic only since its just a test, you are warned the f-bomb is spelled once so only watch it if you dont mind. The video is no longer then 30 seconds I am aware the time display is not working http://sgi-clan.info/test.php?file=capture-1.swf
  10. So im trying to make the header background color go across the entire width of the page but there is about 1-2px on both ends of the rectengale of white space, does anyone know why? Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- #header{ width:100%; height:100px; padding:0; background-color:#9E0511; } body { margin-top:0; background-color: #FFFFFF; } --> </style></head> <body> <div id="header" > Testing </div> </body> </html>
  11. ok, and I wasnt going to base my main revenue off it just using it as a side thing more of a hobby, thanks for the ideas
  12. its going to be a video tutorial site
  13. So, im attempting to create a side website to genterate revenue from ads but i am no artist and i always make very poor looking designs as you can see below the color scheme is not the best. Im looking for color ideas for the header nav bar and content area if anyone has any, thanks.
  14. I want to link one of my domains to my "localhost" and start hosting my own website. Problem is, I dont know my nameservers and i need to so i can link my domain to me, I am running windows vista, does anyone know how to do this?
  15. Does anyone know why this wont work? When there is not act being called (so no act passed in the URL) it works fine, but as soon as you click an option and an act gets passed in the URL i get that error and i cant seem to figure out why. <?php $act = $_GET['act']; $acts = array ('create_cat','create_subcat'); $actions = array ('create_cat' => 'Create Forum Catagory','create_subcat' => 'Create Forum Subcatagory'); $x=1; $c=count($actions); foreach ($actions AS $url => $link){ $pipe = ($x ==$c) ? "" : " | "; echo "<a href = \"admin.php?act=".$url."\">".$link."</a>".$pipe."\n"; $x++; } echo "<br/><br/>\n"; if (!$act || !inarray($act,$actions)){ echo "Please choose an option to continue!\n"; }else{ if ($act == 'create_cat'){ if (!$_POST['submit']){ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\n"; echo "<form method = \"post\" action=\"admin.php?act=create_cat\">\n"; echo "<tr><td>Catagory Name</td><td><input type=\"text\" name=\"name\"></td></tr>\n"; echo "<tr><td>Admin Only?</td><td><input type=\"checkbox\" name=\"admin\" value = \"1\"></td></tr>\n"; echo "<tr><td colspan =\"2\" align=\"right\"><input type=\"submit\" name=\"submit\" value=\"Create Catagory\" "; echo "</form></table>"; } } }?>
  16. move textbox down but not the nav bar so i got a textbox that i want to move down below the nav bar so i can fit the whole thing in without a scroll bar, the problem is that when i try to the nav bar moves down with it i know its my CSS but i have not idea what is doing it Here is a live demo of my issue: http://schoolworkanswers.com/forjosh/test/edit2.php?page=test and here is my code: <?php if($_GET['page']){ $page = $_GET['page']; }else{ header ("Location index.php"); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Administration Center</title> <style type="text/css"> <!-- #container{ background-color:#ffffff; border:2px solid #cccccc; width:800px; margin-left:auto; margin-right:auto; padding:4; height:auto; overflow:auto; font-family:Arial, Helvetica, sans-serif; } #box{ width:625px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #7e8591; float:right; z-index:54; } #logo{ border:0px; float:left; padding:2px; z-index:1; padding-left:2%; /*margin-left:20%; /* I want this to aline to the left side of the container, but this about a 10 px pad.I want it to look like the studentwebpro site.*/ margin-right:auto; padding:4; } h1 { font-family:Arial, Helvetica, sans-serif; font-size: 175%; letter-spacing: -1px; font-weight: normal; line-height: 1.1; color:#7e8591; } .button_div { width:150px; float:left; background-color:#CCCCCC; border:2px solid #ccc; text-align:center; height:25px; margin-top:3px; padding:5px 32px 3px; } .buttons { background: #636b7b; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #FFFFFF; padding: 6px 14px; border-width: 2px; border-style: solid; border-color: #7e8591 #7e8591 #7e8591 #7e8591; text-decoration: none; font-weight:bold; width:150px; margin-left:10px; z-index:100; } body { background-color: #FFFFFF; background-image: url(images/background_01.gif); background-repeat: repeat-x; } a:link { text-decoration: none; color: #989070; } a:visited { text-decoration: none; color: #989070; } a:hover { text-decoration: none; color: #989070; } a:active { text-decoration: none; color: #989070; padding: 10px; } --> </style> </head> <body> <div id="container"> <div id="logo" align="left"> <div align="left"><a href="http://www.studentwebpro.com"><img src="images/logo.png" width="331" height="59" border="0" /></a></div> </div> <br /><br /><br /> <h1 align="center"><a href="edit.php">Page Edits</a> &rArr <?=$page?></h1><br /> <br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <div id="box" align="center"> Edit the text area below to make the text appear just how you want it to appear on your website and click the button! <br /><br /> <?php include "config.php"; //Function BBCode to HTML that will work with Hoteditor. function BBCodeToHTML($text){ $patterns[] = "#&#"; $replacements[] = '&'; $patterns[] = "#<#"; $replacements[] = '<'; $patterns[] = "#>#"; $replacements[] = '>'; $patterns[] = "# #si"; $replacements[] = ' '; $patterns[] = "#\t#si"; $replacements[] = ' '; $patterns[] = "#\r\n#si"; $replacements[] = "<br />"; $patterns[] = "#\n#si"; $replacements[] = "<br />"; $patterns[] = "#\[hr\]#si"; $replacements[] = "<hr class=HR_Color />"; //Support Table here $patterns[] = "#\[table\]#si"; $replacements[] = '<table align=center style="border-collapse: collapse;border-spacing: 0px;border: 1px solid #6CAFF7;background-color: #F4F4F4;width:98%;font-family:Verdana,Arial,Sans-Serif,Tahoma;font-size:12px;color: black;">'; $patterns[] = "#\[\/table\]#si"; $replacements[] = '</table>'; $patterns[] = "#\[td\]#si"; $replacements[] = '<td style="height:25px; border: 1px solid #6CAFF7">'; $patterns[] = "#\[\/td\]#si"; $replacements[] = '</td>'; $patterns[] = "#\[tr\]#si"; $replacements[] = '<tr>'; $patterns[] = "#\[\/tr\]#si"; $replacements[] = '</tr>'; $patterns[] = "#\[(indent|blockquote)\]#si"; $replacements[] = "<blockquote>"; $patterns[] = "#\[\/(indent|blockquote)\]#si"; $replacements[] = "</blockquote>"; $patterns[] = "#\[(\/|)sub\]#si"; $replacements[] = "<$1sub>"; $patterns[] = "#\[(\/|)sup\]#si"; $replacements[] = "<$1sup>"; $patterns[] = "#\[(\/|)strike\]#si"; $replacements[] = "<$1strike>"; $patterns[] = "#\[(\/|)u\]#si"; $replacements[] = "<$1u>"; $patterns[] = "#\[(\/|)b\]#si"; $replacements[] = "<$1strong>"; $patterns[] = "#\[(\/|)i\]#si"; $replacements[] = "<$1em>"; $patterns[] = "#\[size=1\]#si"; $replacements[] = '<span style="font-size: 8pt">'; $patterns[] = "#\[size=2\]#si"; $replacements[] = '<span style="font-size: 10pt">'; $patterns[] = "#\[size=3\]#si"; $replacements[] = '<span style="font-size: 12pt">'; $patterns[] = "#\[size=4\]#si"; $replacements[] = '<span style="font-size: 14pt">'; $patterns[] = "#\[size=5\]#si"; $replacements[] = '<span style="font-size: 18pt">'; $patterns[] = "#\[size=6\]#si"; $replacements[] = '<span style="font-size: 24pt">'; $patterns[] = "#\[size=7\]#si"; $replacements[] = '<span style="font-size: 36pt">'; $patterns[] = "#\[font=(.*?)\]#si"; $replacements[] = '<span style="font-family: $1">'; $patterns[] = "#\[color=(.*?)\]#si"; $replacements[] = '<span style="color: $1">'; $patterns[] = "#\[highlight=(.*?)\]#si"; $replacements[] = '<span style="background-color: $1">'; $patterns[] = "#\[\/(font|color|size|highlight)\]#si"; $replacements[] = '</span>'; $patterns[] = "#\[(center|left|right|justify)\]#si"; $replacements[] = "<div align=\"$1\">"; $patterns[] = "#\[\/(center|left|right|justify)\]#si"; $replacements[] = "</div>"; $patterns[] = "#\[email=(.*?)\]#si"; $replacements[] = '<a href="mailto:$1">'; $patterns[] = "#\[email\](.*?)\[\/email\]#si"; $replacements[] = '<a href="mailto:$1">$1[/email]'; $patterns[] = "#\[url=(.*?)\]#si"; $replacements[] = '<a href="$1">'; $patterns[] = "#\[url\](.*?)\[\/url\]#si"; $replacements[] = '<a href="$1">$1[/url]'; $patterns[] = "#\[\/(email|url)\]#si"; $replacements[] = "</a>"; $patterns[] = "#\[img\](.*?)\[\/img\]#si"; $replacements[] = '<img src="$1" alt="" />'; $patterns[] = "#\[list=1\]#si"; $replacements[] = "<ol>"; $patterns[] = "#\[list\]#si"; $replacements[] = "<ul>"; $patterns[] = "#\[\*\]#si"; $replacements[] = "<li>"; $patterns[] = "#<br[^>]*><li>#si"; $replacements[] = "<li>"; $patterns[] = "#<br[^>]*> <li>#si"; $replacements[] = "<li>"; $patterns[] = "#<br[^>]*><\/li>#si"; $replacements[] = "</li>"; $patterns[] = "#\[\/list\]#si"; $replacements[] = '</list>'; $patterns[] = "#\[FLASH=(.*?),(.*?)\](.*?)\[\/FLASH\]#si"; $replacements[] = '<object width="$1" height="$2"><param name="movie" value="$3"></param><param name="wmode" value="transparent"></param><embed src="$3" type="application/x-shockwave-flash" wmode="transparent" width="$1" height="$2"></embed></object>'; $text = preg_replace($patterns, $replacements, $text); if (preg_match("/<ol/si",$text) || preg_match("/<ul/si",$text)){ $array=split("<",$text); $output=""; $x=0; foreach($array as $line){ if($x>0)$line="<".$line; if(preg_match("/<ol/i",$line)){ $temp="</ol>"; } elseif(preg_match("/<ul/i",$line)){ $temp="</ul>"; } if(preg_match("/<\/list>/i",$line)){ $line=str_replace("</list>",$temp,$line); } $output.=$line; $x++; } } else{ $output=$text; } //Try to close tag <li> $output=str_replace("<li>","</li><li>",$output); $output=str_replace("<ul></li>","<ul>",$output); $output=str_replace("<ol></li>","<ol>",$output); $output=str_replace("</ul>","</li></ul>",$output); $output=str_replace("</ol>","</li></ol>",$output); return $output; } ?> <form action="index.php" method="post" name=form1> <textarea style="visibility:hidden;position:absolute;top:0;left:0;" name="bbcode_holder" id="bbcode_holder" rows="1" cols="1" tabindex="2"><?php print stripslashes($_POST[bbcode_holder]); ?></textarea> <style type='text/css'>@import url(styles/office2007/style.css);</style> <script language="JavaScript" type="text/javascript" src="editor.js?version=4.1"></script> <script language="JavaScript" type="text/javascript"> var getdata =document.getElementById("bbcode_holder").value; Instantiate("max","editor", getdata , "100%", "300px"); //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard if(enable_vietnamese_keyboard==1){ document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=avim.js><\/script>"); var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";} document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>"); } function get_hoteditor_data(){ setCodeOutput(); var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode document.getElementById("bbcode_holder").value = bbcode_output; document.form1.submit(); } </script> <input type="submit" value="Submit" name="B1" onClick="get_hoteditor_data();"></td> </form> <br /> <br /> </div> <div onclick="location.href='index.php';" style="cursor:pointer "class="buttons">Main</div> <div onclick="location.href='edit.php';" style="cursor:pointer "class="buttons">Page Edit's</div> <div onclick="location.href='contact.php';" style="cursor:pointer "class="buttons">Help desk</div> <div onclick="location.href='logout.php';" style="cursor:pointer "class="buttons">Logout</div> </div> </body> </html>
  17. the CSS you just explained will not allow for the side bar scroller?
  18. Im working on creating a code box. I currently have the look the way I want, aside from one thing I want an up/down scroll bar but not a side to side scroll bar. I know how to add both using CSS but i dont know how to add just one, does anyone know a page were I can read up on this? Second how would i go about syntax highlighting like in our code boxes such as: <?php //these tags go orange echo <- green ?>
  19. Ok so i am playing around with fa fckeditor and i uploaded a file an no errors and it lets me put it in the textbox and the exact location it gives me for the img i uploaded is this so i went into my ftp client and went to and there is no image folder in there so i copy and pasted the URL from the fckeditor and pasted it into my ftp and it said it couldnt find the file/directory
  20. <?php $MaxFileSize = "2048000"; // max file size in bytes $HDDSpace = "1048576"; // max total size of all files in directory $HDDTotal = "445"; $OffExt = ""; // add characters to strip out of filenames $ThisFileName = basename(__FILE__); // get the file name $abspath = str_replace($ThisFileName,"",__FILE__); // get the directory path // full path $path=$abspath; $pathext="upload/"; $snr = array("%","'","+","\\","/","#","..","!",'"',',','?','*','~'); $temp=$HTTP_POST_FILES['uploadedfile']['name']; if($HTTP_POST_FILES['uploadedfile']['name']) { $HTTP_POST_FILES['uploadedfile']['name'] = strip_tags($HTTP_POST_FILES['uploadedfile']['name']); $HTTP_POST_FILES['uploadedfile']['name'] = str_replace($snr,"",$HTTP_POST_FILES['uploadedfile']['name']); // remove any % signs from the file name $HTTP_POST_FILES['uploadedfile']['name'] = trim($HTTP_POST_FILES['uploadedfile']['name']); /* if the file size is within allowed limits */ if($HTTP_POST_FILES['uploadedfile']['size'] > 0 && $HTTP_POST_FILES['uploadedfile']['size'] < $MaxFileSize) { /* if adding the file will not exceed the maximum allowed total */ if(($HDDTotal + $HTTP_POST_FILES['uploadedfile']['size']) < $HDDSpace) { /* put the file in the directory */ move_uploaded_file($HTTP_POST_FILES['uploadedfile']['tmp_name'], $path.$pathext.$HTTP_POST_FILES['uploadedfile']['name'].$OffExt); $msg = ""; $myfrom = $Email; $myemail = "xxx@xxx.dk"; $todayis = date("l, F j, Y, g:i a") ; $filename="http://www.xxx.dk/".$pathext.$HTTP_POST_FILES['uploadedfile']['name'].$Off Ext; $filename=str_replace("","%20",$filename); $Email= stripcslashes($Email); $Name= stripcslashes($Name); $Phone= stripcslashes($Phone); $info= stripcslashes($info); $Fax= stripcslashes($Fax); $Speciality= stripcslashes($Speciality); $Clinic= stripcslashes($Clinic); $subject= "Request From Website"; $message = " uploadedfile : $filename Name : $Name Email : $Email Phone : $Phone Fax : $Fax Speciality : $Speciality Clinic/Hospital :$Clinic Comments/Request :$info "; $from = "From: $myfrom\r\n"; mail($myemail, $subject, $message, $from); } else { $msg = "The Filename: ".$HTTP_POST_FILES['uploadedfile']['name']." is BLOCKED from being uploaded here."; } } else { $MaxKB = $MaxFileSize/1024; // show the max file size in Kb $msg = "The file was greater than the maximum allowed, file size of $MaxKB and could not be uploaded."; } } print $msg; // Your message has been sent successfully with attachment. ?>
  21. Im not sure put i think i've read something like this before. Im working on a website for a friend and the directory layout of the one im working on goes like this: public_html/forjosh/Admin/ wereas the real website will be on public_html/Admin im using the php part of the FCKediter so i was wondering if php a variable that took the name of the directory it was in so i would only have to set the variable once instead of twice when i put up the main website.
  22. lol only the first poster saw the actually design, i was testing some css things after that lol
×
×
  • 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.