Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,901 through 25,925 (of 32,495 total)
  • Author
    Search Results
  • #71343

    In reply to: Visit counter

    Fernando Tellado
    Participant

    I guess that tomdebruin refers to footer.php of your active template, always before de </body> tag ;)

    Is the same thing if you want to add the Google analytics code

    #71210

    In reply to: List all Tags?

    deadlyhifi
    Participant

    improved:

    <?php if ( bb_current_user_can( 'manage_tags', get_topic_id() )): ?> - <a href="/forum/profile.php?id=<?php echo $tag->user_id; ?>"><?php echo get_user_name( $tag->user_id ); ?></a><?php endif; ?>

    #4680

    Topic: Visit counter

    in forum Troubleshooting
    nessunowin32
    Member

    I have an account on http://www.realcounter.eu that lets you create in a personalized way of the meters to insert into right site, blog and forums.

    I wanted to know where should I include this Code because it is displayed in:

    Homepage, in the categories and finally on the individual post

    Sorry for my bad English are Italian and forgive me for a possible wrong of Section

    #71330
    ganzua
    Member

    Thanks for the fix, I will check it asap. In my case, I need to use 1.0a6 because I deep-integrated with wp.

    BTW, I couldn’t make topic views plugin work neither.


    *need code for last 10 posts loop in 404 page

    #71209

    In reply to: List all Tags?

    deadlyhifi
    Participant

    that’s good to know, thanks.

    I just added the following to topic-tags.php (after <?php bb_tag_remove_link(); ?> )

    <?php if ( bb_current_user_can( 'manage_tags', get_topic_id() )): ?><a href="/forum/profile.php?id=<?php echo $tag->user_id; ?>">user</a><?php endif; ?>

    so there is a quick link to the users profile to see who posted that tag.

    Not perfect but easier than running that SQL!

    #71328
    ganzua
    Member

    BBpress 1.06a and Topic views plugin 1.6.3. I couldn’t paginate last posts in front-page.php

    If you know how, please share some knowledge :) What I wanted is to have an unlimited number of posts in the front-page loop and set a pagination. I think this feature would be a great improvement for bbpress.

    I’m interested too in a last 10 posts loop for my 404 page :)

    #71289
    chrishajer
    Participant

    With a tool to look at the database, like phpMyAdmin, can you see if the table is still there?

    harrismarineblog.wp_lvtwfff_usermeta

    The lvtwff looks a little weird: did you really use wp_lvtwfff_ as your table prefix?

    #71208

    In reply to: List all Tags?

    chrishajer
    Participant

    > Currently the only way to see who posted what tag is to do an SQL query

    That’s not true. You can see who posted a specific tag by looking at the source of the page where a tag is displayed. In the source, you will see something like this:

    <li id="tag-1785_278"

    The 1785 is the tag_id and the 278 is the user_id. If you want to moderate a user who is posting inappropriate tags, you have your id right there.

    I learned this recently on these forums, but I can’t find the post that explained it originally.

    #4673
    #71207

    In reply to: List all Tags?

    deadlyhifi
    Participant

    I mean all the tags used on the site, so we could see two columns

    Tag | User

    so each tag could have multiple users who used it.

    Some users are using inappropriate tags on posts. We want a public list so we can name and shame them. Currently the only way to see who posted what tag is to do an SQL query along the lines of

    SELECT bb_users.user_nicename, bb_terms.slug, bb_topics.topic_slug
    FROM bb_terms
    INNER JOIN bb_term_taxonomy ON bb_term_taxonomy.term_id = bb_terms.term_id
    INNER JOIN bb_term_relationships ON
    bb_term_relationships.term_taxonomy_id =
    bb_term_taxonomy.term_taxonomy_id
    INNER JOIN bb_topics ON bb_term_relationships.object_id = bb_topics.topic_id
    INNER JOIN bb_users ON bb_term_relationships.user_id = bb_users.ID
    WHERE bb_terms.slug = 'TAG NAME'

    #4674
    ganzua
    Member

    I can’t make this plugin work :(

    Do you have it working in your bbpress installation?

    #71240

    I think the best bet would be to block the inappropriate ones. ;)

    Add to .htaccess

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://(.+.)?crazy-porn-site.com/ [NC,OR]

    #71264
    Fernando Tellado
    Participant

    Same problem.

    I’m using these plugins if they affect:

    – bbcode lite

    – highlite code

    – allow images

    – buttons

    (names aren’t exact but I think you know what plugins are)

    #4670
    andersson
    Participant

    I’m on 1.0Alpha6.

    Is this just a quirk in the bb-benchmark plugin i.e. is the timer just way off?

    This is what I get when loading a normal page, with 11 queries executed in notime at all.

    time to reach each section:

    bb_underscore_plugins_loaded = 0.169

    bb_plugins_loaded = 0.179

    community.php = 0.209

    header.php = 0.209

    search-form.php = 0.209

    footer.php = 1.019

    time to render page: 1.0153 seconds (query time subtracted)

    total query count: 11

    total query time: 0.0027 seconds

    `

    if you look at that time difference from the other sections and compare it to the time it takes to load footer.php. It’s just insane. footer.php contains nothing but a “copyright” thing and a hook to do_actoion bb_foot.

    Does anyone have any thoughts on that?

    Thanks for an excellent product.

    Edit:

    Maybe I’m reading the stats wrong. It’s probably measuring the time between search-form.php and when it finally arrived at footer.php. but still, something is taking an enormous time between those two, and it doesn’t seem to be the queries to the Db. Still appreciate some thoughts here on what this could be. Thanks.

    christopherh
    Member

    Hi all,

    I want to create one bbPress forum using 2 different languages. Without using any plugin I think I can achieve this by these steps:

    (1) Prepare the directories <WebRoot>/bbpress/US and <WebRoot>/bbpress/FR

    (2) put the files in the US directory first.

    (3) Start the installation using http://localhost/bbpress/US

    (4) All tables are installed as usual. Forum can operate in full

    (5) copy all the files under /US directory to /FR directory

    (6) change the /FR/bb-config.php

    define(‘BB_LANG’, ”); to become define(‘BB_LANG’, ‘fr’);

    (7) clone the database table bb_topicmeta to bb_topicmeta2

    (8) change the uri value in bb_topicmeta2 to http://localhost/bbpress/FR

    (9) change the table name reference for table bb_topicmeta to bb_topicmeta2 under /FR

    Under this installation any user can go to http://localhost/bbpress/US for forum in English; or http://localhost/bbpress/FR in French. However, all the post content, tag, user profile are the same.

    Okay…I’m looking up and down and still unable to do step (9). I cna only figure out the table names are defined in file /bb-includes/db.php. I made the change

    var $tables = array( ….’topicmeta’…) to var $tables = array( ….’topicmeta2’…)

    but it did not really change the table name reference.

    So all bbPress guru…is my approach incorrect or I actually go the wrong way ? Any help is welcome. Thanks !!!

    #4668
    domstie
    Member

    Hi, I would like to change the Permalinks to German. I can change the rewrite_rules in /bb-admin/rewrite_rules.php

    Code:
    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase <?php bb_option( ‘path’ ); ?>

    RewriteRule ^page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>index.php?page=$1 [L,QSA]
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ <?php bb_option( ‘path’ ); ?> [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>topic.php?id=$1 [L,QSA]
    RewriteRule ^topic/?$ <?php bb_option( ‘path’ ); ?> [R=302,L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ <?php bb_option( ‘path’ ); ?>tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ <?php bb_option( ‘path’ ); ?>profile.php [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ <?php bb_option( ‘path’ ); ?>view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ <?php bb_option( ‘path’ ); ?>rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ <?php bb_option( ‘path’ ); ?>rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ <?php bb_option( ‘path’ ); ?>rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ <?php bb_option( ‘path’ ); ?>rss.php?view=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ <?php bb_option( ‘path’ ); ?>index.php [L]
    </IfModule>

    bute where, in which files can I change the links? Is there a central function generating the links.

    e.g. old: http://www.forum.com/forum/topic/post-name

    new: http://www.forum.com/forum/thema/postname

    Thank you so much! dom

    ilo
    Member

    Hello I have installed bbpress and gone for full integration however had some issues, first the wp-config files had some lines changed and all of a sudden some code appeared on the home page. I have fixed that however my home page is no longer being used and it just directs to the blog straight away. another more important problem i am having is that i have completely lost access to the wp-admin area. i can view the login page and after that all disappears!

    #4664
    dixyantar
    Member

    This is the error log that i am getting :

    >>> WordPress cookie keys not set.
    >>>>>> Your "bb-config.php" file was not writable.
    >>>>>> You will need to manually re-define "BB_AUTH_KEY", "BB_SECURE_AUTH_KEY" and "BB_LOGGED_IN_KEY" in your "bb-config.php" file.
    >>> WordPress "auth" cookie salt not set.
    >>>>>> Could not fetch "auth" cookie salt from the WordPress options table.
    >>>>>> You will need to manually define the "auth" cookie salt in your database.
    >>> WordPress "logged in" cookie salt not set.
    >>>>>> Could not fetch "logged in" cookie salt from the WordPress options table.
    >>>>>> You will need to manually define the "logged in" cookie salt in your database.

    What did I do wrong? How can I get it right now?

    Please someone help me.

    #4662

    If I do this:

    <a href="http://thisis.my/link">This is my link</a>

    I get this:

    <a href="//thisis.my/link&quot;">This is my lin</a>

    If I do this:

    <a href=http://thisis.my/link>This is my link</a>

    It works.

    I’m totally dumbfounded.

    #69431

    In reply to: tag remove fail

    ganzua
    Member

    Thanks Ipstenu :)

    I do not catch the first line; remove_filter(‘bb_topic_labels’, ‘bb_closed_label’);

    bb_closed_label is the function that you are going to replace, but what is bb_topic_labels and where do you get it?

    I want to replace post_form, bb_tag_heat_map and bb_paginate_links functions

    #69430

    In reply to: tag remove fail

    Create functions.php in your theme folder.

    Then … well, you use remove and add :) Example:

    // This sets closed lable to read as 'read only' instead of 'closed'
    remove_filter('bb_topic_labels', 'bb_closed_label');
    function my_closed_label( $label ) {
    global $topic;
    if ( '0' === $topic->topic_open )
    return sprintf(__('[Read Only] %s'), $label);
    return $label;
    }
    add_filter('bb_topic_labels', 'my_closed_label');

    #70181
    Burt Adsit
    Member

    This is to clear up this issue. Frankly I had forgotten about this post after solving the problem. Whoops. Sorry.

    I was trying to fire up xmlrpc access from wpmu to bbpress. Your bbpress_live plugin wasn’t working. buddypress’s group forums weren’t working. Surprise, it uses the bbpress_live classes.

    Turns out the wp http api lib uses the curl lib as the default transport mechanism. It goes out and gets the requested url using curl by default if it’s installed. It’s installed everywhere and on everything except my kitchen toaster. So, curl resolves ip addresses by first looking at your /etc/hosts file. Then it goes to dns for resolution.

    The /etc/hosts file and linux are happy with hosts defaulting to 127.0.0.1 for mysite.org. I live in apache all day long and don’t care what’s in my hosts file. I should have. :)

    Changed /etc/hosts to have the actual ip address to my domain and xmlrpc, bbpress_live, buddypress and the rest of the universe are happy.

    Thanks for the quick response Sam!

    #71254
    buddhapax
    Member

    Just upgrading PHP to version 5. Many thanks!

    #71253
    chrishajer
    Participant

    I think this is because the server is using PHP4. I believe you need PHP5 for that to work in that release. It’s been fixed in the latest trunk.

    https://bbpress.org/forums/topic/wp-function-error/

    https://bbpress.org/forums/topic/bbpress-0904-and-10-alpha-5-released/page/2#post-22557

    https://bbpress.org/forums/tags/mbcs

    #71194

    @Sam

    Please correct me if I’m wrong, but if you check out http://www.delsolownersclub.com/forums/, the links for the feeds from WordPress seem to point exactly where they should.

    The only problem that I had personally was using wp_enqueue_script('jquery'); in my wordpress functions.php file. I replaced it with

    if (!defined('BB_PATH')) {
    wp_enqueue_script('jquery');
    }

    And all is well again.

Viewing 25 results - 25,901 through 25,925 (of 32,495 total)
Skip to toolbar