BlogHarbor Home Page
FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  UsergroupsRSS   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Modifying the attachments icon
 
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Beginner's Lounge
View previous topic :: View next topic  
Author Message
ojedapaco



Joined: 03 Mar 2005
Posts: 20

PostPosted: Thu Apr 21, 2005 1:02 pm    Post subject: Modifying the attachments icon Reply with quote

Hola John,

In looking at my articles, I wonder if the "Attachments" text along with the paper clip at the bottom of each article are getting lost. As you know, I'm doing podcasts, so it's important for me that my readers (listeners) can read an article and quickly find where to go to get the actual mp3 file. Several thoughts come to mind...

1. I could easily create a "click here to download" GIF and remember to include it in the body of every message that has a podcast mp3 attachment. Of course, it's an extra step for me.

2. I could modify the article template (with your guidance, please...) and change the paper clip and the word "Attachments" for something more prominent and colorful.

Is there a link to an article that might guide me in changing this specific aspect of the article template?

As always, thanks in advance for your help!

Paco
_________________
Paco Ojeda

The VU: Vallarta Undiscovered
Puerto Vallarta's First Podcast
www.vallartaundiscovered.com

Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Thu Apr 21, 2005 10:47 pm    Post subject: Re: Modifying the attachments icon Reply with quote

I could modify the article template (with your guidance, please...) and change the paper clip and the word "Attachments" for something more prominent and colorful.

Yes, you could do that, and it is probably the way we would go about it.

Keep in mind that there are two places you would need to change. Since you can only download an attachment file from a permanent link, not when browsing in category view, you would need to update 2 templates, the category and article templates. (In category view, the attachment icon links you to the attachment area on the permanent link. It is not possible to download an attachment in category view.)

We discussed modifying the category template in a previous discussion here, where you noted that you went on to modify the "more" link when for articles with excerpts to use your own text, changing it to read "Click here to read more." A good change, trading brevity for clarity.

Follow the same steps shown on that post for accessing the category template and look for this text in your template:

Code:
<!-- ATTACHMENTS -->
{{if num_attachments}}
<div style="margin-bottom:8px;"><a href="{{view_url}}#attachments"><img src="/_images/paperclip.gif" width="15" height="15" border="0"></a> <strong>{{num_attachments}} Attachment{{unless num_attachments eq "1"}}s{{/unless}}</strong></div>
{{/if}}
<!-- END ATTACHMENTS -->


Change the icon used on that page by changing this part /_images/paperclip.gif to the path of an image on your server. Don't forget to change the size attributes as well. So if there was a new icon called newAttachmentIcon.gif with dimensions of 20 x 20 that you uploaded to your File Manager in a directory you called newIcons, you would change the code above to:

Code:
<!-- ATTACHMENTS -->
{{if num_attachments}}
<div style="margin-bottom:8px;"><a href="{{view_url}}#attachments"><img src="/newIcons/newAttachmentIcon.gif" width="20" height="20" border="0"></a> <strong>{{num_attachments}} Attachment{{unless num_attachments eq "1"}}s{{/unless}}</strong></div>
{{/if}}
<!-- END ATTACHMENTS -->


That should get you started in seeing how you can modify that part of the page, then you would probably want to modify the article template in a similar fashion... Let us know how it goes and how far you get with these instructions and we'll be glad to help further if need be.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Search all BlogHarbor support resources.
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> Beginner's Lounge All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum