Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,151 through 23,175 (of 32,481 total)
  • Author
    Search Results
  • #79987

    In reply to: removing tags

    InvTrdr
    Member

    Is it possible to at least tell me where I can find the “delete tag” code/script so I can look for it in my theme and compare it to the stock theme?

    Thanks.

    #32008
    Peter A. Gebhardt
    Participant

    How can I complete the from part with a clickable link to the profile of the latest poster?

    34 posts, 2 voices - Latest reply from ...

    The user name ist Test User – it does contain a space.

    #73219
    johnhiler
    Member

    Oh no… please don’t test it unless you are on 0.8.x!!

    It’s definitely not recommended for 0.9 or 1.0… I just linked to it so you could check out the code, in the event that you were interested in adapting it to support more recent bbPress versions!

    #73218
    Fernando Tellado
    Participant

    Thank you John, I’ll test it ;)

    #80194

    In the first line of function bb_tag_heat_map:

    $defaults = array( ‘smallest’ => 8, ‘largest’ => 22, ‘unit’ => ‘pt’, ‘limit’ => 40, ‘format’ => ‘flat’ );`

    Line 3158 of functions.bb-template.php in my slightly outdated SVN of 1.0.2

    #80191
    InvTrdr
    Member

    Without the above code where is it getting the 40 from? That is still a mystery to me if it is not called for from anywhere.

    Thanks.

    #80190
    InvTrdr
    Member

    So am I replacing this line in the code above

    <p class="frontpageheatmap" style="text-align: center;"><?php bb_tag_heat_map(); ?></p>

    with this line below?

    <p class="frontpageheatmap" style="text-align: center;"><?php bb_tag_heat_map(array( 'smallest' => 9, 'largest' => 38, 'limit' => 80) ); ?></p>

    Thank you.

    #80189
    InvTrdr
    Member

    I found it. It was in the sidebar.php file. What do I need to change in the code below to control the number of tags shown in the heat map?

    Thank you.

    <div id="sidebar" class="right">

    <div class="menu">
    <?php
    login_form();
    if(is_bb_profile()) profile_menu();
    ?>
    </div>

    <div class="menu">
    <h2 class="section-header"><?php _e('Tags','rag'); ?></h2>
    <p class="frontpageheatmap" style="text-align: center;"><?php bb_tag_heat_map(); ?></p>
    </div>

    <?php if(bb_is_user_logged_in()) : ?>
    <div class="menu">

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

    <ul id="views">
    <?php foreach(bb_get_views() as $the_view => $title) : ?>
    <li class="view"><a href="<?php view_link($the_view); ?>"><?php view_name($the_view); ?></a></li>
    <?php endforeach; ?>
    </ul>

    </div>
    <?php endif; ?>

    </div>

    bbhack
    Member

    I hear that. bbPress is missing a lot of the documentation and help that WordPress has. Fortunately, bbPress plugins really are a lot like WordPress plugins. They make use of actions and filters just like WordPress does. The assumption is that you’ll read all about WordPress plugins and then know how to write plugins for bbPress.

    You can read all about WordPress plugins and actions and filters at codex.wordpress.org/plugins although this is the page you really want to go to:

    https://codex.wordpress.org/Plugin_Resources

    You can grep around in the bbPress files to see what actions and filters are available. If you don’t want that much work though go here:

    http://www.mittineague.com/dev/bbpaf1_0.php

    This site listing all of the bbPress functions is also invaluable:

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    #80153
    Jiyong
    Member

    Thank you very much johnhiler.

    The solution is smtp-mailer-for-bbpress :)

    #80248
    Chip Bennett
    Participant

    It appears that the problem appears when activating the My Views suite, specifically, the Topic Views sub-plugin.

    The source isn’t helpful. There is just nothing at all rendered where the forum list should be:

    <div class="wrap">

    <h2>Forums</h2>


    FORUM LIST GOES HERE


    <hr class=”settings” />

    But, I can live without that particular plugin.

    #80279
    chrishajer
    Participant

    Look in your template files for calls to bb_topic_voices and bb_get_topic_voices and remove them.

    #80244
    Chip Bennett
    Participant

    @ chrishajer: Here are my active plugins:

    Akismet

    bb-NoSpamUser

    BBcode Buttons Toolbar

    BBcode Lite

    bbPress signatures

    bbPress Smilies

    bb Topic Views

    Best Answer

    Bozo Users

    Check For Updates

    Enhanced Registration

    Human Test for bbPress

    Ignore Member

    Mass Delete Users

    Members Online

    Mini Stats

    My Views

    My Views module – Most/Least Posts

    My Views module – Most/Least Views

    My Views module – Started/Participated Topics

    New User Notification Email

    Post Count Plus – Dynamic.Titles & More!

    Post Count Plus for WordPress

    Related Topics

    Reputation (Karma) for bbPress

    Skip Akismet

    Subscribe to Topic

    Topic Icons

    Unread Posts

    The really strange thing is, the Dashboard shows 18 forums (which is the correct number), but bb-admin/forums.php just won’t display them.

    I suppose I can try disabling all plugins, and see if forums.php then displays the forums properly?

    #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 :(

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