1
Welcome, Guest. Please login or register.
November 22, 2008, 01:47:26 AM
Home Help Search Login Register
News: New version of iJoomla Digistore V 1.3.3 (for Joomla 1.0)

+  iJoomla Forum
|-+  iJoomla Magazine
| |-+  Report Bugs
| | |-+  Joomla 1.5 / No Horizontal Banners
« previous next »
Pages: [1] Print
Author Topic: Joomla 1.5 / No Horizontal Banners  (Read 1180 times)
Macabros
customers
Newbie
*
Posts: 6



View Profile WWW Email
« on: July 08, 2008, 07:39:24 AM »

There are no horizonal banners shown up ?

it seems that this

       ob_start();

      // if(function_exists('viewbanner')) viewbanner();

       $banner=ob_get_contents();

       ob_end_clean();

doesn't work

hopefully it will be fixed soon !
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #1 on: July 08, 2008, 08:28:26 AM »

Hi,
Please submit a support ticket and we will help with this.
Best regards,
Logged

Ricardo Corai
Moderator
www.planetacms.com
Macabros
customers
Newbie
*
Posts: 6



View Profile WWW Email
« Reply #2 on: July 08, 2008, 08:43:19 AM »

Hi,
Please submit a support ticket and we will help with this.
Best regards,

Hi,

I submited a ticket now -

I managed to get the banners shown with

      $banner="<jdoc:include type=\"modules\" name=\"banner\" style=\"xhtml\" />";

but they are not really randomized

regards
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #3 on: July 09, 2008, 03:57:49 PM »

Hi,
I just checked your site and I saw that your banners are showing randomly.
Anyway let me know if the problem persists.
Best regards,
Logged

Ricardo Corai
Moderator
www.planetacms.com
Macabros
customers
Newbie
*
Posts: 6



View Profile WWW Email
« Reply #4 on: July 10, 2008, 12:38:02 AM »

Hi,

The Site You looked at is still Joomla 1.x ;-) ...
I'm talking about Joomla 1.5 + Magazine to which i will switch ... hopefully soon ..

The problem will be solved in the next release of Magazine.
In the meanwhile if You need it You have to change magazine.html.php to

   ###### SHOW BANNERS IF SET ##################

          if($edition[0]->show_banners_h){

          ob_start();
         $banner = null;
         $query = "SELECT *"
         . "\n FROM #__banner"
         . "\n WHERE showBanner=1 and imageurl<>''"
         . "\n ORDER BY RAND() LIMIT 1"
         ;
         $database->setQuery( $query );
         $banners = $database->loadObjectList();
            $banner = $banners[0];
          ob_end_clean();
         if($banner->custombannercode != null) {
            $banner = $banner->custombannercode;
         }
         else
{          $banner ="<a href='".JURI::base()."index.php?option=com_banners&amp;task=click&amp;bid=".$banner->bid."' target='_blank'><img src='".JURI::base()."images/banners/".$banner->imageurl."' border='0' alt='Advertisement' /></a>";}


        echo "<tr class='$css_content_title'>
                 <td valign='top'  align='center'>".$banner."</td>
               </tr>
               ";

          if($imagcfg[1]!="")
           echo "<tr><td valign='bottom' style=\"background-image: url(".JApplication::getBasePath()."/images/".$imagcfg[1].");\" width=\"100%\" height=\"3\"></td></tr>";
          else
           echo "<tr><td valign='bottom'><hr class='article_separator'></hr></td></tr>";
           }

   #### END SHOW BANNERS #####################

regards
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Theme Globe by Eponnox