MyBB Community Forums

Full Version: {$pm_notice} Help Required
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

As part of my forum-site integration I am displaying the Global notices on my main pages in my root directory. My forum is located at url.com/forum, so the code I have inserted is:
<?php
	chdir('forum');
	define("IN_MYBB", 1);
	require './global.php';
	echo "{$pm_notice}{$bannedwarning}{$bbclosedwarning}{$pm_unreadreports}";
?>

This worked fairly well, once I had edited some links in the language packs so they worked from my root directory. However, one link which I can't seem to find & edit is the link to the PM sender's profile in the {$pm_notice} (a picture of which I have attached).

Can anyone advise me on how to either:
- remove the link to the profile, and just display the user's name
or, alternatively
- edit the link so I can insert 'http://url.com/forum', so the link works.

I think it has something to do with editing global.php, but I wouldn't want to edit it without first finding out what I need to do.

Thank you,
Patrick
(2008-11-04, 10:15 PM)Legacy Wrote: [ -> ]Can anyone advise me on how to either:
- remove the link to the profile, and just display the user's name
or, alternatively
- edit the link so I can insert 'http://url.com/forum', so the link works.

newpm_notice_one and newpm_notice_multiple in global.lang.php
Aha! I missed that <a href="{1}"> bit. Thank you, and sorry to bother you.
Glad it's sorted, and no problem Smile