Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,726 through 21,750 (of 32,481 total)
  • Author
    Search Results
  • #82552
    rockyteng
    Member

    hi guys,

    thanks gerikg’s instrucition,very helpful!

    i followed gerikg’s instruction,but meet a problem.

    on task 7 after i clicked on save changes,

    i should get the code below:

    define( ‘COOKIEHASH’, ‘9ff1a614da865684d07223b202d18708’ );

    define( ‘COOKIE_DOMAIN’, ‘.10.10.1.20’ );

    define( ‘SITECOOKIEPATH’, ‘/wordpressmu/’ );

    define( ‘ADMIN_COOKIE_PATH’, ‘/wordpressmu’ );

    define( ‘COOKIEPATH’, ‘/wordpressmu/’ );

    but actually i lost

    define( ‘ADMIN_COOKIE_PATH’, ‘/wordpressmu’ );

    so when i log into bbpress then

    i can log into wordpressmu automatically

    but i cant log into wordpressmu admin automatically

    does anybody have an idea what i have missed?

    your help will be much appreciated.

    thanks guys

    #86332

    In reply to: Topic tags

    chrishajer
    Participant

    One thing, not sure if it matters. The forum pages all return a 404 code, even though the page is displayed. This was an old problem with WordPress integration.

    Here is something:

    http://www.adrogen.com/blog/wordpress-wp-blog-headerphp-causes-404-in-ie/

    Also, are you including wp-load.php or wp-blog-header.php? Should be wp-load.php.

    There is another post on these forums on how to fix it but I cannot find it right now.

    #86331

    In reply to: Topic tags

    chrishajer
    Participant

    I wasn’t able to add a tag either :(

    #86305
    zaerl
    Participant

    Something like:

    <object width="300" height="200">
    <param name="movie" value="your_file.swf">
    <embed src="your_file.swf" width="300" height="200">
    </embed>
    </object>

    #86300

    In reply to: All forums RSS feed?

    zaerl
    Participant

    File rss.php at line 182. It seems that bbPress retrieves the last 35 posts if called like /rss

    if ( !$posts = bb_get_latest_posts( 35 ) )
    die();

    you can add a new case on top of that file but I don’t think that it’s a wise choice expecially if you have a huge forum.

    #86324
    pagal
    Participant

    @ miruru.. I’m happy that you are also interested in this issue… I was also searching the same thing.. but I’m depressed and left if..

    yes you are right this issue is two year old… “but we are new on bbpress”

    I know its not good to highlight someone but It was hurting …

    I was interested in this post https://bbpress.org/forums/topic/forum-list-alterations .. because the Micheal has been successful to solve this issue.. I also tried it… but i had failed.. so then I decided to contact Micheal to solve this issue… I had registered on his site ( http://www.inniosoft.co.cc/devstation ) and ask him to solve this problem… but it was amazing that he is not interested to solve bbpress issues.. and said his forums not just for bbpress.. ( that’s why he is not accessible to his server and he was unable to show the code )…

    he said he will show the code will soon when he will get his server .. so after some weeks I contacted him again becoz its had been toooo late.. huh then he said even he was not able to access his server.. and you know what happed “he deleted me from his forums :-( ” and kick me off by saying that I was against his forum’s term and condition .. and its a “continues ignorance” to ask questions…

    please don’t go there.. its my humble request to all

    otherwise you’ll be depressed like me :(

    we will be happy if someone solve this issue except “Micheal “.

    your well wisher

    Pagal

    #86312

    In reply to: Hide topics

    johnhiler
    Member

    Here are some more detailed instructions for you:

    1) First, create a new forum and call it “Hidden” or something similar.

    2) Upload and activate the Hidden Forums plugin.

    3) Get the forum id number here: http://yoursiteurl.com/forums?forumlist

    For the sake of this example, let’s say the forumid of your new forum you want to hide is #3.

    4) Now edit the settings manually at the top of the plugin:

    http://svn.automattic.com/bb-plugins/hidden-forums/trunk/hidden-forums.php

    Use the settings below, at the end of this post.

    5) Reupload your plugin with the new settings, and see if it works!

    Hope that helps! :-)

    $hidden_forums=array(3); // hide these forums, list by comma seperated number

    $hidden_forums=array(‘keymaster’,’administrator’); // these roles can always see ALL forums regardless

    $hidden_forums[3]=array(‘administrator’,’moderator’); // exact formal role name, *not* ability

    $hidden_forums=array(1); // these users can always see ALL forums regardless

    $hidden_forums=”[H] “; // text, html, css or image to indicate hidden forums/topics, make it =””; if you don’t want any label at all

    #86299

    In reply to: All forums RSS feed?

    ishutan
    Member

    Close, that does give a feed for all the forums, but it looks like it’s only pulling in the most recent posts.

    I’m looking for something that will feed all posts on all forums?

    Thanks. :-)

    #86303
    Gautam Gupta
    Participant

    Just put the embed video code in the front-page.php template.

    #86162
    pagal
    Participant

    @ jomontvm thank you so much…

    I’ll try it soon and tell you what happened…

    Thanks again.. :)

    #86161
    jomontvm
    Participant

    Hi Pagal,

    I have customized the permalink for bbpress, and it works fine. It’s still on the testing stage, though you can try this. The following is the modifications I have done.

    Step 1:


    Open ‘bb-admin/options-permalinks.php’

    You will find a permalink options declaration. Add one more option as shown below, it will add one more option in the permalink options in the backend. You can make the custom option with a text field, in order to customize in your own way (I have done in a predefined format in order to make it simple).


    $permalink_options = array(
    'mod_rewrite' => array(
    'title' => __( 'Permalink type' ),
    'type' => 'radio',
    'options' => array(
    '0' => sprintf( __( '<span>None</span> %s' ), bb_get_uri( 'forum.php', array( 'id' => 1 ), BB_URI_CONTEXT_TEXT ) ),
    '1' => sprintf( __( '<span>Numeric</span> %s' ), bb_get_uri( 'forum/1', null, BB_URI_CONTEXT_TEXT ) ),
    'slugs' => sprintf( __( '<span>Name based</span> %s' ), bb_get_uri( '/forum/first-forum', null, BB_URI_CONTEXT_TEXT ) ),
    'custom' => sprintf( __( '<span>Custom</span> %s' ), bb_get_uri( '/forum/%parent_slug%/%forum_slug%', null, BB_URI_CONTEXT_TEXT ))
    )
    )
    );

    Step 2:


    Now we have to create the custom format of permalinks for forums and topics.

    Open ‘bb-includes/functions.bb-template.php’

    We have to modify two functions ‘get_forum_link’ and ‘get_topic_link’. See the changes I have done for the custom permalink option.


    function get_forum_link( $forum_id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF ) {
    $forum = bb_get_forum( get_forum_id( $forum_id ) );

    if (!$context || !is_integer($context)) {
    $context = BB_URI_CONTEXT_A_HREF;
    }

    $rewrite = bb_get_option( 'mod_rewrite' );

    if ( $rewrite ) {
    $page = (1 < $page) ? '/page/' . $page : '';
    if ($rewrite === 'custom') {
    if ($forum->forum_parent > 0) {
    $parent = bb_get_forum($forum->forum_parent);
    $parent_slug = $parent->forum_slug;
    $custom_link = $parent_slug . '/' . $forum->forum_slug;
    } else {
    $custom_link = $forum->forum_slug;
    }
    $link = bb_get_uri('forum/' . $custom_link . $page, null, $context);
    } else {
    if ( $rewrite === 'slugs' ) {
    $column = 'forum_slug';
    } else {
    $column = 'forum_id';
    }
    $link = bb_get_uri('forum/' . $forum->$column . $page, null, $context);
    }
    } else {
    $query = array(
    'id' => $forum->forum_id,
    'page' => (1 < $page) ? $page : false
    );
    $link = bb_get_uri('forum.php', $query, $context);
    }

    return apply_filters( 'get_forum_link', $link, $forum->forum_id, $context );
    }

    function get_topic_link( $id = 0, $page = 1, $context = BB_URI_CONTEXT_A_HREF ) {
    $topic = get_topic( get_topic_id( $id ) );
    if (!$context || !is_integer($context)) {
    $context = BB_URI_CONTEXT_A_HREF;
    }

    $args = array();

    $rewrite = bb_get_option( 'mod_rewrite' );
    if ( $rewrite ) {
    $page = (1 < $page) ? '/page/' . $page : '';
    if ($rewrite === 'custom') {
    $custom_link = '';
    if ($topic->forum_id > 0) {
    $forum = bb_get_forum($topic->forum_id);
    if ($forum->forum_parent > 0) {
    $parent = bb_get_forum($forum->forum_parent);
    $custom_link = $parent->forum_slug;
    }
    $custom_link .= '/' . $forum->forum_slug;
    }
    if (!empty($custom_link)) {
    $custom_link .= '/topic/' . $topic->topic_slug;
    } else {
    $custom_link .= 'topic/' . $topic->topic_slug;
    }
    $link = bb_get_uri($custom_link . $page, null, $context);
    } else {
    if ( $rewrite === 'slugs' ) {
    $column = 'topic_slug';
    } else {
    $column = 'topic_id';
    }
    $link = bb_get_uri('topic/' . $topic->$column . $page, null, $context);
    }
    } else {
    $page = (1 < $page) ? $page : false;
    $link = bb_get_uri('topic.php', array('id' => $topic->topic_id, 'page' => $page), $context);
    }

    return apply_filters( 'get_topic_link', $link, $topic->topic_id, $context );
    }

    Step 3:


    Now we have to define the htaccess rules.

    Open ‘.htaccess’ file in bbpress root folder, and add following two lines just above the code line – RewriteRule ^topic/?$ /forums/ [R=302,L,QSA].


    RewriteRule ^(.+)/topic/(.+) /forums/topic.php?id=$2 [L,QSA]
    RewriteRule ^forum/(.+)/(.+) /forums/forum/$2/ [L,QSA]

    Here is how my URLs looks after making these modifications:

    Forum URL: mysite.com/forums/forum/en/first-forum-in-english

    Topic URL: mysite.com/forums/en/first-forum-in-english/topic/the-ipad-developers-challenge

    #86307

    In reply to: Hide topics

    johnhiler
    Member

    One option would be to install Hidden Forums, and designate one folder as hidden to all but admins:

    https://bbpress.org/plugins/topic/hidden-forums/

    Then if you wanted to hide a particular topic, you could just move it into your private forum… :-)

    #84563

    In reply to: bbPress mobile version

    I personally use the PHP class found at http://detectmobilebrowsers.mobi/.

    include(‘mobile_device_detect.php’);

    $mobile = mobile_device_detect();

    if(!mobile)

    {

    //echo TinyMCE code

    }

    I had this as a plugin on bbProgress, but i see they’ve even shut their doors (no more message on front page). I’ll try and boot up my old dev machine and find it as a plugin when i get home

    #83592

    As you’re on the forums Marius… Any chance of telling us if this code we’ve given you does work?

    Maybe even throw out a “thank you”, but I realise that’s asking a bit much, we’ll be happy for you to just give us feedback on the code that we’ve written for you to solve your problem.

    Thanks in advance for showing some manners

    Kev

    #85751
    Arturo
    Participant

    after the easter vacation i release the theme! now is working great and all the function are ok ;)

    ~12-15 april.

    sorry for the delay, a new post coming with the link to download the theme.

    #33870
    bramruiter1
    Member

    Is this thing on? Great.

    I’m currently updating my forum to a newer bbPress version and a nicer looking theme. Everything was going fine until I bumped into a few plug-in issues. I have searched the forums and came across this topic, which seems to mark my problem but never gets resolved.

    A recap: I have used the _ck_ plug-in Unread Posts on bbPress 0.9.0.2 and it worked well. I had a bug once in a while (with a topic staying unread, even though I have read it), but it did it’s work properly. When there was a new post, the title of that particular topic went bold. When I clicked on it, the link would lead me to the post which was my last read post. And when I got back to the frontpage, it stopped being bold.

    Now I have downloaded the Unread Post plug-in again and installed it on bbPress Version 1.0.2 for my new forum. Result: the topics stay unread until I logout and the bold titles don’t take me to the last read post.

    So I’ve tried the earlier version by fel64. Indicate New Post doesn’t do anything either. It mimics Unread Post’s bugs.

    Unread topics on the other hand trashed my front-page and won’t take me anywhere since topics does not have an URL like this http://www.domain.com/<div id=.

    I’m really lost here, since these are unresolved problems everywhere I look.

    Could someone please help me out? Please?

    #33868
    djsteve
    Member

    I was poking around in the theme, and in profile.php and have not yet found a way to remove the “website link” in user profiles. Can someone shed some light on this? I am considering taking out the web site link, or adding rel=nofollow to it.. and maybe taking out the email addy off the user profile pages, but no clue where to find this code.

    Help appreciated!

    Steve

    #85362
    Kevin Ryman
    Participant

    Nice find. :)

    #65342
    Kevin Ryman
    Participant

    No it’s not. The site I’m working on can be found at http://neodeviants.com/ :)

    Please should always check the headers, footers, and the main page’s source code for things like that (intrusive advertisement).

    Thankfully, i came up with a cunning solution.

    It’s a new thing some of the kids are using, called Google. I know, it might never catch on, but it’s worth a shot…

    New bbPress Theme: Black-Letterhead

    http://ulyssesonline.com/blackletterhead/

    BBPress Theme

    Now it appears that the theme has been removed entirely, but i’d suggest contacting the Author via his website. It’s a 2 year old theme that really just changes a few colours, so they’ve probably just forgotten about it.

    That said, the theme has been updated for WordPress so there is every chance that the code you need has just been rolled into one.

    Either way, it’s a good place to start :)

    Good Luck

    #85704

    Yes :)

    Just remember that users set tags, and users are notoriously useless.

    Especially if your forum / blog is not aimed at technical people (who have, to a certain degree, become used to the idea of tags for cross pollination).

    #86108

    In reply to: https problem?

    Gautam Gupta
    Participant

    You would need:

    define( 'BB_FORCE_SSL_ADMIN', true ); //force use of ssl in the admin area
    define( 'BB_FORCE_SSL_USER_FORMS', true ); //force use of ssl on user forms like login, registration and profile editing

    You can check the source here – http://xref.yoast.com/bbtrunk/nav.html?bb-settings.php.source.html#l458

    #86107

    In reply to: https problem?

    Kevin Ryman
    Participant

    Did define('FORCE_SSL_ADMIN', true); work?

    #85749
    gerikg
    Member

    and I don’t know what it means… I don’t code.

    #85748
    gerikg
    Member

    I’m working on it but I can’t get the admin bar to show in bbpress.

    I keep getting:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bp_core_admin_bar_css' was given in /homepages/0/00/htdocs/wpbpbbp/wordpress/wp-includes/plugin.php  on line 339

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bp_core_add_js' was given in /homepages/0/00/htdocs/wpbpbbp/wordpress/wp-includes/plugin.php on line 339

Viewing 25 results - 21,726 through 21,750 (of 32,481 total)
Skip to toolbar