WEEK IN REVIEW: DESIGN REVIVER ANSWERS
It has right away been dual weeks given the launch of Design Reviver Answers, and we couldn’t be happier. Even some-more members, nonetheless some-more visitors, an contentment of questions and a ruin of a lot some-more answers – we unequivocally have been office building a good web design village portal!
We felt it would be good to share with you the the one preferred Questions and Answers, and ask you: “Have you asked a subject yet?“
Would I Possibly Be Able To Know What Language My Websites Visitors Use?
This subject was asked by Rollback999:
Answer from Themans?:
“Sure! This is often used for showing and afterwards interpretation of a webpage.
Function getPreferredLanguage() {
$langs = array();
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
// mangle up fibre in to pieces (languages and q factors)
preg_match_all(‘/([a-z]{1,8}(-[a-z]{1,8})?)s*(;s*qs*=s*(1
0.[0-9]+))?/i’,
$_SERVER['HTTP_ACCEPT_LANGUAGE'], $lang_parse);
if (count($lang_parse[1])) {
// emanate a list similar to “en” => 0.8
$langs = array_combine($lang_parse[1], $lang_parse[4]);
// set default to 1 for any but q factor
foreach ($langs as $lang => $val) {
if ($val === ”) $langs[$lang] = 1;
}
// arrange list formed on value
arsort($langs, SORT_NUMERIC);
}
}
//extract many critical (first)
foreach ($langs as $lang => $val) { break; }
//if formidable denunciation facilitate it
if (stristr($lang,”-”)) {$tmp = explode(“-”,$lang); $lang = $tmp[0]; }
lapse $lang;
}Source: www.barattalo.it“
How Can I Redirect Mobile Users?
This subject was asked by Heri Setiawan:
Answer from Joel Reyes?:
“If you’re seeking to route users which revisit your site on a mobile height afterwards you can hide this inside of your html file. It’s a really elementary JavaSript code.
if (screen.width
All you have to do is elementary reinstate the mobilevs.php with the place of your sites mobile version.”
Answer from Heri Setiawan?:
“Hi joel. That’s good trick. But i suggest to make make use of of this PHP mobile detection, as it can be used to acknowledge any mobile platform, similar to Windows Mobile, Blackberry, Opera Mini, Android, Iphone, etc.
How Do I Protect My Email Addresses On My Blog?
This subject was asked by Themans:
Answer from Autobots?:
“If you’re perplexing to run a some-more secure enviornment by protecting/encrypting emails afterwards you can make make use of of the following book to strengthen opposite bots and spyders.
Code:
function hide_email($email) { $character_set = ‘+-.0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz’; $key = str_shuffle($character_set); $cipher_text = ”; $id = ‘e’.rand(1,999999999); for ($i=0;$i”+d+””‘; $script = “eval(“”.str_replace(array(“”,’”‘),array(“\”,’”‘), $script).””)”; $script = ”; lapse ‘[javascript stable email address]‘.$script; }Source: www.maurits.vdschee.nl“
How Can I Customize My UL List?
This subject was asked by Themans:
“UL Lists have been for the many partial the same, there is frequency many you can do when it comes to customizations over the links, content color, etc. However, here’s a book which will emanate a elementary slide-out outcome for your UL lists. Enjoy!
Create an ID territory in your CSS. We afterwards place the following as your HTML:
Now we need a little JavaScript formula to concede the Slide-Out outcome to take life:
window.addEvent(‘domready’, function() {
/* From the list with ID myList, for each li component of the list…: */
$(‘myList’).getElements(‘li’).each(function(e){
/* …get the ID of the comparison object */
e.getElement(‘a’).addEvent(‘click’, function(listID){
/* Enable Fx.Slide outcome for the comparison object */
var list_element = brand new Fx.Slide(listID);
/* Enable slideOut() outcome */
list_element.slideOut()
}.pass(e.id));
});
});Source: woork.blogspot.com“
What Books Do You Recommend For A Beginner To Kick Off The Start Of Learning Web Design?
This subject was asked by Shu:
Answer from Heri Setiawan:
“These competence assistance beginner:
Principles Of Beautiful Web Design
Adobe Photoshop CS3 Classroom in a Book
XHTML And CSS : A Web Standards Approach <- this one is awesome
The CSS Anthology : 101 Essential Tips, Tricks & Hacks
WordPress Theme Design (here is the newer version)”
Answer from Heri Setiawan:
“HTML and CSS Web Standards Solutions: A Web Standardista’s Approach.
HTML Dog: The Best-Practice Guide to XHTML and CSS.
The Zen of CSS Design (see css Zen Garden).”
What Next for Design Reviver Answers?
Michael Lajlev asked us this question: Please Make An Option For Showing If A Topic Is Resolved And How Many Comments Is Made To A Q?. Its a satisfactory subject and this is the answer:
“Thanks for the suggestions Michael, we will be adding the series of answers onto the subject pages shortly. At the impulse we don’t have any skeleton to close questions (and symbol them resolved) I know a little Q&A sites similar to yahoo answers have which complement so it competence be something for us to supplement in the future.”
If any one else has any suggestions or ideas on how we can urge the site, we would love to listen to from you.
Thanks again, firstly to everybody who asked a question, but many importantly interjection to everybody which took the time to suggest regularly beneficial and utilitarian answers.
Here is the strange post:
Popularity: 1% [?]
