Simple Recent Topics

Post Reply

Topic author
okidoki
Active Member
Posts: 8
Joined: 5. July 2008 21:56

Simple Recent Topics

Post by okidoki »

I need a simple recents topics, that show only the lastest topics, user and date , to put in the side of portal, with up marquee.

Something like the block that a have in the right of my old portal:

http://www.portaldetonando.com.br/forumnovo/portal.php

PharaohsVizier
Active Member
Posts: 6
Joined: 15. August 2008 07:05

Re: Simple Recent Topics

Post by PharaohsVizier »

Hey oki,

I was thinking the same thing, and decided to take action myself. With no knowledge of php whatsoever, I set out to do what seemed the impossible. But with a little figuring things out, I modified the latest bots (like anyone is ever going to use that) to display the latest posts. So basically open latest_bots.html in styles/yourstyle/template/portal/block in wordpad or whatever you use and replace everything with this:

Code: Select all

<!--version $Id: latest_bots.html 216 2008-04-29 07:23:22Z kevin74 $ //-->
<table class="tablebg" cellspacing="1" width="100%">
	<tr>
		<th>Latest Posts</th>
	</tr>
	<tr class="row1">
		<td>
					<!-- BEGIN latest_topics -->
<img src="portal/images/post.gif" height="15" width="15" alt="" /><a href="{latest_topics.U_VIEW_TOPIC}" title="{latest_topics.FULL_TITLE}">{latest_topics.TITLE}</a><br />
					<!-- END latest_topics -->
		</td>
	</tr>
</table>
<br />
When you activate latest bots, it will put this up instead, which shows the latest topics. Of course, I take no credit whatsoever as I simply synthesized the recent topic center block and the latest bots side block.

Also this code:

Code: Select all

<img src="portal/images/post.gif" height="15" width="15" alt="" />
is for having a little icon beside each of your posts. I thought that it was kind of cluttered looking, so adding a little icon made it MUCH nicer in my opinion. Once again, this was ripped from the latest members. You just need a 15x15 gif file called post.gif in portal/images/post.gif

The code that says:

Code: Select all

<th>Latest Posts</th>
is obviously the title of the block.

I wish I could add who wrote it and such, but that is beyond my skill. I literally started all this portal stuff yesterday, and have zero experience with php. So if I figure things out, I'll try and update this post and let you know.

MAJOR PROBLEM: The big chunky recent topics must still be in the forum for this to function, I pushed it to the bottom. If anyone knows how to do this without the big one, please post!
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Simple Recent Topics

Post by Kevin »

PharaohsVizier wrote:So basically open latest_bots.html in styles/yourstyle/template/portal/block in wordpad or whatever
Just as a hint:
I would strongly recommend not to use wordpad for editing php and template files! That caused a lot trouble in the past.
See: [EN] Editing phpBB (language) files the right way

Second: no need to change the latest bots file - you could work with a copy of it.
To get it on the portal see:
Adding a custom block


Cheers

Kevin
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
User avatar

Steve_B
Active Member
Posts: 38
Joined: 2. June 2008 05:16

Re: Simple Recent Topics

Post by Steve_B »

Thank you for sitting down and working this out, I never thought of that and I like you, don't like the Large "recent block" in the middle of my board. To make your "Latest Post" block work woth out displaying the large one you need to make sure that the "Recent Topic" it is turned on in the ACP under the .MOD tab.
Then go to portal_block.html and remove

Code: Select all

		<!-- IF S_DISPLAY_RECENT -->
			<!-- INCLUDE portal/block/recent.html -->
		<!-- ENDIF -->
that will leave the switch that turns on the info from the Recent block, but of course you have removed it from the display by removing the code from portal_block.html.

hope this helps out :)

PharaohsVizier
Active Member
Posts: 6
Joined: 15. August 2008 07:05

Re: Simple Recent Topics

Post by PharaohsVizier »

Wow, clearly I still have lots to learn. :lol: Thanks so much, working like a charm, not big recent topic block for me. :)

bmroyer
Active Member
Posts: 14
Joined: 13. February 2009 17:55

Re: Simple Recent Topics

Post by bmroyer »

I did this, and its better. But I want it more like the one they have here: http://www.edgeofnowhere.cc
Thats a portal from 2.0 called Nutport. He doesn't update it anymore. But I love how they have the recent topics set up. Looks more organized, with the last poster's name at the bottom of the topic name. Is there anyway to do something like this with this portal using the online bots thingy. Here's my board:

http://www.diablosden.hugelaser.com

Antartico
Active Member
Posts: 7
Joined: 25. January 2011 12:05

Re: Simple Recent Topics

Post by Antartico »

l'ho provato e funziona bene!
Ma c'e il modo di visualizzare,oltre al titolo del post, il nickname dell'autore del topic e la data di invio?

I tried it and it works fine!
But there's a way to view, in addition to the post title, the nickname of the author of the topic and the date of dispatch?
EDIT:
Topic-Bumping is only accepted at least 24 hrs. after posting.
Board3.de - Rules | We ask for your attention
Greetings archivar

Antartico
Active Member
Posts: 7
Joined: 25. January 2011 12:05

Re: Simple Recent Topics

Post by Antartico »

I would get a block like this

Image

how can I do?
Post Reply

Return to “Modification Requests”