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.
Page 1 of 2: 12
|
Trio panel with latest threads, news and articles
|
|
Fusioneer |
Posted on 18-02-2013 14:54
|
Super Admin Posts: 64 Joined: 20-10-2011 |
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:
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 |
Posted on 19-02-2013 22:24
|
Junior Member Posts: 19 Joined: 21-09-2012 |
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 |
Posted on 19-02-2013 23:12
|
Super Admin Posts: 64 Joined: 20-10-2011 |
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 |
Posted on 20-02-2013 15:17
|
Super Admin Posts: 64 Joined: 20-10-2011 |
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:
And replace with:
Find every instance of:
And replace with:
(news is also grouped by id so you can try to remove the line: GROUP BY news_id) Find every instance of:
And replace with:
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 |
Posted on 20-02-2013 15:39
|
Junior Member Posts: 19 Joined: 21-09-2012 |
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 |
Posted on 20-02-2013 15:47
|
Super Admin Posts: 64 Joined: 20-10-2011 |
Yes, the locale files need to be updated to. Quote 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 |
Posted on 20-02-2013 16:39
|
Junior Member Posts: 19 Joined: 21-09-2012 |
Thanks, I will check back. |
|
|
Fusioneer |
Posted on 22-02-2013 09:51
|
Super Admin Posts: 64 Joined: 20-10-2011 |
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:
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 |
Posted on 22-02-2013 16:40
|
Junior Member Posts: 19 Joined: 21-09-2012 |
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 |
Posted on 22-02-2013 18:59
|
Super Admin Posts: 64 Joined: 20-10-2011 |
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!
|
|
|
afoster |
Posted on 22-02-2013 20:54
|
Junior Member Posts: 19 Joined: 21-09-2012 |
OK, I have putzed with this code for so long that I have screwed up the display of the whole page and can't figure out where the problem is. I probably have too many or not enough "}" in there. Anyway, here is the code I am using.
Would appreciate it if you can point out where my mistake(s) are. Thanks in advance. |
|
|
Fusioneer |
Posted on 23-02-2013 11:55
|
Super Admin Posts: 64 Joined: 20-10-2011 |
I managed to get a number of shouts by looking at the userfield user_shout_stat, and that is shown. And I found a solution to order the output by number of shouts. :) One other thing, it is not possible to link to a shout. So the I made a link to the shoutbox archive. Rewritten the infusion so it only shows on news.php Alter the locale files to match the output.
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 |
Posted on 05-03-2013 19:53
|
Junior Member Posts: 19 Joined: 21-09-2012 |
Perfect, thank you very much. |
|
|
afoster |
Posted on 11-03-2013 17:59
|
Junior Member Posts: 19 Joined: 21-09-2012 |
I've tried removing the [ ] from the numbers of articles read, etc but it screws up the whole site. What is the easiest way to go from: [698] to just 698 after the number of articles read, or news read or shouts posted. |
|
|
Fusioneer |
Posted on 11-03-2013 19:00
|
Super Admin Posts: 64 Joined: 20-10-2011 |
Only remove [ and ] nothing else!
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 |
Posted on 11-03-2013 19:18
|
Junior Member Posts: 19 Joined: 21-09-2012 |
I just removed the [ ] from line 63 as follows: echo THEME_BULLET." ".$itemsubject." - [".number_format(dbcount("(shout_id)", DB_SHOUTBOX, "shout_name='".$data'user_id'."'"))."] \n"; The error msg I received is listed below and the website was all messed up. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /hermes/bosoraweb003/b105/ipw.username/public_html/fusion/infusions/trio_panel_lf_ln_la/trio_panel_lf_ln_la.php on line 63 EDIT: Disregard this post...I was removing the wrong [ ] brackets. I have figured out what I need to do. Edited by afoster on 12-03-2013 02:51 |
|
|
Fusioneer |
Posted on 12-03-2013 17:23
|
Super Admin Posts: 64 Joined: 20-10-2011 |
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!
|
|
|
jonathanwichter |
Posted on 13-07-2015 18:13
|
Newbie Posts: 3 Joined: 13-07-2015 |
I added this to my site and the panel does not show up on the main page. Did it as public, view on all pages, upper center. What is going on? Thanks, John |
|
|
Fusioneer |
Posted on 13-07-2015 18:19
|
Super Admin Posts: 64 Joined: 20-10-2011 |
Hi John did you download the attachment from post #1 or did you copy paste some code from elsewhere from this thread. Did you activated the panel on an active site? I believe content older then 3 months is not shown. If there is nothing to show then no empty panel is shown. If this is the case then make a test post. It should show up. Edit: Check if you enabled the panel. 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!
|
|
|
jonathanwichter |
Posted on 13-07-2015 18:44
|
Newbie Posts: 3 Joined: 13-07-2015 |
I downloaded the full download of the panel. Then I installed it like it says in the instructions. Then I did not see the panel show up. Then read some more on here and download the fix that was posted. Still did not see it. |
|
Page 1 of 2: 12
Jump to Forum |
Gebruik BBcode of HTML om naar; 'Trio panel with latest threads, news and articles', te verwijzen!
BBcode: | |
HTML: |
Vergelijkbare onderwerpen
Subject | Discussion Forum | Last Post | |
---|---|---|---|
Add edit message to Quickreply panel | Modifications to viewthread.php | : 1 | 19-01-2015 |
Insert an advertisement panel between forum posts | Panels, share youre code | : 2 | 16-12-2014 |
Navigation panel without CSS | Panels/infusions (add ons) | : 1 | 14-09-2014 |
Improved Last seen users panel | Panels/infusions (add ons) | : 3 | 17-12-2013 |
Trio forum threads panel (as on this site) | Panels/infusions (add ons) | : 8 | 18-02-2013 |