Basic Joomla! template
•April 21, 2009 • Leave a CommentDocType header – HTML
•April 21, 2009 • Leave a Comment- HTML 4.01 Strict: http://www.w3.org/TR/html4/strict.dtd“>
- HTML 4.01 Transitional: http://www.w3.org/TR/html4/loose.dtd“>
- HTML 4.01 Frameset: http://www.w3.org/TR/html4/frameset.dtd“>
- XHTML 1.0 Strict: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>
- XHTML 1.0 Transitional: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
- XHTML 1.0 Frameset: http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd“>
- XHTML 1.1 DTD: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd“>
For more information see http://www.w3.org/QA/2002/04/Web-Quality
I hate Israel?
•January 16, 2009 • 1 CommentI hate Israel
cause i cant accept killing angel, israel do kill the children and i think they are just some angel who dont know why they have been killed, I think the fucken looser Israel making the wrong thing killing children,
If you anyone dare to say you accept killing children like this…

I hate Israel
I dont know what you think ? but i found me i cant accept this angel die when i am there?
I do prefer to become a terrorist?
The word “terrorist” ????? Who is the terrorist asked your self i think if your not drank then your brain will give you the answer?
This is our world and all we are human? then why do we kill us? cause we dont kill us i think there are some human face animal who kill us, and they say they are working against terrorist?
If you ever say a true – let say who made this terrorist?
Few wOrDpReSs tips
•January 8, 2009 • 1 CommentTemplate Tags/query posts
if (window.showTocToggle) { var tocShowText = “show”; var tocHideText = “hide”; showTocToggle(); }
Description
Query_posts can be used to control which posts show up in The Loop. It accepts a variety of parameters in the same format as used in your URL (e.g. p=4 to show only post of ID number 4).
Why go through all the trouble of changing the query that was meticulously created from your given URL? You can customize the presentation of your blog entries by combining it with page logic (like the Conditional Tags) — all without changing any of the URLs.
Common uses might be to:
- Display only a single post on your homepage (a single Page can be done via Settings -> Reading).
- Show all posts from a particular time period.
- Show the latest post (only) on the front page.
- Change how posts are ordered.
- Show posts from only one category.
- Exclude one or more categories.
Important note
The query_posts function is intended to be used to modify the main page Loop only. It is not intended as a means to create secondary Loops on the page. If you want to create separate Loops outside of the main one, you should create separate WP_Query objects and use those instead. Use of query_posts on Loops other than the main one can result in your main Loop becoming incorrect and possibly displaying things that you were not expecting.
The query_posts function overrides and replaces the main query for the page. To save your sanity, do not use it for any other purpose.
Usage
Place a call to query_posts() in one of your Template files before The Loop begins. The wp_query object will generate a new SQL query using your parameters. When you do this, WordPress ignores the other parameters it receives via the URL (such as page number or category). If you want to preserve that information, you can use the variable $query_string in the call to query_posts().
For example, to set the display order of the posts without affecting the rest of the query string, you could place the following before The Loop:
query_posts($query_string . "&order=ASC")
When using query_posts in this way, the quoted portion of the argument must begin with an ampersand (&).
Examples
Exclude Categories From Your Home Page
Placing this code in your index.php file will cause your home page to display posts from all categories except category ID 3.
<?php
if (is_home()) {
query_posts("cat=-3");
}
?>
You can also add some more categories to the exclude-list(tested with WP 2.1.2):
<?php
if (is_home()) {
query_posts("cat=-1,-2,-3");
}
?>
Retrieve a Particular Post
To retrieve a particular post, you could use the following:
<?php
// retrieve one post with an ID of 5
query_posts('p=5');
?>
If you want to use the Read More functionality with this query, you will need to set the global $more variable to 0.
<?php
// retrieve one post with an ID of 5
query_posts('p=5');
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
// the Loop
while (have_posts()) : the_post();
// the content of the post
the_content('Read the full post »');
endwhile;
?>
Retrieve a Particular Page
To retrieve a particular page, you could use the following:
<?php
query_posts('page_id=7'); //retrieves page 7 only
?>
or
<?php
query_posts('pagename=about'); //retrieves the about page only
?>
For child pages, the slug of the parent and the child is required, separated by a slash. For example:
<?php
query_posts('pagename=parent/child'); // retrieve the child page of a parent
?>
Passing variables to query_posts
You can pass a variable to the query with two methods, depending on your needs. As with other examples, place these above your Loop:
Example 1
In this example, we concatenate the query before running it. First assign the variable, then concatenate and then run it. Here we’re pulling in a category variable from elsewhere.
<?php $categoryvariable=$cat; // assign the variable as current category $query= 'cat=' . $categoryvariable. '&orderby=date&order=ASC'; // concatenate the query query_posts($query); // run the query ?>
Example 2
In this next example, the double ” quotes ” tell PHP to treat the enclosed as an expression. For this example, we are getting the current month and the current year, and telling query posts to bring us the posts for the current month/year, and in this case, listing in ascending so we get oldest post at top of page.
<?php $current_month = date('m'); ?>
<?php $current_year = date('Y'); ?>
<?php query_posts("cat=22&year=$current_year&monthnum=$current_month&order=ASC"); ?>
<!-- put your loop here -->
Example 3
This example explains how to generate a complete list of posts, dealing with pagination. We can use the default $query_string telling query posts to bring us a full posts listing. We can also modify the posts_per_page query argument from -1 to the number of posts you want to show on each page; in this last case, you’ll probably want to use posts_nav_link() to navigate the generated archive. .
<?php
query_posts($query_string.'&posts_per_page=-1');
while(have_posts()) { the_post();
<!-- put your loop here -->
}
?>
Example 4
If you don’t need to use the $query_string variable, then another method exists that is more clear and readable, in some more complex cases. This method puts the parameters into an array, and then passes the array. The same query as in Example 2 above could be done like this:
query_posts(array( 'cat' => 22, 'year'=> $current_year, 'monthnum'=>$current_month, 'order'=>'ASC', ));
As you can see, with this approach, every variable can be put on its own line, for simpler reading.
Parameters
This is not an exhaustive list yet. It is meant to show some of the more common things possible with setting your own queries.
Category Parameters
Show posts only belonging to certain categories.
- cat
- category_name
- category__and
- category__in
- category__not_in
Show One Category by ID
Display posts from only one category ID (and any children of that category):
query_posts('cat=4');
Show One Category by Name
Display posts from only one category by name:
query_posts('category_name=Staff Home');
Show Several Categories by ID
Display posts from several specific category IDs:
query_posts('cat=2,6,17,38');
Exclude Posts Belonging to Only One Category
Show all posts except those from a category by prefixing its ID with a ‘-’ (minus) sign.
query_posts('cat=-3');
This excludes any post that belongs to category 3.
Multiple Category Handling
Display posts that are in multiple categories. This shows posts that are in both categories 2 and 6:
query_posts(array('category__and' => array(2,6)));
To display posts from either category 2 OR 6, you could use cat as mentioned above, or by using category__in:
query_posts(array('category__in' => array(2,6)));
You can also exclude multiple categories this way:
query_posts(array('category__not_in' => array(2,6)));
Tag Parameters
Show posts associated with certain tags.
- tag
- tag__and
- tag__in
- tag_slug__and
- tag_slug__in
Fetch posts for one tag
query_posts('tag=cooking');
Fetch posts that have either of these tags
query_posts('tag=bread,baking');
Fetch posts that have all three of these tags:
query_posts('tag=bread+baking+recipe');
Multiple Tag Handling
Display posts that are in multiple tags:
query_posts(array('tag__and' => array('bread','baking'));
This only shows posts that are in both tags ‘bread’ and ‘baking’. To display posts from either tag, you could use tag as mentioned above, or explicitly specify by using tag__in:
query_posts(array('tag__in' => array('bread','baking'));
The tag_slug__in and tag_slug__and behave much the same, except match against the tag’s slug instead of the tag itself.
Also see Ryan’s discussion of Tag intersections and unions.
Author Parameters
You can also restrict the posts by author.
- author_name=Harriet
- author=3
author_name operates on the user_nicename field, whilst author operates on the author id.
Post & Page Parameters
Retrieve a single post or page.
- p=1 – use the post ID to show the first post
- name=first-post – use the Post Slug to show the first post
- page_id=7
- pagename=about – note that this is not the page’s title, but the page’s path
- showposts=1 (you can also use showposts=3, or any number to display a limited number of posts
As a consequence of the Template Hierarchy, home.php executes first. This means that you can write a home.php which calls query_posts() to retrieve a particular page and set that to be your front page. Without any plugins or hacks, you have got a mechanism to run, show and maintain a non-bloggy front page.
More useful perhaps would be to take advantage of WP’s Page functionality and use that for your front page. You could set your “about page” to be the entry point or maybe your site’s colophon. You might even do something a bit more dynamic and set a custom page that shows a list of the latest comments, posts, categories and archives.
For multiple posts/pages, two more options exist:
- 'post__in' => array(1,2,3) – lets you directly specify a number of posts to retrieve
- 'post__not_in' => array(1,2,3) – exclusion lets you directly specify a number of posts NOT to retrieve
For sticky posts (available with WordPress Version 2.7):
- array('post__in'=>get_option('sticky_posts')) – returns array of all sticky posts
To exclude sticky posts in a query:
- caller_get_posts=1
To return just the first sticky post in a query:
- $sticky=get_option(’sticky_posts’) ;
- query_posts(‘p=’ . $sticky[0]);
Time Parameters
Retrieve posts belonging to a certain time period.
- hour=
- minute=
- second=
- day= – day of the month; shows all posts made, for example on the 15th.
- monthnum=
- year=
Page Parameters
- paged=2 – show the posts that would normally show up just on page 2 when using the “Older Entries” link.
- posts_per_page=10 – number of posts to show per page; a value of -1 will show all posts.
- order=ASC – show posts in chronological order, DESC to show in reverse order (the default)
Offset Parameter
You can displace or pass over one or more initial posts which would normally be collected by your query through the use of the offset parameter.
The following will display the 5 posts which follow the most recent (1):
query_posts('showposts=5&offset=1');
Orderby Parameters
Sort retrieved posts by this field.
- orderby=author
- orderby=date
- orderby=category
- orderby=title
- orderby=modified
- orderby=menu_order
- orderby=parent
- orderby=ID
- orderby=rand
Also consider order parameter of “ASC” or “DESC”
Custom field Parameters
Retrieve posts based on a custom field set in the post
Both the meta_key and meta_value need to be set.
- meta_key=
- meta_value=
Combining Parameters
You may have noticed from some of the examples above that you combine parameters with an ampersand (&), like so:
query_posts('cat=3&year=2004');
Posts for category 13, for the current month on the main page:
if (is_home()) {
query_posts($query_string . '&cat=13&monthnum=' . date('n',current_time('timestamp')));
}
At 2.3 this combination will return posts belong to both Category 1 AND 3, showing just two (2) posts, in descending order by the title:
query_posts(array('category__and'=>array(1,3),'showposts'=>2,'orderby'=>title,'order'=>DESC));
In 2.3 and 2.5 one would expect the following to return all posts that belong to category 1 and is tagged “apples”
query_posts('cat=1&tag=apples');
A bug prevents this from happening. See Ticket #5433. A workaround is to search for several tags using +
query_posts('cat=1&tag=apples+apples');
This will yield the expected results of the previous query. Note that using ‘cat=1&tag=apples+oranges’ yields expected results.
Do you want to create your own social network?
•October 2, 2008 • Leave a Commenthttp://www.ning.com
Try this …I do believe you like this…
Visit http://ilovemybangladesh.ning.com for bangladeshi lovers social network created by me.
Start Your Own Youtube Clone Site
•September 28, 2008 • 3 CommentsWith a huge variety of features and options, at an extremely affordable price, ClipShare is the ultimate script for starting your highly profitable video sharing community website just like the big boys: Youtube, DailyMotion, MySpace Videos or Google Video. ……………http://www.clip-share.com
Pligg, The Open Source Digg Clone
•September 28, 2008 • 1 CommentPligg is an open source Content Management System (CMS) available to download for free. Pligg has perfected content management in a unique way that encourages users to participate and control the content on the site. This makes the site user-moderated and allows for “social publishing” where the stories are created and promoted by members not website editors. Pligg CMS is based on PHP and MySQL technologies that allow it to be installed on almost any web host on a relatively small budget. For support please visit the Pligg Forum where you can find help 24 hours a
day thanks to our excellent development team and contributors. Pligg is free software, but you are welcome
to donate any amount by clicking the button below.
go mobile with Skype, MSN Messenger, ICQ, Google Talk™, SIP, Twitter, AIM & Yahoo!™
•September 28, 2008 • 3 Commentsfring™ is a mobile internet service & community that enables users to talk, chat & interact with other fringsters™ and their online communities, from their mobile phones.
Originating from a vision of freedom, fring was born out of a desire to fundamentally change the way people communicate. The fring founders, veterans of the mobile, internet and high tech industries, joined together to create an easy to use, consumer-centric, truly converged peer-to-peer service, enabling its users to take control of their online communications from one single place on their mobile phone, utilizing the handset’s inherent internet capabilities to do so.
fring sits at the heart of the fringsters™ online communication world allowing the freedom to communicate with all popular communities’ members (Skype®, MSN® Messenger, Google Talk™, ICQ, SIP, Twitter, Yahoo!™, AIM®) without boundaries, and regardless of device, network operator, platform or the community(ies) to which they belong.
The ethos of encouraging freedom and mobility extends to giving fringsters the choice between available connection types (3G, EDGE, GPRS or Wi-Fi) and the enjoyment of fring’s benefits without subscription; fring is totally free to download and free to use – the only cost incurred by the user is the mobile internet connection.
I did use Fring and i find fring very nice and useful . Try today.
Unity Makes everythings possible?
•September 28, 2008 • Leave a Comment
Now a days i think human are suffer unity problem. Please watch the full video and learn how to make everything possible with unity, think about mother love, feelings about same family. Please do watch the full video dont quit before u end watch the video, i am DAM sure u got this very usefull.
…..
….
Question u ? what u learn from this video.
What is LOOP for Firefox?
•July 15, 2008 • 1 CommentWhat is LOOP for Firefox?
LOOP for Firefox combines the award-winning Mozilla’s Firefox web browser with Drawloop’s free online document service making it easier than ever to upload, convert and combine multiple files to PDF.
https://addons.mozilla.org/en-US/firefox/addon/4738
Get Loop addons for Firefox
WordPress Tutorial
•July 15, 2008 • 1 Commenthttp://blog.bluefur.com/2008/05/15/wordpress-plugin-tutorial-hello-world/
Tutorial from wordpress…
Writing a Plugin
Introduction
Prior to WordPress Version 1.2, if you wanted to modify the behavior of WordPress, you had to edit (or “hack”) the WordPress source code. However, in more current versions of WordPress, you can easily modify and add to the functionality of the core version of WordPress by using Plugins. The basic idea of the plugin architecture is to keep the core of WordPress relatively simple, but flexible enough that nearly every aspect of its input and output can be modified by plugins. Here is a definition:
Continue reading ‘WordPress Tutorial’
WordPress Coding Standards
•July 15, 2008 • 2 CommentsWordPress Coding Standards
Some legacy parts of the WordPress code structure for PHP markup are inconsistent in their style. WordPress is working to gradually improve this by helping users maintain a consistent style so the code can remain clean and easy to read at a glance.
Continue reading ‘WordPress Coding Standards’
Firefox extentions ..?
•July 11, 2008 • Leave a Comment- Web Developer - The absolute must-have extension for anyone who
builds web sites, no matter how small or few and far between.
- MeasureIt - No more eyeballing
pixel widths! - ColorZilla – I shudder to
think back on the huge PITA of getting hex codes for colors before this lovely extension… taking a screenshot,
pasting it into Photoshop, using the eyedropper tool… how much time have I saved because of it? (Answer: lots.) - FireBug – As mentioned on The Javascript
Weblog; just darn useful. - IE View – All the maddening
bugs of IE without actually having to launch the browser. (With the caveat that it doesn’t do me much good on my Mac at
work, where I don’t have IE/Mac installed.)
How To Attack An Internet Explorer (Win) Display Bug
•June 3, 2008 • Leave a CommentYou design website… may b you need the following link??
PNG Alpha Transparent Problem in IE<7
•June 3, 2008 • Leave a Commenthttp://www.hongkiat.com/blog/making-png-image-transparency-work-in-internet-explorer/
http://homepage.ntlworld.com/bobosola/index.htm
Other best solution…
/*
Use in <HEAD> with DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
*/
////////////////////// pngfix.js ////////////////////////////
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float:left;" + imgStyle
if (img.align == "right") imgStyle = "float:right;" + imgStyle
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
Did you oPeN MoneyBookers account ?
•May 22, 2008 • 38 CommentsHey ….you still there without registering your email on moneybookers ….. like paypal moneybookers support many countries including Bangladesh for international payment system….moneybookers going very nice….i use moneybookers services and i am too happy with their services…
I work for freelance and i am from Bangladesh and you know Paypal not support in Bangladesh till now….so i was worry how do i get online payment …then once i got moneybookers and i send address varification..from moneybookers…i was not sure about their service ….then one day i got roal mail from moneybookers …and i start…
Now till date i use all my transaction with moneybookers and i am really thanks to moneybookers for their great support…
All right …visitor…i think you also can use moneybookers…i think they are simply great..
Regards
shahin
You ever test Cross Loop?
•May 22, 2008 • Leave a CommentHmm…your friends far from you…and you two trying to get solve a problem…you say go there then go there then you got that …select that …type that….now …ok now…cancel…something like that…..
ok now you got solve this problem …use Cross Loop and solved the problem …as your just there with your friends…..
Hahahah believe me...CrossLoop they are great…http://www.crossloop.com/
Regards
shahin
Make money by your friends email
•May 22, 2008 • 2 CommentsYou think how….yes i was also..then www.oDesk.com…Make that true..i refer my friends to oDesk and then they earn money at oDesk and oDesk referral program give me $$$. Its really like…getting some free $$$ by your friends…so do start it right now and start refer all your friends who are great to work online and you know who can earn money fast on oDesk…Its really simple ..you can just signup and start working by your self too….
We have lots of friends …like facebooks/myspace/hi5 etc we have lots of friends…so if we try then we can do a better network with oDesk and our friends….we all want to earn at the same times…as you know we are friends and friendship is the great relation in this world….a true friends can do a lot for you…
All right…i am going to refer …..one of my friends right now…so i have no time to write more on this post….hahahaha….c ya later post…
Bye
Thanks
Regards
shahin
…oDesk my Office/Heaven…
•May 22, 2008 • Leave a Comment![]() |
Certified Professionals. Verified Work. |
oDesk My Office/Heaven
Hi,
I work at oDesk…you see i got a heaven at earth?
don’t you believe me..???? ok just signup and test oDesk …i swear if you have little patient and if you interested to earn from home…test heaven happyness then .:) believe me…signup and start apply oDesk job. Give oDesk tests to increase your job quota.
Ohh You want to post a job….No worry…you come at right place …oDesk is the best place where you can get the planet best service from a 10000000000million talents at this planet…you confuse????Oh ok man just go to odesk and post a job….and dont forgot to email me…if i am right…
Oh…you want to hire me…all right …just click me
I would like you see at odesk soon….
Thanks
shahin
shahinbdboy@gmail/yahoo.com





Recent Comments