Web Design Forum: Alex_McI - Viewing Profile - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting

Alex_McI's Profile User Rating: -----

Reputation: 0 Neutral
Group:
Members
Active Posts:
221 (0.15 per day)
Joined:
24-April 08
Profile Views:
4,625
Last Active:
User is offline May 24 2012 12:12 PM
Currently:
Offline

My Information

Member Title:
Dedicated Member
Age:
20 years old
Birthday:
August 7, 1991
Gender:
Male Male

Contact Information

E-mail:
Private
MSN:
MSN  idunno2345@live.co.uk
Website URL:
Website URL  http://www.twitter.com/mcintosh101

Users Experience

Experience:
Advanced
Area of Expertise:
Designer/Coder

Posts I've Made

  1. In Topic: Sub menu inheriting background as parent in IE8

    24 May 2012 - 11:54 AM

    I have included:
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1d97c3', endColorstr='#75c5e0',GradientType=0 ); /* IE6-8 */
    


    but it obviously isn't working, is that what you meant?

    Thank you! Alex.

    View PostWickham, on 24 May 2012 - 08:16 AM, said:

    It looks OK in my IE9 except that Business Broadband with the arrows is too wide for the tag, Simplest solution is to delete the word Business:-
    <li><a href="#">Broadband &raquo;</a>
    

    or think of different words or try to widen the li or "a" tag.

    IE7 looks bad because it doesn't process transition:opacity but you could try filter styles for IE7 (google for it).
  2. In Topic: Sub menu inheriting background as parent in IE8

    24 May 2012 - 07:44 AM

    Anyone?
  3. In Topic: wordpress upgrade broke website

    12 September 2011 - 03:54 PM

    View PostRenaissance-Design, on 12 September 2011 - 03:49 PM, said:

    WP now requires PHP5, so it's not likely to be that.

    Open up header.php (or whatever file it is) and replace the call to mainMenu() with wp_nav_menu().


    Thank you, I will try that tomorrow, although the menu already defined, does this mean I have to re do it but through the wordpress "menu" area if I declared it in that way?
  4. In Topic: wordpress upgrade broke website

    12 September 2011 - 02:59 PM

    Do you think it could be to do with upgrading to PHP 5 - Before I initially updated wordpress I had to manually upgrade to PHP 5 through the HTACCESS... Then this problem occurred, obviously now it is too late to actually downgrade again so I'm not sure what to do...

    I am going to have to revert the website back soon though before 5PM GMT... Really not sure why this is happening.
  5. In Topic: wordpress upgrade broke website

    12 September 2011 - 02:46 PM

    View PostRenaissance-Design, on 12 September 2011 - 02:34 PM, said:

    Can you post the whole function that Line 80 comes in?


    My PHP is not brilliant, here is what I assume is the whole function, if not, please tell me and I will post more.

    Line 80 starts with "<li class="page_item page-item-" if you want to copy and CTRL(CMD)+F for it.

    <?php
    /**
     * @package WordPress
     * @subpackage Classic_Theme
     */ 
     
    function elliStr($s,$n) {
    for ( $x = 0; $x < strlen($s); $x++ ) {
    $o = ($n+$x >= strlen($s)? $s : ($s{$n+$x} == " "?
    substr($s,0,$n+$x) . " ..." : ""));
    if ( $o!= "" ) { return $o; }
    }
    }
    
    function first_words($string, $num, $tail='<br/>')
    {
    $words = str_word_count($string, 2);
    $firstwords = array_slice( $words, 0, $num);
    return  implode(' ', $firstwords).$tail;
    }
    
    function last_words($string, $num, $tail='<br/>')
    {
    $words = str_word_count($string, 2);
    $firstwords = array_slice( $words, 10, $num);
    return  implode(' ', $firstwords).$tail;
    } 
     
    function mainMenu(){
    global $wpdb;
    
    $current_id = $post_id;
    $post_id = get_post($current_id); 
    $title = $post_id->post_title;
    
    $parentResID = $wpdb->get_results("SELECT post_parent, ID FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND post_title='$title' ORDER BY menu_order");
    foreach ($parentResID as $parentResID) {
    $parentParentRes = $parentResID->post_parent;
    $parentIDRes = $parentResID->ID;
    
    if($parentParentRes==0){
    $parentResName = $wpdb->get_results("SELECT post_title FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND ID='$parentIDRes' ORDER BY menu_order");
    foreach ($parentResName as $parentResName) {
    $parent = $parentResName->post_title;
    }
    }
    
    if($parentParentRes!=0){
    $parentRes = $wpdb->get_results("SELECT post_parent, ID FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND ID='$parentIDRes' ORDER BY menu_order");
    	foreach ($parentRes as $parentRes) {
    	$parentID = $parentRes->post_parent;
    	}
    	
    
    $parentRes1 = $wpdb->get_results("SELECT post_title, ID FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND ID='$parentID' ORDER BY menu_order");
    	foreach ($parentRes1 as $parentRes1) {
    	$parent = $parentRes1->post_title;
    	}
    
    
    if($parentID!=0){
    	$parentRes2 = $wpdb->get_results("SELECT post_parent, ID FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND ID='$parentID' ORDER BY menu_order");
    		foreach ($parentRes2 as $parentRes2) {
    		$parentID2 = $parentRes2->post_parent;
    		}
    	
    	$parentRes3 = $wpdb->get_results("SELECT post_title, ID FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND ID='$parentID2' ORDER BY menu_order");
    		foreach ($parentRes3 as $parentRes3) {
    		$parent = $parentRes3->post_title;
    		}
    }
    
    
    }
    
    }
    
    $menuRes = $wpdb->get_results("SELECT post_title, post_name, ID FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND post_name='industrial-cleaning-divisions' OR post_name='services' OR post_name='case-studies' OR post_name='products' OR post_name='news' OR post_name='co2-evaluation' OR post_name='company' OR post_name='faq' OR post_name='contact' ORDER BY menu_order");?> 
    
    <li class="page_item page-item-<?php echo $post_id; ?>"><a href="<?php bloginfo('url'); ?>" title="Home">Home</a></li><?php
    		
    		foreach ($menuRes as $menuRes) {
    		$menulink = $menuRes->post_name;
    		$menutitle = $menuRes->post_title;
    		$menuID = $menuRes->ID;
    		
    		
    								
    		if($title == $menutitle  || $parent==$menutitle ){
    		?><li class="page_item page-item-<?php echo $menuID; ?> current_page_item">
    <div xmlns:v="http://rdf.data-vocabulary.org/#"> 
      <span typeof="v:Breadcrumb">
    
    <a href="<?php bloginfo('url'); ?>/<?php echo $menulink; ?>" title="<?php echo $menutitle; ?>" rel="v:url" property="v:title"><?php echo $menutitle; ?></a><span></div></li><?php
    		}else{
    		?><li class="page_item page-item-<?php echo $menuID; ?>"><a href="<?php bloginfo('url'); ?>/<?php echo $menulink; ?>" title="<?php echo $menutitle; ?>"><?php echo $menutitle; ?></a></li><?php
    		}
    		}
    
    }
    
    function mainMenuFooter(){
    global $wpdb;
    
    $current_id = $post_id;
    $post_id = get_post($current_id); 
    $title = $post_id->post_title;
    
    $menuRes = $wpdb->get_results("SELECT post_title, post_name, ID FROM $wpdb->posts WHERE post_status='publish' AND post_type='page' AND post_name='industrial-cleaning-divisions' OR post_name='services' OR post_name='case-studies' OR post_name='products' OR post_name='news' OR post_name='co2-evaluation' OR post_name='company' OR post_name='faq' OR post_name='contact' ORDER BY menu_order");
    
        	if($title == "Home"){
    		?><li class="page_item page-item-<?php echo $post_id; ?>"><a href="<?php bloginfo('url'); ?>" title="Home">Home</a></li><?php
    		}else{
    		?><li class="page_item page-item-<?php echo $post_id; ?>"><a href="<?php bloginfo('url'); ?>" title="Home">Home</a></li><?php
    		}
    		
    		foreach ($menuRes as $menuRes) {
    		$menulink = $menuRes->post_name;
    		$menutitle = $menuRes->post_title;
    		$menuID = $menuRes->ID;
    								
    		if($title == $menutitle){
    		?><li class="page_item page-item-<?php echo $menuID; ?>"><a href="<?php bloginfo('url'); ?>/<?php echo $menulink; ?>" title="<?php echo $menutitle; ?>"><?php echo $menutitle; ?></a></li><?php
    		}else{
    		?><li class="page_item page-item-<?php echo $menuID; ?>"><a href="<?php bloginfo('url'); ?>/<?php echo $menulink; ?>" title="<?php echo $menutitle; ?>"><?php echo $menutitle; ?></a></li><?php
    		}
    		}
    
    }
    
    function homepageSideBar(){
    ?>