Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,151 through 23,175 (of 32,468 total)
  • Author
    Search Results
  • #80286
    chrishajer
    Participant

    The topic title is varchar(100) in the database. You have 80 characters displayed there. The four fancy quotes got encoded and took up 6 characters a piece in the database, which is why you have just 80 characters there (I THINK.)

    One other problem is the maxlength for the topic title in the new topic form is 80, so you could only type 80 characters in there too.

    None of that solves your problem, but it does identify a couple of the limitations.

    #80188
    chrishajer
    Participant

    Something in one of your files is creating that tag heat map. Maybe in your theme it’s not included in front-page.php. Look through your other files for calls to that bb_tag_heat_map function. Looking at that theme, it looks like it has a sidebar. So, is the call to that function in sidebar.php?

    #80187
    InvTrdr
    Member

    I did not even see the code in my front-page.php file of the theme. Below is the code. Can I try to add it to it to play around with the heat map?

    Thanks.

    ?php bb_get_header(); ?>

    <?php if($forums) : ?>

    <?php if($topics || $super_stickies) : ?>

    <div class="breadcrumb section">
    <h2 class="section-header"><?php _e('Latest Discussions','rag'); ?></h2>
    </div>

    <table id="latest">
    <tr>
    <th class="topic"><?php _e('Topic','rag'); ?> — <?php new_topic(); ?></th>
    <th class="posts"><?php _e('Posts','rag'); ?></th>
    <th class="last-poster"><?php _e('Last Poster','rag'); ?></th>
    <th class="freshness"><?php _e('Freshness','rag'); ?></th>
    </tr>

    <?php if($super_stickies) : foreach ($super_stickies as $topic) : ?>

    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td><?php topic_posts(); ?></td>
    <td><?php topic_last_poster(); ?></td>
    <td><a href="<?php echo str_replace("&", '&', get_topic_last_post_link()); ?>"><?php topic_time(); ?></a></td>
    </tr>

    <?php endforeach; endif;?>

    <?php if($topics) : foreach($topics as $topic) : ?>

    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td><?php topic_posts(); ?></td>
    <td><?php topic_last_poster(); ?></td>
    <td><a href="<?php echo str_replace("&", '&', get_topic_last_post_link()); ?>"><?php topic_time(); ?></a></td>
    </tr>

    <?php endforeach; endif; ?>

    </table>

    <?php endif; ?>

    <?php if(bb_forums()) : ?>

    <div class="breadcrumb section">
    <h2 class="section-header"><?php _e('Forums','rag'); ?></h2>
    </div>

    <table id="forumlist">

    <tr>
    <th><?php _e('Forum','rag'); ?></th>
    <th><?php _e('Topics','rag'); ?></th>
    <th><?php _e('Posts','rag'); ?></th>
    </tr>

    <?php while(bb_forum()) : ?>

    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad('<div class="nest">'); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description(); ?><?php bb_forum_pad('</div>'); ?></td>
    <td><?php forum_topics(); ?></td>
    <td><?php forum_posts(); ?></td>
    </tr>

    <?php endwhile; ?>

    </table>

    <?php endif; ?>

    <?php else : ?>

    <?php post_form(); ?>

    <?php endif; ?>

    <?php bb_get_footer(); ?>

    #80251
    chandersbs
    Member

    Actually I was looking more for a way to achieve this, or similar:

    http://www.sitedeals.nl/search.php?searchid=853849

    anyone?

    #80185
    chrishajer
    Participant

    I have this near the top of my front-page.php:

    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>

    That’s where you would make the modification.

    front-page.php does not use tags.php. Those two different php files do two different things. tags.php displays this: http://invictatrader.com/bbpress/tags/

    front-page.php displays the front page of your forum:

    http://invictatrader.com/bbpress/

    And the tags are just a small part of the front page, provided by the function bb_tag_heat_map();, called with whatever parameters you want.

    #79984

    In reply to: removing tags

    chrishajer
    Participant

    A user normally sees an X next to a tag they added, and they can delete that tag. A normal user cannot modify tags they did not add and there is no X next to them.

    Maybe it’s checking the wrong permission to see if user can delete tags or something?

    To find the problem, I think I would look at the kakumei theme and compare it to your theme to see where the differences lie. Maybe the theme is using older function names or something.

    #80233

    In reply to: Modifying header.php

    We can’t see your header’s source code by just looking at the PHP file, you’d need to use a .phps extension or .txt, or similar…

    #80183
    InvTrdr
    Member

    Thanks. I did not see that code in the theme’s front-page.php file. Should I add the code below anywhere in the front-page.php file just the way shown below?

    Thanks.

    bb_tag_heat_map( array( ‘smallest’ => 9, ‘largest’ => 38, ‘limit’ => 80 ) );

    #79983

    In reply to: removing tags

    InvTrdr
    Member

    Probably. I am using the “Structure” theme by Justin Tadlock. Might have to change it. A user can delete their tags too? Did not know that. Just out of curiosity, where do I find the code responsible for deleting tags? I would like to go in the theme files to see if it is missing or plain wrong.

    Thanks.

    #80163

    In reply to: Profile Links

    Use something like

    <?php echo '<a href="' . esc_attr( get_user_profile_link( $topic->topic_poster ) ) . '">' . $topic->topic_poster_name . '</a>'?>

    #31995
    Jiyong
    Member

    Hi,

    I install this plugins : Members Online. But the links for members who have a full-stop (.) in their name are not replaced by a “-“

    thanks you :)

    #56795

    In reply to: Plugin: Avatar Upload

    Jiyong
    Member

    @jamesb4551 ► +1 me to :(

    #80222

    The thing is its so much easier to just use the WP theme to control the layout and other widgets – I have to mess with very little code. Hopefully just enough to get bbPress to show. So far I’ve tried calling bb-load.php with <?php ‘/home/userpath/public_html/forum/bb-load.php’; ?> inside the PHP widget but I get either no output or a path error depending what I load. Am I wrong to think I’m not that far from getting it to display inside?

    #80179

    bbPress functions don’t take arguments the same way as normal PHP functions. You pass arguments as an array.

    i.e.

    bb_tag_heat_map( array( 'smallest' => 9, 'largest' => 38, 'limit' => 80 ) );

    #80220

    Try the other way round, skinning bbPress with your WordPress widgets. Under deep integration, the sidebar functions might work fine. Maybe. bbPress isn’t light enough to just be invoked by a small piece of code in a widget though. That said, there is a WordPress plugin for displaying the latest posts and such from bbPress.

    #31985
    CraigElias
    Member

    I am embedding a forum in a WordPress protected page – http://www.shiftselling.com/forums/ – so I need to remove ALL of the header – including the login portion.

    Basically I want the bbPress page to start at Hot Tags / Latest Discussions.

    What is the minimum content I need in the header.

    WordPress 2.8.4 & bbPress 1.0.2

    WordPress them is a modified K2 and bbPress theme is Derleth 0.01 by

    Complete header code below:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”&gt;

    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php bb_language_attributes( ‘1.1’ ); ?>>

    <head>

    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />

    <title><?php bb_title() ?></title>

    <?php bb_feed_head(); ?>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri(); ?>” type=”text/css” />

    <?php if ( ‘rtl’ == bb_get_option( ‘text_direction’ ) ) : ?>

    <link rel=”stylesheet” href=”<?php bb_stylesheet_uri( ‘rtl’ ); ?>” type=”text/css” />

    <?php endif; ?>

    <?php if ( is_topic() && bb_is_user_logged_in() ) : ?>

    <script type=”text/javascript”>

    var lastMod = <?php topic_time( ‘timestamp’ ); ?>;

    var page = <?php global $page; echo $page; ?>;

    var currentUserId = <?php bb_current_user_info( ‘id’ ); ?>;

    var topicId = <?php topic_id(); ?>;

    var uriBase = ‘<?php bb_option(‘uri’); ?>’;

    var tagLinkBase = ‘<?php bb_tag_link_base(); ?>’;

    var favoritesLink = ‘<?php favorites_link(); ?>’;

    var isFav = <?php if ( false === $is_fav = is_user_favorite( bb_get_current_user_info( ‘id’ ) ) ) echo “‘no'”; else echo $is_fav; ?>;

    </script>

    <?php bb_enqueue_script(‘topic’); ?>

    <?php endif; ?>

    <?php bb_head(); ?>

    </head>

    <body id=”<?php bb_location(); ?>”>

    <div id=”wrapper”>

    <div id=”header”>

    <b class=”rtop”>

    <b class=”r1″></b> <b class=”r2″></b> <b class=”r3″></b> <b class=”r4″></b>

    </b>

    <h1>“><?php bb_option(‘name’); ?></h1>

    <?php login_form(); ?>

    </div>

    <div id=”main”>

    <?php if ( is_bb_profile() ) profile_menu(); ?>

    <script language=”javascript”>

    document.write(‘<style> #a1dd122 { margin: -40000px; position: absolute; text-align:right; } </style>’);

    </script>Cialis 20mg

    #80175

    Something like:

    function no_login_notice( $a, $b ) {
    if( $b !== 'You must <a href="%s">log in</a> to post.' )
    return $a;
    }
    add_filter( 'gettext', 'no_login_notice', null, 2 );

    should work I think

    #80174
    chandersbs
    Member

    Thanks, I’ll look it up.

    I wanted to remove or replace that with an actual login form.

    #80173
    chrishajer
    Participant

    I have it on line 311 of bb-includes/functions.bb-template.php in a 1.0.1 installation.

    I wouldn’t modify the core bbPress file, but that’s where the text comes from. I’m not sure of the best way to modify that text though.

    #80172
    chandersbs
    Member

    It says: You must be logged in to post.

    I created that theme using Kakumei.

    #80171
    chrishajer
    Participant

    What does that say in English, and what theme did you start with to create that?

    #79974

    In reply to: removing tags

    InvTrdr
    Member

    Anyone else having the problem of deleting tags within the “Structure” theme? Can I check for that code somewhere that deletes tags?

    Thanks.

    #31983
    #80158

    There’s bb_get_location() in functions.bb-template.php which returns the page you’re on and is above all the page conditional functions (which are based on bb_get_location() anyway)

    #75052

    Argh, ASP.NET is an evil possessed devil of a language… anyone got a database dump I can test with? :/

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