J0K3R's Profile User Rating: -----

Reputation: 13 Tradesman
Group:
Contributor w/DIC++
Active Posts:
298 (0.18 per day)
Joined:
19-December 08
Profile Views:
8,186
Last Active:
User is offline May 24 2012 03:08 AM
Currently:
Offline

Previous Fields

Country:
ZA
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
75

Latest Visitors

Icon   J0K3R is just here...

Posts I've Made

  1. In Topic: POST XML Data to server

    Posted 6 Jan 2012

    ok I got it working after a bit of playing around.

    The key here is to make sure the data you send through is formatted correctly and also the SSL Verify Settings are set. Here is the code I used.

    
            //Define POST URL and also payload
            define('XML_POST_URL',$url);
            $strdata = array('XML' => 'here goes the XML');
    
    //Initialize handle and set options
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, XML_POST_URL);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_POST, 1);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $strdata);
            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
            
            //Execute Request
            $result = curl_exec($ch);
            
            //Check for Errors
            if(curl_errno($ch)){
                $result = 'ERROR -> '. curl_errno($ch) .':'. curl_error($ch);
            } else {
                $returnCode = (int)  curl_getinfo($ch, CURLINFO_HTTP_CODE);
                switch($returnCode){
                    case 200:
                        break;
                    default:
                        $result = 'HTTP ERROR -> '.$returnCode;
                        break;
                }
            }
            
            //close the Handle
            curl_close($ch);
            
            //Output the Results
            echo $result;
            
            //Exit the script
            
            exit(0);
    
    
  2. In Topic: Link Color

    Posted 26 Dec 2011

    View Postmindiapolis, on 26 December 2011 - 09:30 PM, said:

    the menu is in a function
    function navBar()
    	{
    		
    		    echo "<div id = \"navBar\">";
    			echo "<ul id=\"menu\">"; 
    			echo "<li class=\"menuOption\"><a href=\"test.php\">Home</a></li>";
    			echo "<li class=\"menuOption\"><a href=\"managementTeam.php\">Management Team </a></li>";
    			
    			echo "<li class=\"menuOption\"><a href=\"charities.php\">Rescue Organizations  </a></li>";
    		
     			echo "<li class=\"menuOption\"><a href=\"treats.php\">Treats </a></li>";
    	      	echo "<li class=\"menuOption\"><a href=\"checkOut.php\">Orders</a></li>";
    			echo "</ul>";
    			echo "</div>";
    	} 
    
    


    here's the external css file
    #navBar {
    	background-color: #CD5555;
    	width: 200px;
    	padding-top: 50px;
    	padding-bottom: 250px;
    	float: left;
    }
    #navBar #menu {
    	margin-right: 6px;
    }
    
    .menuOption a{
    	color:  #ff0000 !!important; 
    	background-image: url(assets/bone2a.gif);
    	background-repeat: no-repeat;
    	padding-bottom: 25px;
    	list-style-type: none;
    	height: 20px;
    	padding-top: 26px;
    	text-align: center;
    }
    
    body {
    	background-color: #933;
    	color: #D9D9D9;
    } 
    #logo  {
    	text-align: center;
    	margin-top: 5px;
    }
    #footer {
    	font-style: italic;
    	text-align: center;
    }
    
    
    


    Why dont you add the background image to the <li> instead of the <a> but still it shouldnt remove the background image..

    Remove the !!important from that color aswell.

    Add Display:block; to the CSS for the a items aswell.
  3. In Topic: Link Color

    Posted 26 Dec 2011

    View Postmindiapolis, on 26 December 2011 - 09:12 PM, said:

    when I add the a:color code the background image disappeared


    Please post your HTML for the menu and the CSS. tx.
  4. In Topic: Link Color

    Posted 26 Dec 2011

    View Postmindiapolis, on 26 December 2011 - 09:01 PM, said:

    I'm really confused. I pasted screenshots so you can see what it looked like


    first of all... You pasted it into a Word document.. and then added the Doc File.
    Second of all I dont see why you say it didnt work.. in the Screenshot the link colors turned black when you added the CSS like Atli told you to?

    Please specify why that didnt work?
  5. In Topic: Link Color

    Posted 26 Dec 2011

    View PostAtli, on 26 December 2011 - 08:53 PM, said:

    Sorry, but I refuse to use Word documents on principle.
    Judging by the size of it, I'm assuming you're just wrapping images into a Word document? Upload them here directly if you expect us to be able to look at them.

    J0K3R said:

    Atli. any reason you would use RGB instead of Hex color codes?

    Not really no. I just prefer the way it looks.

    It's basically the same thing, really, just in a more human-readable format. I mean, why type out #RRGGBB, where each color is a 00-FF HEX range, when you can just type of each color in our typical 0-255 range.

    Unless you're really really starved for bandwidth... :)


    Its easier for me to work with because photoshop gives the Hex value by default.. I just wondered. :)

My Information

Member Title:
D.I.C Regular
Age:
27 years old
Birthday:
October 1, 1985
Gender:
Location:
Bloemfontein
Full Name:
Janes Oosthuizen
Years Programming:
5
Programming Languages:
Well known : PHP, Classic ASP, Javascript, HTML/CSS, jQuery, SQL
In Progress : ASP.NET, C#

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  janesoosthuizen@hotmail.com
Website URL:
Website URL  http://www.janes.co.za
Skype:
Skype  janes.oosthuizen
Twitter:
JanesOosthuizen

Friends

Comments

J0K3R has no profile comments yet. Why not say hello?