Topic-icon Comment box width questions

Active Subscriptions:

None
14 years 6 months ago #15283 by kiwi2b
Hi there,

A few questions for the content plugin to JFBConnect 4.0.3.

I'm hoping to have a fairly narrow comment box showing on my frontpage (featured), but the "Posting as John Smith (Change)" line is wrapping to too many lines. (See screenshot.) Could it be set to 'break' to the next line, and align right? I know it's possible from another extension. Hope so, as it looks much better on narrow layouts.

And could the "Post to facebook" line be right aligned too? Again, it looks better on the narrow layout.

Last up, I see you can set separate widths for Article and Blog, but can a third width be set for the frontpage?? Really important for me, as what looks right for the narrow width looks badly wrong when it goes to article layout.

Thanks for the extension!

File Attachment:
The topic has been locked.
Support Specialist
14 years 6 months ago #15285 by alzander
There's no way to style the interior of the comment widget, unfortunately. This is limited by Facebook, and there's no way around it. Up until March of this year, there was a way to include your own stylesheet which could override some of the settings, but that feature was removed. Too many sites were completely removing features and 'masking' the fact that it was a Facebook widget altogether. Because of that, Facebook really limited the controls we have over the comment box to what you see in our configuration area.

As for a separate width for the front-page vs article or blog views, we can look into that. Let us know if that would still be helpful though with what I said above. I don't know when we'd be able to implement something like that, but may be able to get you a few lines of code to force the width on the front-page views.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15300 by kiwi2b
Replied by kiwi2b on topic Comment box width questions
Hi again, thanks for the quick reply! But, but, but, how does the other extension manage it?

Yes, please let me have the code, and adding it to a new version would be great.
The topic has been locked.
Support Specialist
14 years 6 months ago #15302 by alzander
Let me know what extension you're talking about, and we'll gladly investigate if there's something we're missing.

I'll work on the code, and try to get you something in a bit.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15308 by kiwi2b
Replied by kiwi2b on topic Comment box width questions
Hi again, tried a lot of widths and yours and the other extension actually handle them in the same way. The two widths in the screenshot must have been a little different.

Few more questions though...

Can the google/linkedin/twitter buttons be set to show separately, rather than all together? Again, for narrow layouts it's best to just have the major ones to save space.

And could there be a button at the top, which when clicked goes to the comment box? I have seen a facebook style comment button that does this job (see screenshot, from jsocial). But it would need to be optionally with or without the counter though, as a zero doesn't look good! Also, with optional text, maybe "Comment now".

Thanks for the frontpage width control, which is the main mission for me at the moment!

File Attachment:
The topic has been locked.
Support Specialist
14 years 6 months ago #15315 by alzander
In the 4.1 release, due out later this year, there will be individual configuration options for the showing the LinkedIn, Google+, and Twitter buttons in blog or article views. We're looking into separated settings for featured articles, but not sure if that will be in the 4.1 release.

For the "Num Comments" features, that's something that is possible using Facebook, but not something we do in JFBConnect currently. We're planning quite a few updates for the comments feature in JFBConnect 4.2, due early next year, and what you're looking for is one of them. It's still in the planning stages, and not something that can be done with a few lines of code though, so can't really just say "Do this", unfortunately.

Finally, for the Comments width in featured views, the following code change will hopefully help. In the /plugins/content/jfbccontent.php file, around line 300, you'll see:
function _getComments($article, $width, $numposts, $colorscheme, $renderKeyString, $isJoomla)
    {
        $href = $this->getCurrentURL($article, $isJoomla);
At the top of this function, modify it so it looks like:
function _getComments($article, $width, $numposts, $colorscheme, $renderKeyString, $isJoomla)
    {
        if ($view == 'frontpage' || $view == 'featured')
           $width = "200";
        $href = $this->getCurrentURL($article, $isJoomla);

Obviously, change the 200 to whatever width you want. Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15385 by kiwi2b
Replied by kiwi2b on topic Comment box width questions
Hi there, thanks for the quick code! But it didn't work for me, I made the changes to the file you said (attached), but the frontpage is still taking the width from the article setting (see screenshot).

What do you think?

##text##

File Attachment:
The topic has been locked.
Support Specialist
14 years 6 months ago #15405 by alzander
Not sure what I was thinking. I missed a line of code. Please try to update what I recommended to the following:
$view = JRequest::getVar('view');
if ($view == 'frontpage' || $view == 'featured') 
      $width = "200";
That will hopefully get you going!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15420 by kiwi2b
Replied by kiwi2b on topic Comment box width questions
Yep, working now, yay! Looking forward to those new versions. I'll post to the JED for sure.
The topic has been locked.
Support Specialist
14 years 6 months ago #15427 by alzander
Great to hear that it's working! Should you need anything else, just let us know.. we're hard at work on JFBConnect v4.1, but the updates to the comment features likely won't be until v4.2, just so you know.

We'd definitely love the review on the JED. Thanks!

Alex
The topic has been locked.