Shoutbox Suggestions

betteryouthanme
Topic Author
Posts: 35
5 years 6 months ago #2200 by betteryouthanme
Replied by betteryouthanme on topic Shoutbox Suggestions
If you guys wish i could translate the Shoutbox language file into german.

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1175
5 years 6 months ago #2201 by Lodder
Replied by Lodder on topic Shoutbox Suggestions
That would be highly appreciated :)

If done, I'll add this as another "reason" to your name on the Special Thanks section of our website

Regards,
Lodder

Please Log in or Create an account to join the conversation.

betteryouthanme
Topic Author
Posts: 35
5 years 6 months ago #2202 by betteryouthanme
Replied by betteryouthanme on topic Shoutbox Suggestions
hm what comes between:
SHOUT_NOSCRIPT_THERE_IS_A
and
SHOUT_NOSCRIPT_CHARS_LIMIT
? (because of the space)

Not sure if i can translate it 1 by 1..

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1175
5 years 6 months ago - 5 years 6 months ago #2203 by Lodder
Replied by Lodder on topic Shoutbox Suggestions
Hey,

You don't need to worry about this one. It's not being used anywhere.

I will remove this from all language files ;)

Lodder
Last edit: 5 years 6 months ago by Lodder.

Please Log in or Create an account to join the conversation.

zmx
Posts: 1
5 months 3 weeks ago - 5 months 3 weeks ago #4124 by zmx
Replied by zmx on topic Shoutbox Suggestions
Shoutbox Image Preview - just my Solution - fell free to use :)

as I missed little previews on shout images, I edited the code with only 2 lines
(ok, using setup options require more lines :)
for the less amount of images, I didn't do an image->thumbnail / popover resizing
the popover option is only working with bootstrap available (in Joomla)

the preview also works in the history - the popover won't

you can see my jjshoutbox on my sobi+kunena modifications site:
www.joomod.de
but I mixed layout 1/2 and toggle the input to downsize the module space



1.in the helper.php function bbcodeFilter I replaced the img line in replace array:
'<a href="#" data-jj-image="$1" data-jj-image-alt="$2" class="jj-image-modal hasPopover" data-html="true" data-original-title="<img src=\'$1\' alt=\'$2\' />" data-content="$2" onclick="JJShoutbox.imageModalWrapper(event, this)">$2<img src="$1" class="jj-image-inline" alt="$2" /></a>',
2. finally, if you use the popover, rebind it in the js-file on JJShoutbox.getPosts ->response.success:
jQuery('.jj-image-modal.hasPopover').popover({trigger:"hover"});
also if bootstrap is not fully enabled add at the end of the jQuery(document).ready function:
$('.jj-image-modal.hasPopover').popover({trigger:"hover"});
3. limit the preview size using CSS:
.jj-image-inline{max-height:36px!important;width:auto;margin:0 5px;}
and disable image size limit if using the popover
.jjshoutbox .popover img{max-height:unset!important;}
for a nicer flow you can add:
.jj-image-modal img{vertical-align: middle;}



option: using a setup option will look like:
$preview = ($this->params->get('preview', 0));
$popover = ($preview) ? ($this->params->get('popover', 0)) : 0;
'<a href="#" data-jj-image="$1" data-jj-image-alt="$2" class="jj-image-modal'.($popover ? ' hasPopover" data-html="true" data-original-title="<img src=\'$1\' alt=\'$2\' />" data-content="$2"' : '"').' onclick="JJShoutbox.imageModalWrapper(event, this)">$2'.($preview ? '<img src="$1" class="jj-image-inline" alt="$2" />' : '').'</a>',
and the new fields in the setup xlm: (I used global labels, so no translation is required)
<field name="preview" type="jjradio" class="switcher" default="1" label="Image Preview" >
<option value="0">JNO</option><option value="0">JYES</option></field>
<field name="popover" type="jjradio" showon="preview:1" class="switcher" default="1" label="Preview Popover">
<option value="0">JNO</option><option value="0">JYES</option></field>
Last edit: 5 months 3 weeks ago by zmx.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum