Welcome, Guest. Please Login or Register.
April 30, 2025, 02:57:59 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  latest threads « previous next »
Pages: [1] 2 3 Reply Ignore Print
Author Topic: latest threads  (Read 3724 times)
tom2
Jr. Member
**
Posts: 64


www.FireFighterBoats.com set the water on fire

WWW
latest threads
« on: December 22, 2001, 02:14:58 AM »
Reply with quote

i would really like to see a latest threads mod/addon that would work with ssi

would be Greatly appreciated!!
Logged
tom2
Jr. Member
**
Posts: 64


www.FireFighterBoats.com set the water on fire

WWW
Re:latest threads
« Reply #1 on: December 23, 2001, 05:26:21 AM »
Reply with quote

I will pay $5 with paypal if you make this for me! :o

what i want in the end is to have a news system and the 5 or so latest threads on my main page. it doesent have to be a ssi but it just has to work... right now i use news pro for the news...  this means my main page is index.asp if you can get the news addon to work with yabb and the latest threads it wouldnot have to be .asp. My server requires the .asp extension to do a ssi... used with news pro.

anyways I would much appreciate this!!!!

« Last Edit: December 23, 2001, 06:03:51 AM by tom2 » Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:latest threads
« Reply #2 on: December 23, 2001, 12:58:55 PM »
Reply with quote

thats basically a Headlines mod, i think someone is working on that.
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Re:latest threads
« Reply #3 on: December 29, 2001, 06:56:12 PM »
Reply with quote

I really really hope someone is working on this and soon. Otherwise someone should pick it up. This mod is what can make or break the popularity a message board on a site.

any updates on who's working on this and their progress?
Logged

tom2
Jr. Member
**
Posts: 64


www.FireFighterBoats.com set the water on fire

WWW
Re:latest threads
« Reply #4 on: December 30, 2001, 11:45:57 PM »
Reply with quote

it seems to me that I am just going to have to learn php and do it myself... I can't seem to be able to talk anyone into making it.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:latest threads
« Reply #5 on: December 31, 2001, 12:42:41 AM »
Reply with quote

I'll make one this week I guess, it's very very simple to do.
Logged

£eo
Jr. Member
**
Posts: 91


I really do love YaBBSE :-)

WWW
Re:latest threads
« Reply #6 on: December 31, 2001, 12:49:37 AM »
Reply with quote

 ;D     if you're in a good mood,when making it,,,  please fill the files with instructions,,,   maybee I can learn something   :D
Logged

Enc0der
Jr. Member
**
Posts: 90


I love YaBB SE!

WWW
Re:latest threads
« Reply #7 on: December 31, 2001, 07:20:59 AM »
Reply with quote

heh, I did it in about 5 minutes... :)
I'm too lazy to write a package, so I'll just write here how to (easily) do it...


1. in index.php, search for:
   else if ($action == 'recent') { include_once "$sourcedir/Recent.php"; RecentPosts(); }
and add:
   else if ($action == 'recent2') { include_once "$sourcedir/Recent.php"; RecentPosts2(); }


Then, on Recent.php, copy the entire RecentPosts () function, rename the "new" one to RecentPosts2, and then change the "template" at the end of the function..

here:
      print <<<EOT
<table border="0" width="100%" cellspacing="1" bgcolor="$color[bordercolor]">
<tr>
   <td align=left bgcolor="$color[titlebg]"><font class="text1" color="$color[titletext]" size=2>&nbsp;$counter&nbsp;</font></td>
   <td width="75%" bgcolor="$color[titlebg]"><font class="text1" color="$color[titletext]" size="2"><b>&nbsp;$row[cname] / $row[bname] / <a href="$scripturl?board=$row[ID_BOARD];action=display;threadid=$row[ID_TOPIC];start=$row[numReplies]">$row[subject]</a></b></font></td>
   <td align=right bgcolor="$color[titlebg]" nowrap>&nbsp;<font class="text1" color="$color[titletext]" size="2">$txt[30]: $row[posterTime]&nbsp;</font></td>
</tr>
<tr>
   <td colspan=3 bgcolor="$color[catbg]" class="catbg"><font class="catbg" size=2>$txt[109] $row2[posterName] | $txt[22] $txt[525] $row[posterName]</font></td>
</tr>
<tr>
   <td colspan=3 bgcolor="$color[windowbg2]" valign=top height=40><font size=2>$message</font></td>
</tr>
<tr>
   <td colspan=3 bgcolor="$color[catbg]"><font size=2>
      &nbsp;<a href="$scripturl?board=$row[ID_BOARD];action=post;threadid=$row[ID_TOPIC];start=$row[numReplies];title=Post+reply">$img[reply_sm]</a>$menusep<a href="$scripturl?board=$row[ID_BOARD];action=post;threadid=$row[ID_TOPIC];quote=$row[ID_MSG];title=Post+reply">$img[replyquote]</a>$notify
   </font></td>
</tr>
</table><br>
EOT;

change it to something like this:
     print <<<EOT
<table width="100%">
<tr>
   <td>
   $counter. <a href="$scripturl?board=$row[ID_BOARD];action=display;threadid=$row[ID_TOPIC];start=$row[numReplies]">$row[subject]</a> / $row[bname]
   </td>
</tr>
</table>
EOT;


Done!
now, use /index.php?action=recent2 to get the list..
You can, of course, include this in your site via php include or SSI..



p.s.
oh, one more thing...
you'll need to remove the footer(); from the end, but KEEP the obExit();...
« Last Edit: December 31, 2001, 07:23:14 AM by Enc0der » Logged
Enc0der
Jr. Member
**
Posts: 90


I love YaBB SE!

WWW
Re:latest threads
« Reply #8 on: December 31, 2001, 07:26:31 AM »
Reply with quote

btw, I'm trying to do the "who is online" mod... I'll let you know when it's ready.. :)
Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:latest threads
« Reply #9 on: December 31, 2001, 07:35:14 PM »
Reply with quote

what will that display? is it like the headlines mod for Y1G?
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Enc0der
Jr. Member
**
Posts: 90


I love YaBB SE!

WWW
Re:latest threads
« Reply #10 on: December 31, 2001, 07:47:03 PM »
Reply with quote

yep.

It'll display something like this:

1. bla bla bla / Mod Ideas
2. help me!! / Installer help
3. LOL!! / Chit Chat
4. test! / Test Board
Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:latest threads
« Reply #11 on: December 31, 2001, 07:50:40 PM »
Reply with quote

Great! Thats the kind of thing i'm looking for! sadly, its new years eve and i dont have time to try it out.

(to make it just say
1. Thread1
2. Thread2
3. Thread3
etc i would just remove the "/ $row[bname]" right?) thanks.
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Enc0der
Jr. Member
**
Posts: 90


I love YaBB SE!

WWW
Re:latest threads
« Reply #12 on: January 01, 2002, 10:57:23 AM »
Reply with quote

yep.. :)
Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:latest threads
« Reply #13 on: January 01, 2002, 02:41:18 PM »
Reply with quote

hmm, i cant get itto work do i need this in recent.php:

   print <<<EOT
<font size="1"><a href="$cgi">$txt[236]</a>
$txt[237]<br></font>
EOT;
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:latest threads
« Reply #14 on: January 01, 2002, 02:57:03 PM »
Reply with quote

I've kinda got it working I can visit it in my browser:

http://www.ud.barrysworld.net/board/index.php?action=recent2

but if I include it with php using <?php virtual("./board/index.php?action=recent2"); ?> it wont work ?!?

:(
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Pages: [1] 2 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  latest threads « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.108 seconds with 20 queries.