Aug
31
2010
0

{ cufon } fonts for the people . . . customized wordpress fonts

once upon a time back in ‘99 the first browsers 2 of them , netscape and internet explorer , had some kind of a customized  font support , which worked better in IE (get the font locally and then use it on your tags ) . netscape is a forgotten project but IE didn’t make anything with it . now, i recently found something that is working almost perfect in most of the browsers less Internet Explorer :d .

cufón . its use is pretty simple but to implement it in wordpress takes some time especially if you want to use custom fonts for the #storycontent id that wraps around the text blogcontent.  above all, you must find "complete fonts"  for normal, bold and italic style, punctuation and symbols  support. nevertheless there are a lot of options that cufon has to offer to trick wordpress .
 it seems that in opera when you switch in fullscreen , this browser displayes the webpage in "fluid mode" . :(   
anyway beautiful project by Simo Kinnunen , i never thought i would ever see something like this . 

Written by ignition at: 03:58:35pm Tuesday, August - 2010 in: www |
Aug
26
2010
0

improved expandable < !--more--> post wordpress blog :)

at last!!!  i managed to get it to work after learning how to use single and double quotes in php , trying to understand a javascript script and searching for the lines to edit the <!–more–> wordpress option .

i hate the <!–more–> wordpress option because it splits the post in two when it sees this tag and throws the second half to trash . google will index only the first half and this s*&^*(#$%^ because i need the page with full posts so i can bring visitors that search randomly word pairs  ;) .

when wordpress publish, everything happens here “site.com/wp-includes/post-template.php”, and when it sees <!–more–> truncates the post then runs this

$output .= apply_filters( ‘the_content_more_link’, ‘ <a href=”‘ . get_permalink() . “#more-$id\” class=\”more-link\”>$more_link_text</a>”, $more_link_text );

we change it into this :

$output .= apply_filters( ‘the_content_more_link’, ‘ <script type=”text/javascript”>$(document).ready(function() { $(\’#expand-’.$id.’\').click(function() { $(\’#more-’.$id.’\').slideToggle(620); var temp= $(\’#expand-’.$id.’\').html() ; if ( temp.search(\’more\’) != -1 ) {  $(\’#expand-’.$id.’\').html( \’<b>&#247; collapse post &#171;</b>\’ ); } else { $(\’#expand-’.$id.’\').html( \’<b>&#247; expand post to read more &#187;</b>\’ );} return false; }); });</script> <div id=”more-’.$id.’” style=” display: none ;”>’.$content[1].’</div> <p title=”click” style=”cursor: help”  id=”expand-’.$id.’”><b>&#247; expand to read more &#187;</b>’, $more_link_text );
 
as you can see half of your content is kept in the second element of the array $content :p . add a jquery framework to the <head>er of your wordpress blog . my wordpress transition plugin install it as default and treats  the simple “#” href link weird ;) . that's why we need a <p> tag .  but if you don't have this plugin installed you can use href :d .

many thanks to Karl Swedberg , his idea is brilliant .

÷ expand to read more »

Written by ignition at: 01:45:35pm Thursday, August - 2010 in: www |
May
24
2010
0

google seo idea working ooops . . .

let’s say you have to do a site with 20-25 pages and each page has less than 1k text . tough one, what should we do ??? google will not index this page always, sometimes maybe will index it who knows ? here’s a hint .
use a single Tabbed page & send all the traffic to that page .

scripts and idea briefly :

var origWidth, origHeight;
if (document.layers) {
origWidth = window.innerWidth; origHeight = window.innerHeight;
window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }

} var cur_lyr; // holds id of currently visible layer

function swapLayers(id) { if (cur_lyr) hideLayer(cur_lyr); showLayer(id); cur_lyr = id; }

function showLayer(id) { var lyr = getElemRefs(id); if (lyr && lyr.css) lyr.css.visibility = “visible”; }

function hideLayer(id) { var lyr = getElemRefs(id); if (lyr && lyr.css) lyr.css.visibility = “hidden”; }

function getElemRefs(id) { var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
if (el) el.css = (el.style)? el.style: el; return el; }

then play with layers IDs  swapLayers(‘Player_A’);showLayer(‘P_B’); return false;  , use div classes, add in your body  onload=”swapLayers(‘load_default_layer’);” and that’s all . OR you may use this wonderful solution “http://www.barelyfitz.com/projects/tabber/” with CSS styling . you may get impressive results . ;)

one more thing . if you want quick 1st page 1st position google result to your “page” for several keywords you should buy a domain containing the keywords you want, to obtain a good position . buy a  domain like keyword1.keyword2.keyword3.keyword4.com and redirect as parked_domain to “page” .  you may also add subdirectories /keyword5/keyword7/~keyword10 .  stylish ;) .

÷ expand to read more »

Written by ignition at: 01:56:55am Monday, May - 2010 in: www |
May
16
2010
--

image changer wordpress blog

there are many ways to change your image-background , i found a lot of scripts that do a lot of things and their use is complicated . one simple way is to use custom file-names and variables  .  this works pretty well , use it in your “header.php” theme file :

<?php  // add your files ….
$bg_image=rand(1, 180);
echo “<style type=\”text/css\”> body { background: url(http://www.site.org/blog/wp-content/themes/images/load/custom”.$bg_image.”.jpg) no-repeat fixed center center #000; } </style> \n”
?>

Written by ignition at: 03:39:04pm Sunday, May - 2010 in: www |
FIL INTERCOM
FIL INTERCOM (en/us)
FIL INTERCOM - Despre
FIL INTERCOM - About
FIL INTERCOM - Produse
FIL INTERCOM - Products
FIL INTERCOM - Contact
FIL INTERCOM - Contact (en/us)
SITEMAP CURELE de TRANSMISIE Trapezoidale Late Sincrone Speciale Dintate Benzi transportoare - FIL INTERCOM Open Your Mind windowsnewslatest | windows microsoft news linuxnewslatest | linux news slackware gentoo mandriva debian js frameworks effects | javascript frameworks computer headaches | hardware software configs tricks tips Windows News music lovers audio songs movies reviews cartoon animations travel random sites random casual thoughts and words fresh drink recipes | I drink therefore I am. FILTRE compresoare aer pompe vid ventilatie ANDREAE desprefuire motoare - FIL INTERCOM PALETI din GRAFIT Palete din grafit - FIL INTERCOM PIESE COMPRESOARE Filtre Piese de schimb Lubrifianti Uleiuri - FIL INTERCOM POMPE VID Pompe de vacuum Filtre Separatoare aer ulei Piese schimb - FIL INTERCOM Different Poems Lifecycle Celebrations digital photography tips Influential Painters & Sculptors of Renaissance Encyclopedia of The World

"A national debt, if it is not excessive, will be to us a national blessing." - Alexander Hamilton
§ ° powered by Romarg Smart.Services+Hosting | use browser Firefox + laptop screenHeight| © 2010 ignition .