I can see im gonna have to download this again and check out all the new funky features  https://cutephp.com/forum/style_emoticons/default/biggrin.gif

I see you've been busy FI-DD  https://cutephp.com/forum/style_emoticons/default/wink.gif

Peace out, TinnyFusion

Thankx for the link via PM matey, cool add-on.

Just had a power cut here so my site might not have worked earlier, all up and running now though  https://cutephp.com/forum/style_emoticons/default/cool.gif

Hehe, true. I know I don't know where to start.... Don't you just hate the browser wars thing, webby shows mint in one but crap in another lalala - I do however love the -moz-border-radius: 15px; CSS thing you can do with MOZ, for instance, look at the buttons & form fields of the the comments section of my news posts in both FF and IE.

Click for my site and an example << Scroll to the bottom for the comments bit.

Finally, whats the bbcode addon that you speak of if you don't mind me asking?

Thats what i'm saying billbody, I do not get ANY ERRORS (including the JAVA Script prompt that you talk about - It just does not work for me in Firefox).

Anyway, hope it is fixed soon but as I use both IE and FF it does not really affect me too much.

I don't get the errors you talk about. However, the buttons to insert full image, thumb images, and clickable thumb do not work for me in Firefox.

In IE the popup image manager closes when I select any of the above 3 buttons and the correct code is inserted. Firefox on the other hand leaves the image manager open and the buttons do not insert any code...

FI-DD, you have done it again - Thank you so much for the new 'updated' version. Now I no longer need to search for a gallery script for CuteNews as it has everything one could want  https://cutephp.com/forum/style_emoticons/default/cool.gif  https://cutephp.com/forum/style_emoticons/default/biggrin.gif  https://cutephp.com/forum/style_emoticons/default/wink.gif

Thanks JetSki but I have sorted it  https://cutephp.com/forum/style_emoticons/default/wink.gif  - FI-DD, any news on when you will be updating the download link to include the drop shadow effect we discussed (and tested)?

Thanks, I have simply edited the above file to include the following code:

        case 'center':
            code = '<div align=\"center\">' +var1+ '</div>';
            break;

and...

    <tr ><td height=16 width=\"21\">
     
    <td height=16 width=\"344\">
    [url=]
    Insert Div Tag[/url]
    <td height=16 width=\"0\">
    [center][/center]
    </tr>

I can now simply insert a <div align="center"></div> tag whenever I want, this is all I wanted. However, the BBCode buttons of CuteNews.RU are bloody nice hehe. I might have to see if I can add them to my copy of CuteNews (copyrights permitting of course hehe)..

Again, thank you for your help  https://cutephp.com/forum/style_emoticons/default/wink.gif

Thank you for your PM FI-DD, the code is just what I need. However, I think it would be a lot easier if I just edited the 'Quick-Tags' to include the <div=....> tag.

You know the one:

  
QuickTags   
   Insert Link  [link=URL]Text[/link]  
   Insert Image  [image=URL]  
   Instert Quote  [quote=Name]Text[/quote]  
   Insert List  [list][*]Text1[*]Text2[/list]  
   Bold Text  [b]Text[/b]  
   Italic Text  [i]Text[/i]  
   Underlined Text  [u]Text[/u]  
   Text Color  [color=COLOR]Text[/color]  
   Text Size  [size=SIZE]Text[/size]  
   Text Font  [font=FONT]Text[/font]  
   Text Align  [align=ALIGN]Text[/align]  

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

When adding an image in addnews you have the image properties. Isn't that what you need?
The button will be added to the code. Thanks for that.


Please send me the script. I'll try to add it.

Thank you.   https://cutephp.com/forum/style_emoticons/default/smile.gif

Opps, missed your post... Doh. Anyway, new PM on its way to you with a link to download the code from my web server.

Hope its what you wanted. And thanks for adding my 'button code'  https://cutephp.com/forum/style_emoticons/default/biggrin.gif

Ok, in the 'Image Properties' section before you upload an image this simply adds align="whatever...", what I am wanting is so that I have buttons to add <div align="center"> image code here etc... </div>.

Hope that is clear.

Hi there FI-DD, I have a fine chunk of code to add a drop shadow to the created thumbs if you need it  https://cutephp.com/forum/style_emoticons/default/biggrin.gif also, the problem vanja seems to have sounds like that that I had... However, since you fixed how it inserts the code for CuteNews v1.3.6 (rather than CuteNews v1.4.1 with the BBCode editor) it has worked like a charm for me.

It is daft to think that I (and a load of other people) have wanted these features for so long that they have not been added to the new version of CuteNews.

Anyway, the code is there if you want it matey.

P.S.
The drop shadow colour can be changed to suit too so it will fit with your design  https://cutephp.com/forum/style_emoticons/default/wink.gif This is the reason I use 8 .png files for the drop shadow effect. Add to this, it does not need to be a drop shadow! - You could change the files to give you a nice picture frame effect or anything else you want.

I basically use 8 files to cover the topleft corner, top, topright corner, right, bottomright corner, bottom, bottomleft corner, and finally the left side of the thumbnail.

CuteNews v1.4.1's images.mdu file has exactly this "window to size of image" function. However, not amount of 'playing' with the code is working for me...

Need to try and add this function to the following bit of code:

                $my_area = str_replace("_", " ", $area);
                $path_big = "";
                $path_thumb = "thumbs/";
                $link1 = htmlspecialchars('<a target="_blank" href="'.$config_http_script_dir.'/data/upimages/'.$file.'">');
                $link2 = '</a>';
                $empty_link = "";

                echo"
                <tr $bg><td height=16 width=10% align=center>[url=""]<img height='50px' style='border:0px;' src=".$config_path_image_upload."/thumbs/".$file.">[/url]
                <td height=16 width=15%>  [url=""]$file[/url]

Well when I post images in my news they are aligned to the left all the time so I end up manually adding a <div align="center"> around the HTML for the images to keep everything looking nice.

Just thought it would be cool if you could choose to align to either left, center, or right when inserting the picture; or as per my thoughts, more simply have 3 new 'QuickTags' for each of the <div> tags. You get the idea  https://cutephp.com/forum/style_emoticons/default/wink.gif

To have buttons rather than text links replace the following chuncks of code.

Change this:

                <td height=16 width=15%>
                [url="][Insert image][/url]
                <td height=16 width=15%>
                [url="][Insert thumb][/url] 
                <td height=16 width=15%>
                [url="][Insert clickable thumb][/url]

To this:

                <td height=16 width=15%>
                <input type=button value=\"Insert Image\" onClick=\"javascript:insertimage('$file', '$path_big', '$empty_link', '$empty_link')\"> 
                <td height=16 width=15%>
                <input type=button value=\"Insert Thumb\" onClick=\"javascript:insertimage('$file', '$path_thumb', '$empty_link', '$empty_link')\"> 
                <td height=16 width=15%>
                <input type=button value=\"Clickable Thumb\" onClick=\"javascript:insertimage('$file', '$path_thumb', '$link1', '$link2')\"> 

I also changed your original CSS to match the one I have for my site too.

Change this (if you want to of course):

                        select, option, textarea, input {

                         BORDER: #808080 1px solid;

                         COLOR: #000000;

                         FONT-SIZE: 11px;

                         FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff

                        }

To this:

                        input, select, option {
                        BORDER-RIGHT: #808080 1px solid;
                        BORDER-TOP: #808080 1px solid;
                        BORDER-BOTTOM: #808080 1px solid;
                        BORDER-LEFT: #808080 1px solid;
                        COLOR: #000000;
                        FONT-SIZE: 9px;
                        FONT-FAMILY: Verdana; }

                        textarea {
                        BORDER-RIGHT: #808080 1px solid;
                        BORDER-TOP: #808080 1px solid;
                        BORDER-BOTTOM: #808080 1px solid;
                        BORDER-LEFT: #808080 1px solid;
                        COLOR: #000000;
                        FONT-SIZE: 11px;
                        FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff }

Just a thought here, but I have a php script that takes a directory of images and not only creates a thumb with the GDLib but also adds a rather nice drop shadow effect (using a number of user defined .png files) to the newly created thumbnail too. Maybe this could be a little upgrade for your mod  https://cutephp.com/forum/style_emoticons/default/wink.gif

I can supply all of the code needed to do this if you need it as to be honest you would have more luck than me adding it to your already supurb code  https://cutephp.com/forum/style_emoticons/default/biggrin.gif

Included are some pics of what it actually does. Image2.jpg was created by the script from Image1.jpg on the fly. The cool thing is that the thumbs are only created once too so no hogging of resources on future page visits etc... If that was not enough, the background colour can also be specified during creation too so that it will fit with your design.

P.S.
Yup thats me while Caving in the Peaks - Handsome young thing arnt I LOL  https://cutephp.com/forum/style_emoticons/default/laugh.gif

Hey FI-DD, thank you for all your hard work here. This mod is simply fantastic  https://cutephp.com/forum/style_emoticons/default/cool.gif

Now, to get it so that I can choose <div align="left">, <div align="center">, or <div align="right"> from a button within short/full story hehe.

Thanks again.

P.S.
The attachments are from my 'images.mdu' file.

Ahh, one very tiny problem... Don't worry, it is a tiny one  https://cutephp.com/forum/style_emoticons/default/wink.gif

Everything works mint except when I insert a clickable thumb as it seems to miss a bit out of the inserted URL. Here, let me show you an example.

The correct URL to the image is: http://www.whatever.com/CuteNews/data/u … /image.jpg

However, this is what I get: http://www.whatever.com/data/upimages/image.jpg

Notice how the 'CuteNews' directory is missing? - Any ideas?

The code for the thumbnail image link that is inserted into either short/full story is:

[url=.]<img border="0" align="none" alt="" src="http://www.whatever.com/CuteNews/data/upimages/thumbs/image.jpg">[/url]

It needs to be:

[url=h]<img border="0" align="none" alt="" src="http://www.whatever.com/CuteNews/data/upimages/thumbs/image.jpg">[/url]

***EDIT***

P.S.
I have noticed that if I preview the news that I am posting from within the main CuteNews posting screen/page the link to the full picture works (as it looks like the seconf chunk of code I have pasted here). However, once I have published said news the link does as I said above and misses the 'CuteNews' directory out...

Please help  https://cutephp.com/forum/style_emoticons/default/wink.gif

Oh my god dude, hehe - What can I say, fantastic work  https://cutephp.com/forum/style_emoticons/default/cool.gif

Minus the use of the GDLib, I had got mine showing previews of the images from within the main admin section and a few other bits 'n' bobs but nothing like what you have done here.

I say again, simply fantastic. Thank you very much  https://cutephp.com/forum/style_emoticons/default/biggrin.gif