Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,101 through 24,125 (of 32,522 total)
  • Author
    Search Results
  • _ck_
    Participant

    It’s PHP 101

    $_SERVER['REQUEST_URI']

    jurasiks
    Participant

    Hello, i need to use current page link for some code, how to get it from bbpress?

    bb_uri(); returns main page link, but i need to get link where is user now.

    it’s possible?

    bbpress 1.0.2

    thank you

    upd1: found after 1 min: <?php bb_location(); ?> don’t works (returns only current name of page, etc: topic-page, forum)

    #77688
    hpguru
    Member

    Thank you. Works to me. :)

    #77686
    _ck_
    Participant

    I’ve put a ticket into Trac for you. If Sam agrees, it might show up in 1.1

    If you simply must have it now, you can try making a plugin:

    <?php
    add_action( 'bb_admin_notices' , 'forums_started');
    function forums_started() {printf('<p>'.__('Forums started %s ago.').'</p>', bb_get_inception()); }
    ?>

    #77631
    anandasama
    Member

    In order of importance (1 being the most critical):

    1. When I see a highlighted topic with new posts, it redirects me to the First page when I click the link.


    2. To update the “All Topics Read” I have to push this button Twice. I dunno why.

    edit: Is there like this only when I have both last read and New topics function on?

    3. [RESOLVED] I would like the topic to be automatically read after looking at it. How to achieve this?

    For now they keep higlighted until i clear all posts read. I, as a forum user, would only like to be notified if there is a topic with new posts. I dont want it to be flagged red again until it got new unread posts.

    edit: Sorry I just had to disable the

    $unread_posts['indicate_last_login']=false;

    4. It would be nice with a function to mark specific threads as read. Like If i dont want to be notified anymore of new posts in a specific thread.

    #77656
    Stunt
    Member

    Yes. Bad idea? =

    #77701

    I’m assuming you have it like this:

    /site1/wordpress files
    /site2/wordpress files

    and not /site1/wordpress/wordpress files

    Right?

    If so, just put it the site1 folder as a ‘forums’ folder and you should be fine.

    #77586
    Rohan Kapoor
    Member

    Yeah an iframe would do the job properly and it wouldn’t look ugly either, :P

    #56569
    deadlyhifi
    Participant

    I find that very odd. As it’s working perfectly well for me. Did you put function filter_front_page_topics($where) in a plugin and activate it?

    #77175
    anandasama
    Member

    I still have one problem. the TinyMCE seems to strip alot of the p tags in the WYSIWYG environment when editing a post, and everything appears on one line. But after saving the changes, the post looks normal with the tags in correct place. It’s just the editing that looks strange.

    I have no idea how to solve this. I tried to add a class to each P element created but then TinyMCE wanted to create extra <p>&nbsp;</p> elements, spacing everything out in the posted text.

    recronin
    Member

    Hello,

    I saw a somewhat similar post on here about integrating bbpress into wordpress pages, but what I want to do is relatively simpler than that.

    Basically all I want to do is to “embed” a given bbpress forum into a static webpage. I’d like to not have the top header and all of the navigational links appear, but I’ll take what I can get for now ; P

    Using the <php include> tag I was able to embed a forum into a webpage, but the problem is that the area I want to embed into is 500px wide. The bbpress forum is inside of that area but also spills out onto the rest of the page. The php include is being placed into a <div> area and I want the width fixed while the height changes based on how much content is inside it.

    My code looks like:

    <?php include(‘http://example.com/forums/forum.php?id=12&#8217;); ?>

    I’m sure the best way to do what I want would be something like:

    <?php include(‘../forums/forum.php?id=12’/main_forum); ?>

    but I’m not too sure.

    Any ideas?

    Thank you!

    Adam Lawton

    recronin
    Member

    Hello,

    I saw a somewhat similar post on here about integrating bbpress into wordpress pages, but what I want to do is relatively simpler than that.

    Basically all I want to do is to “embed” a given bbpress forum into a static webpage. I’d like to not have the top header and all of the navigational links appear, but I’ll take what I can get for now ; P

    Using the <php include> tag I was able to embed a forum into a webpage, but the problem is that the area I want to embed into is 500px wide. The bbpress forum is inside of that area but also spills out onto the rest of the page. The php include is being placed into a <div> area and I want the width fixed while the height changes based on how much content is inside it.

    My code looks like:

    <?php include(‘http://example.com/forums/forum.php?id=12&#8217;); ?>

    I’m sure the best way to do what I want would be something like:

    <?php include(‘../forums/forum.php?id=12’/main_forum); ?>

    but I’m not too sure.

    Any ideas?

    Thank you!

    Adam Lawton

    #77573
    chrishajer
    Participant

    You will need someone who can help you debug the code then. Something is out of order.

    You can post your whole topic.php at pastebin and post a link here:

    http://pastebin.com/

    Make sure you let the code stay there longer than one day (default is a month which should be OK)

    #77495

    In reply to: All RSS Feeds Broken?

    chrishajer
    Participant

    Sorry, I was substituting pseudo-variable names in there: $site_title is the site title from the admin (“bbPress Support Forums” here) and the $topic_title is the topic title (this topic has “All RSS Feeds Broken?”). So, here, the RSS description is

    bbPress Support Forums » Topic: All RSS Feeds Broken?

    .......................^

    and in a 1.0.1 installation it is

    bbPress Support Forums Topic: All RSS Feeds Broken?

    There is no raquo in the 1.0.1 installation, and the feed validator is complaining about that one character.

    #77494

    In reply to: All RSS Feeds Broken?

    Rohan Kapoor
    Member

    Neither the rss.php nor the theme specific rss2.php have either of those lines of code in them. Do you want to elaborate, please?

    #77572
    vlovers
    Member

    I understood the code and I had tried something similar before putting this thread here live but then the topic page fails to load, i don’t know what I m doing wrong ?

    #77571
    chrishajer
    Participant

    Just add it to the template file. To make it show up after the first post only, you need a counter to see which post you’re looping through. I did something like this:

    <ol id="thread" class="list:post">

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
    <?php bb_post_template(); ?>
    </li>
    <?php if ($adcounter == 0) {
    $adcounter++;
    // <div id="adcode">paste ad code here</div>
    } ?>
    <?php endforeach; ?>

    </ol>

    Basically just add the adcounter check and ad code right after the closing <li> right after the post_template. You’ll have to adjust the particulars for your installation, but this is the basic process.

    #77493

    In reply to: All RSS Feeds Broken?

    chrishajer
    Participant

    I have a 1.0.1 installation that works fine, but this 1.0.2 installation does not seem to work.

    One difference I noticed in the 1.0.1 installation. When you click on a topic feed, the feed <description> looks like this:

    $site_title Topic: $topic_title – the » is missing.

    With the 1.0.2 feed, it looks like this:

    $site_title » Topic: $topic_title

    It’s the » that is creating problems in the feed, at least with Firefox and IE8.

    #77538

    In reply to: User roles

    chrishajer
    Participant

    Start by looking at bb-includes/capabilities.php. It defines all the roles. If you want to modify permissions, there are plugins for that depending on the version of bbPress you are using:

    1.0

    https://bbpress.org/plugins/topic/role-manager/

    0.9

    Maybe a plugin was never written? (can’t find it right now)

    #77490

    In reply to: All RSS Feeds Broken?

    RSS feeds work here and on other sites, so I’m going to guess it’s deep integration or …

    XML Parsing Error: undefined entity
    Location: http://canadianrugby.ca/forums/rss/topic/canadian-players-overseas
    Line Number 10, Column 38: <description>Canadian Rugby Forums &raquo; Topic: Canadian Players Overseas</description>
    ^

    Might that be related to https://bbpress.org/forums/topic/fix-to-rss-xml-parsing-error#post-8864

    #77472
    orizine
    Member

    yep, I’m interresting by buddypress.org forum theme cause it is full tableless, and really fine ;) exactly what i’m looking for…

    I’ve done one but i’m really not a good devellopper, and code is really not perfect…

    http://www.mummujoruxu.com/forum/

    #77466
    hpguru
    Member

    Thank you, ck.

    I update to 1.0.2. I use 13 plugin. 11 works fine, 2 no. I delete 2 and wait your update… Anonymous Posting and plugin, which add name field etc. to quest form. Download again, when you update, know that this may need more time to fix. :)

    #77465
    _ck_
    Participant

    If you edited the kakumei files directly, simply rename that folder, ie.

    kakumei -> my-kakumei

    Then you can copy the original kakumei from the bbPress 0.9 zip.

    #77456
    _ck_
    Participant

    One thing I see that changed in 0.9.0.5 is Sam put exit; after all the redirects.

    In my experience I have found some weird behavior where redirects don’t happen in some cases because the exit will happen before headers are sent for the page. It shouldn’t put it does in some PHP versions/apache configurations. Probably because of buffering.

    So as an experiment, maybe try editing the core file bb-login.php (not the template)

    See this change:

    https://trac.bbpress.org/changeset/1939/branches/0.9/bb-login.php?old=1888&old_path=branches%2F0.9%2Fbb-login.php

    Put a comment in front of that exit;

    bb_safe_redirect( $re );
    // exit;

    and see if that makes it act any differently.

    #77455
    _ck_
    Participant

    It’s possible I broke something in the new bb_safe_redirect however I have tested it working and I have not seen any other complaints (and there have been several registrations on my site).

    Actually I just noticed you said it doesn’t work with 0.9.0.5 which didn’t have my change.

    Have you tried deactivating your plugins temporarily to see if any interfere?

    Let’s look at what changed from 0.9.0.4 to 0.9.0.5

    https://trac.bbpress.org/changeset?old_path=%2Ftags%2F0.9.0.4&old=1898&new_path=%2Ftags%2F0.9.0.5&new=2131

Viewing 25 results - 24,101 through 24,125 (of 32,522 total)
Skip to toolbar