close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

IRite 103 PHP Connector

Thread began 10/13/2009 12:34 am by info271221 | Last modified 10/21/2009 9:29 am by Ray Borduin | 3387 views | 12 replies |

info271221

IRite 103 PHP Connector

I have tried to get the path right by changing it checking the forum, help docs.. and still cannot get it right and now I am losing ground as it will not link images when I insert the path.
That was working and now is not.

Here is the code from the connector - I have also attached the files.

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
// authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = true ;

// Path to user files relative to the document root.
$Config['UserFilesPath'] = 'userfiles/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['http://www.myDomain.ws034.alentus.com/upload/'] = '' ;

It is now adding double quotes around the url - example
"http://www.myDomain.ws034.alentus.com/Upload/RoyalAlbertLea_barrel350_1.jpg"
"" is entered for the alt text and "" is appears in the image field.

When I try to upload I get this:
Error creating folder "D:\Websites\www.myDomainuserfiles/" (mkdir() [<a href='plugins/function.mkdir'>function.mkdir</a>]: File exists)

I am working on the update file member_measurer/member_directory_update.php
I will also have to include on the insert and the members/members_directory_profile.php

I noticed on the FCKeditor site that you can create an include file for the text editor.
That sure seems like the way to go so you only have one file to edit / make changes on...
Does that work well?

Thanks!



Thank You!

Sign in to reply to this post

olle189996

Hi
You should do it something like this.
// Path to user files relative to the document root.
$Config['UserFilesPath'] = 'http://www.olle.se/userfiles/' ;

// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/home/olle/domains/olle.se/public_html/userfiles' ;

The $Config['UserFilesAbsolutePath'] is the absolute path on the webserver.
You can get it by a
<?PHP
phpinfo();
?>

Regards
olle

Sign in to reply to this post

info271221

That did it! Thanks!

Great tool!

Sign in to reply to this post

info271221

OOPS The photos still do not upload

The tool works, but it still will not upload photos. it is stuck in the image properties with the dots moving.

Sign in to reply to this post

Ray BorduinWebAssist

Do you have a URL where I can view the problem? File upload isn't officially supported in this version, but we will be coming out with a new version where we will support file upload and even some advanced image editing options... anyway I may be able to help if I can test it somewhere.

Sign in to reply to this post
Did this help? Tips are appreciated...

info271221

Irite Image Upload

Yes, member_directory_LogIn.php
user and password waTest will take you to the profile page.

If I enter a url in the image it add "" in front of the image, and it appears to a new set of "" each time I edit.

""""http://www.communityhotline.com/images/banners_ours/hunt_fish98x64_2.png""""
is the properties of the image that has been in the listing.

"http://www.communityhotline.com/images/banners_ours/JJDesignDevMarket234x68.jpg" is an image I just entered.

It also does the same " additions to the alt text.

Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

We worked through this over the phone..

You needed to remove the string replace function that was adding the doubled quotes from the initial value to solve the extra quotes issue.

You also had syntax problems with missing semicolons and bad syntax for the UserFilesAbsolutePath... and you didn't have your permissions set properly.

Once those issues are resolved it should function properly.

Sign in to reply to this post
Did this help? Tips are appreciated...

info271221

Image Upload on Browse Server works, but not under Upload

Okay, so today I started adding another iRite to a different website and tried uploading an image under the Upload tab and can not get it to work.

It has about the same error message as the above errors; however we got it working one way and did not want to mess things up by making changes.

So one this page: member_directory_Profile.php (I'll zip a file with details.)

Thank you,

Jolene

Sign in to reply to this post

Ray BorduinWebAssist

What is the exact error message?

Sign in to reply to this post
Did this help? Tips are appreciated...

info271221

Error Message

Error Creating folder: 'd:/websites/www.myDomain.org/userfiles/' (mkdir....) File exists.

It's creating the error from this:

$Config['UserFilesAbsolutePath'] = 'd:/websites/www.myDomain.org/userfiles/' ;

on the config file; however I'm not sure what I should put there.

Did you get my attachments???

Thank you!

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...