We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Two problems - Photo | Forum

MRK
MRK Aug 9 '14
1. When Photo plugin is active, java on my oxwall site freezes and you can do nothing. Plugin doesn't work properly: when you click "Add photo" (on sidebar), opens new, blank windows. (But I can add video, url, post etc.)


Look at the code:

<a class="ow_add_content ow_ic_picture" href="javascript:addNewPhoto53e680a211657()">Add photo</a>


Where are two slashes?


2. When photo widget is enabled, I can add photo from widget, but there is error in debugger:

[Error] Failed to load resource: URL (javascript:void(0), line 0)


Code (under the widget)  looks different: 

<a onclick="addNewPhoto53e680d32abce()" href="javascript://">Add</a>


3. Adding photos from Photo page works correctly.  


I reinstalled plugin, cleared cache, but nothing helps.

Please, help!

Kelvin
Kelvin Aug 10 '14
I have a same problem to upload photo when I click upload photo the javascript function doesn't work. It shows white line and freeze. can not pup up the upload app. Can you guys just fix it ? Please if I go to one of photo albums then click upload photo, that can pup up upload app. but if you are out side of album or at [Explore] screen, it can not show upload app when I click [upload photos] button.
MRK
MRK Aug 10 '14
I've found demo site: https://www.softaculous.com/demos/Oxwall – this same problem…


MRK
MRK Aug 10 '14
Quote from Kelvin I have a same problem

This is not the best solution, but…

1. Open ow_plugins/photo/event_handler.php

2. Go to line 726

3. Change

            BASE_CMP_AddNewContent::DATA_KEY_URL => 'javascript:' . $url . '()',

to

            BASE_CMP_AddNewContent::DATA_KEY_URL => 'javascript://" onclick=' . $url . '() "',


Save, activate plugin. Works.


Kelvin
Kelvin Aug 10 '14

Quote from MRK
Quote from Kelvin I have a same problem

This is not the best solution, but…

1. Open ow_plugins/photo/event_handler.php

2. Go to line 726

3. Change

            BASE_CMP_AddNewContent::DATA_KEY_URL => 'javascript:' . $url . '()',

to

            BASE_CMP_AddNewContent::DATA_KEY_URL => 'javascript://" onclick=' . $url . '() "',


Save, activate plugin. Works.


Mine still not working :(
MRK
MRK Aug 10 '14
Kelvin, clear cache or send me on PM your site url.
The Forum post is edited by MRK Aug 10 '14
Oxwall Software
Oxwall Software Aug 12 '14
Kelvin or MRK, can you please revert your changes in the plugin and PM me your admin and FTP access details, we will try to assist you with your issue. Thanks.
You do not have permission to reply this topic