Forum | Incorporating a default thumbnail

You must be logged in to post Login

Incorporating a default thumbnail

UserPost

2:26 pm
March 6, 2010


Greg Wilcox

Member

posts 15

Simple problem here. It's just for articles that are without a picture. It looks better if they have a default thumbnail. The thing is that it gets old uploading the default thumbnail everytime off the media library, or having to back-track on it to locate where it was previously uploaded. What is the best way to do this? Would uploading a default thumbnail to an FTP site and linking it there with the same address be a better option?

7:22 pm
March 7, 2010


Daniel Bachhuber

Admin

posts 102

Probably the best thing to do would be to have the theme display the thumbnail if there wasn't an image associated with the post. There are two advantages to this: you can have the sample thumbnail display by default, which wouldn't require any additional work, and you can change the default thumbnail for all of the posts in one go if you need to.

If you can find the code for displaying the image in your templates, I can show you how you might modify it.

8:46 pm
March 8, 2010


Greg Wilcox

Member

posts 15

Is it under thumb.php? Also, if its easier for you to discuss this in the google group we can do that, but whatever works best.

9:37 pm
March 8, 2010


Daniel Bachhuber

Admin

posts 102

If you're referring to the thumbnails on your homepage, then it's going to be in home.php (or includes/default.php). If you want to do this for the category pages as well, it'll be in category.php as well. You're welcome to continue the conversation here or we can go to the Google Group


About the CoPress forum

Most Users Ever Online:

119


Currently Online:

5 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 107

Posts: 538

Membership:

There are 151 Members

There have been 2 Guests

There are 5 Admins

There is 1 Moderator

Top Posters:

Chris Ullyott – 66

Mo Jangda – 35

arobinsonwku – 32

laurenmichell – 21

CMLife – 16

sbressler – 15

Administrators: Daniel Bachhuber (102 Posts), William P. Davis (65 Posts), joey (39 Posts), Greg Linch (14 Posts), adam (1 Post)

Moderators: Andrew Spittle (49 Posts)