The MU forums have moved to

Same theme show different header image (2 posts)

  1. puneetworld
    Posted 18 years ago #

    I am not sure how to go about doing this…

    Well I wish to let user upload a header image probably named can say “header.jpg� and that would be used and shown in the default kubrick theme

    Well one think I can think of is to change the Path of img src for header in the default theme so that it point to a file in the file folder of that particular user…

    So if its then header img src = path_upload_of_user1/files/header.jpg�
    If then it should recognize which user it is and check for the “header file in that “

    I know when uploaded files get save in files folder and name 1,2,3 etc for any blog… anyone has any idea if this can be implemented ?

    I don’t know how to go about doing it… ? because there mod rewrite stuff etc and many thing which seem complicated I don’t know much about technical issue thus now aware

    Could anyone suggest few thing

  2. jaseone
    Posted 18 years ago #

    I plan to do this myself but I am using the vhosts, are you using vhosts or subdirectories?

    I think vhost's would be easier to implement it with, you basically have to have your user upload a file with a set name header.jpg for example, then use some code in the header to check to see if the image exists if it does then use it otherwise use the default theme image.

    You'll have to delve into the code a bit to get what you need but I think there should be WP functions to accomplish most of it.

    Once I have a look myself I'll give you some pointers, not sure when that will be though as at the moment I'm staying with some of my girlfriend's family after evacuating Houston away from Hurricane Rita.

About this Topic

  • Started 18 years ago by puneetworld
  • Latest reply from jaseone