Additional text after user info

occupant - June 10, 2008 - 04:18
Project:UIE Forum
Version:5.x-2.3
Component:User interface
Category:bug report
Priority:minor
Assigned:zoro
Status:active
Description

Hi Zoro,

I've updated to 5.x.2.3 and noticed that now the word 'Array' follows the user link in the forum list pages. I've attached a snapshot of the effected area so you can see.

AttachmentSize
Picture 1.png2.92 KB

#1

zoro - June 19, 2008 - 10:35
Assigned to:Anonymous» zoro

This isn't happening with the exact same code on unreal.ie ...

Are you sure you're using the right version?

#2

Stray - October 24, 2008 - 12:34

I get this too. It appears that it's printing "Array" rather than the LastPost icon.

In line 2013:

$rows[] = array('data' => _uieforum_format($Thread->LastPost, $Thread->LastPoster)." ".uieforum_get_thread_link_text_last_post($Thread, _uieforum_icon(null, null, null, 'newpost.gif')), 'class' => 'created');

replace it with:
$rows[] = array('data' => _uieforum_format($Thread->LastPost, $Thread->LastPoster));

And then line 2050:
$lastreply = $ThreadInfo->LastPost ? _uieforum_format($ThreadInfo->LastPost, $ThreadInfo->uid) ." ".uieforum_get_thread_link_text_last_post($ThreadInfo, _uieforum_icon(null, null, null, 'newpost.gif')) : '';

replace with:
$lastreply = $ThreadInfo->LastPost ? _uieforum_format($ThreadInfo->LastPost, $ThreadInfo->uid) : '';

That will remove the word "array", but you still won't have a link to the last post.

It looks like the problem may be with the array $var at the bottom of the function uieforum_get_thread_link_text_last_post() located in functions.inc.php

 
 

Drupal is a registered trademark of Dries Buytaert.