The MU forums have moved to WordPress.org

user header image (17 posts)

  1. yli
    Member
    Posted 18 years ago #

    hello,
    i want to users can put own pictures in the header of the blog. exist this posibility? some plugin?

  2. stutley
    Member
    Posted 18 years ago #

    It wouldn't make too much sense to make a plugin with that function since most themes are very different. As I see it, the best solution would be to write a custom plugin for the functions.php file of each theme.

  3. drmike
    Member
    Posted 18 years ago #

    Is it me or are folks afraid to write their own code around here? *sigh*

  4. reyz
    Member
    Posted 18 years ago #

    not all mu users are developers experienced in php drmike. I have a degree in CS and have worked with php for over 5 years, and the wordpress codebase is daunting in size and scope. it's difficult for a beginner to just jump in and 'write their own code'.

  5. matrixmonkey
    Member
    Posted 18 years ago #

    *code* AGGHHHH *runs off and hides*

    na only joking
    the thing your looking for isn't this but...
    but there is a plugin to replace words/headlines with images in blog posts
    after a bit of editing it could work

    *sorry i don't recall name of plugin and im on my treo atm*

  6. anabelle
    Member
    Posted 18 years ago #

    im wiling to write some code, but i need someone to point me in the right direction..

  7. matrixmonkey
    Member
    Posted 18 years ago #

    *points this way*
    http://www.coldforged.org/image-headlines-plugin-for-wordpress-15/

    even a snipit of code near bottom to help get started :D

  8. anabelle
    Member
    Posted 18 years ago #

    i was thiking about something in the CSS file... like

    #header {
    background-image: url('build/banners/rotator.php');
    background-repeat: no-repeat;
    margin: 0px 0px 0px 0px;
    text-align: left;
    vertical-align: bottom;
    padding-left: 10px;
    height: 300px;
    width: 690px;
    padding-top: 5px;
    font-family: "Trebuchet MS", verdana, arial, helvetica

    }

    and rotator could be a real simple script that returns maybe user.jpg as the banner

    did i make myself clear?

  9. yli
    Member
    Posted 18 years ago #

    my php knowledge = 0 but it not possible someting like...
    maybe something like the upload script....
    when you upload an image you have some options...
    use like thumbnail
    use full image
    use link...

    maybe can be added an option use it like headerimage of blog. and then in theme... to insert a code... to call the image...

  10. drmike
    Member
    Posted 18 years ago #

    not all mu users are developers experienced in php drmike

    For the record, neither am I. You should see the crap I've coded over the years.

  11. matrixmonkey
    Member
    Posted 18 years ago #

    hte look at the plugin url i put up yonder
    http://www.coldforged.org/image-headlines-plugin-for-wordpress-15/

    all you need is somthing to this effect and ... tada
    <?php echo ImageHeadline_render( 'Whatever text','formats' ); ?>

    ok needs playing with to make "user editable"
    as it can get blog name the normal way

    I used it for a while to display my blog title but deciced to lose it as killing my server (i was using a 200mhz machine then)

  12. andrea_r
    Moderator
    Posted 18 years ago #

    Why not pick one of the thme out there that has this option built in? Stutley is also right on the money - this kind of functionality is almost always in the functions.php of a particular theme.

  13. DrkWrz
    Member
    Posted 18 years ago #

    I'm working on plugin like that. But there are still somethings to fix.

    It alows yo tu upload jpeg(gif comming soon) and crop it to the header size. Then yo can asign this jpeg to all the post or to some specific posts.

    It works a little bit like the sidebar widgets. Yo must edit the templates an put in something like this
    <?php if(function_exists('insert_header') && insert_header(180, 740)):
    else:?>
    <div id="header">
    <div id="headerimg">
    <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>
    <?php endif; ?>

    Where the two parameters are the width and the heigth. The function returns true if any header is selected for this post or for all posts.

    My problem is that I don't know how to recognize if the current template has this function. I need this to know if activate the menu in the backend or not.

  14. selad
    Member
    Posted 18 years ago #

    After searching and reading many posts in the forum I could not find the answer to the basic question:
    Is there a plugin that will allow users to upload (and maybe crop) header images for some themes? Something like there is on wordpress.com?

    Thanks :)

  15. andrea_r
    Moderator
    Posted 18 years ago #

    You still have to have that function in the theme itself. See my post above about getting a theme that does that, instead of a plugin.

  16. selad
    Member
    Posted 18 years ago #

    andrea_r thanks. Can you point me to some of these themes I can check?

  17. DrkWrz
    Member
    Posted 18 years ago #

    I'm trying to offer an easier solution. Like widgetize a theme (thas realy easy).
    The second point is that each theme developer will make his header changer different. That is a problem because when yo change from one theme to another you must 'learn' again how to change headers.
    Third, there are many thems that doesn't include this feature.
    I think it's easyer to paste a function then to code on your own a header changer for each theme.

    The main problem is the one I already told.

    If yo swich from a theme that doesen't have this feature in it to a theme with it, he still thinks that the theme doesen't have this feature untill yo view the blog. This is because it's in the function insert_header() where he tells that the blog suports header changing. And this function is not called until yo see the blog.

    Any advice or idea how to improve this?

About this Topic