Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 46
SyntaxHighlighte... 48
Newsletters v4.03 108
Facebook Like Box 123
Newsletters v4.02 56
Metro 158
Facebook Connect 168
Shoutbox Panel 125
Redactor for PHP... 104
MI Floating Side... 107
Facebook Login/R... 151
Avatar Studio v2.03 178
Relationship Sta... 96
Sexual Orientati... 113
Fisherman 142
Popular Addons
iTheme2 5798
Arise 5787
User Control v1.23 4617
Event Calendar 4049
Photowidget panel 3885
Radio-Theme red2... 3352
Highslide Gallery 3312
CSS/JavaScript D... 3224
Facebook Connect... 2980
Dynamic Menu 2889
Slideshow Lightb... 2719
L-AMANT 2657
Enigma 2631
2Dark 2603
Black 2572
View Thread
Who is here? 1 guest(s)
 Print Thread
FP News Panel
Craig
www.php-fusion.co.uk/infusions/addondb/img/screenshots/t_988.pngFP News Panel gives the option to display news in double columns.

-- View this Addon --
 
http://www.fusiontube.co.uk/
jikaka
very very nice!
good man!
Wink
www.rusfusion.ru - russian nss
 
www.rusfusion.ru
HaYaLeT
Awesome! can you put maximum summary character code?

Live Demo: http://www.design...m/news.php

example code:
Download source  Code
   $news_news = $data['news_breaks'] == "y" ? nl2br(stripslashes(substr($data['news_news'],0,100))) : stripslashes(substr($data['news_news'],0,100));




because summary of the different then one of the following is one of the above be.
Edited by HaYaLeT on 12-07-2011 21:52
 
http://www.hayaletsevgili.com
Craig
You have put that is no problem but I will not change it in this panel as it's not needed.
 
http://www.fusiontube.co.uk/
HaYaLeT
i understand,added turkish support site..
 
http://www.hayaletsevgili.com
Craig
Oh! You are a moderator on the Turkish Support Site yes. Nice. I did not realise that. Smile

OK nice thank you.
 
http://www.fusiontube.co.uk/
Kevin Maschke
OK SORRY.

SOLVED.

I did not follow all the instructions for 2 column news panel.

Now it works!

Can delete thread!
<3 PHP-Fusion
 
http://www.km.hostei.com/php-fusion/
Craig
Wink All good now?
 
http://www.fusiontube.co.uk/
Ankur
Well Done Craig... staff.php-fusion.co.uk/images/smiley/good.png

You did it... Grin
ankurthakur.co.cc/images/freelancer.png
 
http://ankurthakur.in/
Craig
FP News Panel For BB Codes for Articles & News Mod
If anyone is using our [BB Codes for Articles & News] Mod and you need it to work with FP News Panel replace fp_news_panel with this one....

Download source  Code
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Type:  Panel
| Name: FP News Panel
| Version: 1.00
| File Name: fp_news_panel.php
| Author: Fangree Productions
| Site: http://www.fangre...
| Contact:
| Developers: Fangree_Craig
| Additional code from PHP-Fusion V7.02 news.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

include LOCALE.LOCALESET."news_cats.php";

// BB Codes For Articles Mod
if ((file_exists(INCLUDES."na_bbcodes_settings.php"))) {
require_once INCLUDES."na_bbcodes_settings.php";
}

if ($bbcodes =="1") {
require_once INCLUDES."bbcode_include.php";
}
///


//////////SETTINGS/////////////////////////////////////////////
//Single or double column news 1 == Single || 0 == Double collumn
$single = 0;
// Number of news displayed
$items_per_page = 4;
// Counter for Displaying News in 2 Columns NO NEED TO CHANGE THIS.
$counter = 3;
/////////////SETTINGS END /////////////////////////////////////

   $i = 0;

   if (!isset($_GET['readmore']) || !isnum($_GET['readmore'])) {
   $rows = dbcount("(news_id)", DB_NEWS, groupaccess('news_visibility')."
                  AND (news_start='0'||news_start<=".time().")
                  AND (news_end='0'||news_end>=".time().")
                  AND news_draft='0'");

   if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
   if ($rows) {
   $result = dbquery(
   "SELECT tn.*, tc.*, tu.user_id, tu.user_name, tu.user_status, news_news
   FROM ".DB_NEWS." tn
   LEFT JOIN ".DB_USERS." tu ON tn.news_name=tu.user_id
   LEFT JOIN ".DB_NEWS_CATS." tc ON tn.news_cat=tc.news_cat_id
   WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().")
   AND (news_end='0'||news_end>=".time().") AND news_draft='0'
   GROUP BY news_id
   ORDER BY news_sticky DESC, news_datestamp DESC LIMIT ".$_GET['rowstart'].",".$items_per_page
   );

   $numrows = dbrows($result);
   if ($single !=="1") {
   echo "<table valign='top' cellpadding='0' cellspacing='2' width='100%' border='0'>\n<tr>\n";
   }
   while ($data = dbarray($result)) {
   $i++;
   $comments = dbcount("(comment_id)", DB_COMMENTS." WHERE comment_type='N' AND comment_hidden='0' AND comment_item_id='".$data['news_id']."'");
   $news_cat_image = "";
   $news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);
   $news_cat_image = "<a href='".($settings['news_image_link'] == 0 ? "news_cats.php?cat_id=".$data['news_cat'] : BASEDIR."news.php?readmore=".$data['news_id'] )."'>";
   if ($data['news_image_t2'] && $settings['news_image_frontpage'] == 0) {
   $news_cat_image .= "<img src='".IMAGES_N_T.$data['news_image_t2']."' alt='".$data['news_subject']."' class='news-category' /></a>";
   } elseif ($data['news_cat_image']) {
   $news_cat_image .= "<img src='".get_image("nc_".$data['news_cat_name'])."' alt='".$data['news_cat_name']."' class='news-category' /></a>";
   } else {
   $news_cat_image = "";
   }
//  BB Codes For News Mod
         if($bbcodes == 1) {
         $news_news = $data['news_breaks']  == "y" ? "y" : "n" ? nl2br(stripslashes(parseubb(parsesmileys($data['news_news'])))) : stripslashes($data['news_news']);
         }else{
         $news_news = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']);
            }
         ///

   $news_info = array(
   "news_id" => $data['news_id'], "user_id" => $data['user_id'],
   "user_name" => $data['user_name'], "user_status" => $data['user_status'],
   "news_date" => $data['news_datestamp'], "cat_id" => $data['news_cat'],
   "news_news" => $data['news_news'], "cat_name" => $data['news_cat_name'],
   "cat_image" => $news_cat_image, "news_subject" => $data['news_subject'],
   "news_ext" => $data['news_extended'] ? "y" : "n", "news_reads" => $data['news_reads'],
   "news_comments" => $comments, "news_allow_comments" => $data['news_allow_comments'],
   "news_sticky" => $data['news_sticky']
   );
   
   if ($single =="1") {
   echo "<!--news_prepost_".$i."-->\n";
   render_news($news_subject, $news_news, $news_info);
   }else{
   echo "<td style='vertical-align: top; width: 50%;'>\n";
   echo "<!--news_prepost_".$i."-->\n";
   render_news($news_subject, $news_news, $news_info);
   echo "</td>\n";
   if ($counter % 2 == 0){ echo "</tr>\n<tr>\n"; }
   $counter++;
   }
   }
   if ($single !=="1") {
   echo "</tr>\n</table>";
   }
   echo "<!--sub_news_idx-->\n";

   if ($rows > $items_per_page) echo "<div style='margin-top:5px; text-align: center;'>\n".makepagenav($_GET['rowstart'],$items_per_page,$rows,3)."\n</div><br />\n";
   } else {
   opentable($locale['global_077']);
   echo "<div style='text-align: center;'><br />\n".$locale['global_078']."<br /><br />\n</div>\n";
   closetable();
   }
   }
   
?>



 
http://www.fusiontube.co.uk/
mNm
I have some problems with pagination. When i do next page the infusion is not showing other page content.. URL is home.php?rowstart=2 and there is nothing to show. How to solve problem?
C-S.LT Gaming Community :: MasterServers - working on!
 
http://c-s.lt
Craig
PHP-Fusion V7.02.04 Panels bug not a bug with this panel.

Fix is here...

http://next.php-f...post_22777
 
http://www.fusiontube.co.uk/
mNm
Fangree_Craig wrote:

PHP-Fusion V7.02.04 Panels bug not a bug with this panel.

Fix is here...

http://next.php-f...post_22777


thx. but just i myself make a solution. just copyed panel code content to news.php Wink
C-S.LT Gaming Community :: MasterServers - working on!
 
http://c-s.lt
roslensaub
mNm wrote:

Fangree_Craig wrote:

PHP-Fusion V7.02.04 Panels bug not a bug with this panel.

Fix is here...

http://next.php-f...post_22777


thx. but just i myself make a solution. just copyed panel code content to news.php Wink


i a new user of pfp fusion. i have this problem too. what do u mean by copy panel code? all the code in fp_news_panel.php to news.php? or replace all the code to news.php? plz help me. thanks
 
http://saub.com.my
Craig
If you read in the readme I am pretty sure it explains it all there, failing that head to http://www.fangre... forums where you will find FP News panel support thread there you might also find the solution.

This Addons is no longer supported here.

Thanks
 
http://www.fusiontube.co.uk/
zodan
Hello everyone and thank you for what you do, I installed this infusion with the change to the news and articles, but I noticed that these panels are always at the top, in the sense that for example, if a user wants to register, the panel for recording remains in the bottom of the page after the news (like all the other panels that may need to appear in place of the news es.videogallery etc etc) on my site are always visible. I hope I explained, there's a solution.

My site: HERE
 
www.bittowertorrent.com
Craig
Read the Reame it states in there what to do. Include it to display on your home.php only.
 
http://www.fusiontube.co.uk/
smokeman


Yes and a lot of popup's advertises and exploits too.. Bad
www.dvdside.dk/images/virus.gif
 
http://www.phpfusion-tips.dk/
Craig
I did warn richard about this site already. Anyway it's not our problem.
 
http://www.fusiontube.co.uk/
zodan
Oh my god I delete everything! I've posted just today but they take off
 
www.bittowertorrent.com
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Birthday panel Panels and Infusions 1 21-05-2013 21:12
Change News Category and Contents Name... help Content Administration 8 21-05-2013 18:51
Link panel to another subdomain Content Administration 3 19-05-2013 08:50
How to change displaying my home page from news.php to index.php? General Discussion 19 14-05-2013 09:24
Stop Forum Spam Panel Official releases [Panels] 14 12-05-2013 19:51
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue