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.
Not a member yet? Click here to register.
Forgot Password?

How to upgrade v7 panels to v9

Asked Modified Viewed 1,685 times
C
chatlaq
C
Php Fusion Turkey Admin
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

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

Below are the codes.

?>
<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>
<?
Edited by chatlaq on 18-05-2019 21:17,
0 replies

6 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Go to Settings > Security, Set Allow PHP Execution to On.
0 replies
C
chatlaq
C
Php Fusion Turkey Admin
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Hi Falk thank you for your support.

This panel also doesn't show news pictures.

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();
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

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.
1 reply
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

In later news core infusions version, the news_image no longer exist as one news contains multiple images.

We have changed to:


$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.
Edited by Chan on 23-05-2019 12:06,
1 reply
Z
zizub
Z
zizub 10
  • Member, joined since
  • Contributed 156 posts on the community forums.
  • Started 29 threads in the forums
answered
Member

Sample code without javascript: Popular news panel with photo https://www.phpfusion.cz/infusions/fo...6#post_215
I attached a panel that works on XAMPP (Andromeda test).
Edited by zizub on 25-05-2019 07:15,
zizub attached the following file:
news_popular_panel.zip [No information available / 97 Downloads]
0 replies
Z
zizub
Z
zizub 10
  • Member, joined since
  • Contributed 156 posts on the community forums.
  • Started 29 threads in the forums
answered
Member

Attached panel was made for the version of PF-9. For newer versions need to change:
To find
if (!defined("IN_FUSION")) { die("Access Denied"); }

Replaced by
defined('IN_FUSION') || exit;
1 reply

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
C
C
Php Fusion Turkey Admin
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
Z
Z
zizub 10
  • Member, joined since
  • Contributed 156 posts on the community forums.
  • Started 29 threads in the forums
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet