Joomla Content Title anywhere inside template
<?php
$document =& JFactory::getDocument();
echo $document->getTitle();
?>
This piece of code will generate content title anywhere you want in your joomla template.
April 13, 2009 2 Comments
Making Joomla h3 Module title double styled or double colored using JQuery
In Joomla, you know that words that the module titles are presented with are the h3 tags. Generally they are designed with single background image or any background color with single one color for title texts.
I have used jquery to make the h3 tags multiple styled. One color or style for first word and another set of style for remaining words. So, it looks better than normal h3 tag styles.
You need to add the following code inside head tag of the index.php file of template. Also you need to include the jquery base classes to make the things happen in right way.
Firs i would like to tell that i am not a pro coder. I am just a designer with intermediate level of script knowledge.
Ok, here is what the code does. Once the document is loaded, the script searches for “sideBar” div inside page(you can change this tag to anything). The “each” keyword is used to rotate inside available h3 tags manipulation. So if there are more than 1 h3 tags, it will work on all of them separately. The “ft” variables picks all the text including html tags from the h3 text. the “cc” variable searches for first space character. Suppose if it contains any space character, it is assumed that the h3 text is of more than 1 word and it enters into “if” condition. The “fword” variable is filled with first word. and “otherwords” are filled with words that is available after the first word.
Then i merge the words by adding “newh3Style” span tag with “otherwords”. That is it.
Please note that again, i am not a coder. I know there will be better code or optimized code than this. If you have found any please reply them in comment. Your comments can help me improve the code.
<script type=”text/javascript”>
jQuery(document).ready
(
function()
{
$(”#sideBar h3″).each(function(i)
{
var ft =($(this).html());
var cc = ft.indexOf(” “);
if (cc>0)
{
var fword = ft.slice(0,cc+1);
var otherwords = ft.slice(cc+1);
$(this).html(fword+”<span class=’newh3Style’>”+otherwords+”<\/span>”);
}
}); }
);
</script>
April 7, 2009 No Comments
Hire me, if you are in need of Wordpress or Joomla Grapics Services
Hi all, thanks for visiting my site. As a webmaster of this site, i take the opportunity of your visit for my freelance career.
Please hire me $9 per hour if you have any work related to the following things,
- Modifying your theme header or css color
- Installing components and modules and modifying their css and graphic things for front end. (only front end, because, i am not a coder)
- Installing templates
- Assigning modules for each page or varied display options.
- Assigning ad codes in Joomla or wordpress widgets or modules.
- Resizing your large images and cropping it to fit for the web. I still see many sites are not worried in resizing the image physically. I see the images are resized with width and height options of img tag only.
- Insert youtube or any othe video site’s “embed code” in your site.
- I also do XHTML , i can create tableless layouts and they are validatable for xhtml and css.
- Converting your 1.0 Joomla template into 1.5 , I can do all basic conversions except the dropdown menu and any other 3rd party things that depends 1.0 code.
- Taking any GPL templates and modifying to better colors or desired colors and legal stock images(yes i have subscription) to create your site.
- Increasing width of main area or side bars or modules
- Increasing whole width of site.
- Converting your dvd or cd videos to FLV format to play on the web. Of course, i can download 300MB of video file in 2 to 3 hrs. we can negotiate honest fee for the time taken.
- I can extract MP4 video from youtube when you want high quality video for your PPT presentation or any other purpose.
- Inserting “youtube videos into wordpress” for any keyword. (no comments are imported). They get automatically imported as each post, so to build nice video blog in a day. Yes for any keywords. currently works for youtube only. Not my script. but a 3rd party script which is open source too.
- Again in Wordpress, i can modify a fix little display things in sidebars like adding tags or code for SEO purpose if any.
- I can create header images also. Although to be honest, i am not creative, i can create better headers without compromising on colors or size.
- I have little knowledge of SEO and i am aware of google keyword tool, spyfu (a little) and SEMRush better.
- I honestly believe WP is faster than Joomla in exposing to search engines and i always prefer that for people who want to build their website for money.
- I shall add more things that i can do as i remember my skills,
- I am basically a designer with good knowledge of web , Joomla and Wordpress. Please hire me.
Thanks for reading my list,
Kindly hire me
December 18, 2008 No Comments