obey-robots.txt
November 20 2017 06:03:02
Navigation
Your ad can be here below
Facebook Like
Portfolio
BetterClimate.Net
ComplaintSupport.Com
Daily-Breaking-News.Com
Kidiot.Org
Php-Fusion.Asia
Php-Fusion.Cn
Php-Fusion.Fr
Php-Fusion.In
Php-Fusion.Start-Pages.Com
Rain-Radar.Com
Speed-Testing.Net
Start-Pages.Com
WebhostingTrouble.Com
WebmasterTrouble.Com
View Thread
Share your complete panel. This can be a stand alone panel or an infusion including a panel. Lately the name infusion has changed to add on.
New Thread Post Reply
 Print Thread

Trio panel with latest threads, news and articles

Fusioneer
The trio panel is active on this site as well, but was not showing up.

Open up trio_panel_lf_ln_la.php

And change -365 days to -3650 days. Now it is showing here too.

Let me know if it works.
Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Ad-Bot
 
If you can read this your code works.
Tutorial Insert an advertisement panel between forum posts


Join Ad-Vertise.nl Especially for php-fusion users i have created a free text ads exchange system. How does it work? Register, select "Ads English PHP-Fusion" and create your own text advertisement. Choose an ad size, adjust colors and integrate html code on your site. Now your advertisements are shown on all participating sites who also choose "Ads English PHP-Fusion".
jonathanwichter
No that did not work. Here is the code....
Download source  Code
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2013 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Center upper or lower panel.
| Shows Latest posts, news and articles
| Filename: trio_panel_lf_ln_la.php version 1.0
| Author: Wim de Lange (Wanabo)
+--------------------------------------------------------+
| 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/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (file_exists(INFUSIONS."trio_panel_lf_ln_la/locale/".$settings['locale'].".php")) {
   include INFUSIONS."trio_panel_lf_ln_la/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."trio_panel_lf_ln_la/locale/English.php";
}
// get the database info
if (FUSION_SELF == "viewforum.php") {
$resultforum = dbquery("
   SELECT tt.forum_id, tt.thread_id, tt.thread_subject, tt.thread_lastpost, tt.thread_views FROM ".DB_THREADS." tt
   INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
   WHERE ".groupaccess('tf.forum_access')." AND tt.thread_hidden='0' AND tt.thread_lastpost > '".strtotime('-3650 days')."'
   ORDER BY tt.thread_lastpost DESC LIMIT 5
");
$resultnews = dbquery("
   SELECT tn.*, tc.*, tu.user_id, tu.user_name, tu.user_status 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' AND news_datestamp > '".strtotime('-3650 days')."'
   GROUP BY news_id
   ORDER BY news_datestamp DESC LIMIT 5
");
$resultarticles = dbquery("
   SELECT ta.article_id, ta.article_subject, ta.article_reads, tac.article_cat_id, tac.article_cat_access FROM ".DB_ARTICLES." ta
   INNER JOIN ".DB_ARTICLE_CATS." tac ON ta.article_cat=tac.article_cat_id
   WHERE ".groupaccess('article_cat_access')." AND article_draft='0' AND article_datestamp > '".strtotime('-3650 days')."'
   ORDER BY article_datestamp DESC LIMIT 5
");
}

if (FUSION_SELF == "news.php" || FUSION_SELF == "index.php") {
$resultforum = dbquery("
   SELECT tt.forum_id, tt.thread_id, tt.thread_subject, tt.thread_lastpost, tt.thread_views FROM ".DB_THREADS." tt
   INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
   WHERE ".groupaccess('tf.forum_access')." AND tt.thread_hidden='0' AND tt.thread_lastpost > '".strtotime('-3650 days')."'
   ORDER BY tt.thread_lastpost DESC LIMIT 5
");
$resultnews = dbquery("
   SELECT tn.*, tc.*, tu.user_id, tu.user_name, tu.user_status 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' AND news_datestamp > '".strtotime('-3650 days')."'
   GROUP BY news_id
   ORDER BY news_datestamp DESC LIMIT 5
");
$resultarticles = dbquery("
   SELECT ta.article_id, ta.article_subject, ta.article_reads, tac.article_cat_id, tac.article_cat_access FROM ".DB_ARTICLES." ta
   INNER JOIN ".DB_ARTICLE_CATS." tac ON ta.article_cat=tac.article_cat_id
   WHERE ".groupaccess('article_cat_access')." AND article_draft='0' AND article_datestamp > '".strtotime('-3650 days')."'
   ORDER BY article_datestamp DESC LIMIT 5
");
}

// display the database info
if (FUSION_SELF == "index.php") { $linktrim = '40';
add_to_head("<style type='text/css'>.lefttrio{float:left; width:33.33%;}</style>"); }

if (FUSION_SELF == "news.php" || FUSION_SELF == "viewforum.php") { $linktrim = '65';
add_to_head("<style type='text/css'>.lefttrio{float:left; width:50%;}</style>"); }

if (FUSION_SELF == "viewforum.php" || FUSION_SELF == "news.php" || FUSION_SELF == "index.php") {

if (FUSION_SELF == "index.php" && (dbrows($resultforum))) { echo "<div class='lefttrio'><div class='capmain'><strong>".$locale['trioforum_forum']."</strong></div>\n";
   while($data = dbarray($resultforum)) {
      $itemsubject = trimlink($data['thread_subject'], $linktrim);
      echo THEME_BULLET." <a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>".$itemsubject."</a> [".$data['thread_views']."]<br />\n";
   }
echo "</div>";
}
if (dbrows($resultnews)) { echo "<div class='lefttrio'><div class='capmain'><strong>".$locale['trioforum_news']."</strong></div>\n";
   while($data = dbarray($resultnews)) {
      $itemsubject = trimlink($data['news_subject'], $linktrim);
      echo THEME_BULLET." <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>".$itemsubject."</a> [".$data['news_reads']."]<br />\n";
   }
echo "</div>";
}
if (dbrows($resultarticles)) { /*Please respect credits*/ $dext = array("asia","cn","fr","in","org"); $dext = $dext[array_rand($dext)]; echo "<div class='lefttrio'><div class='capmain'><strong>".$locale['trioforum_articles']."</strong><div style='float:right; display:inline;'><a title='pHp-Fusion.".$dext." | Open Source PHP + MySQL Powered Website' href='http://www.php-fusion.".$dext."/' class='scapmain' style='text-decoration:none;'>&copy;</a></div></div>\n";
   while($data = dbarray($resultarticles)) {
      $itemsubject = trimlink($data['article_subject'], $linktrim);
      echo THEME_BULLET." <a href='".BASEDIR."articles.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>".$itemsubject."</a> [".$data['article_reads']."]<br />\n";
   }
echo "</div>";
}
}
?>


 
Fusioneer
I have a slightly different version in use on other sites. You're welcome to try that one.
If the panel does not show up change -90 days to -900 days.

I've attached that other version.

Fusioneer attached the following file:
trioforum_threads_panel_1.zip [2.71kB / 232 Downloads]

Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum:
New Thread Post Reply
Gebruik BBcode of HTML om naar; 'Trio panel with latest threads, news and articles', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Thread Forum Replies Last Post
Add edit message to Quickreply panel Modifications to viewthread.php 1 19-01-2015 07:47
Insert an advertisement panel between forum posts Panels, share youre code 2 16-12-2014 10:41
Navigation panel without CSS Panels/infusions (add ons) 1 14-09-2014 16:23
Improved Last seen users panel Panels/infusions (add ons) 3 17-12-2013 05:47
Trio forum threads panel (as on this site) Panels/infusions (add ons) 8 18-02-2013 15:00
Users Online
Guests Online: 1

Members Online: 0

Total Members: 51
Newest Member: SprDave
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Last Seen Users
Language Switcher
Theme Switcher
Shoutbox
You must login to post a message.

No messages have been posted.
Member Poll
PHP-Fusion, I might try it.

Yes
Member Poll: PHP-Fusion, I might try it. Yes 100% [5 Votes]
100% [5 Votes]

No
Member Poll: PHP-Fusion, I might try it. No 0% [0 Votes]
0% [0 Votes]

Maybe
Member Poll: PHP-Fusion, I might try it. Maybe 0% [0 Votes]
0% [0 Votes]

Votes: 5
You must login to vote.
Started: 20-10-2011
Latest Articles
No Articles available
735,579 unique visits