Jump to content


[S 1.1] Last Posts with Permissions 1.1


  • You cannot reply to this topic
3 replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 17 November 2004 - 01:57 AM

File Name :: Last Posts with Permissions 1.1
Author :: visiblesoul
Category :: MKportal 1.1 Mods & Blocks
Description ::
+--------------------------------------------------------------------------
| MkPortal Last Posts with Permissions 1.1 17.11.2004
| by visiblesoul
| adapted from MkPortal last_forum_post.php by Meo & Peter
+---------------------------------------------------------------------------

!!! NOTE: PLEASE RESPECT THE WORK OF OTHERS. DO NOT REMOVE AUTHOR CREDITS.

CREDITS FOR TRANSLATION OF THIS BLOCK/READ-ME INTO OTHER LANGUAGES SHOULD READ "Translated to [language] from original English by [translator]" NOT "block by [translator] based on/adapted from MkPortal Last Posts with Permissions Block by visiblesoul".

+--------------------------------------------------------------------------

Block is for MKPortal 1.1 Final
Side block and center block formats included in download.

* This block displays:
1) Topic title
2) "getlastpost" link for Topic
3) Last Post author
4) Last Post time
5) Number of Topic Replies
6) Number of Topic Views

* Block uses permissions to display only the Topics which a user has permission to view.

* Change the number of forum posts to show with the "$limit = 5;" variable.

* Change the cutoff for the number of title characters to display with the "$cutoff = 20;" variable.

* Hardcoded font colors may be changed by changing the "color" style attribute.

* Date and time formatting may be changed to suit your needs.

* Of course the block appearance may be formatted to suit your needs. Side block and center block formats included.


+--------------------------------------------------------------------------
| CHANGELOG:
+--------------------------------------------------------------------------
Last Posts with Permissions Block version 1.1

1) Block re-coded and cleaned up.
2) Changed date/time formatting to use forum date/time format settings.
3) Variables "unset" to conform to MKP 1.1 coding practices.
3) Added side and center block formats.
---------------------------------------------------------------------------


-=DKC=-


Block Version 1.1

Block Version 1.2


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#2 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 04 January 2005 - 10:04 PM

If you do not want to include pinned topics in the last posts block...

FIND:
WHERE state!='closed' AND approved=1 AND (moved_to IS NULL or moved_to='') $qe
REPLACE WITH:
WHERE state!='closed' AND approved=1 AND (moved_to IS NULL or moved_to='') AND pinned=0 $qe



Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#3 eakkanake

  • Members
  • 13 posts
  • Thailand

Posted 15 May 2006 - 04:32 PM

How can I get Block like this in SMF version ?
I uploaded this file but it didn't work for SMF. Or if I use this Block wrong, Please suggest me, Thanks.

#4 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 16 May 2006 - 01:02 AM

eakkanake said:

How can I get Block like this in SMF version ?
I uploaded this file but it didn't work for SMF. Or if I use this Block wrong, Please suggest me, Thanks.
No the database queries must be changed for SMF. I saw your post on the other topic. http://www.visiblesoul.net/resources/forum...id=12999#p12999 I will try to make this block as soon as I have time.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users