Reputation Activity
-
Faevilangel got a reaction from ilovedesignweb in Domain age or backlink age?Neither, it's the content that matters. Have relevant content and you will display higher.
Also backlinks are to do with quality rather than quantity, 10 links from other "professional web design" websites are loads better than 1000 links from a football website.
Domain age will be factored in due to it having lots of relevant links and Google can recognise that it is an established website. Using the right content, and the right backlinks will improve your rankings.
-
Faevilangel got a reaction from Precise Estimating Ltd in Dropdown menu with Javascript onclick?js
function profile_menu() { var d = document.getElementById(); if(d.style.display == 'none') { d.style.display = 'block'; } else { d.style.display = 'none'; } }
html
<a href="#" onclick="profile_menu; return false;"> Text here</a> <div class="user_menu" style="display:none;">'; <ul class="user_menu2"> <li> Link / text</li> <li> Link / text</li> <li> Link / text </li> </ul> </div>
css
/* user drop menu style*/ .user_menu { display:none; background:#E5E5E8; } .user_menu2 ul { background:#E5E5E8; } .user_menu2 li { display:block; background-color:#ffffff; }
thats only one menu block but you can easily add more
-
Faevilangel got a reaction from OwenONeill in Two WP Questions?To add a new functions.php file, create a new files user-functions.php, upload to your theme folder and in your functions.php file add this to the top of the file (after the <? php )
include('user-functions.php');
To change a user's level (responsibility) use the add_role function, which will create a new custom user role so you can still use the default WP roles. Each User Level is defined here
-
Faevilangel got a reaction from empek in Two WP Questions?To add a new functions.php file, create a new files user-functions.php, upload to your theme folder and in your functions.php file add this to the top of the file (after the <? php )
include('user-functions.php');
To change a user's level (responsibility) use the add_role function, which will create a new custom user role so you can still use the default WP roles. Each User Level is defined here
-
Faevilangel reacted to zed in IE css issuesline 174 - close the </div properly. May not solve the problem but could cause others.
-
Faevilangel reacted to Pedro in IE css issuesFrom what I see now, do the following:
First, in your HTML index file, change from id="Header" to id="header".
Second, remove the negative margin top from #head-nav. leave it as:
#head-nav{ height: 60px; margin: 0 0 0 100px; width: 100%; }
Third, add overflow:hidden to #MainWrapper:
#MainWrapper{ overflow:hidden; }
Fourth: add this to your css:
#head-nav ul li { float: left; }
Update and let me know for more debugging
-
Faevilangel reacted to markeh in CSS menuGot it!
http://dl.dropbox.com/u/48155/Misc/wdf/canada%20visas%20-%20WM%20Immigration.html
What I've done is make the background be part of the a attribute rather than the li.
The arrows, and there directions is not 100% correct, I removed a background image. If that fixes the structure though the images can be fixed easily.
Please test it out, compare it to yours and if your still stuck get back to me.
-
Faevilangel got a reaction from apollo-articles in Changing page title size (Wordpress)add this to your css.
#contentwide .post h1 { font-size:24px; <!-- change this to your ideal size --> }
-
Faevilangel got a reaction from kingy da killa in nooby question rack up those +1s :)Below
.emptycart { background-image: url(./images/button1.png); height:17px; text-align:center; width:85px; } .gocheckout { background-image: url(./images/button1.png); height:17px; text-align:center; width:85px; margin-top:4px; } .emptycart:hover { background-image: url(./images/button1-hover.png); height:17px; text-align:center; width:85px; } .gocheckout:hover { background-image: url(./images/button1-hover.png); height:17px; text-align:center; width:85px; margin-top:4px; }
All I did is add the :hover command to the css argument.
-
Faevilangel got a reaction from kingy da killa in WP - Make a link show when logged in, but not there when not logged in<?php if ( is_user_logged_in() ) { ?> <a href="/wp-admin/profile.php">My Profile</a> <?php } else { ?> <a href="login.php">Login / Register</a> <?php }
-
Faevilangel got a reaction from welshhuw in Get work from Australia?International BT will cost them to send, and your bank might charge you currency conversion fees, so cheapest way (depending on price) would be Paypoo (Paypal).
I only use PP for international clients as it's far easier than finding my IBAN number and then getting charged currency conversion charges.
-
Faevilangel reacted to henbast in SQL ORDER BY not working ?Change to:
$readresult=$write->query("SELECT title, created_time, identifier, post_content FROM aw_blog WHERE status=1 ORDER BY identifier LIMIT 5");//select from db last 5 post
ORDER BY needs to go after the WHERE clause.
-
Faevilangel got a reaction from Dizi in wordpress multiple languagescouple of plugins here or you can make the theme multilingual by creating a .po file and modifying the theme files a little.
-
Faevilangel got a reaction from kingy da killa in how to link ie7 style sheet<!--[if IE 7]> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/ie7.css"> <![endif]-->
You are missing a > after the IE command, then also the / after the php code.
-
Faevilangel got a reaction from kingy da killa in style images to widgets titles - WPIf you're setting widgets, then set it via the widget php code e.g.
if ( function_exists('register_sidebar') ) register_sidebar(array( 'name'=>'Sidebar_1' 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2 id="some-widget">', 'after_title' => '</h2>', )); ?>
That goes in your function.php files.
#some-widget { color:#000; background:url(./images/widget-icon.png) no-repeat; padding:0 0 0 30px; }
That is your css.
Now for your sidebar.php add
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
No need to hard code the ul's and you have more control over the styling.
-
Faevilangel got a reaction from MikeChipshop in style images to widgets titles - WPIf you're setting widgets, then set it via the widget php code e.g.
if ( function_exists('register_sidebar') ) register_sidebar(array( 'name'=>'Sidebar_1' 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2 id="some-widget">', 'after_title' => '</h2>', )); ?>
That goes in your function.php files.
#some-widget { color:#000; background:url(./images/widget-icon.png) no-repeat; padding:0 0 0 30px; }
That is your css.
Now for your sidebar.php add
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
No need to hard code the ul's and you have more control over the styling.
-
Faevilangel got a reaction from Jo 90 in query_posts wordpressYou're missing the end query at the end of the 2 sidebars e.g.
<?php wp_reset_query(); ?>
If you don't end the query, when you use the loop, it will continue to use the open query.
-
Faevilangel got a reaction from Dizi in query_posts wordpressYou're missing the end query at the end of the 2 sidebars e.g.
<?php wp_reset_query(); ?>
If you don't end the query, when you use the loop, it will continue to use the open query.
-
Faevilangel got a reaction from Renaissance-Design in query_posts wordpressYou're missing the end query at the end of the 2 sidebars e.g.
<?php wp_reset_query(); ?>
If you don't end the query, when you use the loop, it will continue to use the open query.
-
Faevilangel reacted to Jock in php upload & email scriptI guess so, just go back to using $_FILES['uploaded_file']['type'] its probably better than nothing. I guess if anything bad does happen you can refer them back to this thread to prove you made it as secure as possible given the environment restrictions.
-
Faevilangel reacted to Jock in php upload & email scriptAssuming you have PHP 5 and FileInfo...
<?php class Upload extends SplFileInfo { private $allowed_types = array("image/jpeg", "image/pjpeg"); public function getMime() { $filename = $this->getRealPath(); $finfo = finfo_open(FILEINFO_MIME); $mimestring = finfo_file($finfo, $filename); finfo_close($finfo); $mimetype = explode(';', $mimestring); return trim($mimetype[0]); } public function isValid() { return in_array($this->getMime(), $this->allowed_types); } } $your_email ='gillman56@googlemail.com';// <<=== update to your email address $visitor_email = ''; $error = ''; if(isset($_POST['submit'])) { if(isset($_FILES['uploaded_file']['tmp_name'])) { $upload = new Upload($_FILES['uploaded_file']['tmp_name']); //Perform upload if(!$upload->isValid()) { echo "You are uploading an invalid file type"; } elseif($upload->getSize() > 340000){ echo "Your file size is to large"; } else { //SEND EMAIL CODE $to = $your_email; $subject="Uploaded file"; $from = $visitor_email; $body = "Paypal Email: $visitor_email \n". "Image Uploaded: $newname \n". $headers = "From: $from \r\n"; $headers .= "Reply-To: $visitor_email \r\n"; if(move_uploaded_file($upload->getRealPath(), 'uploads/'.$_FILES['uploaded_file']['name'])) { echo "Your file has been uploaded"; //mail here? if(!headers_sent()) { header("Location: /index.html"); } else { echo "<p>Redirecting...</p><script>window.location='/index.html';</script>"; } } } } else { echo "Please choose a file to upload"; } } ?> <form action="<?=$_SERVER[php_SELF]; ?>" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="uploaded_file" id="file" /> <input type="submit" name="submit" value="Submit" /> </form>
-
Faevilangel reacted to webdeveloper93 in php upload & email scriptmmmm this <input type="file" name="file" id="file" /> should be <input type="file" name="uploaded_file" id="file" />, where it says
!empty($_FILES["uploaded_file"]["name"])) uploaded_file is the name of your field so if the name of your field is file then you need to replace uploaded_file with the name file
-
Faevilangel reacted to webdeveloper93 in php upload & email script<?php $allowed_types = array("image/jpeg","image/pjpeg"); if(isset($_POST['submit'])){ if(isset($_FILES['uploaded_file']['name'])){ //Perform upload if(!in_array($_FILES['uploaded_file']['type'],$allowed_types)){ echo "You are uploading an invalid file type"; } elseif($_FILES['uploaded_file']['size'] > 340000){ echo "Your file size is to large"; } else{ //SEND EMAIL CODE if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'],'uploads/'.$_FILES['uploaded_file'] ['name'])){ //SEND EMAIL AND ECTO FILE UPLOADED echo "Your file has been uploaded"; } } }else{ echo "Please choose a file to upload"; } } ?>
-
Faevilangel reacted to webdeveloper93 in php upload & email scriptfound ur prob exit; ur calling that before the upload so its not calling the move_uploaded_file bit and ur redirecting before the move_uploaded_file bit
<?php $your_email ='gillman56@googlemail.com';// <<=== update to your email address $visitor_email = ''; $error = ''; $allowed_types = array("image/jpeg","image/pjpeg"); if(isset($_POST['submit'])){ if(isset($_FILES['uploaded_file']['name'])){ //Perform upload if(!in_array($_FILES['uploaded_file']['type'],$allowed_types)){ echo "You are uploading an invalid file type"; } elseif($_FILES['uploaded_file']['size'] > 340000){ echo "Your file size is to large"; } else{ //SEND EMAIL CODE $to = $your_email; $subject="Uploaded file"; $from = $visitor_email; $body = "Paypal Email: $visitor_email \n". "Image Uploaded: $newname \n". $headers = "From: $from \r\n"; $headers .= "Reply-To: $visitor_email \r\n"; if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'],'uploads/'.$_FILES[ 'uploaded_file'] ['name'])){ //SEND EMAIL AND ECTO FILE UPLOADED echo "Your file has been uploaded"; } header("Location:index.html"); exit; } }else{ echo "Please choose a file to upload"; } } ?>
Try that btw idk if u noticed but ur not calling the mail function to even send the email
-
Faevilangel reacted to Jock in php upload & email scriptif(!headers_sent()) { header("Location: /index.html"); } else { echo "<p>Redirecting...</p><script>window.location='/index.html';</script>"; }
You have a serious security problem using $_FILES['uploaded_file']['type'], its supplied by the browser. So I could upload a malicious php script and tell your server it was a image/jpeg and your server would accept it.