The DAM Forum
Welcome, Guest. Please login or register.
June 17, 2013, 09:48:01 PM

Login with username, password and session length
Search:     Advanced search
Jan 9, 2012
John Beardsworth's new Lightroom site
Lightroom Solutions
27967 Posts in 5116 Topics by 2914 Members
Latest Member: imthedamstar
* Home Help Search Login Register
+  The DAM Forum
|-+  Software Discussions
| |-+  iView MediaPro
| | |-+  Modified HTML Theme - I'm trying to add a copyright deterrent to the Media tag.
« previous next »
Pages: [1] Print
Author Topic: Modified HTML Theme - I'm trying to add a copyright deterrent to the Media tag.  (Read 991 times)
MarkP
Newbie
*
Posts: 12


View Profile
« on: August 27, 2006, 06:45:37 PM »

Hiya,

I tried to find the answer to this question in the scripting forum on the iView website, but the info there was
either fairly basic or way over my head. I also am unable to locate my login info there and can't post at this time.

 I'm trying to make an important security modification to an HTML webpage theme  that I have adapted and I'm
hoping that this forum is a good place to ask.


The (iView:Media) tag generates the following HTML code:
<img src="image/imagename" alt="imagename" border="0" width="xxx" height'="xxx" />


I would like to add the following attributes:

<img src="image/imagename" alt="imagename" border="0" width="xxx" height'="xxx"
name="b29" onmousedown="mouseDownCopyright()" />



This javascript function displays a dropdown notice regarding the image being copyrighted
(and thereby limiting some degree of inadvertant theft).

I have not yet been able to successfully create a Theme Field variable, but from the documentation
that I've absorbed that appears to only modify data OUTSIDE of iView-tag generated data. anyway
(unless I'm wrong....).

Any thoughts on how else I can do this? Is there a way to make a 'wrapper' that will create the
onmousedown alert so that I'm not up against this apparent limitation to the variable tag structure?

Thanks

Markp
Logged
johnbeardy
Administrator
Hero Member
*****
Posts: 1813


View Profile WWW
« Reply #1 on: August 27, 2006, 11:08:39 PM »

Mark

Put (iView:MediaURL) in the src property. You'll figure out the rest.

Theme fields are pretty easy - they allow you to add extra information that's variable at run time eg a web link to your home page.

John
Logged
MarkP
Newbie
*
Posts: 12


View Profile
« Reply #2 on: August 28, 2006, 12:44:06 AM »



John!

Thanks so much for responding.

Your comment gives me great hope that it's possible, but my problem with coding, as always, is that without
a fairly literal code example I'm lost. My current difficulty with Theme fields is that there is a brief, one paragraph
reference in the document to two pieces of code that need to be created, but no specific directions or code
examples as to where they go in the file structure. There is one page with a lame little example of customizing
the html, and the rest is either something you already know, or don't need to worry about  Tongue.

Such is the case with your reference to the ( iView:MediaURL) tag. To underscore my frustration with the
lack of depth to the documentation for what is obviously a very robust application - I did a string search for
"iView:MediaURL" (which I do remember seeing in an attribute list) in the PDF Manual, it returned exactly
ZERO results.

I don't want to ask anyone to do my work for me, but I have rtfm....such as it is. Lots of useful buttons and
dials, but not much about what's 'under the hood', er... 'bonnet'.

I don't understand where the tag goes, or what definition it points to. I've also put in a request for iView
Tech Support, but it's difficult for a 'code-baby'(trademark) to decifer this stuff from text.

Is there any available reference where I can get a bit more of a clue as to how to implement the tag that you've
indicated?

I don't know how you Gurus figure this stuff out....

syntax, syntax, syntax
Rant Over,

Thanks John,

Mark
Logged
johnbeardy
Administrator
Hero Member
*****
Posts: 1813


View Profile WWW
« Reply #3 on: August 28, 2006, 12:47:28 AM »

Mark

Have you searched in the HTML Galleries pdf?

Here's something I cut from one of my templates:

Code:
<a href="(iView:GoNext)" class="thumb"><img src="(iView:MediaURL)" alt="(iView:Caption)" width="(iView:Width)" height="(iView:Height)" hspace="2" vspace="2" border="0" class="thumb"></a>

John
Logged
MarkP
Newbie
*
Posts: 12


View Profile
« Reply #4 on: August 28, 2006, 10:26:27 PM »


Yikes!

Uh,..I knew I'd seen that attribute list somewhere.
(I lost track of the HTML guide).

This is why rants are Always a bad idea.

I've got it now.

Thanks again John!

Mark

Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!