German formal - SieEnglish
 
 
 
News arrow Web arrow Code Snippets
R3D Floater Installation Instructions | Print |  E-mail

Description:

A Joomla 1.5.x module - you can float in ANY other module from the left browser edge to the right as far as you wish...
See it in actionon our homepage.

Instructions:

Please follow all steps below - get it working first - and then start playing with the settings and positions ;).
  1. Create two new template positions in your templateDetails.xml called: floater and floatercontainer using the following code:
<position>floater</position>
<position>floatercontainer</position>
  1. Place the floatercontainer position inside your template at the end of your index.php (right before the body end tag), using the following code:
<jdoc:include type="modules" name="floatercontainer" style="xhtml" />
  1. Go to the Module Manager in Extensions and open the new R3D Floater.
  2. Change to the following:
    • Show Title: No
    • Enabled: Yes
    • Position: floatercontainer (NOT floater!)
    • Menus: Select Menu Item(s) from the List
  3. Now create a new instance of mod_newsflash with the following settings:
    • Title: Floater Newsflash
    • Show Title: No
    • Enabled: Yes
    • Position: floater
    • Menus: All
 
Joomla 1.0.x Templates: conditional statements | Print |  E-mail

Hier kommt eine Auflistung nützlicher "conditional statements" für Joomla 1.0x Templates.
Update: Joomla 1.5 ...



Last Updated ( Tuesday, 09 December 2008 )
Read more...
 
Joomla! com_content hack (for 1.0.15) | Print |  E-mail

An annoying restriction of the Joomla! framework: in full article view the component header disappears.
To get around it we used to create modules turned on just for that specific menu item - this becomes rather tedious.
So, here is a simple hack to add an extra item_header to an article, which shows up in full view only. 

We have to modify only two files:

  •  /components/com_content/content.php
  • /administrator/components/com_content/content.xml

You can set item_header in the Content Item Edit window (Parameters Tab).
It gets styled by .componentheading.

Last Updated ( Saturday, 08 March 2008 )
Read more...
 
Regular Expressions in Homesite 5.5 | Print |  E-mail

Had to change some 700 lines of code in about 120 files - time to give that regular expressions manual another look.

The complete line of code looked like so:

<area shape="rect"  alt="Kirchholz-Häusle" xhref="16/kirchholz_haeusle.html" title="Kirchholz-Häusle" coords="873,215,918,258" onClick="open_win('16/johannes_kreuz.html',740,660,0,0,0,0,0,1,1,0,5,'win1');return false;" target="_blank">

I needed to get rid of the following javascript snippet that was not needed any longer:

onClick="open_win('16/johannes_kreuz.html',740,660,0,0,0,0,0,1,1,0,5,'win1');return false;" target="_blank"> 

above line(no line brakes) should change into

target="_blank">


Last Updated ( Saturday, 05 January 2008 )
Read more...
 
Joomla: Listenlänge im Backend | Print |  E-mail

Ich finde es nervig zu blättern - lieber nehme ich eine längere Ladezeit in Kauf. Listen sind oft länger als die maximal "50" in Joomla -
und hier läßt sich das ändern:

Backend:   /administrator/includes/pageNavigation.php

In Joomla 1.0.13: Zeile 48 sieht so aus:

        $limits[] = mosHTML::makeOption( "50" );

Last Updated ( Wednesday, 29 August 2007 )
Read more...
 
Form Validation | Print |  E-mail
Javascript: Nur Zahlen dürfen in ein bestimmtes Formularfeld eingegeben werden.
<head>
<script type="text/javascript">
function numbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if (unicode<48||unicode>57) //if not a number
return false //disable key press
}
}
</script>
</head>

<body>
<form>
<input type="text" size=18 onkeypress="return numbersonly(event)">
</form>
Last Updated ( Monday, 25 August 2008 )
 

© 1997 - 2010  R3D - Webentwicklung  - Webentwicklung, Photographie & Netzwerk