News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

News Archive

Started by Cccddd, March 09, 2004, 01:22:41 PM

Previous topic - Next topic

Cccddd

Link to Mod

This mod displays the latests topic titles, authors, icons, etc from a requested board in an easy to view format. The news archive mod has been written in order to run from SSI.php. Spiff's version can be found here (http://www.simplemachines.org/community/index.php?topic=5546.0) but it doesn't have quite as much functionality as this version.

Now in package form!

innerfire

Cheshire,
  It has been a while since I was at this forum.  Thank you so much for your time on mods like this.  It is appreciated!  Quick question, how hard would it be to have the quary string (aka static looking url), look like that in the forum when you come to it from a standard approach.  For example in the forum an article might be:
http://www.skyeherbals.com/forum/index.php/topic,6.0.html
when clicking to it from within the forum, but it is:
http://www.skyeherbals.com/forum/index.php?topic=6/0
when comming from a web page pulling the news archive mod info for the same article.

[Unknown]

Find:

         <a href="' . $scripturl . '?topic=' . $contents['ID_TOPIC'] . '/0">' . $contents['short_subject'] . '</a>

Replace:

         <a href="' . $scripturl . '?topic=' . $contents['ID_TOPIC'] . '.0">' . $contents['short_subject'] . '</a>

If you want to hard code that format, use:

         <a href="' . $scripturl . '/topic,' . $contents['ID_TOPIC'] . '.0.html">' . $contents['short_subject'] . '</a>

-[Unknown]

innerfire

It is good to see that few things change around here.  Wow, that was easy!  Thank you.  :D

HRM

Wonderful modification here!! I simply love it. This is something I wanted for a long time.

Thanks for developping it.

Ed
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

torkil

The link at the top is not working... :(
Anyways... anyone have a screenshot of this module in action? :)

Ben_S

Liverpool FC Forum with 14 million+ posts.

HRM

To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Cccddd

mod updated to work with 1.0 properly (no longer using slashes in the url)

Webby

Works great, but what does it exactly show.....?  I would like it to show the news from one specific board, how could I do that ?

Redeye

It won't run on my board as I have some boards restricted to members only.

Anyway around this, so that it just shows news from unrestricted boards?

Cccddd

i probably wont remember to check here. go make a post in GenDis on nrrds.com for me plz. i only check the SMF boards like once every week or two typically

Webby

Hit the "notify" button ;)

any idea : I would like it to show the news from one specific board, how could I do that ?

Cccddd

updated to package format! it's available on both my package server (http://nrrds.com/packages) and the SMF Mod Site package server.

diplomat.

great mod. just installed it on my site :)
avidSOUND.com: Where Aspiring Musicians Can Be HEARD!

Heffe

Okay, I got the news working with this code:

<? include("http://www.fooled-ya.com/forums/SSI.php?ssi_function=boardNews;board=3;limit=5"); ?>

And I also want to show on my webpage, if you have been logged in, like:

QuoteHey, Jeff, you have 0 messages, 0 are new.

What code do I use for that?

Thanks, Jeff/Heffe.

Thantos


Heffe

#17
Huh? Do I just type " ssi_welcome()" in?  What is IIRC? Ima Noobie  :'(.

I get this "    
Fatal error: Call to undefined function: ssi_welcome() in /home3/efooledy/public_html/main.php on line 56"

From typing in "<?php  ssi_welcome() ?>"

Thantos

I'm sorry didn't realize where this was.  Thought it was a new topic.

Heffe

I want the Login/Welcome/News to show up on "main.php" because that is where I am going to have my website.  And I keep trying every single little thing to put in "<?php       ?>" but nothing works  :(.

Advertisement: