Jump to content

aircooled57

Members
  • Posts

    95
  • Joined

  • Last visited

    Never

Posts posted by aircooled57

  1. ok dude , well do you mean the red bit that scrolls the recent tutorials at the top of the page yeah? do you suggest using a different colour or something .

     

    i will try justyfing the text also and improving the logo and see where it gets me ::)

     

    thanks :)

    x

  2. ok  :) i tottaly get it , its just i was having a look at a few sites on the web and was like hmm ok ,they have the same header ,menu and footer , but the content sections are sometimes different ie , this page has got a large content box and this one a small content box and to small divs at the side.

     

    but i guess if i have the header and footer in includes then i can call these files in my design and alter the content section accordingly to the page type .

     

     

  3. hi guys

    in terms of web design , what is the best way of templating a site that has a consistent header and footer and logo in the corner etc but the content in between varies for example on one of my pages i have a large content box in between.

     

    and on a different page i have three small divs instead of the large box .

     

    would it be to save the header as an include

     

    the footer as an include.

     

    and then build seperate templates for different page styles and obviously call the header and footer in these templates

     

    im stuck  :-[

  4. whats the best way to template a site with a consistent header and footer for the layout but the content between the header and footer varying in design ?

     

    would it be to make the header and footer includes?

    or is there an easier way ?

     

    templating systems perhaps

     

    thanks guys :D

  5. Hello all , i would love some help regarding an issue on my website , basically on the admin backend there are features that allow me to add new tutorials to the database and although none of the backend code behind the site has changed as far as i no , the feature no longer works.

     

    web form for adding tutorials :

     

    <?php
    session_start();
    { include"../template/admined.php";
    ?>
    
    <span class="special-font2" style="margin-left:55px">Add New Tutorial</span>
    <form action="submit_tutorial.php" method="post" enctype="multipart/form-data">
    <table border="0" style="margin-left:50px">
    <tr><td>Type:</td>
    <td><select name="type">
    <option value="tutorial">Tutorial</option>
    <option value="xhtml">XHTML </option>
    <option value="myspace">Myspace</option>
    <option value="link">Links</option>
    <option value="member">Member</option>
    </select>
    </td></tr>
    <tr><td>Judul:</td><td>
    <input type="text" name="judul" size="40">
    </td></tr>
    <tr><td valign="top">Preview:</td><td>
    <textarea name="elm" style="width:99%" rows="7">
    </textarea>
    </td></tr>
    <tr><td valign="top">Content:</td><td>
    <!-- tinyMCE -->
    <script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    	theme : "advanced",
    	mode : "exact",
    	elements : "elm1,elm2",
    	save_callback : "customSave",
    	content_css : "example_advanced.css",
    	extended_valid_elements : "a[href|target|name]",
    	plugins : "table",
    	theme_advanced_buttons3_add_before : "tablecontrols,separator",
    	//invalid_elements : "a",
    	theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
    	//execcommand_callback : "myCustomExecCommandHandler",
    	debug : false
    });
    
    // Custom event handler
    function myCustomExecCommandHandler(editor_id, elm, command, user_interface, value) {
    	var linkElm, imageElm, inst;
    
    	switch (command) {
    		case "mceLink":
    			inst = tinyMCE.getInstanceById(editor_id);
    			linkElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "a");
    
    			if (linkElm)
    				alert("Link dialog has been overriden. Found link href: " + tinyMCE.getAttrib(linkElm, "href"));
    			else
    				alert("Link dialog has been overriden.");
    
    			return true;
    
    		case "mceImage":
    			inst = tinyMCE.getInstanceById(editor_id);
    			imageElm = tinyMCE.getParentElement(inst.selection.getFocusElement(), "img");
    
    			if (imageElm)
    				alert("Image dialog has been overriden. Found image src: " + tinyMCE.getAttrib(imageElm, "src"));
    			else
    				alert("Image dialog has been overriden.");
    
    			return true;
    	}
    
    	return false; // Pass to next handler in chain
    }
    
    // Custom save callback, gets called when the contents is to be submitted
    function customSave(id, content) {
    
    }
    </script>
    <!-- /tinyMCE -->
    <textarea name="elm1" style="width:100%" rows="30" cols="40">
    
    </textarea>
    </td></tr>
    <tr><td>Icon</td><td>
    <input type="file" name="icon">
    </td></tr>
    <tr><td>Picture</td><td>
    <input type="file" name="pict">
    </td></tr>
    <tr><td>Upload File</td><td>
    <input type="file" name="upload">
    </td></tr>
    <tr><td ></td><td>	<input type="submit" name="submit" value="Add"> 
    &nbsp <input type="button" onclick=";self.location.href='admin_tutorial.php'"  value="Cancel" /> </td></tr> </table>
    </form>
    
    
    <?
    }
    
    
    ?>
    
    </div>
    
    <div class="clear"></div>
    <div id="footer">
    <span style="float:right; margin:5px 25px 0 0; color:#5a5a5a">© Copyright 2008 <strong><a href="#">Purple Fusion</a></strong> - All Rights Reserved</span>
        <span style="float:left; margin:5px 0 0 45px; color:#5a5a5a"><a href="http://validator.w3.org/check?uri=referer">HTML Validation</a>   |   <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS Validation</a></span>
    </div>
    </body>
    </html>

     

     

     

     

    This is the script that sends information in webform to a database , this file is called submit_tutorial.php

     

    <?
    session_start();
    include"../template/admined.php";
    include"../config.php";
    
    if($submit)
    { 
    
    if(!empty($judul) && !empty($pict) && !empty($icon) && !empty($upload) && !empty($elm) && !empty($elm1))
    {
    	$location = "./images/".$HTTP_POST_FILES['pict']['name'];
    	$location1 = "./images/".$HTTP_POST_FILES['icon']['name'];
    	$location2 = "./file/".$HTTP_POST_FILES['upload']['name'];
    	move_uploaded_file($pict, $location);
    	move_uploaded_file($icon, $location1);
    	move_uploaded_file($upload, $location2);
    	mysql_query("INSERT INTO tutorial(id,title,preview,details,picture,icon,type,file) values('','$judul','$elm','$elm1','$location','$location1','$type','$location2')") or die(mysql_error());
    	echo "<center>Succesfully Added <a href='admin_tutorial.php'>Back</a>";
    
    
    }else{
    	echo"<script>alert('Should not empty');history.go(-1)</script>";
    
    }
    
    }else{ echo"<script>alert('Failed to edit');history.go(-1)</script>";
    
    }
    
    ?>
    
    </div>
    
    <div class="clear"></div>
    <div id="footer">
    <span style="float:right; margin:5px 25px 0 0; color:#5a5a5a">© Copyright 2008 <strong><a href="#">Purple Fusion</a></strong> - All Rights Reserved</span>
        <span style="float:left; margin:5px 0 0 45px; color:#5a5a5a"><a href="http://validator.w3.org/check?uri=referer">HTML Validation</a>   |   <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS Validation</a></span>
    </div>
    </body>
    </html>

  6. hey everyone

    i would simply like t n how the following effect is acheived

     

    i have ust used the follwoing site as an example

    www.daily.co.uk

     

    how do u get it soo that different page have different menus according to the page name

     

    see the domains page that has a menu called domains and all the menu items

    then the web hosting page has a menu called web hosting and all the menu items

     

    hows this done ?

     

    includes?

    seperate templates?

     

    thank u  ;D

  7. hey everyone

     

    i would like to know how this effect is implemented

     

    say for example i have a site www.yoursite.com

     

    and i have the page links.php

     

    the url would be www.yoursite.com/links.php

     

    how would u change it so that it appeared as www.yoursite.com/links

  8. got a freelancer to build me up a website over a year ago

    lost his contact details .

     

    basically the site is a tutorial site that pulls the tutorials from a mysql database ,there is an admin backend to the site which lets me edit and add tutorials , problem is when i try to edit at current the site echos the message "there is no item " in a pop up box.

     

    even on trying to edit existing tutorials which are still visible to the public , it echos the same error message when trying to edit!

     

    www.purplefusion.co.uk is the web adress! im not sure which files are causing the problem

     

     

  9. hi guys

     

    i recently got someone to put me a website together with the core of the site coded in php and mysql .as you can see if you follow this link (http://www.purplefusion.co.uk) the site is a tutorial based website with the bulk of the tutorials obviously being pulled from a back end database which i can add tutorials too ,through the admin backend built into the site.

     

    problem is , at first it was working fine and i could add tutorials etc no problem but now when i try and edit or add a new tutorial - i am printed :error there is no item

     

    i do not understand this at all as i am by no means a coder

     

    any help would be grately appreciated

     

    cheers

  10. i recently got some one to put me a website together which contains tutorials on various pieces of  software , dreamweaver,photoshop etc.

     

    the site was working fine initaly for the first few weeks but now when i edit a tutorial using the admin backend behind the site,any changes made will not be updated in the database backend where the tutorials are pulled from .

     

    i dont know why this is and would really appreciate the help of a php/mysql genius in resolving the issue!

     

    many thanks for your help

     

    louis

     

    :)

  11. i dont think that type of box i supposed to send more than one query at a time,i may be wrong, i would suggest using radio buttons perhaps

     

    try that?

     

    btw im a php noob and that was my first crack at building a contact form using php,anyhowz i hope the code has helped you get your form up and running

     

    :)

  12. i am jst learning php via tutorials and have uploaded this code to a server,its just a really basic form no validation whatsoever, what is wrong with it thats stopping it send emails ,sorry its probably terrible but i only just started learing.

     

    <?php
    /* Details Of Email */
    $to="aircooled57@yahoo.co.uk";
    $subject="Contact Form Submission";
    
    $clientname=$_POST['name'];
    $clientemail=$_POST['email'];
    $message=$_POST['message'];
    
    $details= "Email:$clientemail<br>
    Name:$clientname<br>
    Message:$message<br>";
    
    mail($to,$subject,$details);
    
    ?>

     

    <!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>
    </head>
    <body><form action="postform.php" method="post" enctype="multipart/form-data" name="contactform">
    Name:<input type="text" name="name" value="Enter Your Name...." /><br><P>
    Email:<input type="text" name="email" /><br><p>
    Comments:<textarea name="comments" cols="" rows="6"></textarea>
    <input name="submit" type="submit" value="Send Data" />
    </form>
    
    </body>
    </html>

×
×
  • 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.