diff options
author | friendica <info@friendica.com> | 2013-09-23 18:38:08 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-23 18:38:08 -0700 |
commit | 1f916adfb889c877ff975be75274fb7f3ac37b1f (patch) | |
tree | 3adefbc675f6158f715d8aa48bd5781756ae1b6b | |
parent | 32416a915aafe37f342d40605d9f87b3a1a503a2 (diff) | |
download | volse-hubzilla-1f916adfb889c877ff975be75274fb7f3ac37b1f.tar.gz volse-hubzilla-1f916adfb889c877ff975be75274fb7f3ac37b1f.tar.bz2 volse-hubzilla-1f916adfb889c877ff975be75274fb7f3ac37b1f.zip |
spice this up a little bit...
-rw-r--r-- | include/bbcode.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 30bfdad56..7d7bf1de4 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -263,8 +263,16 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { $obsBaseURL = $observer['xchan_url']; $obsBaseURL = preg_replace("/\/channel\/.*$/", '', $obsBaseURL); $Text = str_replace('[observer.baseurl]', $obsBaseURL, $Text); + $Text = str_replace('[observer.url]',$observer['xchan_url'], $Text); + $Text = str_replace('[observer.name]',$observer['xchan_name'], $Text); + $Text = str_replace('[observer.address]',$observer['xchan_addr'], $Text); + $Text = str_replace('[observer.photo]','[zmg]'.$observer['xchan_photo_l'].'[/zmg]', $Text); } else { $Text = str_replace('[observer.baseurl]', '', $Text); + $Text = str_replace('[observer.url]','', $Text); + $Text = str_replace('[observer.name]','', $Text); + $Text = str_replace('[observer.address]','', $Text); + $Text = str_replace('[observer.photo]','', $Text); } // Perform URL Search |