Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,576 through 27,600 (of 32,495 total)
  • Author
    Search Results
  • #55815
    chrishajer
    Participant

    If you look at the plugin, it’s pretty simple. Line 12:

    if (bb_current_user_can('administrate')

    If you want to allow other users to do everything that this plugin allows, you would need to change ‘administrate’ to whatever permission your users have. I am not going to post exactly how to do it, since I think it could be a potential security hole, but that line right there is the key. Take a look at the plugin and see what I mean.

    https://bbpress.org/plugins/topic/admin-can-post-anything/

    #65222
    chrishajer
    Participant

    I think you need to include WordPress in your bbPress so you have access to WordPress functions like get_header:

    https://bbpress.org/documentation/integration-with-wordpress/#func

    Then, in your template, you need to do something like this:

    <?php get_header(); ?>

    That will include the WordPress header. If you do the second part without the first, it will fail because get_header is a WordPress function.

    I think… :-)

    #3437
    sepidol
    Member

    i just solved my login cookie issue after one night debugging…

    i found these things:

    – by default, wpmu generate auth_cookie as “wordpress”, but bbpress generate as “wordpress_xxxxx(hash)”

    – wpmu not using “database secret” for cookie hashing, but it use the SECRET_SALT constant defined in the wp-config.php, bbpress using “database secret”. so the cookie result will never be the same.

    you need to update your bb-config.php file to meet these situations.

    assumed you’ve successfully install wpmu + bbpress, then edit your bb-config.php and add these line:

    define(‘BB_SECRET_KEY’, ‘yourreallysecretkey’);

    define(‘BB_SECRET_SALT’, ‘yourreallysecretsalt’);

    $bb->authcookie = ‘wordpress’;

    $bb->cookiedomain = ‘.yourdomain.com’;

    $bb->cookiepath = ‘/’;

    $bb->sitecookiepath = ”;

    and try to login… voila.. you can switch to bbpress and wpmu without re-login… :)

    good luck,

    rh

    #49653

    In reply to: Emoticons For bbPress?

    exchequer598
    Member

    _ck_:

    The insert function in Comment Quicktags for bbPress can easily be reused to insert smilies.

    Can you please show us how? Thanks :-)

    #64673
    manomalt
    Member

    OK, I have the bbpress login and the wp login using the same user database under wp. The only issue that I have left is my loss of keymaster under the bbpress install. My problem with this is that I did auto-installs of both programs…so I didn’t get any options to set the keymaster/admin settings. I have read this post: wpbb-integration-admin-problem#post-2539 and I think that that it’s what I need to do. Problem is…I don’t know how to change this. I don’t see any code that looks like that which is being referred to. Anyone have a more detailed description of what I’m trying to do? Thanks.

    #65174
    citizenkeith
    Participant

    Are you planning on writing instructions and adding it to the plugin directory? I’m sure many would appreciate official releases of both this one and PM Extended. :-)

    #64672
    manomalt
    Member

    Man…i’ve been trying to get bbpress in integrate (sso) for about 4 days now. I’ve tried just about everything these forums have recommended. I first installed WordPress (upgraded to 2.5.1), and then installed the newest version of bbpress in a subdirectory, like http://www.mysite.com/forum. I then went to my “wordpress integration” section of my bbpress installation, set it up as directed…and now I can’t login to the admin section of my bbpress site. I looked into seryi’s suggested changed above, but my code seems to be correct in my pluggable.php file. I tried the “fix admin” plugin from here: https://bbpress.org/plugins/topic/fix-admin-access/. I also tried this process (https://bbpress.org/forums/topic/wpbb-integration-admin-problem#post-2539) of changed the phpmyadmin, but I’m confused on what to add where. Is there anything else I can try in order to get this integration working?

    #3433
    huckmag
    Member

    Hi,

    Hello all,

    I’m currently working on an install of bbPress on a website that uses the Equal Height Column CSS technique.

    There is a known issue with this and anchor tags as explained at length here:

    http://www.positioniseverything.net/articles/onetruelayout/appendix/equalheightproblems

    Unfortuantely it doesn’t seem like there’s an easy work around.

    So my question is…

    How easy would it be to remove the anchor jumps from the ‘post’ topic/ ‘edit’ topic etc?

    So for example when you post a reply it doesn’t go to

    topic.php?id=5&replies=2#post-8

    but

    topic.php?id=5&replies=2

    instead?

    Any help with this would be massively appreciated. It’s one of those horrible design headaches.

    – Alex

    #65221

    In reply to: Hot Tags

    malfhok
    Member

    Find this function in the front-page.php file of your theme: <?php bb_tag_heat_map(); ?>

    And replace it with this function: <?php bb_tag_heat_map(9, 9, 'pt', 80); ?>

    Here’s what those numbers mean. The first number is the minimum font size, the second is the maximum font size, the third is how to measure the font (pt, px, etc.), and the fourth is how many tags to display.

    #65199
    Detective
    Member

    Now the forums have some activity, as we closed our old Vanilla forums :)

    #65173
    Detective
    Member

    Well, i didn’t write install instructions, so it’s my fault :)

    #65125
    Detective
    Member

    Please add these two fields to your table bb_privatemessages:

    'del_receiver' tinyint(4) NOT NULL default '0'
    'del_sender' tinyint(4) NOT NULL default '0'

    I forgot to put those two on the install function. Now it should work :)

    #65063
    Mufasa
    Member

    We’re going to look at it again later this week. We’re busy building a debain box for a new WordPress MU site that we are about to launch.

    I’m telling you though – if somebody made a [shortcode] and some WP widgets this would be so freaking awesome…. I think my head would just explode :D

    #65124
    citizenkeith
    Participant

    Thanks Detective. Obviously I’m not skilled in PHP.

    The original PM plugin is in desperate need of an update, IMHO, and I was hoping this would be it. However, I didn’t consider that it would even change the database. I guess I’ll stick with the old version for now, but would love for somebody (since I am not a programmer) to come up with some sort of PM import. :-)

    Also, I was using the latest version of Joshua’s PM plugin (v0.80)

    #65122
    citizenkeith
    Participant

    I get this error at the top of the pm.php page:

    bbPress database error: [Unknown column 'del_receiver' in 'where clause']
    SELECT * FROM bb_privatemessages WHERE id_receiver = '1' AND del_receiver= '0' ORDER BY created_on DESC

    bbPress database error: [Unknown column 'del_sender' in 'where clause']
    SELECT * FROM bb_privatemessages WHERE id_sender = '1' AND del_sender = '0' ORDER BY created_on DESC

    Also, all previous Private Messages are missing.

    #65170
    citizenkeith
    Participant

    This appears in the quote box when I load a page:

    <br />
    <b>Fatal error</b>: Call to undefined function bb_quote_message() in <b>/home/zzz/zzz.com/forums/bb-templates/kakumei/post-form.php</b> on line <b>10</b><br />

    #65169
    Detective
    Member

    Small fix:

    $text =  preg_replace('/<blockquote>((.|[nr])*?)</blockquote>/', '',$post->post_text);
    $text = bb_code_trick_reverse($text);

    :)

    #65197

    In reply to: Reading Forum for Kids

    Detective
    Member

    Great site! I try to do something similar in http://www.ficciones.cl :)

    Have any of your members read a book by Roberto BolaƱo or Jorge Luis Borges? Those are my favorite authors. I also like Ray Bradbury, Lewis Carroll, Hugo Pratt and Yukio Mishima.

    #3419
    parthatel
    Member

    How can I create a navigation bar in bbPress so that when I update it in WordPress, it automatically gets updated in bbPress? I don’t want to call the full wp header as the bbPress header, but would I be able to use

    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>

    in bbPress to call the pages in the navigation bar? Both my WordPress and bbPress are integrated in the same databases. If not, how can I do it?

    #3418
    Detective
    Member

    Foros Ryuuko

    I use a custom theme (heavily a modified Kakumei) and some custom plugins. The forum is new, so it doesn’t have activity, all our users are still using the Vanilla forum we had.

    I didn’t hack any core files, all “non standard things” are donde via custom plugins.

    Plugins i use:

    – My own “Ajustes” (for sidebar, footer and navigation menu content, profile content, and some html tags).

    – MD5 Insecurity (will be deactivated soon).

    – Private Messaging Extended

    – A custom Quicktags (ported from Vanilla)

    – Ajaxed Quote

    – Simple Online List (i also modified a lot this plugin, because it never worked for me ….).

    – Unread Topics. I also modified this one, it was doing too many queries. I added some indices and reduced the overhead.

    – User Photo. I ported the User Photo WP plugin.

    – Human Test.

    Also i indirectly use:

    – Gaming Codes: each user can enter his gaming codes. They’re displayed on the user profile.

    Aleph: this plugin creates user lists (among other things). So i use it inside WP like a “member list”. The beauty is that i can easily create different user lists, so i created a list for each gaming code (in other words, users can see which users have a certain gamer code).

    As i said, the theme is a heavily modified Kakumei. I replaced all topics/forum loops with my own, trying to mimick the Vanilla look. Also the css is based on the Tarski theme for WordPress. In fact, i import it directly from the WP installation.

    For the forum/topic icons, i created a custom plugin which printed the css based on the slug of each forum, and then i added the resulting code to the style.css. I still have to create a lot of icons, those are temporary.

    I hope you like my forums and if you have any questions or would like a plugin/theme release, just ask :p

    #65121
    malfhok
    Member

    Great! It works properly now. Thanks for upgrading a very useful plugin. :-)

    #65165

    In reply to: Several domains

    mikelothar
    Member

    Exactly. :)

    #65168
    chrishajer
    Participant

    If you just want the year with php, you don’t need bbPress functions at all, just php:

    <?php echo date('Y'); ?>

    That will echo the current year.

    #3413
    parthatel
    Member

    Just like how WordPress calls time in the footer by <?php the_time(‘Y’); ?> and the name by <?php bloginfo(); ?>. What is the code I need to use for bbPress since <?php the_time(‘Y’); ?> doesn’t work to get the year? I also need to know how to get the bbPress title.

    #65162

    In reply to: Several domains

    chrishajer
    Participant

    Why not redirect them with a permanent 301 redirect? If your host does not offer this, why not create a directory for each domain, like this:

    /var/www/vhosts/domaina.com/

    /var/www/vhosts/domainb.com/

    You install bbPress in the domaina.com/ directory. In the domainb.com/ directory, you put an index.php file in there like this:

    <?php
    header("Status: 301 Moved Permanently", false, 301);
    header("Location: http://www.domainA.com/");
    exit();
    ?>

     

    Then, when anyone accesses http://www.domainB.com/ they are seamlessly directed to http://www.domainA.com/. Would that accomplish what you need?

    You can also use .htaccess for 301 redirects if there is more than one page, like there are search engine results with pages from domainB.com already out there, and you want to redirect them all to domainA.com.

Viewing 25 results - 27,576 through 27,600 (of 32,495 total)
Skip to toolbar