Forgot?

NInja Super Submit beta RC1 (UPDATED AGAIN)

Reply Topic
Link to this post 19 Jun 08

Yes it does work !

Except I forgot a part of cut/paste code, just fixed that on the joomlart post...

Based on Ja_submit 2.1 "Tweaked" , running on Mov'AMP, joomla! 1.0.15

I'm about to publish a Ja_submit 2.2 component "unofficial pack" with 4 images upload, and resize for each image thru admin, and random number before the image...

Full (messy frenchy) post here :
http://forum.joomlafacile.com/showthread.php?t=66956

Link to this post 21 Jun 08

Hi Guys,

so my updates/bug fixes are complete.

Thanks go to both Crony and Vida for there help with these fixes, changelog is below.

thanks to everyone for pointing out the errors

Bug Fixes :-

* Fixed Auto Approve resetting categories issue.
* Fixed Configuration Screen Missing Arguement error
* Added Append Date & Time to image uploads, to allow for multiple images of the same name - thanks Crony
* Fixed lower case image names
* Fixed Issue with content being submitted as static content
* Fixed Validation Issues - thanks vida
* Fixed Auto Publish By User
* Fixed Missing Buttons - Think a couple of people pointed this out, but Vida gets the credit

Features/Upgrades :-

* Updated Backend
* Configuration now saves to database

General Clean Up :-
Removed "Is Enabled" Option - useless
Removed "Editor" Option - Confusing and useless - use global config

again thanks to those who got involved.

Please also note that you will have to completely remove the old version and re install this version.

Vule, if you are around please get in touch, would love for you to make up a new language file

Thanks guys

Richie

Link to this post 24 Jun 08

Right,
Have installed this version now and it really looks like everything is working perfectly.
Nice Job!
Vida

Link to this post 24 Jun 08

Oh dear...
Sorry to be picking holes...
But the problem I mentioned before .. about the main content picture not showing when the user supplies a main pic but does not supply an intro pic.... seems to be still there...

Vida

Link to this post 24 Jun 08

oh :(

somehow you change must have been overwritten during my coding.

i have replaced your code & reuploaded the component, and the file is attached for those that do not want to reinstall

p.s
pick holes all you like - we dont get anywhere without knowing there are issues :) [file name=super_submit.zip size=4495]http://www.ninjoomla.com/media/kunena/attachments/legacy/files/super_submit.zip[/file]

Link to this post 25 Jun 08

Hi All !

While the reize of a picture is done, it often hasn't got a good looking anymore...
This mambot does the trick, but may be integrated in Super Submit ? (maybe with a radio check into admin with "mosimageresize already installed yes/no to avoid technicals problems ? )

The plugin is available to download here :

http://www.cijm.org/index.php?option=com_content&task=view&id=276&Itemid=145

:)

Link to this post 25 Jun 08

Hi crony,
I would agree that the resize does adversly affect the picture.
I think this is because the resize works on two dimensions..both height and width...so it ignores the aspect ratio..

Think better results might be obtained by resizing on one dimension (the largest of width or height) and preserving the aspect ratio...

Not sure if the imagecopyresized function can do aspect ration preservation.. maybe Ritchie can tell us more on that.

Vida

Link to this post 25 Jun 08

Reading around about this I see people saying that imagecopyresampled is better that imagecopyresized..
The php man page for imagecopyresampled gives a code sample for preserving aspect ratio...
http://ie2.php.net/imagecopyresampled

Vida

Link to this post 25 Jun 08

EDIT : it's written on top of component :
Remember to define all the * fields or the component won't work.
And Heigh and Width got an *:blush:

I have to test on Super Submit, but with Ja_Submit, if you set the Heigh, you'll get NO images at all in articles...
(works fine with just Width...)
:laugh:

Link to this post 25 Jun 08

On prod server I get the image well formated, but on local server I get the size added to the name of the pictures...
So it's not functionning correctly...
My hack must have done something wrong...
Scary...:blink:

Link to this post 25 Jun 08

Ok,
I manged to get a minute there to take a look.

On my server it works fine when I configure to have the height set to blank and the width set to 100... the image ends up 100 pixels wide with the aspect ratio maintained.

I didn't think ninja super submit would be happy if I left either width or height blank but it seems to be just fine with it.

Wouldn't have thought of it if you hadn't suggested it Crony.
So thanks for that!
Vida

Link to this post 25 Jun 08

Ok, just installed RC1 for testing...

Bugs I've found :

1- While uninstalling, table jos_ninja_super_submit_config still into database

2- There is no uploading images functionning with the date ! The file name into the article still the same !
But into the folder "user" I have the image name with for example :Jan0119700234381 before...What kind of date is that ? :cheer:
I think the GLOBALS I've used on Ja_Submit may be in conflict, havn't looked your code yet...

3- Not a bug, a whish : Can't setup only Main text ( as I'm using the intro text just for image, and title...)

4-Question : Is page Sfx the CSS personalised name ?

5- Why are you releasing under CC 3.0 ???? You can't do that !
We were just discussing about a function imageresize stuff...GNU/GPL !
The original component is released under GNU/GPL, the Resize Image Script is Copyrighted by Ryan Stemkoski, but License under GNU General Public License (GPL) , the Security Images or CAPTCHA for Mambo/Joomla script is Copyrighted by Walter Cedric
License: GNU General Public License (GPL)...

PLEASE RELEASE UNDER GNU/GPL !

I'm using as less as possible propriatary softwares as I believe the "Microsoft economic model" as reached his limits...But not the fact that services and support can be paid ( for eating, seems better...)
I think CC licences are for "marketing purposes" (explaining to the masses something that already exists - GNU/GPL - with an other name, and helping lawers to make money:P ) ok, it's usefull for Artists who don't want their Art used for Nike advertisement without being PAID (and not being used...)

I'm just a stupid cut'n'paste non coder that have learned SO MUCH using GNU/GPL as I think I'm just a bit stupidless...

If you really want the CC cool logo, release at least under 2.0 or 2.0 by-sa...

Hope you won't get mad at me, I just don't want to ask anymore if I have the permission to pee to Microsoft or Oracle, or anybody...
B)

Link to this post 25 Jun 08

first up

thanks for pointing out the image thing, i didnt know it would do that either :D

@bugs,

1. oops forgot to add the drop table - will do so

2. sorry i dont quite understand here - is it or isnt it uploading with the date appended (as it is for me here) - not sure why its giving the date 1970 will take a look

3. wish noted down, not saying you will get it though ;)

4. GNUGPL - it is GNU GPL it says it is, all our code is, the non commercial CC licence is our content - which i can licence how i like as its mine :)

Programming Code License: GNU GPL

Textual Content License: Creative Commons, Attribution, Non-Commercial, Share Alike

Richie

Link to this post 25 Jun 08

Hopla,

1- cool :)

2-The upload is done, into user folder, the image is there, with the right updated name with the date, BUT, the image into the article is not shown, (square with "image" written in it, while I check the name of the image into the article, still the same as original upload...(no date added...;) )

3-Sure :)

4-(which is 5 as I am a frenetic post editor... ;) )
Sorry, I don't understand, what is the content...The presentation of the component, read me and stuffs like that ?
Of course you do what you want with your code, I was just submiting my point of view...But I must have missed something (again...)...:silly:

Link to this post 26 Jun 08

i totally understand your views on GNU GPL code, i have my own and the subject is far to big to go into here.

i know that i cannot re-licence the component i had no intent on doing so, like i said its one of ninjoomlas goals to turn out only GPL code (if you go back some months, on the front page you will find a post from daniel on the subject)

the content in this instance that is licenced CC Non Commercial refers to pretty much the content in the backend, the usage instructions/descriptions/images ect ect.

Link to this post 27 Jun 08

Hi Crony,

sorry for the delay (i forgot to be honest)
you will notice you have 1 month free silver subscription, hope you enjoy it

Richie

Link to this post 27 Jun 08

Thank you Richie !

Nico

Link to this post 13 Jul 08

The upload is done, into user folder, the image is there, with the right updated name with the date, BUT, the image into the article is not shown, (square with "image" written in it, while I check the name of the image into the article, still the same as original upload...(no date added)

i'm having exactly the same issue.
upon upload, the image's filename is prefixed with some sort of date stamp and remains that way.
it would seem this is being done to allow for direct upload without worrying if a similarly named file already exists.
what may be missing (or broken) is code that is supposed to rename the file back to original filename, while checking for existing/conflicting name.

can this be fixed, please?

Link to this post 14 Jul 08

Just wondering.. this wouldn't be related to the case of the filename would it?
Is the filename mixed case? Like MyPicute.jpg ??
Cos there was a problem with mixed case filenames...

Vida

Link to this post 14 Jul 08

vidapura wrote:

Just wondering.. this wouldn't be related to the case of the filename would it?
Is the filename mixed case? Like MyPicute.jpg

my filename was all lowercase "basho.jpg" but resulted in a mixed case filename like this:

Dec311969183438basho.jpg

Link to this post 14 Jul 08

Ok... and what is the link to the picture in the html? (when it just diplays the little box..)

Vida

Link to this post 14 Jul 08

vidapura wrote:

Ok... and what is the link to the picture in the html? (when it just diplays the little box..)

the link is built with the proper filename, like so:

<sitename>/images/stories/users/basho.jpg

but since the filename still has the date/time stamp in it, the result is that box with 'image' where the real image should appear.

so, as i said, everything works other than some routine that should be renaming the file back to proper name.

at least, thats what it looks like to me.

thanks for any assistance. this sure looks like a bug to me?

Link to this post 14 Jul 08

Yup definitely looks to be a bug.

Sorry about that :(

Unfortunately Richie, the lead developer for this extension is on extended leave. Hopefully we can get someone else to fix it some time soon.

Link to this post 14 Jul 08

Hi Marikas,
i was going to try and fix this.
But I went to try and download the latest version (RC1) from the extensions list and despite being a gold member I was asked to pay with paypal...
So think you have a few things to work out with the new site.
If you can email me the source I'll have a look and see if I can fix it.
Vida

Link to this post 14 Jul 08

Hi vidapura,

Sounds great!, any fix would be much appreciated :)

I believe the permissions bug has been fixed and you should be able to download it now. Daniel sorted it out just minutes ago.

Link to this post 14 Jul 08

Yup it looks like you just missed the fix.

If you manage to find a fix V, I will push you up to a Pro as a thanks.

Link to this post 14 Jul 08

Am having a look at the code now...
Really hampered by not having a proper development environment... just trying to read through in textpad.
I asked a question before about what development environment you guys use.. would you be able to enlighten me? It would be great to have some way to step through this in a debugger...
Vida

Link to this post 14 Jul 08

I use Coda (on a mac) I know the Windows guys swear by phpdeveloper though. it has a debugger in it.

Link to this post 14 Jul 08

cool... i'll have a look at that...

Found the problem anyway... just have to decide the best approach to fixin it now.. heh..

Vida

Link to this post 14 Jul 08

Sorry Daniel.. can't find phpdeveloper... where do you get it?
(google is just givin me all sorts of php development sites...)

Link to this post 14 Jul 08

Ahh haa,
thanks
Vida

Link to this post 14 Jul 08

Ok guys,
Have made the fixes. The com_super_submit.zip file is attached.
My changes are marked with "//Vidas Changes" , theres three places that I had to modify.

I've done what testing I can, so if anyone else could please doa bit of testing as well?

HTH
Vida [file name=com_super_submit.zip size=394023]http://ninjaforge.com/media/kunena/attachments/legacy/files/com_super_submit.zip[/file]

Link to this post 14 Jul 08

just replaced the modified file and ensured proper permissions.

successfully tested! problem fixed! give that man a lifetime subscription!

:woohoo:

Link to this post 14 Jul 08

Works perfect here too :)

Still have this problem with ratio aspect of images...Even with just Width or Height, get same result...

I'm going to contact the coder of this mambot:
http://www.cijm.org/index.php?option=com_content&amp;task=view&amp;id=276&amp;Itemid=145

To let him know that his cool plug seems not working with mosimage...
;)

EDIT : works perfect with mosimage, Ninja Super Submit use a "bad" way to resize

Link to this post 15 Jul 08

love that bot crony!

What was the image ratio problem?

V is now a diamond member thanks for the contribution. btw he has gotten all the way to pro without paying a cent I think. All from contributions. Nice work and thanks.

Link to this post 15 Jul 08

by the way Vida, what files did you change?

Link to this post 15 Jul 08

Hey, Thanks for that Daniel, indeed I haven't paid a cent and am grateful for your generosity. Feel like a bit of a cheapskate, heh heh..

Crony i thought the aspect ration thing was sorted out wasn't it?
Looks like Daniel changed the code he was using for resizing .. so that may have affected things again...
If I get some time today i'll investigate again.. (but my boss is starting to wonder when he's getting the functional spec document I'm supposed to be writing ...)

Vida

Link to this post 15 Jul 08

Oh sorry Daniel,
Didn't spot your question there about what files I changed.
All my changes are in the super_submit.php file only.
Each change is surrounded with a comment block that says:
"//Vidas Changes start here ==========================="

If you wish I can talk you through them?

Vida

Link to this post 15 Jul 08

@resizing problem

That wasn't me who changed anything. I am not actually the SS developer. But Richie is on extended leave right now so I picked up the torch.

@cheapskate

Nothing cheap about helping out. Worth as much as a paid membership without a doubt.

By the way what sort of development experience do you have Vida? Are you able to build an extension from nothing, or can you only work with a prebuilt one and fix/improve it?

Link to this post 15 Jul 08

Oh right, sorry, got mixed up with the names.

In terms of development experience.. well, I'm writing software for about 20 years.
Mainly working in .net c# asp.net etc...

Only started looking at php and stuff when I found that super submit wasn't doing what I needed it to.. so just jumped in and had a run around the code with the php.net website open beside me so I could figure out what $_FILES was etc...

Haven't read the docs on building a joomla module yet.. so I suppose i'm only really able to sort out some problems in existing modules for now...

This is fun though so I might see if I can get time to read the docs .. must see is there a joomla conference near here (ireland) anytime soon...

Vida

PS: would love to have someone tell me how to set up for joomla development with phpdeveloper etc... like can I load the whole site into it etc...

Link to this post 15 Jul 08

Guys,
I'm not sure I have the right version of the css for this component...
My installation of it doesn't look right...
The intro text area is running into the main text area etc...
It definitely doesn't look like it does on the demo.ninjoomla.com

I've attached a picture of what it looks like on my site...

I'm pretty clueless when it comes to css positioning etc...

So I don't know if its the template on my site thats doing this .. or the css that comes with the component.. but the ordinary frontend submit that comes with joomla doesn't have this problem...

Vida.

Link to this post 15 Jul 08

Hi Vidapura,

Hmmm... sorry you're having trouble with it.

Could you try this:
Backup yourdomain.tld/components/com_ninja_super_submit/css/default_css.css and then replace all the css that's in that file with what's posted below.

Let me know if that helps.

#rules,.adminForm,#contentParams{width:100%;padding-bottom:10px;}
#sectionname,#catidname,#createdbyname,#emailname,#titlename,#image1name,#image2name{width:16%;float:left;height:16px;padding-top:10px;}
#sectionbox,#catidbox,#createdbybox,#emailbox,#titlebox,#image1box,#image2box{width:84%;float:left;padding-top:6px;}
#toolbar{width:42%;position:absolute;left:230px;}
#toolsave{position:absolute;left:210px;}
#toolcancel{position:absolute;left:290px;}
#toolsave img,#toolcancel img{border:none;}
#introtextname,#introtextbox,#maintextname,#maintextbox{width:100%;clear:both;}
#introtextname{}
#introtextbox{}
#maintextname{}
#maintextbox{}

Link to this post 15 Jul 08

Oh god, don't apologise! I'm getting this for free! heh heh...

Its all a bit odd.. firstly the com name in my component listing is com_super_submit which kinda makes me wonder have we got some versioning confusion....

But anyway..

Your new CSS has worked perfectly! Thank you!

I'm using this with the JCE or TinyMCE editors enabled... JCE for me, TinyMCE in basic mode for general non-tecchie users...

I don't suppose there's any way to get rid of the Insert Image and Insert Page Break buttons at all?

Thanks very much for sorting this out so quickly for me...

Vida

Link to this post 16 Jul 08

@Vida & Daniel

The problem is the image resized thru Ninja Submit is not clean.
It seems using only Width or Height does not change anything ( supposed to resize with ratio, and get a clean image, but no...)

I'm not sure if the mosimagesresize applies on images using {mosimage}.
I've contacted the dev who told me that it should work,( mosimage bot AFTER mosimagesresize bot in the list of Bots ) but it's not, as I've tried all different orders, with only using the width or Height (and not both values...)

Not sure how to know for sure that the bot is functionning or not...:silly:

@Vida : setuping phpdev is easy, but you may be more interested with a full Java/C++/php and lots of plugin configuring Eclipse as you whish using this :
http://ondemand.yoxos.com/geteclipse/start
(I actually downloading my "full package" to test if there's Apache/php/mySql as well...)
For phpdevelopment it's quite simple, an apache/php/mysql is running, you create a new php project selecting your folder, (usually into htdocs ), then refresh, you've got everything ready to start !

EDIT : Yoxos is not that easy that phpdev...lol
Nico

Link to this post 16 Jul 08

vidapura wrote:

I'm using this with the JCE or TinyMCE editors enabled... JCE for me, TinyMCE in basic mode for general non-tecchie users...

I don't suppose there's any way to get rid of the Insert Image and Insert Page Break buttons at all?

Hi Vida,
Not possible with TinyMCE, or at least not via the Joomla admin panel, but with JCE you can disable any plugin via admin panel>Components>JCE>Plugin Manager

I normally disable all but the bare minimum (see attached)

Link to this post 16 Jul 08

Hopla,

Got a feedback from Laurent ( dev of MosImageResize ) , I didn't realize that this bot is creating a copy of the image, put it in cache into :
/mambots/content/imagesresizecache/images_stories_ImageName_150x136_90.jpeg

The new filename ( but the original still in the original foder...)is composed with the full path, the image name, width x height _ the value of jpeg optimized wanted !!!!

So I think it may be very hard to get this bot declared into the config of Ninja Super Submit, as there's an other folder, an other filename, wich can dynamicaly change if you change the value of jpeg optimisation wanted...:huh:

Maybe the solution would be to include the resizing algo from MosImageResize in replacement of the one used actually ?? (and fixing optimisation jpeg on 90, as the image won't be changed after that...)

What do you think ?:)

Link to this post 16 Jul 08

If you can add this to our feature request system we can track it there. :)

Under the Extensions menu.

Home Forum General General Discussion NInja Super Submit beta RC1 (UPDATED AGAIN)