I think I fixed it in the latest version.

Try this:

Open images.mdu and find

function get_subfolder($path, $old_path, $move = false, $image){

change it to this:

function get_subfolder($path, $old_path = false, $move = false, $image = false){


$lastpart won't work as a variable. It has to be $img_type.

Try this: $img_type = end($img_parts = explode(".",$file));



Please post line 408.


Another little update:
- Delete empty folders
- Move images from one folder to another
- Pagination

So I want a option something like this : Use Cropped Square Thumbnails


You asked so nicely - I had to make it.  https://cutephp.com/forum/style_emoticons/default/wink.gif

Version 2.0 now supports sub directories and cropping of the thumbs which means that the thumbs are squares with a fixed width and height.  https://cutephp.com/forum/style_emoticons/default/smile.gif

Name: file upload hack
Author: FI-DD
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: Add a module like the image manager, but then for managing files.
It is pretty much working like the Cutenews image manager.
Another feature is the pagination. By default the hack displays 20 files per page. You can easily change this and other configurations in files.mdu at the beginning of the file.
Demo: manager blog with files
Discussion Topic: here
Instructions:

After the installation you will find an [insert file] link in the Add News/Edit News view. After clicking on it you can upload new files or select an existing one. A download link to the selected file will be inserted in your short/full story. In Cutenews 1.4.1 this will work with wysiwyg editor enabled, too.


In "Options" (admin panel)  you will find a new link "Manage Uploaded Files". Here you can upload new files and rename or delete existing ones.

Installation:
Please read the readme.txt coming with the download file.

Download:

Download page

Simply get the thumbs of those images into the thumbs folder - by reuploading the pictures or with a different script.  https://cutephp.com/forum/style_emoticons/default/smile.gif

Change this:

link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"$config_http_script_dir/data/upimages/\"+ path +\"\"+ selectedImage +\"\\\">\" + link2;

to this:

link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"$config_path_image_upload/\"+ path +\"\"+ selectedImage +\"\\\">\" + link2;

and this:

$link1 = htmlspecialchars('<a target="_blank" href="'.$config_http_script_dir.'/data/upimages/'.$file.'">');

to this:

$link1 = htmlspecialchars('<a target="_blank" href="'.$config_path_image_upload.'/'.$file.'">');


I don't know why it's not working for you but the text is floating to the left or right of the picture for me.

And the html reference is saying the same, I think: http://en.selfhtml.org/html/grafiken/ausri...htm#textumfluss


Choosing "Image align = left/right" is exactly doing this, I think.  https://cutephp.com/forum/style_emoticons/default/smile.gif

mmmm well I just try on IE and works ok.
But on Firefox I get this....

Error: opener.document.getElementById(area) has no properties
Archivo Fuente: http://......../cute/index.php?&mod=images&action=quick&area=short_story
Línea: 54

Any idea?


Ok, I got the error.  https://cutephp.com/forum/style_emoticons/default/smile.gif
The textareas in addnews.mdu and editnews.mdu are missing an id.

In addnews.mdu find this:
    <textarea rows=\"8\" cols=\"74\" name=\"short_story\" tabindex=4></textarea>

change to this:
    <textarea rows=\"8\" cols=\"74\" id=\"short_story\" name=\"short_story\" tabindex=4></textarea>

Do the same for full story in addnews.mdu and for short story/full story in editnews.mdu.


Sorry, no idea.  https://cutephp.com/forum/style_emoticons/default/sad.gif


I just tested it again with Cutenews 1.3.6 and it works fine for me.

Do you have Javascript enabled or do you use a wysiwyg editor?


Thanks again.  https://cutephp.com/forum/style_emoticons/default/smile.gif

I uploaded  a version for 1.3.6 (removed the wysiwyg stuff) but the 1.4.1 version should work as well.

41

(0 replies, posted in Hacks & Tricks / FAQ)

Name: NewsLetter
Author: FI-DD
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: Basically, the hack is able to do this:
You can select the news in the editnews view and send them to the newsletter.
http://img391.imageshack.us/img391/5005/select3nv.th.jpg
You can preview the newsletter.
http://img391.imageshack.us/img391/1620/preview5yn.th.jpg
You can edit the html code of the newsletter before sending it.
http://img391.imageshack.us/img391/7567/send0rg.th.jpg
You can add and delete e-mails.
http://img391.imageshack.us/img391/1871/mails4bb.th.jpg
And a little subscribe box is included.
Discussion Topic: here
Instructions:
Read the readme file for installation instructions.
&gt;&gt; Download page &lt;&lt;

Edit: Seems many people couldn't get he original to work, so here's A version that has been confirmed to work for some.
https://cutephp.com/forum/index.php?showtop...st&amp;p=128599
In case you're trying to integrate a subscribe box into your site, also read through that topic. There are some notes in there. And of course don't forget about the original discussion topic https://cutephp.com/forum/style_emoticons/default/wink.gif


You can delete an image in Options -> Manage Uploaded images and you've got buttons for the thumbnails in Add News -> [insert image].

What else do you want to have? Please explain in detail.


Yes, there was an error with the align tag when using the wysiwyg editor. It's fixed now.

But I didn't have the double href error.  https://cutephp.com/forum/style_emoticons/default/unsure.gif

Please try again.  https://cutephp.com/forum/style_emoticons/default/smile.gif


Small update:

1. New image properties: vspace and hspace.
2. Default value of the alt tag in image properties is the picture's name

Download it from the first posthttps://cutephp.com/forum/style_emoticons/default/smile.gif

Update: I can see on all pics uplodaded before updating images.mdu are working using pop-up. It seems that inserting new pics does not not include proper code...
FI-DD, can you fix it? https://cutephp.com/forum/style_emoticons/default/smile.gif


Did you enable it by setting the variables in images.mdu to "true"?


Done.  https://cutephp.com/forum/style_emoticons/default/smile.gif

Any wishes for the default values before I upload it?


You mean another field in image properties? I'll try. https://cutephp.com/forum/style_emoticons/default/smile.gif

What about vspace? Needed as well?


The latest version of the image script is out.

Changes:
You can add a shadow to the thumbs.
Thumbnail creation supports JPG and GIF files.

An example thumbnail with shadow and screenshots of the script can be found in the first post.

Enjoy!  https://cutephp.com/forum/style_emoticons/default/smile.gif

What file in CuteNews do I need to edit to either alter the default QuickTags or add my own?


about.mdu  https://cutephp.com/forum/style_emoticons/default/smile.gif


Sorry, I don't have this bug neither in the original image module nor in my modified version.

Do you have the error in the demo?

https://cutephp.com/cutenews/demo/

Posts found: 26 to 50 of 66

Pages Previous 1 2 3 Next

CutePHP Forums → Posts by FI-DD