Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

How to upgrade v7 panels to v9

v7 panel codes do not work in v9. What should I do.

Below are the codes.

CodeDownload  
?>
<script type='text/javascript' language='Javascript' src='https://sivasspor.web.tr/includes/jquery/colorbox/jquery.colorbox.js'></script>

<style type='text/css' media='screen'>@import url(https://sivasspor.web.tr/includes/jquery/colorbox/colorbox.css);</style>

<div id='but' style='display:none; height:222px; overflow:auto;'><a class='colorbox' href='https://sivasspor.web.tr/images/ramazan_bayrami.gif' id='logondsp' title='Ramazan Bayramýnýz Mübarek Olsun'></a></div>

   <script language='Javascript' type='text/javascript'>
   $(function() {
      $('#logondsp').colorbox().click();
   });
   </script>
<?

Go to Settings > Security, Set Allow PHP Execution to On.
Hi Falk thank you for your support.

This panel also doesn't show news pictures.

CodeDownload  
openside("Haberler");

echo "<style type='text/css'>
.ozet {
 background-color: #333333;
 display: block;
 height: 93px;
 padding: 0px 5px 14px 11px;
   text-align: left;
 box-shadow:inset 0px 0px 15px white;
-moz-box-shadow:inset 0px 0px 15px white;
-webkit-box-shadow:inset 0px 0px 15px white;
}
.ozet a{
 font-size: 12px;
 text-decoration: none;
 line-height: 130%;
 color: white;
 font-family: verdana;
}
a {
 text-decoration: none;
}
a.yazi {
 font: 35px/25px 'IMPACT',Helvetica,Arial,sans-serif;
 color: #333333;
 text-shadow: 6px 1px 10px red;
}

.h1{
margin:0px;
}


body.badi{
margin:0px;
padding:0px;
}


   
   #catmenu ul, #catmenu ul li, #catmenu ul li a {
   width:270px; display: block;
}

#catmenu {
   /*nargin:-10px;*/
   width:180px;
   display: block;
   color: #333333;
   margin-left:4px;
   /*background-color:#dddddd;*/
}


#catmenu ul{
   margin:0px;
   margin-left:-10px;
   text-align: left;
   line-height: normal;
   margin: 1px;
   padding: 0;
   display: block;
   /*border: solid #4B7E97;
   border-width: 0px 0px 1px 0px;   */
}

#catmenu ul li{
   list-style-type: none;
   display: block;
   /*white-space: nowrap;
   /*border: solid #4B7E97;
   border-width: 1px 1px 0px 1px;*/
}

#catmenu ul li a{
   color: #000000;
   text-decoration: none;
   padding-top: 3px;
   padding-bottom: 1px;
   padding-left:6px;
   padding-right:-20px;
   height: 20px;
   background-color:#ffffff;
   border: solid #cccccc;
   border-width: 0px 0px 1px 0px;
   margin-left:0px;
   font-size: 15px;
 font-family: tahoma;
}

#catmenu ul li a:hover, #catmenu ul li a.selected{
   color: #ffffff;
   height: 20px;
   background-color: #DE1F28;
   text-decoration: none;
 -moz-box-shadow: inset 0 0 10px #ffffff;
 -webkit-box-shadow: inset 0 0 10px #ffffff;
 box-shadow: inset 0 0 10px #ffffff;
}

.resimArka{
box-shadow:inset 0px 0px 15px red;
-moz-box-shadow:inset 0px 0px 15px red;
-webkit-box-shadow:inset 0px 0px 15px red;
background-color:#333333;
}

</style>
";


echo "<script type='text/javascript'>
   function hide(divID) { document.getElementById(''+divID+'').style.display = 'none'; }
   function displayCatdiv(divID) { document.getElementById(''+divID+'').style.display = 'block'; }
   function openWin( windowURL, windowName, windowFeatures ) {   window.open(windowURL,windowName,windowFeatures); }
   </script>
   <table cellpadding='0' cellspacing='1' border='0' width='200'>
      <tr>
      <td class='tbl1'>
      <table cellspacing='0' cellpadding='0' width='95%' border='0'>
      <tr>
      <td width='100%' colspan='3'>
      <table cellspacing='0' cellpadding='0' width='100%' border='0'>
      <tr>
      <td height='40' valign='top'>";
      $result = dbquery("SELECT * FROM ".DB_NEWS." ORDER by
 news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
      while ($data = dbarray($result)) {
      echo "<div id='titt".$data['news_id']."-sptt' style='display:block; padding:0px 0px 5px 4px;'><h1 class='h1' title='".$data['news_subject']."'><a class='yazi' href='infusions/news/news.php?readmore=".$data['news_id']."' target='_parent'>".trimlink($data['news_subject'], 35)."</a></h1></div>";
      }
      }
      echo "</td>
      </tr>
      </table>
      </td>
      </tr>
      <tr>
      <td width='233' valign='top'>
      <table cellspacing='0' cellpadding='0' width='233' border='0'>
      <tr>
      <td class='resimArka' width='233' height='180' align='center'>";
      
      $result = dbquery("SELECT * FROM ".DB_NEWS." ORDER by news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
      while ($data = dbarray($result)) {
      if ($data['news_image'] != "") {
      echo "<div id='tits".$data['news_id']."-imaj' style='display:block'><a href='infusions/news/news.php?readmore=".$data['news_id']."' target='_parent'><img src='".IMAGES_N_T.$data['news_image_t2']."' height='168' width='221' border='0' alt='".$data['news_subject']."'></a></div>";
      } else {
      echo "<div id='tits".$data['news_id']."-imaj' style='display:block'><img src='".IMAGES_N."news.gif' height='168' width='221' border='0' alt='".$data['news_subject']."'></div>";
      }
      }
      }
      echo "</td>
      </tr>
      
      <tr>
      <td height='40' valign='top'>";
      $result = dbquery("SELECT * FROM ".DB_NEWS."
      ORDER by news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
      while ($data = dbarray($result)) {
      
      //habe özet bölümü
      echo "<div id='tits".$data['news_id']."-spot' class='ozet'><a href='infusions/news/news.php?readmore=".$data['news_id']."' target='_parent'><span>".substr(stripslashes(nl2br(strip_tags($data['news_news']))), 0,155)." [".$data['news_reads']."]</span></a></div>";
      }
      }
      echo "</td>
      </tr>
      
      
      </table>
      </td>
      
      <td valign='top'>
            <table width='285' border='0' cellspacing='0' cellpadding='0'>

 <tr><td id='catmenu'>

";
      $result = dbquery("SELECT * FROM ".DB_NEWS." ORDER by news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
      while ($data = dbarray($result)) {
      
      
         echo "<ul>";
         echo "<li><a href='infusions/news/news.php?readmore=".$data['news_id']."' onmouseover='displayDiv(".$data['news_id'].")' title='".$data['news_subject']."' target='_parent'>".trimlink($data['news_subject'], 36)."</a></li>";
      echo "</ul>";
      
      }
      }
      echo "   
   </td>
   </tr>
   </table>
      </td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
   
   <script type='text/javascript'>
   function displayDiv(divID) {";
      $FirstNews = null;
      $result = dbquery("SELECT * FROM ".DB_NEWS." ORDER by news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
         while ($data = dbarray($result)) {
            if ($FirstNews == null) $FirstNews = $data;
            echo "
            hide('titt".$data['news_id']."-sptt');
            hide('tits".$data['news_id']."-spot');
            hide('tits".$data['news_id']."-imaj');
            document.getElementById('titt'+divID+'-sptt').style.display = 'block';
            document.getElementById('tits'+divID+'-spot').style.display = 'block';
            document.getElementById('tits'+divID+'-imaj').style.display = 'block';";
         }
      }
   echo "}";
   if ($FirstNews != null) {
      echo "displayDiv(".$FirstNews['news_id'].");";
   }
echo "</script>";

closeside();

Change the IMAGES_N_T.$data['news_image_t2 to IMAGES_N_T.$data['news_image_t1 and see.
If you have low quality images no t2 will be created.
chatlaq has replied to this - 4 months ago
News image don't show. news image field could be removed from the news table?
In later news core infusions version, the news_image no longer exist as one news contains multiple images.

We have changed to:

CodeDownload  

$result = dbquery("SELECT n.*, ni.*
 FROM ".DB_NEWS." AS n
 LEFT JOIN ".DB_NEWS_IMAGES." AS ni ON ni.news_id=n.news_id AND n.news_image_front_default=ni.news_image_id
 ORDER by
 n.news_sticky DESC, n.news_id DESC LIMIT 0,11);

// Since the forum doesn't support TABS, i'll code in ternary.

if (dbrows($result)) :

while ($data = dbarray($result) :

//print_p($data); // uncomment to see $data var

 echo "<div id='tits".$data['news_id']."-imaj' style='display:block'><a href='infusions/news/news.php?readmore=".$data['news_id']."' target='_parent'><img src='".IMAGES_N_T.$data['news_image_t2']."' height='168' width='221' border='0' alt='".$data['news_subject']."'></a></div>";


endwhile;

endif;




Please read the code and understand it. That's the whole point of guidance.
chatlaq has replied to this - 4 months ago
Hi Chan,

It doesn't work that way either.


CodeDownload  
openside("Haberler");

echo "


<style type='text/css'>
.ozet {
 background-color: #333333;
 display: block;
 height: 93px;
 padding: 0px 5px 14px 11px;
   text-align: left;
 box-shadow:inset 0px 0px 15px white;
-moz-box-shadow:inset 0px 0px 15px white;
-webkit-box-shadow:inset 0px 0px 15px white;
}
.ozet a{
 font-size: 12px;
 text-decoration: none;
 line-height: 130%;
 color: white;
 font-family: verdana;
}
a {
 text-decoration: none;
}
a.yazi {
 font: 35px/25px 'IMPACT',Helvetica,Arial,sans-serif;
 color: #333333;
 text-shadow: 6px 1px 10px red;
}

.h1{
margin:0px;
}


body.badi{
margin:0px;
padding:0px;
}


   
   #catmenu ul, #catmenu ul li, #catmenu ul li a {
   width:270px; display: block;
}

#catmenu {
   /*nargin:-10px;*/
   width:180px;
   display: block;
   color: #333333;
   margin-left:4px;
   /*background-color:#dddddd;*/
}


#catmenu ul{
   margin:0px;
   margin-left:-10px;
   text-align: left;
   line-height: normal;
   margin: 1px;
   padding: 0;
   display: block;
   /*border: solid #4B7E97;
   border-width: 0px 0px 1px 0px;   */
}

#catmenu ul li{
   list-style-type: none;
   display: block;
   /*white-space: nowrap;
   /*border: solid #4B7E97;
   border-width: 1px 1px 0px 1px;*/
}

#catmenu ul li a{
   color: #000000;
   text-decoration: none;
   padding-top: 3px;
   padding-bottom: 1px;
   padding-left:6px;
   padding-right:-20px;
   height: 20px;
   background-color:#ffffff;
   border: solid #cccccc;
   border-width: 0px 0px 1px 0px;
   margin-left:0px;
   font-size: 15px;
 font-family: tahoma;
}

#catmenu ul li a:hover, #catmenu ul li a.selected{
   color: #ffffff;
   height: 20px;
   background-color: #DE1F28;
   text-decoration: none;
 -moz-box-shadow: inset 0 0 10px #ffffff;
 -webkit-box-shadow: inset 0 0 10px #ffffff;
 box-shadow: inset 0 0 10px #ffffff;
}

.resimArka{
box-shadow:inset 0px 0px 15px red;
-moz-box-shadow:inset 0px 0px 15px red;
-webkit-box-shadow:inset 0px 0px 15px red;
background-color:#333333;
}

</style>
";


echo "<script type='text/javascript'>
   function hide(divID) { document.getElementById(''+divID+'').style.display = 'none'; }
   function displayCatdiv(divID) { document.getElementById(''+divID+'').style.display = 'block'; }
   function openWin( windowURL, windowName, windowFeatures ) {   window.open(windowURL,windowName,windowFeatures); }
   </script>
   <table cellpadding='0' cellspacing='1' border='0' width='200'>
      <tr>
      <td class='tbl1'>
      <table cellspacing='0' cellpadding='0' width='95%' border='0'>
      <tr>
      <td width='100%' colspan='3'>
      <table cellspacing='0' cellpadding='0' width='100%' border='0'>
      <tr>
      <td height='40' valign='top'>";
      
      
      $result = dbquery("SELECT * FROM ".DB_NEWS." ORDER by
 news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
      while ($data = dbarray($result)) {
      echo "<div id='titt".$data['news_id']."-sptt' style='display:block; padding:0px 0px 5px 4px;'><h1 class='h1' title='".$data['news_subject']."'><a class='yazi' href='infusions/news/news.php?readmore=".$data['news_id']."' target='_parent'>".trimlink($data['news_subject'], 35)."</a></h1></div>";
      }
      }
      echo "</td>
      </tr>
      </table>
      </td>
      </tr>
      <tr>
      <td width='233' valign='top'>
      <table cellspacing='0' cellpadding='0' width='233' border='0'>
      <tr>
      <td class='resimArka' width='233' height='180' align='center'>";
      
      
$result = dbquery("SELECT n.*, ni.*
 FROM ".DB_NEWS." AS n
 LEFT JOIN ".DB_NEWS_IMAGES." AS ni ON ni.news_id=n.news_id AND n.news_image_front_default=ni.news_image_id
 ORDER by
 n.news_sticky DESC, n.news_id DESC LIMIT 0,11);

// Since the forum doesn't support TABS, i'll code in ternary.

if (dbrows($result)) :

while ($data = dbarray($result) :

//print_p($data); // uncomment to see $data var

 echo "<div id='dfg' style='display:block'><a href='infusions/news/news.php?readmore=".$data['news_id']."' target='_parent'><img src='".IMAGES_N_T.$data['news_image_t2']."' height='168' width='221' border='0' alt='".$data['news_subject']."'></a></div>";


endwhile;

endif;}
      }
      }
      
      
      
      
      
      
      echo "</td>
      </tr>
      
      <tr>
      <td height='40' valign='top'>";
      $result = dbquery("SELECT * FROM ".DB_NEWS."
      ORDER by news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
      while ($data = dbarray($result)) {
      
      //habe özet bölümü
      echo "<div id='tits".$data['news_id']."-spot' class='ozet'><a href='infusions/news/news.php?readmore=".$data['news_id']."' target='_parent'><span>".substr(stripslashes(nl2br(strip_tags($data['news_news']))), 0,155)." [".$data['news_reads']."]</span></a></div>";
      }
      }
      echo "</td>
      </tr>
      
      
      </table>
      </td>
      
      <td valign='top'>
            <table width='285' border='0' cellspacing='0' cellpadding='0'>

 <tr><td id='catmenu'>

";
      $result = dbquery("SELECT * FROM ".DB_NEWS." ORDER by news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
      while ($data = dbarray($result)) {
      
      
         echo "<ul>";
         echo "<li><a href='infusions/news/news.php?readmore=".$data['news_id']."' onmouseover='displayDiv(".$data['news_id'].")' title='".$data['news_subject']."' target='_parent'>".trimlink($data['news_subject'], 36)."</a></li>";
      echo "</ul>";
      
      }
      }
      echo "   
   </td>
   </tr>
   </table>
      </td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
   
   <script type='text/javascript'>
   function displayDiv(divID) {";
      $FirstNews = null;
      $result = dbquery("SELECT * FROM ".DB_NEWS." ORDER by news_sticky DESC, news_id DESC LIMIT 0,11");
      
      if (dbrows($result)) {
         while ($data = dbarray($result)) {
            if ($FirstNews == null) $FirstNews = $data;
            echo "
            hide('titt".$data['news_id']."-sptt');
            hide('tits".$data['news_id']."-spot');
            hide('tits".$data['news_id']."-imaj');
            document.getElementById('titt'+divID+'-sptt').style.display = 'block';
            document.getElementById('tits'+divID+'-spot').style.display = 'block';
            document.getElementById('tits'+divID+'-imaj').style.display = 'block';";
         }
      }
   echo "}";
   if ($FirstNews != null) {
      echo "displayDiv(".$FirstNews['news_id'].");";
   }
echo "</script>";

closeside();

zizub attached the following file:
news_popular_panel.zip [1.7kB / 31 Downloads]
Attached panel was made for the version of PF-9. For newer versions need to change:
To find
CodeDownload  
if (!defined("IN_FUSION")) { die("Access Denied"); }


Replaced by
CodeDownload  
defined('IN_FUSION') || exit;

RobiNN has replied to this - 4 months ago
Doesn't matter, it's the same.
Thread Information
Author
Replies
10 posts
Views
496 times
Last Post
Last updated on 4 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Chan, chatlaq, zizub, RobiNN