The MU forums have moved to WordPress.org

Changing defaults (9 posts)

  1. SactoEric
    Member
    Posted 18 years ago #

    Another amateur question - I'm wondering how I can change some of the global default settings, i.e. changing "Blogroll" to "links" and changing the links w/in, change category names, etc.

  2. RaceDay
    Member
    Posted 18 years ago #

    Look under "Links" in the Control Panel

  3. RaceDay
    Member
    Posted 18 years ago #

    Hey just wanted to show my rear to you, so you can kick it--I misinterpreted your question...wups! Sorry.

  4. drmike
    Member
    Posted 18 years ago #

    I think Sacto is talking about upon new blog setup.

    It's in the wpmu-functions.php file. Do a search in it for the createBlog function and take a look at the code.

  5. SactoEric
    Member
    Posted 18 years ago #

    Thanks :)

    In the following, what is the second URL on each line of code? In other words, why are there two URLs on each line?

    $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_owner, link_rss) VALUES ('http://wordpress.com/', 'WordPress.com', 1, '$userID', 'http://wordpress.com/feed/]');");
    $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_owner, link_rss) VALUES ('http://wordpress.org/', 'WordPress.org', 1, '$userID', 'http://wordpress.org/development/feed/');");

  6. drmike
    Member
    Posted 18 years ago #

    The stuff within the first '()' marks tells you what it represents while the information after VALUES gives you the data.

    For example:

    link_url => http: //wordpress.com
    link_name => Wordpress.com
    link_category => 1
    link_owner => $userID
    link_rss => http: //wordpress/feed/

    When you write your own, just copy the line and replace 1, 2, and 5 with what you want in there remembering to keep the single quotes.

    For example:

    $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_owner, link_rss) VALUES ('http: //kpremixed.tdjc.be/', 'Kim Possible: Remixed', 1, '$userID', 'http: //kpremixed.tdjc.be/feed/');");

    Note: Spaces added after the colons to get them to show up correctly instead of as a link.

  7. SactoEric
    Member
    Posted 18 years ago #

    Is it safe to assume that if I don't have a feed, i.e. a link back to the main site, then I don't enter anything in the place of the second URL?

  8. drmike
    Member
    Posted 18 years ago #

    If the other site has a feed, I would just go ahead and put it in there. You may want it in there in the future. If you want to leave it out, just leave it back as two single quote without any sapce in between them.

  9. SactoEric
    Member
    Posted 18 years ago #

    Awesome... Thank you very much! :)

    btw, where is that feed used?

About this Topic

  • Started 18 years ago by SactoEric
  • Latest reply from SactoEric