Jump to content


[Hack]Allow members to post images and URLs in MKPortal shoutbox


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

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 04 May 2006 - 10:58 AM

FIND in mkportal/modules/urlobox/index.php:

if(!$mkportals->member['g_access_cp']) {
			$message = preg_replace('/[url=(.+?)](.+)[/URL]/',$no_url,$message);
			$message = preg_replace('/[IMG](.+?)[/IMG]/',$no_img,$message);
		}
If you want to allow images but not URLs REPLACE WITH:
if(!$mkportals->member['g_access_cp']) {
			$message = preg_replace('/[url=(.+?)](.+)[/URL]/',$no_url,$message);
			//$message = preg_replace('/[IMG](.+?)[/IMG]/',$no_img,$message);
		}
If you want to allow images and URLs REPLACE WITH:
/*
if(!$mkportals->member['g_access_cp']) {
			$message = preg_replace('/[url=(.+?)](.+)[/URL]/',$no_url,$message);
			$message = preg_replace('/[IMG](.+?)[/IMG]/',$no_img,$message);
		}
*/



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