Last five started topic and post in user profile

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Post Reply
BOoOm
New member
New member
Posts: 14
Joined: 24 Jan 2014, 00:26

Last five started topic and post in user profile

Post by BOoOm »

How to add this? :)
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Last five started topic and post in user profile

Post by RMcGirr83 »

You need to be more precise in what it is you are trying to accomplish. I don't have an idea of what it is you are asking for.
BOoOm
New member
New member
Posts: 14
Joined: 24 Jan 2014, 00:26

Re: Last five started topic and post in user profile

Post by BOoOm »

SS: http://prntscr.com/4h4bwk http://e-trail.eu/forum/

I would like to add last 5 users post and started topic on his forum :D
Neculai Anișor
Supporter
Supporter
Posts: 150
Joined: 11 Jan 2013, 17:01
Location: Liverpool, UK

Re: Last five started topic and post in user profile

Post by Neculai Anișor »

https://www.phpbb.com/customise/db/mod/ ... n_profile/
After you install this MOD,
OPEN latest_post_in_profile.php
Find This may be a partial find and not the whole line

Code: Select all

$result = $db->sql_query_limit($sql, 1);
Replace with Replace the preceding lines with the following

Code: Select all

$result = $db->sql_query_limit($sql, 5);
Neculai Anișor
Supporter
Supporter
Posts: 150
Joined: 11 Jan 2013, 17:01
Location: Liverpool, UK

Re: Last five started topic and post in user profile

Post by Neculai Anișor »

Umh. Its not enough.

OPEN latest_post_in_profile.php
Find This may be a partial find and not the whole line

Code: Select all

$template->assign_vars(array(
Replace with Replace the preceding lines with the following

Code: Select all

$template->assign_block_vars('latest',array(
OPEN memberlist_view.html
Find This may be a partial find and not the whole line

Code: Select all

			<!-- IF S_UPOST -->
			<dt>{L_LATEST_POST}:</dt>
			    <dd><strong><a href="{U_TOPIC}">{TOPIC_TITLE}</a></strong><br />{POST_TIME}</dd>
			<!-- ENDIF -->
Replace with Replace the preceding lines with the following

Code: Select all

			<dt>{L_LATEST_POST}:</dt>
			<!-- BEGIN latest -->
			    <dd><strong><a href="{latest.U_TOPIC}">{latest.TOPIC_TITLE}</a></strong><br />{latest.POST_TIME}</dd>
			<!-- END latest -->
BOoOm
New member
New member
Posts: 14
Joined: 24 Jan 2014, 00:26

Re: Last five started topic and post in user profile

Post by BOoOm »

Thank u for that, can you give me for last five started topic too? :D
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Last five started topic and post in user profile

Post by RMcGirr83 »

Why not try to learn from what you have been given instead of constantly asking for more and more.
Neculai Anișor
Supporter
Supporter
Posts: 150
Joined: 11 Jan 2013, 17:01
Location: Liverpool, UK

Re: Last five started topic and post in user profile

Post by Neculai Anișor »

I can but after that you will continue to ask for more and more. I really don't like that.
BOoOm
New member
New member
Posts: 14
Joined: 24 Jan 2014, 00:26

Re: Last five started topic and post in user profile

Post by BOoOm »

Sorry guys, but i don't know php, only html and css :(
Neculai Anișor
Supporter
Supporter
Posts: 150
Joined: 11 Jan 2013, 17:01
Location: Liverpool, UK

Re: Last five started topic and post in user profile

Post by Neculai Anișor »

I don't know either but I'm trying.
Post Reply