Recent posts user preference

Started by miseryshining, March 19, 2007, 05:37:32 PM

Previous topic - Next topic

miseryshining

Quote from: miguelito on June 23, 2008, 07:07:43 AM
Quote from: miseryshining on June 21, 2008, 09:15:48 PM
Quote from: miguelito on June 18, 2008, 08:04:09 AM
hi, thanks for your fast response.

It´s a  beta 3.1, quite clean installation, only migrated the data to the new database.

i´m triyng it with  default theme, not touched yet. ( waiting for beta4 to start with it )
No prob installing.

Only have the 2 mods i wrote:alias boards and single category.

I did not touch the templates. only run the install from the admin panel. Do I miss something??

thanks.
sorry for my english, i´m from Spain.




Thanks for your feedback, i just released a new version that should fix both problems:

-3.01 fixes a major bug when using a recent posts list on the board index. It also fixes the admin settings not displaying.

works like a charm...
great work.

i´m traslating to spanish


good! You can send me the Spanish files / strings if you want me to include em.

samy.3660

hi,
I have installed the latest version on my board 2.0 beta 3.1. But i cannot see a block for recent threads??
I am noob in php can you guide me in simple language.
www.aboutfone.com [nofollow]

miseryshining

you should enable it in your theme settings (in your forum administration section). or add a block to your theme in the template files using this code:


require_once('location/to/SSI.php');
if (function_exists('ssi_recentPostsPref')) ssi_recentPostsPref();


Replace the 'location/to' with the path to your SSI.php. Read the theming docs if you want to learn where to place this.

Cowboysfan4life

Hello everyone I'm a newbie but i will like to get the recent post to show up on the front of my website. My website url is hxxp:cfaleague.com [nonactive] and my forum is hxxp:cfaleague.com/forums [nonactive] . I want to display the recent post under Around the league on my homepage. Can anyone help me? I love simple machines forum and I don't want to switch to phpbb to get it to work.  Thanks in advance

miseryshining

look at SMF docs for your answer. Off course you can also load ssi_recentPostsPref() if you have my mod installed.

Cowboysfan4life

Ok i installed your mod and I think I have everything working. I added the code to the index.php and everything seems fine but nothing is being displayed. The site uses a template made of .tpl files. What do I insert in the index.tpl file to get it to show on the front page?

miseryshining

Quote from: Cowboysfan4life on June 27, 2008, 02:30:32 AM
Ok i installed your mod and I think I have everything working. I added the code to the index.php and everything seems fine but nothing is being displayed. The site uses a template made of .tpl files. What do I insert in the index.tpl file to get it to show on the front page?

Uhhh, you probably need to find out how to put php snippets inside the tpl files, if that's possible at all ;). You should ask that question elsewhere though..

Cowboysfan4life

Ok it's working now. Is there a way to show avators for the latest post?

miseryshining

Quote from: Cowboysfan4life on June 27, 2008, 05:59:16 AM
Ok it's working now. Is there a way to show avators for the latest post?

Quote from: Cowboysfan4life on June 27, 2008, 05:59:16 AM
Ok it's working now. Is there a way to show avators for the latest post?

I don't know, search the mod section. This is not the right place to ask for generic SMF support btw.

samy.3660

Quote from: miseryshining on June 26, 2008, 07:21:52 AM
you should enable it in your theme settings (in your forum administration section). or add a block to your theme in the template files using this code:


require_once('location/to/SSI.php');
if (function_exists('ssi_recentPostsPref')) ssi_recentPostsPref();


Replace the 'location/to' with the path to your SSI.php. Read the theming docs if you want to learn where to place this.

Where is template file located please guide in detail.
www.aboutfone.com [nofollow]

samy.3660

www.aboutfone.com [nofollow]

ssufian

I've installed Recent posts user preference version 3.01 into my SMF Default theme version 1.1.5 but I can't see Recent Post like what you put in your screenshot in the Mod page http://custom.simplemachines.org/mods/index.php?mod=654

Please advise... I'm still new, noob, fresh in SMF...

miseryshining

Quote from: ssufian on July 02, 2008, 01:57:00 AM
I've installed Recent posts user preference version 3.01 into my SMF Default theme version 1.1.5 but I can't see Recent Post like what you put in your screenshot in the Mod page http://custom.simplemachines.org/mods/index.php?mod=654

Please advise... I'm still new, noob, fresh in SMF...

if you want em to display on the board index, go to your administration panel, then go to the settings for the default theme and change "Number of recent posts to display on board index:" to a number.

romper

I tried to read all 14 pages but lost concentration, so if someone answered this question, I'm sorry....I did everything and I see block, they are nice, I can modify them and all, but my question is, can i move the block on te right or left side, not bellow forum index?
THX!

miseryshining

Quote from: romper on July 07, 2008, 04:42:06 PM
I tried to read all 14 pages but lost concentration, so if someone answered this question, I'm sorry....I did everything and I see block, they are nice, I can modify them and all, but my question is, can i move the block on te right or left side, not bellow forum index?
THX!

Your answer is a little bit above! You will have to learn how theming works if you want to do these type of things.

lobokun

hello im running
1.1.5
and i installed the latest
mod
recentPosts_301
and my question is how would i get to get my show recent topics like this

miseryshining

Quote from: lobokun on July 14, 2008, 08:36:40 PM
hello im running
1.1.5
and i installed the latest
mod
recentPosts_301
and my question is how would i get to get my show recent topics like this


thats the recent topics page. you can get it by going to http://www.yourforum.com/index.php?action=recenttopics

KD4FBI

Will this mod work with the "Simple Portal" mod?
I would like to be able to show the custom block for Recent Posts to show as one of the blocks in the Simple Portal but don't know how.
Simple Portal says it will show the recent posts and recent topics blocks, but it doesn't show the user's preferences in those blocks, just the last X number of posts/topics. With Simple Portal, I can set up "specialized" blocks using html, php or bbc, so I'm thinking I may be able to use one of those blocks to show the info for the Recent Posts mod. I just don't know how or what should go into them.
I am definitely NOT a programmer, so "dummies" version of help will be greatly appreciated.

Thanks in advance,
Mickey
Mickey

Nathaniel

There is a bug with this mod, for SMF 2 Beta. On line 794 of the 'RP_2.mod' file, in the 'RecentTopics()' function which is added to the 'Recent.php' source file. It occurs in the "recentPosts_301.tar.gz" package. ;)

This Code:
         AND b.id_boardNOT IN (" . implode(', ', $exclude_boards) . ")") . (!empty($include_boards) ? "

Should be replaced with this code:
         AND b.id_board NOT IN (" . implode(', ', $exclude_boards) . ")") . (!empty($include_boards) ? "


The 'b.id_boardNOT' part, returns db errors.

Read the topic below for reference:
http://www.simplemachines.org/community/index.php?action=post2
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

KD4FBI

I looked through this thread and couldn't find what I need to know.
I am using SMF 1.1.5, UserCP 2.0, Recent Posts user preference 3.01. The Recent Posts mod installed fine, I know I need to add the code that calls the SSI function. In the thread, I keep seeing people saying to put the code where ever you want the box to show, but I have NO clue which template file to even start to look at.
I would like the box for the recent posts that the user selects to be shown either on the front page or in their profile - whichever one will be easiest to do.
I am definitely not a programmer by any stretch of the imagination (and my imagination is pretty wild), so a "dummies" version of help is greatly appreciated.

Thanks in advance,
Mickey
Mickey

Advertisement: