Problem with Topics and posts in profile

17 years 2 months ago #32090 by egenes
Hi All,

just noticed that if a user has a post (ie. replies to another post) but no topics, then in their profile, the post is not shown.

In the code the reason for this is this part of code and the return statement

[code:1]if(!count($items)>0) {
$return = _UE_NOPHPBBTOPICS;
return $return;
}
[/code:1]

The return statement prevents the processing of posts.

So I've made a few changes that will show posts even if there are no topics, and tells you there are no topics. If you want to not show topics at all, then remove $return. from the bottom of the code

[code:1]
}
$return2 .= "</table>";
return $return.$return2;
}
} // end class getphpbbTab.
?>
[/code:1]



I also made some slight formatting changes to separate the topics and posts by a white line, and also changed the date format to the same as that for author and blog tabs.

Post edited by: egenes, at: 2007/02/27 06:37

Post edited by: egenes, at: 2007/02/27 06:38
Attachments:

Please Log in to join the conversation.

17 years 2 months ago #32091 by egenes
Replied by egenes on topic Re:Problem with Topics and posts in profile


Post edited by: egenes, at: 2007/02/27 07:14
Attachments:

Please Log in to join the conversation.

17 years 2 months ago #32096 by egenes
Replied by egenes on topic Re:Problem with Topics and posts in profile
SORRY FOLKS, forgot to attach the modded phpbbconnector file. There was one behavious i noticed with the modded file that should be right now.

The symptoms were that when you deleted some posts and topic (leaving only posts) - the url to the posts was incorrect. This looked to be due to the $arturl value not being re-initialised in the post section of the code (was commented out, and also was setup with an absolute reference to the forum firetory)

Anyhows, let me know if you reproduce this behaviour and i'll have another look. :woohoo:

heres the site if you'd like to have a look. go in and delete posts and topics and then have a look in the users profile - you'll see how it handles no topics with posts and vice versa.

website: testing1.staticum.net
Username: cbuser
Password: mendhi

please note that the site is in testing and the forum content is only for testing, so alot of junk.

Cheers

Attachment phpbbconnector-b0b91727b2d2c2131cea456d4d3f47ac.zip not found



Post edited by: egenes, at: 2007/02/27 07:28

Post edited by: egenes, at: 2007/02/27 07:29

Post edited by: egenes, at: 2007/02/27 14:24
Attachments:

Please Log in to join the conversation.

17 years 2 months ago #32121 by geeffland
Replied by geeffland on topic Re:Problem with Topics and posts in profile
Actually this is a known issue with v1.0.2... v1.0.3 has fixed this issue (removed top area if I recall correctly, and v2.0 has completely changed the profile tab)

Currently v1.0.3 is only available from cbconnector.com... still need to update joomlapolis.com and the joomla forge...

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

17 years 2 months ago #32122 by egenes
Replied by egenes on topic Re:Problem with Topics and posts in profile
nice, thought it woulda been addressed, just didn't find anything on the forum. Cheers, nice plugin!;)

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.213 seconds

Facebook Twitter LinkedIn