Jump to content


MKP Mods and Blocks In Production


4 replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 12 November 2004 - 01:26 AM

D-SHOUTBOX INTEGRATION
I have successfully integrated the D-Shoutbox globally into MKP 1.1a. It uses most D-Shoutbox settings.
* Post shouts from MKP header
* Smilies popup
* BBcode popup
* Font color dropdown
* Shoutbox display uses most settings (permissions, effects, number of shouts, colors, badwords, linebreaks, error messages, show global shouts, "View The Shoutbox" link type,etc.) from forum Admin CP
* Shoutbox templates for MKP "default" and "Forum_Skin" skins.

To-do:
* Include shoutbox scrolling and fading options
* Banner display?

Known issues:
* MKportal FCK editor loads in global shouts header. (need to change the input Name="Post" to something else.)
* Smilies load in forum post textareas instead of shoutbox in forum "Post" view.

(1/5/05)I hope to release this hack soon. :)



You can see the shoutbox integration in action on the portal on this site.


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 12 November 2004 - 01:30 AM

MKP Header & Footer Blocks Hack

I am in the process of skinning MKP on a test site in preparation for upgrading this Community site. I decided to upgrade (for 1.1) my little "php includes in MKPortal" mod that is in the downloads database.

The new mod I worked on this week is for using MKP blocks in the header and footer of the Portal. I added code and commented out a few lines of code in ad_blocks.php, functions.php, and tpl_main.php.

Here you can see 1 block in "view_logo" and 2 blocks in "view_footer".
Posted Image

I added a new function to tpl_main called "view_block2" so that I didn't have to use same block template as the rest of the blocks.

The new blocks display in the tpl_main functions "view_logo" and "view_footer" but really they could be moved anywhere.

I added the new block functions to "function header" and "function footer" in functions.php.


Here you can see the blocks admin. The header blocks on top and the footer blocks on bottom.
Posted Image

I added a "header blocks" section and a "footer blocks" section to ad_blocks.php.

I also added 2 new option values (header, footer) to the dropdown boxes in ad_blocks.php.


I'm sure there is a cleaner way to do this but I am just learning php so this was the solution I came up with.

The main problem I see with this kind of feature is that if the user enters the wrong code in a block he may dramatically screw up the skin. Of course this is true for the default blocks also.

-=DKC=-


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 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 12 November 2004 - 03:09 AM

MKP Random Coppermine Block (Released !!!)

I worked on a random image block for Coppermine tonight. You can see it on this Portal. At this point the image and the caption link to the album of the displayed photo. I would like to link to the album page of the individual photo but it's not that easy to figure out how the album positions are determined.

To-Do:
* use Coppermine permissions
* thumbnail link to gallery page with fullsized image
* display approved images only

[EDIT] The current version of this block is available for download.
http://www.visiblesoul.net/resources/downl...ils.php?file=23


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

#4 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 16 November 2004 - 01:05 PM

Forum News without SSI Block (Released !!!)

Displays news from forum in an MKP block without using the forum ssi.php.

Features:
* title
* description (if any)
* author name (links to profile)
* date posted
* news text
* "read More" link
* number of comments
* number of views
* "View Comments" link
* Post a Comment" link
* choose number of characters to display for news text
* choose forum from which to import news
* choose number of news articles to display in block
* display poster's avatar
* use forum post parser to allow [ dohtml ] tag and to strip forum quote tables

EDIT: This block is complete and available for download.
http://www.visiblesoul.net/resources/downl...ils.php?file=11


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

#5 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 10 September 2005 - 02:43 AM

D-SHOUTBOX INTEGRATION has been released for Singleboard x IPB1.3 and Multiboard x IPB2
http://www.visiblesoul.net/resources/forum...opic.php?id=435


MKP Header & Footer Blocks Hack will not be released because it is a little too tricky to work with. I don't think the potential support headaches are worth it.


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