close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Changing default path for images

Thread began 11/29/2009 4:07 pm by andy.schofield283961 | Last modified 11/30/2009 2:40 pm by Justin Nemeth | 2094 views | 6 replies |

andy.schofield283961

Changing default path for images

Hi,

I have amended the uploads and all management of photos from

"/images/" + GalleryID + "/" + Photos

to "/images/" + UserID + "/" + GalleryID + "/" + Photos.

All the admin pages work fine and now i can have multiple users creating their own galleries.

Problem is all the previews dont work, sorry very new to php and cannot find where to amend the root to include the new session variable for the UserID.

Can someone please help!

Sign in to reply to this post

Justin Nemeth

Open the mediarss.php file and on line 31 added in your UserID variable. I think that will fix it.

-justin

Sign in to reply to this post

andy.schofield283961

Much better

Thanks for that, I have made several changes but all based off your direction.

Everything appears to work now, apart from the image on the popup under manageimages.php

The popup works and functions as directed but does not show the image, the standard line is this:

<img id="rotate-image" alt="Checking" src="" />

But cannot figure out how to update this to include the images with changes I have made.

Can you please help with this.

Sign in to reply to this post

Justin Nemeth

Open the admin/common/imageinfo.php file and change line 25 to be $info = array('"user_id":"' . [UserID] . '"'); replacing [UserID] with your PHP code.

Then open admin/js/manageimages.js and on line 215, add + '/' + image.user_id after where it says image.gallery_id

Give that a try and see if it works. Essentially you are adding a new javascript variable so the image path can be set correctly.

-justin

Sign in to reply to this post

andy.schofield283961

Nearly there..

Justin,

Your a star, worked like a dream. Looks almost back to normal now.

Slight issue is that when updating the image Title and Description the header image isnt being shown.

<div id="manage" <?php echo mysql_num_rows($result_images) <= 0 ? 'style="display:none"' : '' ?>>
<div class="edit">
<h2><img src="images/noimages_62c.png" alt="test" width="42" height="42" id="edit_image" />Image <span id="edit_number">1</span> Info</h2>


Is this as small a change to make this in sync!

Thanks again,

Andy

Sign in to reply to this post

andy.schofield283961

Scratch that!

Justin,

All sorted. Thanks for the help.

Changed all references in the js file and now it works like a charm.

Thanks so much.

Andy

Sign in to reply to this post

Justin Nemeth

Yeah, pretty much the same change. Open admin/js/manageimages.js and on line 86, add + '/' + image.user_id after where it says image.gallery_id

-justin

Sign in to reply to this post

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...