Great CSS social buttons here – http://webdesignerwall.com/tutorials/css-social-buttons
Welcome to our blog! Here you can find stuff about web development, software engineering, WordPress & about our projects and interests.
Programming and scripting topics.
It’s not very easy to do it. Read this article from top to bottom: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
First lets install some plugin to show the latest tweets in wordpress. The plugin that I used is this one: http://wordpress.org/extend/plugins/twitter-for-wordpress/
You can use any plugin.
Install and put the widget in some position.
Here is an example of the output needed for the jQuery to work correctly:
<div> <p>A tweet is here</p> <p>Another tweet here</p> <!-- cont... --> </div>
This is the sollution: http://forum.virtuemart.net/index.php?topic=66513.0
In Joomla! 1.0.x it was possible to determine if the user was viewing the front page by using code like this:
<?php
if ($option == 'com_frontpage' || $option == '') {
echo 'This is the front page';
}
?>
But in Joomla! 1.5.x the com_frontpage component is no longer present. This is how to achieve the same result in Joomla! 1.5.x
<?php
$menu = & JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
echo 'This is the front page';
}
?>
This works by checking to see if the current active menu item is the default one.
This is one of the ways:
<?php if (JRequest::getInt('Itemid') == your_id) : ?>
<!-- special javascript -->
<?php endif; ?>
There are some differences in 1.6/1.7/2.5 to avoid Strict Standards errors. Use the following code for a site where all content is in the same language:
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($menu->getActive() == $menu->getDefault()) {
echo 'This is the front page';
}
?>
For multi-lingual sites the front page is dependent on the currently selected language, so you will need to use code like this:
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($menu->getActive() == $menu->getDefault( 'en-GB' )) {
echo 'This is the front page';
}
elseif ($menu->getActive() == $menu->getDefault( 'fr-FR' )) {
echo 'Accueil';
}
?>
For multi-lingual sites, it could also be necessary to display a specific code/html for all Default Home pages.
<?php $app = JFactory::getApplication(); ?> <?php $menu = $app->getMenu(); ?> <?php $lang = JFactory::getLanguage(); ?> <?php if ($menu->getActive() == $menu->getDefault($lang->getTag())) : ?> etc.
For more info: http://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page
Create a php file with some unique name (like snarfer.php) and put it in your WordPress theme directory.
This is the way you create a WordPress Page templates:
<?php /* Template Name: Snarfer */