Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
rogerbr9999
Newbie
Newbie



Joined: Mar 16, 2007
Posts: 1

PostPosted: Fri Mar 16, 2007 1:04 pm Reply with quote

Friend if I click in create newletter I have this information :

Failed to get sponsor banner information

Do you can help me - I not need to show banners in newsletter ...
what file I need to edit for not show more this information and create a newsl. ?

Thanks
 
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Sat Mar 17, 2007 9:28 am Reply with quote

Which newsleter template are you using?
The banner data is held in the tag
Code:
{BANNER}
which you can find in the template.php file of the newsletter template you are using.

When you are configuring the newletter there should also be the option to NOT use a sponsor banner.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Mar 18, 2007 11:12 am Reply with quote

Sounds like you may have a different banner system installed than what comes with PHP-Nuke.

Open file modules/HTML_Newsletter/admin/admin_make_nls.php and comment out this section of code:

Code:

/************************************************************************
* Build the Banner Link - to replace {BANNER} tag
************************************************************************/

if ( $_POST['msnl_banner'] != "" && $msnl_sTemplateNm != "notemplate" ) {

   $sql   = "SELECT `imageurl`, `clickurl`, `alttext` FROM `"
            . $prefix."_banner` WHERE `bid` = '". $_POST['msnl_banner'] ."'";

   $result16   = msnl_fSQLCall( $sql );

   if ( !$result16 ) { //Bad SQL call

      msnl_fRaiseAppError( _MSNL_ADM_MAKE_ERR_DBGETBANNER );   

   } else { //Successful SQL call
   
      $row = $db->sql_fetchrow( $result16 );
      
      $msnl_sImageURL      = stripslashes( $row['imageurl'] );
      $msnl_sClickURL      = stripslashes( $row['clickurl'] );
      $msnl_sAltText      = stripslashes( $row['alttext'] );

      $msnl_sBanner = "<a href=\"$msnl_sClickURL\" title=\"\">"
                           . "<img src=\"$msnl_sImageURL\" alt=\"$msnl_sAltText\">"
                           . "</a>\n";
                  
   } //End IF DB call successful

} else {

   $msnl_sBanner = "";

} //End IF Banner link

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch