sabret00the
04-08-2006, 06:37 PM
is it possible at all, i'm trying to do something like this
$this->entrybit = str_replace(
array(
'{QUICKENTRYLINK}',
'{TITLE}',
'{DATE}',
'{TIME}',
($entry['security'] != "noone") ? "'{LOCKEDICON}'," : "")
'{USERICON}',
'{ENTRYTEXT}',
'{MOOD}',
'{MUSIC}',
'{TAGS}',
'{COMMENT}',
'{READ}',
'{LINK}',
'{REMEMBER}',
'{TOP}'
),
array(
$entry['journalid'] . '_' . $entry['entryid'],
$entry['title'],
vbdate($this->vbulletin->options['dateformat'], $entry['entry_date']),
vbdate($this->vbulletin->options['timeformat'], $entry['entry_date']),
($entry['security'] != "noone") ? "'<img src=\"' . $this->stylevar['imgdir_misc'] . '/moderated.gif\" alt=\"' . ucwords(strtolower($entry['security'])) . '\" />'," : "")
$entry['usericon'],
$entry['pagetext'],
'<b>Mood:</b> ' . ucwords(strtolower($entry['mood'])) . ' <img src="' . buildmoodimage($entry['mood'], $entry['location']) . '" />',
'<b>Music:</b> ' . ucwords(strtolower($entry['music'])),
'<b>Tags:</b> ' . buildtaglinks($entry['tags'], $this->userdetails['username']),
'Reply',
$entry['commentcount'] . ' Comments',
'Perma-Link',
'Memorise',
'<a href="#top">Top</a>'
),
$this->entrybit
);
note: this one don't work.
$this->entrybit = str_replace(
array(
'{QUICKENTRYLINK}',
'{TITLE}',
'{DATE}',
'{TIME}',
($entry['security'] != "noone") ? "'{LOCKEDICON}'," : "")
'{USERICON}',
'{ENTRYTEXT}',
'{MOOD}',
'{MUSIC}',
'{TAGS}',
'{COMMENT}',
'{READ}',
'{LINK}',
'{REMEMBER}',
'{TOP}'
),
array(
$entry['journalid'] . '_' . $entry['entryid'],
$entry['title'],
vbdate($this->vbulletin->options['dateformat'], $entry['entry_date']),
vbdate($this->vbulletin->options['timeformat'], $entry['entry_date']),
($entry['security'] != "noone") ? "'<img src=\"' . $this->stylevar['imgdir_misc'] . '/moderated.gif\" alt=\"' . ucwords(strtolower($entry['security'])) . '\" />'," : "")
$entry['usericon'],
$entry['pagetext'],
'<b>Mood:</b> ' . ucwords(strtolower($entry['mood'])) . ' <img src="' . buildmoodimage($entry['mood'], $entry['location']) . '" />',
'<b>Music:</b> ' . ucwords(strtolower($entry['music'])),
'<b>Tags:</b> ' . buildtaglinks($entry['tags'], $this->userdetails['username']),
'Reply',
$entry['commentcount'] . ' Comments',
'Perma-Link',
'Memorise',
'<a href="#top">Top</a>'
),
$this->entrybit
);
note: this one don't work.