test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • vanderschoot Friend
    #136274

    I’m using Joomla 1.5 and ja_pyrite, and would like to use the slideshow in place of the default logo on the front page, with the logo returned on the subsequent pages. Can that be done?

    Also, the slideshow is 285 pixels high, and in trying different locations on the template, it seems to lay overtop of other elements on a page. I’d like the horizontal menu nav element to appear below it.

    I don’t have a public URL yet – still working locally at the moment.

    Sherlock Friend
    #283059

    Hi vanderschoot !

    It is posible , you can do it following some steps below :
    1.Download mod_ja_slideshow module in sanidine package , install it to your site,
    2. Assign ja slideshow to user9 position
    3. Open index.php file in templates/ja_pyrite folder , find following code section at about line 107 :


    <?php
    $siteName = $tmpTools->sitename();
    if ($tmpTools->getParam('logoType')=='image') { ?>
    <h1 class="logo">
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php } else {
    $logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText');
    $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?>
    <div class="logo-text">
    <h1>
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>
    </h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php } ?>

    change to :


    <jdoc:include type="modules" name="user9" style="raw" />

    vanderschoot Friend
    #283160

    progress! thanks, that’s really helpful. next:

    now that it’s there, it loads correctly for the first image, but then subsequent images are halved and show only on the right side of the page.

    here’s a progression of the slider over three frames:

    first: http://img184.imageshack.us/my.php?image=slideshow1ms2.jpg
    then: http://img184.imageshack.us/my.php?image=slideshow2tr7.jpg
    last: http://img339.imageshack.us/my.php?image=slideshow3hq8.jpg

    is there a way to correct that? I thought I could set the width more specifically in the html, but that didn’t get me anywhere. I also realize that this is only happening in IE7. FF is fine.

    also, I had intended for the slideshow to appear on the front page, but then want to default to the logo settings for the other pages on the site. with the change above, I seem to have lost the ability to define the logo for other pages. can I do both the slideshow in that area on the login page AND have a static logo on all other pages?

    thanks again!

    Anonymous Moderator
    #283737

    hi vanderschoot,

    For the first question:
    <blockquote>now that it’s there, it loads correctly for the first image, but then subsequent images are halved and show only on the right side of the page.</blockquote>
    Please open file templates/ja_pyrite/css/template.css and see my guide:

    + At about line 765, find following script:

    #ja-header {
    line-height:normal;
    padding:20px 0;
    position:relative;
    text-align:center;
    z-index:0;
    }

    and then change to:

    #ja-header {
    line-height:normal;
    padding:20px 0;
    position:relative;
    z-index:0;
    }

    Anonymous Moderator
    #283741

    For the second question:
    <blockquote>also, I had intended for the slideshow to appear on the front page, but then want to default to the logo settings for the other pages on the site. with the change above, I seem to have lost the ability to define the logo for other pages. can I do both the slideshow in that area on the login page AND have a static logo on all other pages?</blockquote>

    Please open index.php file in templates/ja_pyrite folder , find following code section at about line 107 :

    [PHP]<jdoc:include type=”modules” name=”user9″ style=”raw” />[/PHP]

    and change to :

    [PHP]<?php

    if(isset($_GET[‘view’]) && $_GET[‘view’] == ‘frontpage’) {
    ?>
    <jdoc:include type=”modules” name=”user9″ style=”raw” />
    <?php
    } else {
    $siteName = $tmpTools->sitename();
    if ($tmpTools->getParam(‘logoType’)==’image’) { ?>
    <h1 class=”logo”>
    <a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
    </h1>
    <?php } else {
    $logoText = (trim($tmpTools->getParam(‘logoText’))==”) ? $config->sitename : $tmpTools->getParam(‘logoText’);
    $sloganText = (trim($tmpTools->getParam(‘sloganText’))==”) ? JText::_(‘SITE SLOGAN’) : $tmpTools->getParam(‘sloganText’); ?>
    <div class=”logo-text”>
    <h1>
    <a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a>
    </h1>
    <p class=”site-slogan”><?php echo $sloganText;?></p>
    </div>
    <?php }
    }
    ?>
    [/PHP]

    Hope it helps

    vanderschoot Friend
    #284278

    This is perfect. Thanks so much for your help!! The slider was sizing correctly and it looks perfect.

    However, I’m still stuck on the second part. After implementing the code change from the second response, it seems that I have restored the default logo behavior from the template rather than having it appear differently if the page is a landing page or otherwise a sub-page.

    not sure if it’s relevant, but the home page is currently showing a browser error (the yellow warning symbol in the bottom left corner of IE) that reads:

    Line: 267
    Char: 4
    Error: Object required
    Code: 0
    URL: http://localhost/joomla15/

    Here’s a jpg that shows the before and after results on my working site:
    http://img114.imageshack.us/my.php?image=logotreatmentsrk9.jpg

    Also, here are the current logo settings for my site:
    http://img114.imageshack.us/my.php?image=logosettingspl1.jpg

    Finally, I have attached the code in its current state.


    1. index.txt
    Anonymous Moderator
    #284383

    Hi vanderschoot,

    It it difficult to debug.
    Please try to upload your code to a server and send your live url via PM so that i can check your issue.

    Anonymous Moderator
    #284384

    Hi vanderschoot,

    It it difficult to debug.
    Please try to upload your code to a server and send your live url via PM so that i can check your issue.

    vanderschoot Friend
    #284713

    Thanks, I’ve sent the locations of my site via PM.

    I should also clarify that I’m wanting the pixel height of that area where the logo appears to vary based on the height of the logo file (or know where I can define that height for pages that arent the frontpage).

    I appreciate your help!

    Anonymous Moderator
    #284841

    hi vanderschoot,

    Thank you for your email.

    With the notice on browser, please open templates/japyrite/js/ja.script.js, at about line 266, find following script:

    [PHP]node = node.firstChild;
    while (($(node) && $(node).getText().trim()==”)||(node.nodeType==3 && node.nodeValue.trim()==”)) {
    node = node.nextSibling;
    }
    if ($type(node) == ‘textnode’) break;[/PHP]

    and change to:

    [PHP]node = node.firstChild;
    if($chk($(node))) {
    while (($(node) && $(node).getText().trim()==”)||(node.nodeType==3 && node.nodeValue.trim()==”)) {
    node = node.nextSibling;
    }
    if ($type(node) == ‘textnode’) break;
    }[/PHP]

    Anonymous Moderator
    #284842

    hi vanderschoot,

    For the logo, please open templates/japyrite/css/template.css, at about line 778, find following script to change:
    h1.logo a {
    background:transparent url(../images/logo.gif) no-repeat scroll center center;
    display:block;
    height:115px;
    width:100%;
    }

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 3 voices, and was last updated by Anonymous 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum