e107, it's jalist's way of trying to look important
Welcome
Username:

Password:


Remember me

[ ]
[ ]
[ ]
e107 Project Tracker
e107 on IRC
freenode.net
For real-time help and friendly chat please join #e107 on the Freenode Network

It's a friendly channel so please drop in and say hello regardless of your e107 or IRC experience

If you're new to IRC please click [here] for an explanantion of what to do.

Web Hosting

Moderators: jalist, McFly, bkwon, streaky, C6Dave, SecretR, steved, bugrain, AndyDev, Hansi64, nlstart
Author Post
d3bruts1d
Tue Jul 11 2006, 09:54AM
Registered Member #3957
Joined: Sat Oct 25 2003, 09:39AM
Location: Knoxville, TN
Posts: 31
Wow, I should probably check this thread more often. I've not really put a lot of time into this, as the very first version was all that I was after... but I have created a couple of different 'versions' of my e107 News Archive file based on request....

Version A (Plain Old News Archive)
Demo: click to open link in new window
Code: click to open link in new window

Version B (Similar to A - Provides a separator between months. Based on svartis' feedback.)
Demo: click to open link in new window
Code: click to open link in new window

Version C (Similar to A - Provides News + posted info on same line. Based on AndyP's feedback.)
Demo: click to open link in new window
Code: click to open link in new window

Version D (Combine B & C and this is what you get. Based on AndyP's feedback.)
Demo: click to open link in new window
Code: click to open link in new window


Again.... to install any of these, copy the code to a php file (you can name it whatever you want) and then put the file in the e107 root director (where the news.php file is). This is not a plug-in that you install, nor is it a "custom page". If you attempt to use this file any other way, it'll probably not work.


*** EDIT @ 4:50 PM EST ***
Ok... I've added another "version". Again based on feedback. I've also taken some time to clean up the code a bit to convert the tags to lowercase (I think I got 'em all) as well as to switch to styles rather that the bold, underline, etc tags.

*** EDIT @ 6/12/2006 12:21 PM EST ***
Fixed links.

[ Edited Wed Jul 12 2006, 11:21AM ]
Back to top
Website
AndyP
Tue Jul 11 2006, 02:23PM

Registered Member #19927
Joined: Sun Aug 07 2005, 04:41AM
Location:
Posts: 263
d3bruts1d wrote ...

Wow, I should probably check this thread more often. I've not really put a lot of time into this, as the very first version was all that I was after... but I have created a couple of different 'versions' of my e107 News Archive file based on request....

Version A (Plain Old News Archive)
Demo: click to open link in new window
Code: click to open link in new window

Version B (Similar to A - Provides a separator between months. Based on svartis' feedback.)
Demo: click to open link in new window
Code: click to open link in new window

Version C (Similar to A - Provides News + posted info on same line. Based on AndyP's feedback.)
Demo: click to open link in new window
Code: click to open link in new window


Again.... to install any of these, copy the code to a php file (you can name it whatever you want) and then put the file in the e107 root director (where the news.php file is). This is not a plug-in that you install, nor is it a "custom page". If you attempt to use this file any other way, it'll probably not work.



Brilliant stuff.

How about a combination of Version B and Version C


[ Edited Tue Jul 11 2006, 02:27PM ]
Back to top
d3bruts1d
Tue Jul 11 2006, 03:56PM
Registered Member #3957
Joined: Sat Oct 25 2003, 09:39AM
Location: Knoxville, TN
Posts: 31
Ok. I've added another version.
Back to top
Website
AndyP
Wed Jul 12 2006, 06:48AM

Registered Member #19927
Joined: Sun Aug 07 2005, 04:41AM
Location:
Posts: 263
d3bruts1d wrote ...

Ok. I've added another version.


Brilliant - thanks very much.
Back to top
AndyP
Fri Jul 14 2006, 09:37AM

Registered Member #19927
Joined: Sun Aug 07 2005, 04:41AM
Location:
Posts: 263
To carry this excellent file a little further.

Is it possible to have a seperate page for each news category?
Back to top
d3bruts1d
Fri Jul 14 2006, 05:15PM
Registered Member #3957
Joined: Sat Oct 25 2003, 09:39AM
Location: Knoxville, TN
Posts: 31
AndyP wrote ...

To carry this excellent file a little further.

Is it possible to have a seperate page for each news category?


e107 already has this built in. Just add ?cat.x where x is the news catagory id to the news.php.

e107-powered-website.com/news.php?cat.1
e107-powered-website.com/news.php?cat.2
e107-powered-website.com/ news.php?cat.3
e107-powered-website.com/news.php?cat.4
... and so on.

[ Edited Fri Jul 14 2006, 05:17PM ]
Back to top
Website
AndyP
Mon Sep 04 2006, 04:57AM

Registered Member #19927
Joined: Sun Aug 07 2005, 04:41AM
Location:
Posts: 263
BUMP

I quite like the layout of this file, having the months seperated - go to click to open link in new window

A couple of requests:

1.Is it possible if you could edit the code so that the list will display news from different news categories, rather than a list of all the news in the database?

2. Also I wish to make the news visible, to either members only, guests, or no one (inactive) - can you add the code for this as well?



Back to top
AndyP
Mon Sep 04 2006, 05:00AM

Registered Member #19927
Joined: Sun Aug 07 2005, 04:41AM
Location:
Posts: 263
d3bruts1d wrote ...

AndyP wrote ...

To carry this excellent file a little further.

Is it possible to have a seperate page for each news category?


e107 already has this built in. Just add ?cat.x where x is the news catagory id to the news.php.

e107-powered-website.com/news.php?cat.1
e107-powered-website.com/news.php?cat.2
e107-powered-website.com/ news.php?cat.3
e107-powered-website.com/news.php?cat.4
... and so on.


This doesn't work very well in e107 v0.6.7.5. All it does is list a 100 or so news items in a list, but DOESN'T have the next page nav bar at the bottom.

I know it works better in v7 and I do intend to upgrade that site during the winter, but as it'll be a long job I work like to get it working better in v675 in the meantime.
Back to top
d3bruts1d
Wed Apr 18 2007, 04:04AM
Registered Member #3957
Joined: Sat Oct 25 2003, 09:39AM
Location: Knoxville, TN
Posts: 31
I decided to BUMP this as I just got an email about it. lol
AndyP wrote ...
A couple of requests:

1.Is it possible if you could edit the code so that the list will display news from different news categories, rather than a list of all the news in the database?

2. Also I wish to make the news visible, to either members only, guests, or no one (inactive) - can you add the code for this as well?

I've got some extra time these days, so I may look into adding more features and making other changes to the files.
Back to top
Website
niCOOl
Wed Jul 25 2007, 02:28AM
Registered Member #5456
Joined: Sun Jan 11 2004, 03:57PM
Location:
Posts: 6
nice modification thx, how fix it date language ? november -> noviembre ? thanks
Back to top

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System




All product names mentioned herein are the trademarks of their respective owners. In addition, images, logos, pictures or other material may be trademarks or registered trademarks of their respective owners. Emote images by seb, released under the GPL licence.
Bug Tracking Software
Render time: 0.2214 sec, 0.1155 of that for queries. Memory Usage: 3,609kB