Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,151 through 30,175 (of 32,491 total)
  • Author
    Search Results
  • #55801
    Trent Adams
    Member

    Off the top of my head, change this line:

    if (bb_current_user_can('administrate')) :

    to something like this:

    if (bb_current_user_can('moderate')) :

    That should get it working!

    Trent

    fel64
    Member

    You don’t need that file. :) You have already installed, right? What did you last change?

    #57806
    fel64
    Member

    Apply this fix, then go to each profile, set the bozo status to 0 and update.

    #57794
    fel64
    Member

    That’s a cool two-column theme, and I really like what you did with the posts as speech bubbles :) I think it would be a good idea to make the left column fixed-width, though, as it looks ‘too’ big on larger screens :P

    [edit] That’s also really nice use of a clear div to make the post list item expand to the right size. Cool!

    #57777

    In reply to: Fading Heatmap

    benbeltran
    Member

    @box, thanks for the comments … yeah it’s really a matter of keeping your users happy because in the end they’re the ones that decide if your site gets hits or not :P … in this particular case, the market – videogame enthusiasts – is one where people tend to identify their tastes in games with signatures… And of course there are regulations on the height and width of the sigs.

    @wmarcy, well … i have the badges system that is a semi-plugin (i’m still learning about it), and this hack … i edited the bb_get_tag_heat_map function in template-functions to add this code:

    if(( $smallest + ( ( $count - $min_count ) * $fontstep ) ) < $smallest+1){
    $color = "color:#f9a692;";
    }else if(( $smallest + ( ( $count - $min_count ) * $fontstep ) ) <= $largest/2){
    $color = "color:#f5795b;";
    }else{
    $color = "color:#f24c24;";
    }

    right after the

    foreach ( $counts as $tag => $count ) {

    And then i just echoed $color next to $unit; some lines below.

    I know it’s not the proper way to do it :P but it’s how i know, i’m sure someone will come up with a better option for this :P

    #57442
    davidbaldiwn
    Member

    I changed all of the tops to:

    <?php global $forumpage;

    $forumpage = TRUE; ?>

    <?php get_header(); ?>

    but, I am still not getting any changes to the title.

    hmm, what else could be wrong?

    -Baldwin

    #57441
    Vili
    Participant
    <?php get_header(); ?>
    <?php global $forumpage;
    $forumpage = TRUE; ?>

    …should be the other way around:

    <?php global $forumpage;
    $forumpage = TRUE; ?>
    <?php get_header(); ?>

    You need to set the $forumpage boolean before you call the header, or you won’t be able to use it there.

    Alternatively, forget about $forumpage, and use a global boolean such as $bbdb that bbPress uses anyway, as suggested by fel64.

    #57373

    In reply to: plugin: seo meta

    I have installed this on my bbpress, but see no descriptions or keywords on any pages or posts :(

    Any help would be greatly appreciated.

    #1882

    Topic: Fading Heatmap

    in forum Showcase
    benbeltran
    Member

    I edited the heatmap on my forums to make the smaller tags lighter and the bigger tags darker, this emphasizes the bigger tags and gives a sense of depth in the cloud. Right now i have three levels of color, but it could be easily adapted to use more levels.

    In a sort-of unrelated issue, i also added image support to the signatures :).

    What do you think?

    #57440
    davidbaldiwn
    Member

    AHHH

    I’ve copied what you have above, and modified it slightly (to match my site), but I am not getting updated titles on topic pages like:

    http://ppacp.org/forums/topic.php?id=1&page&replies=1

    I’m assuming this has something to do with the templete files for bbpress, so I looked at the top of the files and it looks like this:

    <?php get_header(); ?>

    <?php global $forumpage;
    $forumpage = TRUE; ?>

    I changed all the files that had <?php bb_get_header(); ?> from the “kakumei” folder.

    Am I doing something wrong?

    “confused”

    -Baldwin

    #56809

    In reply to: What is a bozo?

    drmike
    Member

    Heh heh.

    Can I suggest my ex? :)

    #57573
    fel64
    Member

    Perhaps someone can, but probably it’s unnecessary. :) I think adding ads does make it commercial, but that’s pedantism. We could tell you how to fill out your config.php for you and the rest is veeeery likely plain sailing. Did you install your own wordpress?

    Off the top of my head required info is the URL you want the forum at, if you want ugly URLs ( ?topic_id=59), pretty (/topic/59 I think?) or awesome (/glorified-notebook-discussion-thread/), the absolute path to your wordpress install, and your Akismet key (it’ll be in your wordpress wp-config.php file). Database info you’ll be able to copy from wp-config yourself plus it’s stupid to publish such a thing on a forum.

    #57438
    Vili
    Participant

    My header title tag reads like follows, I think you can modify it to fit your setup:

    <title>
    <?php if ($forumpage == TRUE) {
    bb_title();
    echo " :.: AKNI";
    } else { ?>
    <?php wp_title(' '); ?>
    <?php if(wp_title(' ', false)) { echo ' :.: '; } else { echo "AKNI: "; } ?>
    Akira Kurosawa News and Information
    <?php if (is_utwtag()) { echo ': '; UTW_ShowCurrentTagSet('tagsettextonly'); } ?>
    <? } ?>
    </title>

    The last condition with UTWTAG is for the Ultimate Tag Warrior plugin — remove it if you don’t use it.

    To see how the title works across the site, I think it’s easiest if you just visit http://akirakurosawa.info/

    #1848

    I would like to know if someone can install and integrate BBpress with my WordPress site. I know that people install wordpress on non-commercial sites for free. My site is a blog for professionals, that I may ad some advertising just to pay for the site space. Can someone help me?

    However I read (http://bbpress.org/forums/topic/1140?replies=28#post-7450 atomAstro wrote) that there were some problems with integrating it. Any suggestions? I don’t know much about php and the like. I know minimal html and most of that has been depracated (I assume).

    I am good at following instructions though. As long as they are step by step :-)

    #57437
    fel64
    Member

    If you have the same code for the header then I think you need some conditional if statements in there to check if it’s wp or bb. This isn’t really straightfoward I’m afraid, but then I’m in the dark here (haven’t done it myself) so perhaps it is and I don’t know about it.

    #57673

    In reply to: Tags not separating

    Arlo
    Member

    Brackets were just my (apparently needless) way of indicating a text field. Sorry :)

    Flickr works with spaces and quotes, but if you use commas, they are stripped.

    #57672

    In reply to: Tags not separating

    fel64
    Member

    I don’t understand the system. Spaces are stripped, or alternatively commas are ignored? What’s with the square brackets?

    Not that it really matters, I’m just curious about what could be a good system :)

    #57434
    davidbaldiwn
    Member

    snakefoot, Thanks!

    I fell kinda stupid, I moved this up to the top and now it works!

    $bb->WP_BB = true;
    require_once( '../wp-blog-header.php' );

    It still dosn’t work with an absolute path, which means this meathod dosn’t work for subdomains.

    Now that the header and footer work, I’ll follow the rest of vilimaunula’s steps to see if I can get this looking better…

    Thanks for helping a nooob!

    -Baldwin

    #57432
    davidbaldiwn
    Member

    I changed my config file to this:

    $bb->WP_BB = true;
    require_once( '../wp-blog-header.php' );

    and to this:

    $bb->WP_BB = true;
    if (file_exists('../wp-blog-header.php'))
    require_once('../wp-blog-header.php');
    else
    if (file_exists('../../wp-blog-header.php'))
    require_once('../../wp-blog-header.php');

    and in either instance I still recieve this error:

    Fatal error: Cannot redeclare is_serialized() (previously declared in /home/turner/public_html/ppacp/forums/bb-includes/wp-functions.php:976) in /home/turner/public_html/ppacp/wp-includes/functions.php on line 165

    Thanks for the help!

    -Baldwin

    http://www.ppacp.org/forums/

    #57431
    fel64
    Member

    Baldwin, looks like your second error is a good error because it’s loading! I believe that the problem is that WP and BB are not set up to synchronise. Have you got this in your config.php?

    $bb->WP_BB = true;
    require_once( '../wp-blog-header.php' );

    #57429
    davidbaldiwn
    Member

    I tryed just about everything, and I kept getting this error:

    Warning: main(home/turner/public_html/ppacp/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/turner/public_html/ppacp/forums/config.php on line 62

    Fatal error: main() [function.require]: Failed opening required ‘home/turner/public_html/ppacp/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/turner/public_html/ppacp/forums/config.php on line 62

    So, I changed the location to this:

    require_once('../wp-blog-header.php');

    and now I get this error (something different, yay!):

    Fatal error: Cannot redeclare is_serialized() (previously declared in /home/turner/public_html/ppacp/forums/bb-includes/wp-functions.php:976) in /home/turner/public_html/ppacp/wp-includes/functions.php on line 165

    I’m not an expert, but I think the former worked, but that there’s something else wrong.

    Thanks for your help!

    -Baldwin

    #57428
    fel64
    Member

    Yes! In many cases using a relative path is essential to the require and include functions.

    Maybe it’s like this? You’ll know what I mean, anyway.

    /home/turner/public_html/wordpress/wp-blog-header.php

    #57427
    davidbaldiwn
    Member

    Mine looks like this:

    require_once('http://ppacp.org/wp-blog-header.php');

    am I supposed to use a relative path?

    Thank you,

    -Baldwin

    #57706
    M
    Member

    An admin page would be handy. That’s why I had said “the ‘hard’ part would be making an admin page.” It is necessary for this in my opinion.

    I think with this it would be better to put the post count in the usermeta, rather than the user title. That way for added and deleted posts all you have to do is add or subtract. The most accurate way, however, would probably be to count all the posts and update the meta every time a post is made. If a topic is deleted, a recount would need to be made too. That’s why I liked the “on the fly” method. Fewer errors that way.

    Also, regarding query count, I believe it’s still one query per post, but I could be wrong. I guess the difference would be whether you’re pulling the user title from the usermeta or counting the posts on the fly. I’ll mess around with this more this afternoon.

    And sorry to irritate, it’s just not that complex IMO. Even your method :)

    #57767
    M
    Member

    Hmm, I tried that yesterday and it didn’t seem to work. I checked out the WPAjax class and tried commodAjax.transport.responseText, this.responseText, and a couple more variations on that theme.

    Once I get an admin backend for my plugin I’m going to upload it so that everyone can see the source. It’ll probably be a little easier to answer questions then.

    commodAjax.request(commodAjax.url); is requesting the admin-ajax.php file, sending it some postdata, and it’s responding with a 1 (success), 0 (borked data), or -1 (permissions error).

    Thanks.

Viewing 25 results - 30,151 through 30,175 (of 32,491 total)
Skip to toolbar