Home
TeamSite
Anonymous Log In
ScrodMan
Hello.
I want to make my mediabin website available to the public to browse. In order to do this, I have modifed the Default.asp login page to immediately make the call to log in and use a username and password that I have set up for an account that has list access only (no download, check in/out, etc).
Our intention is to add an e-commerce section to the site that will allow the user to purchase images. Here's what I've done:
Created login account with list access only.
Added a metadata field called "Price" to all images and gave it a floating point value with two decimal places.
I need help with a couple of items please.
1) Can you help me figure out how to modify the Items-Display.asp or appropriate file so that I can write a for loop that will add up all the prices of the images in the shopping cart? Obviously the algorithm is to loop through the items in the shopping cart and retrieve the price metadata, however I am confused what to modify. I also came across the use of GUIDs and I don't how to find or make the GUID that represents the Price metadata column I created.
2) Because I made the Default.asp page to always log in under the username "MediabinTest" with password "password" when ever the page is loaded, I now have a problem with user defined settings. For example, if I log in with this account and change the gallery view thumbnails to 512x512, and then log in with this account again concurrently with another computer and change the thumnbails to smaller ones, then both sessions will reflect the most recent change in thumbnail size. This is bad since we may have up to 20 different users logged into a session with this account and they all need to maintain their changes. Can anyone help with this?
3) Can I eliminate the ability to choose the metadata group listing "** All Metadata **" or can I at least customize this list by removing all the default data? I want a clean metadata listing so I made a new group called, "Simplified Description" and chose only the fields I want displayed. If I can't turn off the "All Metadata" option, then can I at least make the "Simplified Description" group the default group that is shown initially for all the accounts that have access to this website?
4) Can someone help me figure out how to direct the website to go to a different page other than Default.asp after logging out ?
That's enough questions for now... :-)
I appreciate any help anyone can provide.
Thank you
Find more posts tagged with
Comments
Migrateduser
Some suggestions to your questions:
1. Can you help me figure out how to modify the Items-Display.asp or appropriate file so that I can write a for loop that will add up all the prices of the images in the shopping cart?
---> You would most likely want to do that in items.asp. There is a session variable that contains identifiers for all assets in the current shopping cart (Session("CART_ITEMS").
I also came across the use of GUIDs and I don't how to find or make the GUID that represents the Price metadata column I created.
---> GUIDs are used as unique identifiers for all MediaBin objects (assets, folders, metadata definitions, etc.). The pseudo identifier for the displayed container when displaying the contents of the shopping cart is {cart}. You can determine the GUIDs of metadata by running the following script. Modify the logon credentials appropriately for your system:
dim Session
set Session = CreateObject("MBPScriptModel.MBSession")
' an optional port number can be specified as the last parameter
' to the Logon method - its default value is 32456
Session.Logon "server", "domain", "userid", "password"
dim objMDDef
for each objMDDef in Session.MetaDataDefinitions
WScript.Echo "Name: " & objMDDef.Name & ", ID: " & objMDDef.Identifier
next
Session.Logoff
Because I made the Default.asp page to always log in under the username "MediabinTest" with password "password" when ever the page is loaded, I now have a problem with user defined settings. For example, if I log in with this account and change the gallery view thumbnails to 512x512, and then log in with this account again concurrently with another computer and change the thumnbails to smaller ones, then both sessions will reflect the most recent change in thumbnail size. This is bad since we may have up to 20 different users logged into a session with this account and they all need to maintain their changes. Can anyone help with this?
---> We support unique user profiles for individual users that are using the same logon credentials. The only catch here is that we use a cookie to store a unique handle that identifies that user's profile. Obviously, a user would not see his preferences in effect if he logs on from different PCs. To activate this feature, you will need version 4.5 or higher. In global.asa, you will see the following: Application("PREFERENCE_PER_PC") = Array("<domain>\<account>")
Enter the domain and account name for each account that is shared among multiple users.
Can I eliminate the ability to choose the metadata group listing "** All Metadata **" or can I at least customize this list by removing all the default data? I want a clean metadata listing so I made a new group called, "Simplified Description" and chose only the fields I want displayed. If I can't turn off the "All Metadata" option, then can I at least make the "Simplified Description" group the default group that is shown initially for all the accounts that have access to this website?
---> If you want to eliminate All Metadata you will need to modify code in ImageInfo-Details.asp. Look at the "else case attributes" section of code. It would be much easier to just make your new metadata group the default. You can do that by editing the user profile xml files. It sounds like you are still in development, so you can just modify Default-Settings.xml in the saved\UserData folder. If you take a look at the code in the attributes section, you'll see the keys that you'll need to use. I believe you'll need to know the GUID of your group (you can see GUIDs for groups using the script referenced earlier but substituting MetaDataGroups for MetaDataDefinitions).
Can someone help me figure out how to direct the website to go to a different page other than Default.asp after logging out ?
---> Try changing the REDIRECT statement in logout.asp.
Migrateduser
I thought I should also warn you about making your own customizations. Most customers contract with our Customer Service Organization (CSO) to hire our staff to implement customizations. That way, we will support your customized code base. However, if you make your own customizations, obviously, we will not be able to fully support your code. If you go this route, we recommend that you always keep a baseline version of the MediaBin web client installed along-side your customized version. If problems arise, you can easily determine if they are also in the baseline version or unique to your customized code.
ScrodMan
Thank you for all your detailed help. I am so impressed with the support I have been receiving from this website. I am now going to consider the three options you have given me.
I had no idea that I could hire your Customer Service Organization (CSO) staff to implement these things. I will browse your website for more information.
Thanks a lot.