Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: General: Feature/Product Suggestions:
AM: Requesting a new Image Placeholder

 

 


jcocking
User

Oct 17, 2003, 7:19 AM

Post #1 of 7 (3126 views)
Shortcut
AM: Requesting a new Image Placeholder Can't Post

Can we get a new image placeholder? I would like a $img_file$. This would return only the file name of the image: image.jpg or image.gif.

thanks

jeff
Jeff Cocking
Lotus Elan (AM 1.38)
VoIP Phone Comparisons (AM 2.02)


Cliff
Staff


Oct 17, 2003, 1:34 PM

Post #2 of 7 (3118 views)
Shortcut
Re: [jcocking] AM: Requesting a new Image Placeholder [In reply to] Can't Post

Hi Jeff,

Thanks for posting.

If you did have placeholder like that, how would you use it on your site? I'm just trying to figure out where or when you would use a tag like that. There may already be a workaround for what you are trying to accomplish.

Any more details would be great. Thanks Jeff Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


jcocking
User

Oct 17, 2003, 2:16 PM

Post #3 of 7 (3117 views)
Shortcut
Re: [jcocking] AM: Requesting a new Image Placeholder [In reply to] Can't Post

I use a php program to dynamically build thumbnail images for my website. I am looking at upgrading to a new program that dynamically builds the image once and stores them in a cache library. This program requires that I pass it a file name only.

jeff
Jeff Cocking
Lotus Elan (AM 1.38)
VoIP Phone Comparisons (AM 2.02)


Theo
Project Manager / Moderator


Oct 17, 2003, 5:28 PM

Post #4 of 7 (3110 views)
Shortcut
Re: [jcocking] AM: Requesting a new Image Placeholder [In reply to] Can't Post

Is it possible to use a bit of PHP or even javascript to parse out the image name from the regular placeholder - and could this be done before handing the filename off to the program?

In the Article edit interface there is a suffix for the image placeholder that spits out the image URL only (i.e. ***image1:url***) that should be much easier to parse than an entire image templatecell.


Theo Wiersma
Project Manager


disciple
New User

Dec 29, 2003, 8:25 AM

Post #5 of 7 (2980 views)
Shortcut
Re: [Theo] AM: Requesting a new Image Placeholder [In reply to] Can't Post

If you like to code everything in PHP like me, AM does a fine job in setting up the variables for PHP to parse what info it needs. To get the page name that you want, try the following code sample in your template: (note that the image placeholder will get replaced by the actual URL when you publish the page.)


Code
  

<?PHP

$url = '***image1:url***';

$url_array = parse_url($url);

echo $url_array['path'];

?>



This will return 'showpage.php' from 'www.yoursite.com/showpage.php'

Hope you find this useful! -disciple


Donna
Staff / Moderator


Dec 29, 2003, 10:15 AM

Post #6 of 7 (2975 views)
Shortcut
Re: [disciple] AM: Requesting a new Image Placeholder [In reply to] Can't Post

Thanks for that suggestion, disciple! :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


jcocking
User

Dec 31, 2003, 7:33 AM

Post #7 of 7 (2967 views)
Shortcut
Re: [disciple] AM: Requesting a new Image Placeholder [In reply to] Can't Post

Thank you for the code snippet. It was the final piece to the puzzle.

Now I have an automated thumbnail system. The php code grabs an image request and creates the thumbnail image. It then stores the image in a cache directory. The next time the image is needed, the code pulls it out of the cache directory. One modification to the article template and placing the code in the uploads directory. The rest occurs automatically as new pages are added. I love systems that require no additional work from the editors.

One more item marked off the to do list.

jeff
Jeff Cocking
Lotus Elan (AM 1.38)
VoIP Phone Comparisons (AM 2.02)

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4