Go Back   CodingForums.com > Web Projects and Services Marketplace > Web Projects > Small projects (quick fixes and changes)

Notices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-29-2008, 06:53 PM   PM User | #1
canadianjameson
Senior Coder

 
Join Date: Jul 2003
Location: My pimped-out igloo in Canadia
Posts: 1,966
Thanks: 36
Thanked 0 Times in 0 Posts
canadianjameson is an unknown quantity at this point
Unhappy Help modifying an existing PHP-based background script

1) Project Details:
I am creating a website for a friend's bakery and I have run into a snag, one which has me flailing my appendages wildly and I have neither the time nor patience to deal with anymore... that being said I'm sure it's something that one of you brilliant individuals could fix in the span of an hour or two.

Alright, I'm using Wordpress (WP is a PHP-based GUI) so that the owner of the bakery can easily edit the content (text and such) of the page from her computer without knowing any code. We have selected a theme based on her primary wish, which is to have a unique background on every page (something that apparently isn't common in WP. The theme can be seen here: http://francais.gryphondor.com/ and it's homepage is http://windyroad.org/software/wordpr...-little-theme/

I suppose the best thing I can do is list the things I want to be able to do, and then list why I can't seem to do them.
What I want to do / have
  • looking at www.gryphondor.com you'll see that the links at the top have words, and are set on a transparent background. This is the setup that I want
  • When a link is clicked, I want both the page to display the proper information AND change the background to the associated one.

Why I can't seem to do it
  • The script is over-complicated for what I need it to do... well that and I'm a terrible coder (don't be fooled by my post count - I ask a lot of questions )
  • More specifically: The script is designed in such a way that it requires that the thumbnailed image and the background wallpaper be of the same name (not a problem), that they be in specified directories (also not a problem), and that they be .jpg's (problem)
    • .jpg's don't support transparency... and this poses visual problems. I need to have the script not take into account the file extension when matching the thumbnail and wallpaper
    • also of annoyance is how the script decides to order the displayed thumbnails - I wish I had more control - right now I think it's alphabetical but i'm not sure
  • Secondly: as the script is now (and this makes NO sense to me at all), the thumbnails which are displayed cannot be used as links - their sole function is to switch the background image. As previously stated I need the link to function as both the trigger for the background image switch, and to open the associated page.

If you can help me sort it out so that I can do the aforementioned, I would be eternally grateful.

2) Payment Amount: 50$ - negotiable, but let me preface this: I'm offering to pay because this is somewhat more involved than your average query... which I would post on the forums. That being said, I'm making this web page for free (well, I get free snacks ). I'm actually going to be taking a hit on this, and as a student I'm not made of money :\ This isn't a question of me short-changing you on payment and them turning around and charging 750$ for the site.

3) Payment method/ details (Paypal, check? Timeline?): Check or paypal, and immediately after the site (or this aspect) is functional

4) Additional Info (about project or potential bidders): I've been helped a lot in the past by several members on the site - so if any of you care to bid you have first shot... that being said I don't know who's still around so by all means bid if you don't know me
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

Last edited by canadianjameson; 10-31-2008 at 04:35 PM..
canadianjameson is offline   Reply With Quote
Old 10-30-2008, 12:09 PM   PM User | #2
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,358
Thanks: 3
Thanked 458 Times in 445 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
My first thought is, why not do it all on one page?
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote
Old 10-31-2008, 12:37 PM   PM User | #3
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,358
Thanks: 3
Thanked 458 Times in 445 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
Ok I am having a look at this,

but I am not sure about the requirement.

While you explain the existing script, as you say it makes little sence.

Yoy have a function bg_swap(whatLink) which could set a cookie but at the moment it it changes the current background.

however it then links to the linked page after 1 second(which may not be enough for the image to load).

what is the cookie for?

to change the background of the linked page to that selected in the function?

if so, there are better ways of doing this.

Please explain the requirement, not the existing code.

bTW images b,c,d,e do not exist
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote
Old 10-31-2008, 01:29 PM   PM User | #4
tagnu
Regular Coder

 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 348
Thanks: 26
Thanked 40 Times in 39 Posts
tagnu will become famous soon enough
Hi,

I believe I've found a solution using PHP and have PMd the OP.

regards


Quote:
Originally Posted by vwphillips View Post
Ok I am having a look at this,

but I am not sure about the requirement.

While you explain the existing script, as you say it makes little sence.

Yoy have a function bg_swap(whatLink) which could set a cookie but at the moment it it changes the current background.
__________________
Blog Charity:Water
WhatisWrongWith.me/tagnu - Send me anonymous feedback.
tagnu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:36 AM.


Advertisement
Log in to turn off these ads.