Archive for July, 2008

call to CincopaCheckConnection()

Wednesday, July 30th, 2008

Please add this js script in the first page (the one with the tree) of the plugin.

<script src=”http://api.cincopa.com/skins/api/cincopa.js”></script>
<script>
CincopaCheckConnection();
</script>
after you’ll add this you’ll notice that all the photos are loading much faster from localhost (right click a photo and properties)

solved

status : closed

make testapp work

Tuesday, July 29th, 2008

make ronica.net/cpFirstApp/ work:

1. solve the makefolder.php problem so that new folders are created correctly - solved

2. solve the albumdata problem - works, but how to make setAppData to delete/replace a tag/value pair? it seems that if I use an already existing tag, it appends the value to the existing value. (if the value argument is not present then setAppData will remove the tag)

strange, it didn’t work for me. beside, if I try to CHANGE the value, not to delete it, it will append. something like

old value : <example>val1</example>

new value: <example>val1<example>val2</example></example>

What is the xpath, tag and value that you are sending ?

this is my function call:

$page->post ( ‘Folders_setAppData’, Array (’xpath‘ => “/mydata”, ‘fid’ => $_REQUEST ["_albumcode"], ‘folder_name’ => $_REQUEST ["_albumname"], ‘folder_description’ => $_REQUEST ["_albumdescription"], ‘tag‘ => ‘dataexample’, ‘value‘ => $_REQUEST["_dataexample"]) );

xpath in that case should include the tag - xpath = “/mydata/dataexample“, tag=”dataexample” , value=something/null

I get:

System.NullReferenceException: Object reference not set to an instance of an object. at System.Xml.XmlTextReaderImpl.InitStringInput(String baseUriStr, Encoding originalEncoding, String str) at System.Xml.XmlTextReaderImpl..ctor(String xmlFragment, XmlNodeType fragType, XmlParserContext context) at System.Xml.XmlLoader.CreateInnerXmlReader(String xmlFragment, XmlNodeType nt, XmlParserContext context, XmlDocument doc) at System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt) at System.Xml.XmlElement.set_InnerXml(String value) at pixInfra.XmlHelper.ReplaceTag(String xpath, String tag, String value, String[] listatt) in D:\Dev\funpix\pixInfra\xml.cs:line 378 at ASP.skins_api_rest_aspx.Method_folders_setAppData.Process() in d:\WebSites\tmpCincopa\Skins\api\rest.aspx:line 1503 at ASP.skins_api_rest_aspx.BaseMethod.Invoke(NameValueCollection tmpprms) in d:\WebSites\tmpCincopa\Skins\api\rest.aspx:line 655 — End of inner exception stack trace —

Check this page for more info http://www.cincopa.com/Developer/storeDataAPI.aspx

No luck, this is the log:

<!– cpAPI Request
api_key     cf0d6e35-4c58-4ced-a7d2-6a38c147d942
callback
fid     10463415
folder_description     album 1
folder_name     new album
format     xml
method     folders.setAppData
sid     27e1821e-fd41-4f33-92bb-9f8a53377cc6
tag     dataexample
value     album 3
xpath     /mydata/dataexample
sig     5pR8AAkd7mJiMLzq7pOpHg==

Response
object(SimpleXMLObject)#5 (1) {
  ["result"]=>
  string(2) “ok”
}

3. make Edit album work correctly - solved

status: solved, it now fully supports Unicode, hebrew characters and portuguese chars

doesn’t redirect to cincopa login page

Monday, July 28th, 2008
This was ok last week and now the bug returned.
When user is logged out the redirect to cincopa login page should allow the user to enter his login and password.
from what I see, the bug only appears if you have been logged in, so there is a Session ID, and then you log out. not if you log in, close the browser and then re-enter the site (if you do so, the Login page appears)
I’m testing this issue with IE because firefox is doing some tricks with the session so the idea is to logout from cincopa (using the www.cincopa.com/apps) and then you can close the browser and open a new one on ronica.net. you will see that no redirect is happening. maybe you have removed the login page that supposed to redirect to cincopa login page and when you are calling getCloud using ajex what you get is the cincopa login page as response to the ajax.
OK, I found the problem and I’m working on it now. I was looking all over the code and then it struck me:Wordpress was calling getfolder.php, getalbum.php by ajax; the api is working ok, and the redirect is happening, but inside getfolder.php, or getalbum.php. Those files are redirected to the login page, and the login page is displayed correctly; the pages aren’t then displayed on the screen, but they are instead returned by ajax. So I need to make sure that IF a page is called by ajax, it will make the API return a MUST_REDIRECT flag or something rather than redirect the called page itself. I’m working on it right now.
Of course, this will mean that JS must check the return XML and if it contains the MUST_REDIRECT flag, it will immediately redirect the page (or reload it, to display the cincopa login box).

Instead of doing it like you’ve described you should just do a login before the first call in every php page. remember the loginpage.php that you had long time ago… just call LoginCincopa ( like in the C# basecpAppPage.cs) the loginCincopa will check if session exists and if not it will do the redirect.

Also something that you’ve done is really making the page go crazy and redirect to itself endlessly

Solved the “endless redirects” problem, but regarding the first issue, I don’t think it will work as described. It’s a good idea, but with Wordpress it won’t work: wp uses only ajax, so everything si done via ajax. PHP is server-side and until the user clicks on refresh, it won’t trigger, so I think that, as it works now, it’s best. Can you do some tests to convince? Thanks

Now in Mozilla it works but I get a strange refresh. I don’t have a problem with the refresh but it shows that you are doing something different… I understands about the ajax that you’ve explained but it used to work few weeks ago so why it stopped working and why you had to make the change.

Also now in IE I get the cincopa login page and then the wp login page though I’m already logged in.

I don’t get the strange error in IE, what do you do? I am logged into cincopa (with cookie), I open the browser, go to /post-new.php and click the Cincopa icon and I see the list of folders. In the meantime I will solve some V2 bugs, not to waste our time.

Use IE to login to wp and click “Remember Me”, then in the popup click logout and enter your cincopa users again. now the wp login will appear in the popup. I know why it happens, I had the same problem with the cincopa login page when it is inside an iframe, IE will not allow ronica.net to access the cookies when inside the iframe. the solution was to add p3p header to the login page - does the plugin has an access to do that ?

Solved

bug status : closed

empty folder get error

Monday, July 28th, 2008

when opening a folder with no items an error alert pops up

solved

bug status : closed

can’t post in IE

Monday, July 28th, 2008

When clicking embed I get error msgs

solved for both from_fid and [from_]rid

bug status : closed

makefolder.php doesn’t work

Sunday, July 27th, 2008

makefolder.php and post(”Folders_create”) doesn’t work after the major update of base.php infrastructure, needs some checking. it pops “An error occurred while parsing EntityName” so I think it’s because I send an unescaped string to cincopa.

However, the folder is created correctly.

The bug affects Cincopa Cloud > Post entire folder and sample app’s Create Folder.

solved

status: closed

styles 13-15 code cleanup

Saturday, July 26th, 2008

replace javascript inside PHP files with “heredoc” strings, to make text more legible and easily changeable

solved

status: closed

Style 13 - Click on photo issue

Friday, July 25th, 2008

[cincopa 13 10462249.3885.r2m55qcyzkd3c512bljva4vmyc]

  1. When clicking a photo it will popup medium photo instead of the large one. - solved
  2. When clicking next and then a photo it will open the medium photo in a new window - solved
  3. it seems that you are loading a large photo into 200×150 which makes it very slow. you should request for thumbs (p:medium,v:medium) and for content (p:large,v:large). that way you’ll show the medium photo in the grid and when user click you’ll show the large in the popup - solved
  4. the v:original is not very practical because videos are too big and you can’t relay on user’s PC to have a player, therefor I will ask you to do flv player in the next bid, and for now just ask for v:large. - solved

bug status : closed

(new bid V2) style 13: video link to an flv file (v:flv_lowres)

Friday, July 25th, 2008

when clicking a video , it should open a flash based video player and play the flv file (v:flv_lowres)

for flash player use the one that the cincopa widget application is using (http://www.jeroenwijering.com/?item=JW_Media_Player)

[cincopa 13 10461656.2822.afps2scjxnuv4lw2ek00rkdvdd]

done but I get a 2048 error, and I searched the web and found that:

Error: 2048 Security sandbox violation: _ cannot load data from _.

Means your domains for the movie and the data are not an EXACT match.

How do you use videos and pics from ifunpix into ronica.net?

status : solved, please read the comment

(new bid V2) plugin should work in comments

Friday, July 25th, 2008

status : closed