-
AuthorPosts
-
November 12, 2008 at 3:32 pm #135307
Hey Folks…. hoping someone can help me with this rather annoying bug I have.
Some Backgorund first…
– Teline II
– Joomla 1.5.6
– Joom!fish translation component
– Language Selector module (mod_jflanguageselection)
URL: it’s an intranet site… so sadly you can’t see itProblem: when Language Selector module is enabled in either the “ja-login” position or “user4” position the whole login box gets f’ed up.
Before:
After:
Things I’ve tried:
- change the “type” in the language selector from pull-down, to image, to words
- tried the language module in the ja-login and user4 position
- looked (without success) for the file that contained the code for that box.
This is a rather important part of the site, as it needs to be bilingual (French and English)… so in the immortal words of Princess Leia… “Help me Obi Wan Kenobi, you’re my only hope.”
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
November 13, 2008 at 4:57 am #279013Hi camilegauthier,
Could you please send i your live URl, admin account via PM so that i could have closer look on the issue.
November 13, 2008 at 9:14 pm #279071As I mentioned in the post, it’s an intranet site, sadly access is not possible.
November 15, 2008 at 8:23 pm #279283So my $70 gets me no support or help? 3 days… and not a reply? Come on people, if your paying customers don’t get help when they need it, what are they paying for exactly? Is a little help too much to ask for?
I’ve been poking in the code for the last 5 days… this is the current output of the source….
<blockquote>
<div class=”ja-day”>
15 / 11 / 2008</div><!– <ul> –>
<div id=”jflanguageselection”><div class=”rawimages”><a href=”http://172.22.26.35/index.php?lang=en”><img src=”/components/com_joomfish/images/flags/en.gif” alt=”English” title=”English” /></a><a href=”http://172.22.26.35/index.php?lang=fr”><img src=”/components/com_joomfish/images/flags/fr.gif” alt=”Français” title=”Français” /></a></div></div><!–Joom!fish V2.0 (RC)–>
<!– © 2003-2008 Think Network, released under the GPL. –>
<!– More information: at http://www.joomfish.net –>
<!–module search–>
<!– </ul> –><div id=”ja-usertools”>
<strong>Text</strong> <ul class=”ja-usertools-font”>
<li><img style=”cursor: pointer;” title=”Increase font size” src=”http://172.22.26.35/templates/ja_teline_ii/images/user-increase.gif” alt=”Increase font size” id=”ja-tool-increase” onclick=”switchFontSize(‘ja_teline_ii_ja_font’,’inc’); return false;” /></li>
<li><img style=”cursor: pointer;” title=”Default font size” src=”http://172.22.26.35/templates/ja_teline_ii/images/user-reset.gif” alt=”Default font size” id=”ja-tool-reset” onclick=”switchFontSize(‘ja_teline_ii_ja_font’,3); return false;” /></li>
<li><img style=”cursor: pointer;” title=”Decrease font size” src=”http://172.22.26.35/templates/ja_teline_ii/images/user-decrease.gif” alt=”Decrease font size” id=”ja-tool-decrease” onclick=”switchFontSize(‘ja_teline_ii_ja_font’,’dec’); return false;” /></li>
</ul>
<script type=”text/javascript”>var CurrentFontSize=parseInt(‘3’);</script></div>
</div>
</div></div>
</div></blockquote>And this is the source from index.php that generated the above:
<blockquote> <!– <ul> –>
<jdoc:include type=”modules” name=”ja-login” />
<!–module search–>
<?php if($this->countModules(‘user4’)) : ?>
<jdoc:include type=”modules” name=”user4″ />
<?php endif; ?>
<!– </ul> –></blockquote>And here’s the Language Selector’s source:
<blockquote><?php // no direct access
defined(‘_JEXEC’) or die(‘Restricted access’);
$outString = ‘<div id=”jflanguageselection”><div class=”rawimages”>’;
foreach( $langActive as $language )
{
$langActive = ”;
if( $language->code == $curLanguage->getTag() ) {
if( !$show_active ) {
continue; // Not showing the active language
} else {
$langActive = ‘ id=”active_language”‘;
}
}$href = JFModuleHTML::_createHRef ($language, $params);
if( isset($language->image) && $language->image!=”” ) {
$langImg = ‘/images/’ .$language->image;
} else {
$langImg = ‘/components/com_joomfish/images/flags/’ .$language->getLanguageCode() .”.gif”;
}if( file_exists( JPATH_ROOT . $langImg ) ) {
$outString .= ‘<span’ .$langActive. ‘><a href=”‘ .$href. ‘”><img src=”‘ .JURI::base(true) . $langImg. ‘” alt=”‘ .$language->name. ‘” title=”‘ .$language->name. ‘” /></a></span>’;
} else {
$outString .= ‘<span’ .$langActive. ‘><a href=”‘ .$href. ‘”>’ .$language->name. ‘</a></span>’;
}
}
$outString .= ‘</div></div>’;echo $outString;
if( $inc_jf_css && JFile::exists(JPATH_ROOT.DS.’modules’.DS.’mod_jflanguageselection’.DS.’tmpl’.DS.’mod_jflanguageselection.css’) ) {
$document =& JFactory::getDocument();
$document->addStyleSheet(JURI::base(true).’/modules/mod_jflanguageselection/tmpl/mod_jflanguageselection.css’);
}
</blockquote>Now… as many times as I look at it… I figure it has something to the with the “ja-login” CSS… but I can’t find anything (to my eyes, I’m not all that great with CSS) that says align it to the right, or put it on it’s own line. Here’s the template’s CSS:
<blockquote>/* Login Form */
#ja-login {
}#ja-login form {
float: left;
}#ja-login form label {
float: left;
}label.ja-login-user span,
label.ja-login-password span {
display: none;
}#ja-login form input.button {
float: left;
}#ja-login form #mod_login_username,
#ja-login form #mod_login_password {
width: 100px;
margin: 1px 8px 0 0;
font-weight: bold;
padding-left: 20px;
}#ja-login form #mod_login_username {
background: url(../images/icon-user.gif) no-repeat 4px 5px #FFFFFF;
}#ja-login form #mod_login_password{
background: url(../images/icon-key.gif) no-repeat 4px 5px #FFFFFF;
}#ja-login form a {
padding: 0 5px;
text-decoration: none;
}#ja-login form a:hover,
#ja-login form a:active,
#ja-login form a:focus {
text-decoration: underline;
}.ja-login-links {
padding: 10px 0 0 0;
clear: both;
}
</blockquote>And the Language selector’s CSS for that matter too. I’m using the language selector’s “raw image” option.
<blockquote>#jflanguageselection
{
float: right;
margin: 15px 0px 10px 5px;
}/* language lists with UL (names & images) */
#jflanguageselection ul.jflanguageselection
{
list-style: none;
padding: 0;
margin-top: 3px;
font-weight: normal;
}#jflanguageselection ul.jflanguageselection li
{
background-image: none;
padding-left: 0px;
padding-right: 0px;
float: left;
margin: 1px 1px 1px 1px;
white-space: nowrap;
border: none;
font-size: 0.9em;
}#jflanguageselection ul.jflanguageselection li#active_language
{
font-weight: bold;
font-size: 1.0em;
}#jflanguageselection ul.jflanguageselection li a
{
display: block;
}#jflanguageselection ul.jflanguageselection img
{
border: none;
}div#jflanguageselection img.langImg {
float: left;
border: none;
margin-top: 3px;
}
div#jflanguageselection li img.langImg {
float: left;
border: none;
margin: 0px 1px 0px 1px;
}/** Styles for the drop down list */
#jflanguageselection select.jflanguageselection
{
border: 1px solid #cccccc;
}#jflanguageselection label.jflanguageselection
{
position:absolute;
left:-1000px;
}/** Controls Raw Display of Images **/
.rawimages {
text-align: center;
margin-top: 3px;
}
.rawimages img {
border: none;
margin:2px;
}
.rawimages span#active_language img
{
margin:2px;
border: none;
}div#jflanguageselection img.langImg{ float: left; border: none; margin-top: 3px; }
div#jflanguageselection li img.langImg{ float: left; border: none; margin: 1px 3px 0px 0px; }</blockquote>So what am I not seeing? another set of eyes maybe? I’d hate to sound rushed, but I am…. this little niggle seems to be the only bug I have that would prevent me from a release… which is scheduled for Monday btw.
Help?
November 16, 2008 at 1:30 pm #279339Thanks for nothing folks. I got someone else to help me.
felixdamian Friendfelixdamian
- Join date:
- November 2008
- Posts:
- 47
- Downloads:
- 4
- Uploads:
- 2
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
January 19, 2009 at 6:15 pm #287127Hi
Can you tell how did you solve this problem. I have the same trouble but only in Internet Explorer. Please explain how did you solved it.
Thanks
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by felixdamian 15 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum