Latest Vieuws - show last comments

13 years 9 months ago #137146 by Elicau
Latest Vieuws - show last comments was created by Elicau
Hi,

first of all thank you for this plugin, easy to install.

I would like to show the username (that's ok) + the comments. Is it possible ? And also, choose to publish or not publish some comments.

Thanks in advance for help or suggestions!!

Please Log in to join the conversation.

13 years 9 months ago #137153 by krileon
Replied by krileon on topic Re:Latest Vieuws - show last comments
Comments from what? I believe you'll need to edit the plugin to add such functionality as it does not come with such display features. You'll likely need to extend the query to join another table or simply perform an additional query for each user on whatever database table you're needing that stores their comments.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 9 months ago #137371 by Elicau
Replied by Elicau on topic Re:Latest Vieuws - show last comments
Hi Krileon,

I tried to show the field postercomment from the soj_comprofiler_plug_profilebook table.
I add into the select query the field postercomment.

To retrieve the value :
[code:1]$postercomment = $cbPoster->getField( 'postercomment', null ,'html', 'none', 'list' );[/code:1]
And to display it :
[code:1]$entryText = sprintf( CBTxt::Th( "%s %s"«»), $nameUser, $postercomment);[/code:1]

But it doesn’t work. It shows me the username but not his comment Suggestions welcome.

Please Log in to join the conversation.

13 years 9 months ago #137439 by krileon
Replied by krileon on topic Re:Latest Vieuws - show last comments
Sorry, can not comment on core changes. Am not sure why you're using a sprintf, but you could try the following for example. You're trying to obtain the field postercomment, that doesn't exist.

[code:1]
$entryText = $nameUser . ' '. $e->postercomment;
[/code:1]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.234 seconds

Facebook Twitter LinkedIn