Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  Where are images stored?
Previous Previous
 
Next Next
New Post 10/7/2008 12:22 PM
User is offline isnoface
31 posts
10th Ranked


Re: Where are images stored? 

This is the code in the template.html for the thumbnail.

<A HREF="[IMAGE]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>

 
New Post 10/7/2008 12:23 PM
User is offline isnoface
31 posts
10th Ranked


Re: Where are images stored? 

Yup, all users have access to downloads.

 
New Post 10/7/2008 12:28 PM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Where are images stored? 

ok, that's the problem... the A HREF is wrapping the thumbnail and preventing the download logic from firing...

change the entire text from...

<A HREF="[IMAGE]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>

to ...

[IMAGE]

if you want the image to trigger a download, you can't use the A HREF or IMG SRC tags, as that will just display a image. By simply using the [IMAGE] token and setting the XML DOWNLOAD setting to true, the module will replace the [IMAGE] token with an ImageButton, and then clicking on the image will trigger the download logic.


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 10/7/2008 2:47 PM
User is offline isnoface
31 posts
10th Ranked


Re: Where are images stored? 

Ok, i made that change. Now do i change change the

 <Object>
  <Token>[DOWNLOAD]</Token>
 </Object>

or the

 <Object>
  <Token>[IMAGE]</Token>
 </Object>

and what do i change it to. I tried everything I can think of and nothing worked.

 
New Post 10/8/2008 6:45 AM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Where are images stored? 
Modified By Steve Fabian  on 10/8/2008 8:46:36 AM)

template.html :  change the TD tag that contains the thumbnail to look like this...

 

<td width="100" class="Normal" align="center" valign="top" style="padding-left: 6px; padding-right: 6px;">
    [IMAGE]<br />
</td>

 

template.xml : change the IMAGE token to look like this...

 

<Object>
   <Token>[IMAGE]</Token>
      <Settings>
        <Setting>
         <Name>DOWNLOAD</Name>
         <Value>true</Value>
        </Setting>
        <Setting>
         <Name>Width</Name>
         <Value>100</Value>
        </Setting>
      </Settings>
</Object>

You can change the width value (the numbers is red) in both files to control the size of the image.


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  Where are images stored?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com
ADefWebserver.com
DotNetNuke® Module Development Help Website
ADefWebserver.com
Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP