Forum | Myduhawk.com

You must be logged in to post Login

Myduhawk.com

UserPost

3:49 pm
August 26, 2009


danielrandolph

Member

posts 4

This is my first post here but I have developed two wordpress based college sites for our newspaper and television station, and now we are converging our newsroom into one, with a shared website and two seperate products. The new site is myduhawk.com and I am about half way done in development. I am trying to develop a custom js slideshow for the top stories. I have the slideshow developed but I am trying to work with custom fields to load a custom css file for different slideshow layouts like this:

This first layout is for a full page photo with a caption underneith.

The second layout is fora video with a caption at the side linking to the print story.

The third layout is for a story that has a photo, a print story,and a video.The little box would be a link to the video with a thumbnail image.

I am not to familiar with custom fields but I feel like it would include building 3 seperate stylesheets.


My second question involves having a feature to easily add sports scores to a wordpress site. Andrew Spittle has a feature like this on his new Whitman Pioneer site, maybe he could weigh in on that.


Thanks in advance for all the advice. The site is live right now if you want to watch as I finish developing it.

11:16 pm
August 26, 2009


Andrew Spittle

Walla Walla, WA

Moderator

posts 49

I'm excited to see what you're doing Daniel, I think converging student media into one site is a great idea. To answer the question about Sports scores, that's actually a bit of WP trickery that I worked. Essentially each score is entered as a post in WordPress (they're categorized under a sub-category to Sports). I then pull the headline (i.e. the score) from a custom field and link it to the post. This provides not only a way to create a scoreboard but it allows for a bit more info to be put into the post box about the game. I hope that makes sense. If not, I could send along some code in a week or so that'd better explain it.

To style the slideshow how you want you wouldn't need to do three separate stylesheets. By using a <?php if () ?> statement you could custom style that box depending on what category or metadata the post is in/has. For instance, on my personal blog the icons that appear next to each headline differ depending on what category the post is in. Again, if you need to see some code to better understand what I mean let me know and I can send some along.

Andrew – andrew@copress.org – CoPress Hosting Director – http://www.andrewspittle.net


About the CoPress forum

Most Users Ever Online:

119


Currently Online:

7 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)