January 18, 2011
How to display multiple langauge in joomla1.5 template
eg: LABEL=Label to be translated
To display in the index.php use
echo JText::_("LABEL");
January 10, 2011
JoomD - Mantrimonal component in joomla
http://www.joomla6teen.com/Joomla-Extensions.html
Features and Functionality:
- Entry Manager
- Category Manager
- Custom Fields Manager - Ability to Add, Edit and Delete custom fields
- Various types to choose from for a custom field: Image, PDF, Doc, Excel, Zip, Drop Down, Radio button, WYSIWIG Editor, Textfield, Textarea, URL, Email
- Option to make a field as Required
- Option to Include custom fields in Search
- Add CSS Class in a custom field
- Option to Display Custom field in Quick View/ Detailed View
- CSS Manager
- Frontend Control panel for users to Add and Manage entries
- Option to Add Captcha Spam Security in the Entry Submission form
- SEF URLs with native Joomla SEF
- Option to choose if User registration is required to add entries and manage those entries (As obvious, only registered users can manage their entries)
- Option to display entries to Registered users only and making user registration as required for guest users to view detailed entries.
- Set emails for Notification to one or more administrators.
- Option to Approve entries from the backend or set it to approve automatically
- Mailing List and Export button to export user emails
- CSV Import / Export functionality
- Multi-Language Support
- Simple and Intuitive control panel
November 26, 2010
To concatenate two string using fwrite()
echo "{a href='sampl.php?id=hai'}Click Here{/a}";
if(isset($_REQUEST['id']))
{
$fp = fopen('data.txt', 'a');
//fwrite($fp, );
fwrite($fp, $_REQUEST['id']);
fclose($fp);
echo"authorize";
}
else
echo"Unauthorize";
{/php}
November 9, 2010
Module Positions
www.yourjoomlawebsite.com/index.php?tp=1
November 3, 2010
Print the article title in the Joomla1.5 template
Remove home button from main menu in joomla1.5
.menu li.item1
{
position:absolute;
left:0px;
top:-500px;
width:1px;
height:1px;
overflow:hidden;
}
While refreshing different color changing
var color=new Array(7);
color[0]="#246fcf";
color[1]="#0e9eb8";
color[2]="#0eb8b2";
function changeColor()
{
var ranNum= Math.floor(Math.random()*7);
document.getElementById('div1').style.backgroundColor=color[ranNum];
}
and use this onload function in the body tag
'[body onload="changeColor()"]'
eg:
[div id="div1" name="div1" style="height:5px;"][/div]
Round Corner using CSS(Border property)
Let me share some useful tips for round corner in all browser support
Please find this link
http://code.google.com/p/curvycorners/
Official site:
http://www.curvycorners.net/
CSS positioning within a container
One of the best things about CSS is that you can position an object absolutely anywhere you want in the document. It's also possible (and often desirable) to position objects within a container. It's simple to do too. Simply assign the following CSS rule to the container:
#container
{
position: relative
}
Now any element within this container will be positioned relative to it. Say you had this HTML structure:
...To position the navigation exactly 30px from the left and 5px from the top of the container box, you could use these CSScommands:
#navigation
{
position: absolute;
left: 30px;
top: 5px
}
Perfect! In this particular example, you could of course also use margin: 5px 0 0 30px, but there are some cases where it's preferable to use positioning.
Two classes together
Usually attributes are assigned just one class, but this doesn't mean that that's all you're allowed. In reality, you can assign as many classes as you like! For example:
[p class="text side"]...[/p]
Replace [ by <>
Using these two classes together (separated by a space, not with a comma) means that the paragraph calls up the rules assigned to both text and side. If any rules overlap between the two classes then the class which is below the other in the CSS document will take precedence.
CSS font shorthand rule
November 2, 2010
Use onclick instead of Hyperlink
JavaScript Lightbox without JQuery
- It works clearly on all browsers.
- And it may provide lightbox facility to all need which developer focuses(display image,text,form,entire div element and so on)...