obey-robots.txt
July 22 2017 21:36:15
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
On request of afoster I coded a Trio panel with latest threads, news and articles.

Trio_panel_lf_ln_la can be used as an upper or lower center panel.
It uses locale files so it is easily converted to your language. Dutch.php and English.php are included.
It shows, Latest posts, news and articles, side by side.
On news.php it only shows latest news and articles. I choose not to show latest post because it would make no sense as the "latest active forum threads panel" is also shown on news.php.
On \forum\index.php it shows Latest posts, news and articles, side by side.

Installation is simple. Upload the map infusions to your root website directory.
It will add a directory trio_panel_lf_ln_la in your infusions directory.
Of course you can also copy the trio_panel_lf_ln_la directory directly to the infusions directory.

Go to you admin panel -> system admin -> panels
Click on [New Panel], you can choose either Upper Center or Lower Center. I think Upper Center is the best choice.
Panel Name: Trio panel lf ln la
Panel Filename: trio_panel_lf_ln_la
Panel Content: (Leave as is or remove the content. It does not matter)

Panel Restriction: (Leave empty)
Admin Password: (Enter your Admin Password)
Panel Access: Public (Is the default)
Check the checkbox before "Display panel on all pages"

Save the panel. Return to Panel Management. [Enable] the panel. Move to the desired position.

For example like this;
Welcome Message
Trio panel lf ln la
Forum Threads List

Fusioneer attached the following file:
trio_panel_lf_ln_la.zip [28.91kB / 493 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!
 
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".
afoster
Thanks for getting these done, hopefully they will be useful to a lot more users than just me. One question...am I correct in saying that the threads panel should show the most read news and articles because if that is correct, than either I am doing something wrong or it is not working. Nothing is showing on the page, and yes I have enabled the panel.
 
Fusioneer
Hmm, just make sure your news and articles are not older than 1 year. If this is the case then just remove the AND news_datestamp > '".strtotime('-365 days')."' part or change 365 to 3650 (10 years).

Can you give me a link to your site? Either here in the forum or in a PM.
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!
 
Fusioneer
As requested by afoster a change of code for not showing the latest but the most read articles, news and posts.

Find every instance of:
Download source  GeSHi: PHP (brief)
  1. ORDER BY tt.thread_lastpost DESC LIMIT 5
Parsed in 0.006 seconds, using GeSHi 1.0.8.10

And replace with:
Download source  GeSHi: PHP (brief)
  1. ORDER BY tt.thread_views DESC LIMIT 5
Parsed in 0.005 seconds, using GeSHi 1.0.8.10


Find every instance of:
Download source  GeSHi: PHP (brief)
  1. ORDER BY news_datestamp DESC LIMIT 5
Parsed in 0.005 seconds, using GeSHi 1.0.8.10

And replace with:
Download source  GeSHi: PHP (brief)
  1. ORDER BY news_reads DESC LIMIT 5
Parsed in 0.005 seconds, using GeSHi 1.0.8.10

(news is also grouped by id so you can try to remove the line: GROUP BY news_id)

Find every instance of:
Download source  GeSHi: PHP (brief)
  1. ORDER BY article_datestamp DESC LIMIT 5
Parsed in 0.005 seconds, using GeSHi 1.0.8.10

And replace with:
Download source  GeSHi: PHP (brief)
  1. ORDER BY article_reads DESC LIMIT 5
Parsed in 0.005 seconds, using GeSHi 1.0.8.10

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!
 
afoster
That was easy enough. I assume that I have to change the headers in the locale file from latest to most read?

I know that I am now taking advantage, but is it possible to show how many times the news/articles have been read?
 
Fusioneer
Yes, the locale files need to be updated to.

but is it possible to show how many times the news/articles have been read?


I'll look in to that. I expect results tomorrow.
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!
 
afoster
Thanks, I will check back.
 
Fusioneer
Sorry didn't had the time yesterday due to unforeseen events.

Attached is the modified file. This one is all so showing how many times a displayed item is read.

It is just the php file so overwrite the existing one.

Edit: Realized this version is showing the latest ... again. So modify the file according to post #4 that will order the shown items like you want.

Fusioneer attached the following file:
trio_panel_lf_ln_laphp.zip [1.78kB / 415 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!
 
afoster
Got it, made the change per post #4 and changed the sort to news_reads and article_reads. Looks the way I want it to.

Since I don't use the forum, I'm going to try to replace the code for the forum to display the name of the user and number of posts in the shout. I doubt I will be able to do it and will probably be back for some help.

UPDATE: I actually surprised myself in that I was able to list the user_name and number of shouts in the shoutbox table, however I have not been able to figure out how to change the user_name display from a number to the name of the user. I assume I would have to JOIN the shoutbox table with the users table but need some help on that aspect of the code.
Edited by afoster on 22-02-2013 18:10
 
Fusioneer
Just examine the code from the shoutbox panel. Use that as a starting point.
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
Fusioneer 1 day
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
673,054 unique visits