Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2010-01-26 18:53:33

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,206

Re: lam_image_uploader v0.6c (improved upload images from the write tab)

1. Look for '<label for="alt">'.gTxt('alt_text').'</label>'.[HERE'S A RETURN]$lam_image_alt. (Note the apostrophe at the beginning and the dot at the end.)
2. Remove.
EDITED THE SEARCH PHRASE: Didn’t copy what came behind the return.

Last edited by uli (2010-01-26 19:00:23)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#122 2010-01-27 10:16:45

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: lam_image_uploader v0.6c (improved upload images from the write tab)

Thanks uli! worked great!

Offline

#123 2012-01-29 14:58:48

alivato
Member
Registered: 2011-03-31
Posts: 147

Re: lam_image_uploader v0.6c (improved upload images from the write tab)

Work with images in lam_image_uploader and hak_tinymce

TinyMCE supports literate Drag-n-drop, including for formatted content.
For convenience we need to adjust lam_image_uploader.

To do this, we find:

if($prefs['lam_image_uploader_show_thumbnail'] == '1') {
    echo '<img src="'.hu.$img_dir.'/'.$img_result[1].'t'.$ext;
    if($prefs['lam_image_uploader_move_sidebar'] == '1') {
    echo '" height="150" />';
    } else {
        echo '" style="max-width:400px" />';
    }

Add after the following:

echo '<h4>FanCy:</h4>';
echo '<a href="'.hu.$img_dir.'/'.$img_result[1].$ext.'"  class="fancy" rel="gallery"><img src="'.hu.$img_dir.'/'.$img_result[1].'t'.$ext;
if($prefs['lam_image_uploader_move_sidebar'] == '1') {
echo '" height="150" /></a>';
} else {
    echo '" style="max-width:400px" /></a>';
}

After that we add links for the following files(jquery fancybox):

- jquery.min.js
- jquery.fancybox.js
- style.css
...

Next, between head tags we write something similar to this code:

<script type="text/javascript">
$(document).ready(function() {
    $(".fancy").fancybox({
        'hideOnContentClick': true,
        'overlayShow': true,
        'scrolling' : 'no',
        'showCloseButton'    : false,
        'titlePosition'    :    'inside',
        autoScale : false
    });
});
</script>

The essence of the problem is as follows:
When you transfer a picture the link is lost, for all browsers except for firefox.
How to solve the problem of links losing for other web browsers? (chrome, opera, safari ,…)

Last edited by alivato (2012-01-29 16:58:08)

Offline

#124 2016-09-30 03:08:46

msome
Member
Registered: 2015-09-16
Posts: 22

Re: lam_image_uploader v0.6c (improved upload images from the write tab)

Does not working in v.4.6.0

Offline

Board footer

Powered by FluxBB