Adding custom generator tag in joomla

Joomla creates a generator meta tag automatically. If you view source of your joomla site you can search for meta tag “generator”. The default generator tag looks like
[code]
<meta name="generator" content="Joomla! 1.5 – Open Source Content Management" />
[/code]
We can modify this generator tag and also can put option in our custom joomla template to change this meta tag to site name or something different. so let’s start 🙂

In you template index’s file header tag you can write a line like bellow

[code language=”php”]
<?php
$this->setGenerator("your custom generator name");
$this->setGenerator(""); // you can leave that as blank too
?>
[/code]

We can set a option in template

in template index.php file

[code language=”php”]
<?php
$myconfig = new JConfig();
$mysitename = $myconfig->sitename;
?>
<?php
if($this->params->get(‘removegeneratortag’) == "yes"):
// Remove the generator meta tag
$this->setGenerator($mysitename);
endif;
?>
[/code]

in params.ini file add extra line
removegeneratortag=yes

in templateDetails.xml file

[code language=”xml”]
<params>
<param name="removegeneratortag" type="list" default="yes" label="Remove Joomla Generator Tag" description="Remove or disable joomla generator tag from head tag for security reason">
<option value="yes">Yes</option>
<option value="no">No</option>
</param>
</params>
[/code]

before

[code]"</install>"'[/code]

tag

you are done. I think now you can add/customize in your own way as you need. If you don’t know how to modify the above code then don’t try 😛

Thank you

Webmaster tool plugin for joomla

and A good news!

JED Team approved the webmastertool pluginf or joomla. So, now it’s your turn to help me, writting review(good or bad), voting in JED.

What is webmaster tool?

Webmastertool is a simple joomla plugin. It will allow you to put verification meta tag for diff search engines like google, yahoo, bing and alexa which needs to upload a file or edit template manually. But using this plugin will save your time or help you to avoid using ftp to edit template files. Some months ago I developed same type plugin for wordpress webmaster key.

I think it will be handy for webmaster. Quick links for Google,Yahoo and Bing,Alexa webmaster tool

How to collect meta tags

I know max ppl are smart enough and can do it easily but some ppl are not mcuh technical and don no how to upload file or add meta tag in theme file and where. so, to get google meta tag key go to Google Webmaster, login using your google id and your site. See image bellow and check you will see something like this. Copy meta value (red underline in screenshot)
Continue reading

Social Share/Vote Button plugin for joomla content

Update 03.09.2010: This extension got approved in JED. If you like this extension pls write reviews and vote in JED.

All share count or “Social share/Vote button” is a joomla plugin that shows social share or vote button in articles. It contains all popular social network or share/bookmark sites that supports button/badge for vote/share. I was inpired by the wordpres plugin “Digg Digg WordPress Plugin” which I am using in my blog for many days.

Social share/Vote button

Continue reading

WP Photo Album Plus Plus: WordPress Image Gallery

Most of the wordpress image gallery plugins can not make me happy. NExtgen is too much heavy, then I got another wordpress plugin “WP Photo Album Plus” developed by J.N. Breetvelt, a.k.a. (OpaJaap). R.J. Kaplan developed WP Photo Album 1.5.1 and then J.N. Breetvelt extended it with new features. Really I like this simple but powerfull gallery plugin. But something I didn’t like which I am trying to modify and releasing for every body so that I can get more ideas from other and even this modification can be done to main plugin too. Though my modification is not done yet! But why not I share my last modification and explain what I have done upto now 🙂
Continue reading

Adding vertical fixed feedback button

update: 06.09.2010
Wana use as wordpress or joomla plugin ? then buy from my official website

Downloads

For Joomla
For WordPress

The Story

If you still didn’t notice, please check again there is a vertical feedback button in my blog , right side. So, sometimes people asks me how to do that ,,, any one can read the source code or having debug tool like firebug for firefox can see the source code and add in his own site. But max time, it’s true that we don’t want to learn by reading or google about any problem, we just ask other to get ready made solution. Even we don’t write in forums about our problems …. grr…

So here is answer of the those question, “How I added the vertical feedback button?”

I know how html works and how css works , I know where to edit in wordpress theme. So many days ago I saw that in a site and copied the source code and image and added in my site 😛
I am showing for default wordpress theme tweentyten and all paths shown bellow are windows style as windows is my primary os.

Step1: Copy this image to your wp-contentthemestwentytenimages folder first.

Step2: Open style.css file from wp-contentthemestwentyten dir and ready to add some css code 🙂
Step3: In the file style.css file at last line add the following css codes
Continue reading

āĻŦā§ƒāĻˇā§āĻŸāĻŋāĻšā§€āĻ¨ āĻŦā§ƒāĻˇā§āĻŸāĻŋāĻ° āĻ¨āĻ—āĻ°ā§‡

āĻāĻŋāĻ° āĻāĻŋāĻ° āĻŦā§ƒāĻˇā§āĻŸāĻŋāĻ¤ā§‡ āĻšāĻŽāĻļāĻžāĻ° āĻ•āĻžāĻšā§‡ āĻ†āĻļā§āĻ°ā§Ÿ āĻ¨āĻŋā§Ÿā§‡āĻ›ā§‡ āĻ…āĻ˛āĻ¸ āĻŦā§ƒāĻˇā§āĻŸāĻŋ āĻĢā§‹āĻŸāĻž,
āĻŽā§āĻ›āĻ¤ā§‡ āĻ‡āĻšā§āĻ›āĻž āĻ•āĻ°āĻ›ā§‡ āĻ¨āĻžāĨ¤
āĻŦā§ƒāĻˇā§āĻŸāĻŋāĻ° āĻ•ā§‹āĻ¨ āĻĢā§‹āĻŸāĻžāĻ¤ā§‡ āĻ¯āĻ–āĻ¨ āĻ†āĻ˛ā§‹ āĻĒā§œāĻ›ā§‡ āĻšā§‹āĻ– āĻ†āĻ¸ā§āĻ¤ā§‡ āĻ†āĻ¸ā§āĻ¤ā§‡ āĻāĻžāĻĒā§āĻ¸āĻž āĻšā§Ÿā§‡ āĻ¯āĻžāĻšā§āĻ›ā§‡
āĻ†āĻ°
āĻšāĻ˛ā§‡ āĻ¯āĻžāĻšā§āĻ›āĻŋ āĻ…āĻšā§‡āĻ¨āĻž āĻ•ā§‹āĻ¨ āĻ¨āĻ—āĻ°ā§‡
āĻ¯ā§‡āĻ–āĻžāĻ¨ā§‡
āĻœā§‡āĻ—ā§‡ āĻĨāĻžāĻ•āĻŋ āĻŦā§ƒāĻˇā§āĻŸāĻŋāĻšā§€āĻ¨ āĻŦāĻ›āĻ°ā§‡āĻ° āĻĒāĻ° āĻŦāĻ›āĻ°āĨ¤

āĻŦāĻ¨ā§āĻ§ā§ āĻ¤ā§‹āĻ° āĻ¨āĻ—āĻ°ā§‡ āĻ¯āĻĻāĻŋ āĻŦā§ƒāĻˇā§āĻŸāĻŋ āĻ¨āĻž āĻšā§Ÿ āĻ†āĻŽāĻžāĻ•ā§‡ āĻœāĻžāĻ¨āĻžāĻ¨ āĻĻāĻŋāĻ¸,
āĻ°āĻ‚ā§Ÿā§‡āĻ° āĻšāĻŋāĻ¸āĻžāĻŦ āĻ­ā§āĻ˛ā§‡ āĻ§āĻžāĻ° āĻĻāĻŋā§Ÿā§‡ āĻĻā§‡āĻŦā§‹ āĻ†āĻŽāĻžāĻ° āĻšāĻŽāĻļāĻžāĻ° āĻ•āĻžāĻāĻšā§‡ āĻœāĻŽāĻž āĻŦā§ƒāĻˇā§āĻŸāĻŋā§āĻ° āĻĢā§‹āĻŸāĻžāĻ—ā§āĻ˛ā§‹āĨ¤āĨ¤

Adding My posts sub menu for posts section in wordpress

Let me explain the situation. Suppose you have contributor access to wordpress. If you go to posts page in admin panel that list all posts   and here you are not author of all posts.  you will see the url like
[code language=”php”]edit.php?post_type=post&all_posts=1[/code] and All( total post number here). There will be another menu named Mine(Current user post number). All link is default. So we can make nother submenu of posts in admin section for Mine link directly. Let me show you the few lines code.
[code language=”php”]add_action(‘admin_menu’, ‘manchu_myposts’);
function manchu_myposts()
{
if (function_exists(‘add_submenu_page’))
{
//$parent, $page_title, $menu_title, $access_level, $file, $function = ”
add_submenu_page(‘edit.php’,’My Posts’,’My posts’, 1, ‘edit.php?post_type=post&author=’.get_current_user_id());
}
}[/code]
You can copy-paste above code in your theme functions.php file and it will show a new sub menu in posts ectin as My posts. Multi user blog users can get easily link for his/her posts.
myposts
it’s just a easy way to make personal posts link for any user have access at leas contributor. Access level 1 belongs to contributor..

Update: 15-09-2011

While working on a project I got a tips from stackoverflow wordpress site about showing only specific author’s posts in author mode.
[code language=”php”]
function cb_posts_for_current_author($query) {
global $pagenow;

if( ‘edit.php’ != $pagenow || !$query->is_admin )
return $query;

if( !current_user_can( ‘manage_options’ ) ) {
global $user_ID;
$query->set(‘author’, $user_ID );
}
return $query;
}
add_filter(‘pre_get_posts’, ‘cb_posts_for_current_author’);
[/code]

thank you

Stuck in wordpress Maintenance Mode?

Are you Stuck in wordpress Maintenance Mode?  I was in that situation and thought to write about my pain and findings so that it may be help to reduce pain in the ass when u are crazy to do some upgrade for plugins and themes and you are stuck  in maintenance mode for “something wrong” in upgrade/upadte process .

This tip is for wordpress3.0+, don’t  know what to do for lower version.  The thing is when wordpress takes the site maintenace mode it creates a file in the site root dir named .maintenance  and when done remove that… 🙂

So, now you know what to do if u are stuck in maintenance mode. I wish I am going to sleep well tonight.

note: check the dicussion in wordpress forum about this issue.

btw, let me show you a sample screenshot about how the error msg look for upgrade failure

failure

Facebook fanbox wordpress plugin

It’s just a simple fanbox widget as wordpress plugin, nothing to explain. But I made my own version ?

Features

  • iframe method
  • auto detect ie(internet explorer), because sometimes it’s make problem for ie and option to use as iframe only for ie !
  • jquery based document ready facebook load ! Not clear ? see bellow

One thing to note that I used a way to load the facebook js script after loading jquery as normally in wordpress site front end we use jquery and many plugin uses this… so we can take that jquery is using default. So I loaded the fb js using wp_enqueue function and then called the fb init function after the document is loaded using jquery dom ready function 😛 … It’s just an experiment about slow loading of facebook fanbox widget in wordpress 😀

Download

[download id=”23″]

If you just download with no comment and no recommendation to others, then I am planning to hate you 😛
Man at least share in social network and give me traffic so that I can have more money from ads 🙁

Good morning. It’s just morning after working whole night and I am feeling too hungry 🙂
Continue reading

Adding joomla native dropdown menu in frontend

joomla native drop down menu


I think it’s my 4th post about using joomla native resources like tab slider, tooltip, modal/popup window and I am very happy that I just tried to used the joomla admin top menu … the top to bottom drop down menu in front end and it’s working fine. I just used the joomla native resources and changed one line of code in mod_mainmenu module. I think for doing something test or creative things sometimes we can try to change core code little… just keep in mind where u are changing and change again while u upgrade again in future.

Ok then let’s move for how we can use the main menu module as ‘top to bottom‘ drop down menu like the joomla admin panel top menu. we will work on default template of joomla1.5 Continue reading