Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 25,201 through 25,225 (of 26,836 total)
  • Author
    Search Results
  • #59892

    In reply to: Always login

    fel64
    Member

    I think bb_cookie is in pluggable.php, so yes. Just look for wordpress documentation on overwriting functions like this (achieveable through plugins).

    Also easy. :)

    add_action('bb_init', 'chuck_out_lusers');
    function chuck_out_lusers() {
    if( !bb_get_current_user() && bb_get_location != 'login-page' ) {
    header('Location: http://blah.example.com/bb-login.php');
    exit;
    }
    }

    #59816
    MaryJane
    Member

    This is what i have for my wp login. I want my users to login/register from the wp side. So i have this snippet of code i gathered from various forum posts as well as some of it was in my current theme.

    It says Welcome guest when you arent logged in or registered and it gives the link to register. If your signed in or sign in it says Welcome username and shows the forum avatar you have set. Based on your user level it shows you different links for each thing you can do. Like make a post in WP or your profile and favorites in the forum.

    I have a redirect page setup that when you login from this form it just directs you back to the index page instead of going automatically to the dashboard as this confuses most people and the links are on there if your signed in to show you what you can do.

    ** I didnt write this i just gathered it up from various sources on the internet in different forum posts and edited it to suit my needs. Part of it was already wrote into the theme i bought for my wp. **

    pastebin url to it: http://pastebin.ca/651318

    The redirect part is a file i named redirect.php and placed in my wp main directory with a redirect link to the main page. You can see that bit here :

    http://pastebin.ca/651326

    If you have your bbpress intergrated well with wp you should be able to use the same form on your forum. That is what i use.

    #59815
    Detective
    Member

    Hi!

    I don’t use BBPress in that site, i’m installing it on another site, and there the code i posted works :)

    #59814
    avatarx
    Member

    Hey Detective, thanks for the code snipet. I checked out your site and I see it on your sidebar in the forums but not on your main WP sidebar? BTW, nice looking site. :)

    #59869

    In reply to: Askimet as a plugin?

    _ck_
    Participant

    I’m kinda surprised that they didn’t just port the wordpress plugin.

    It has more features and given how Matt wanted to make bbpress so “light”, virtually everything should be optional.

    I guess they figured forums would be a huge target without any kind of captcha or turing test for signup.

    #58970
    _ck_
    Participant

    Updated to v0.05 with important improvements to make sure admin posts are filtered correctly, please upgrade if currently using:

    http://ckon.wordpress.com/files/2007/08/admin-can-post-anything.txt?v005

    (also in the svn shortly)

    #59868
    _ck_
    Participant

    Problem fixed and plugin enhanced slightly, v0.05

    You can wait for the plugin browser to update or direct:

    http://ckon.wordpress.com/files/2007/08/admin-can-post-anything.txt?v005

    #59813
    Detective
    Member

    This is what i do in my sidebar (in WP and BB):

    <form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
    <label for="log">Usuario<br /><input type="text" name="log" id="log" value="" size="22" /></label>
    <label for="pwd">Password<br /><input type="password" name="pwd" id="pwd" size="22" /></label>
    <input type="submit" name="submit" value="Ingresar" class="button" />
    <label for="rememberme"><small><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Recordarme</small></label><br />
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
    </form>

    #59812
    avatarx
    Member

    I just downloaded Firefox w/Firebug and looking at the message it appears to be related to another plug-in I am using. Otherwise I think it works fine, but it’s looking like more customization than I want to do right now for those behaviors I was talking about. I think I’ll just stick with what I have, but thanks to both for your help! I’ll provide a link to my site once it’s live, right now it’s kind of a mess. ;)

    #52079

    In reply to: Simply doesn’t work

    wazzupdude
    Member

    Options +MultiViews

    Did not work for me.

    I placed the .htaccess in the folder /forums (that is where the bbpress is installed. No luck. Tried placing it below the .htaccess at root used by wordpress. No Luck! I also copied the above stuff and put it at the root together with wordpress’s .htaccess, but no luck!

    I love your wonderful program. But I can’t get this thing to work.

    Can anyone help me please ?

    forums/bb-admin/rewrite-rules.php

    gave me this :

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /forums/

    RewriteRule ^forum/(.+)/page/([0-9]+)$ /forums/forum.php?id=$1&page=$2 [L,QSA]

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

    RewriteRule ^topic/(.+)/page/([0-9]+)$ /forums/topic.php?id=$1&page=$2 [L,QSA]

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

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /forums/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /forums/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /forums/tags.php [L,QSA]

    RewriteRule ^profile/(.+)/page/([0-9]+)$ /forums/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/(.+)/([a-z-]+)$ /forums/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/(.+)/([a-z-]+)/page/([0-9]+)$ /forums/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/(.+)/?$ /forums/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /forums/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /forums/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /forums/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /forums/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /forums/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z-]+)$ /forums/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /forums/rss.php?profile=$1 [L,QSA]

    </IfModule>

    Thank you so much for taking the time to read this post.

    #55379
    drewstylz
    Member

    I have a variant of this problem.

    When I run my bbpress with a url through a directory under my domain (drewstylz.com/forums), using permalinks works ok. But when I try to run bbpress through a subdomain url (forums.drewstylz.com), the permalinks don’t work at all. They are generated correctly but clicking on any permalink only brings me to the forum home page. Running bbpress without permalinks does still work however.

    I’ve tried following the FAQ but neither of the options have worked. I do have wordpress installed in the root directory of my domain and bbpress in a subdirectory so I’m thinking that may be the issue but I don’t know which part would be affecting it. I’ve also tried renaming the .htaccess file in my root directory and then following the suggestions from the FAQ but when I disable the .htaccess file in the root folder, clicking on the permalinks just brings me to a “url not found” page.

    Does anyone have any suggestions on what I can do?

    I can post my .htaccess files if necessary. I’ve left my current bbpress configuration with the problem if anyone wants to take a quick look.

    http://forums.drewstylz.com/

    #59856
    vlp
    Member

    I’m sorry, I confused little myself too:)

    Ok here is the deal

    Because the bbpress profile page doesn’t work, I want to show user favorites on wordpress profile page (the best on separate page – tab), like Extended Profile from Userextra plugin.

    #59855
    so1o
    Participant

    vlp..

    you said you want to show the favorites in the wordpress profile.

    http://www.tasty.sk/forum/profile/username/favorites

    this is the link to the bbpress profile page.

    i am confused now :) can you try to explain again what are you trying to do?

    #59854
    vlp
    Member

    I change it, know there is no error, but no favorite forum shows up.

    The deal is that my favorites dissaper, if I point my browser to http://www.tasty.sk/forum/profile/username/favorites, it redirects me to http://www.tasty.sk/user/username//favorites

    It worked before, but probably I changed something so I thought maybe I create another favorites page :)

    #59853
    so1o
    Participant

    yup use it in wordpress.. if i understand you right.. you want to show it on the wordpress profile page right? the one which is

    <you website.com>/wp-admin/profile.php

    try changing the code to

    <?php if ($topics): foreach ( $topics as $topic ) : ?>

    ..

    ..

    ..

    ..

    ..

    <?php endforeach; endif; ?>

    #59852
    vlp
    Member

    So if I understand right, I should use this code as a WP plugin?

    I tried that and I get an error:

    Warning: Invalid argument supplied for foreach() in /home/tasty.sk/tasty.sk/www/wp-content/plugins/bbpress-favorites.php on line 30

    It is shown in profile main page…it is possible to create another separate page for that?

    #59851
    so1o
    Participant

    here is the hacked code.. this will show the favorites on profile page in the admin section of wordpress. I haven’t tested it but this is the basic idea.

    please note that the wordpress must be integrated both ways before you can do this. visit this for more

    add_action('show_user_profile',
    'my_plugin_show_favorites');

    function my_plugin_show_favorites() {
    $topics = get_user_favorites( $user->ID, true );
    ?>
    <br clear="all" />

    <table width="99%" border="0"
    cellspacing="2" cellpadding="3">
    <tr>
    <th><?php _e('Topic'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    <th><?php _e('Remove'); ?></th>
    </tr>

    <?php foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>">
    <?php topic_title(); ?></a></td>
    <td class="num"><?php
    topic_posts();
    ?></td>
    <td class="num"><small><?php
    topic_time();
    ?></small></td>
    <td class="num">[<?php
    user_favorites_link(
    '',
    array('mid'=>'x'),
    $user_id
    );
    ?>]</td>
    </tr>
    <?php endforeach; ?>
    </table>

    <div class="nav">
    <?php favorites_pages(); ?>
    </div>
    <?php

    }

    #59626

    In reply to: AdityaNaik.com

    so1o
    Participant

    no. Its gravatar for wordpress integrated for bbpress

    #58456
    _ck_
    Participant

    If you can get to “/forums/bb-admin/” (replace forums with whatever you called it) it might be your cookies.

    You need to make sure your cookies are all pointing to the root of your website for both bbpress and wordpress. By default they are not so it’s probably preventing login?

    See here:

    https://bbpress.org/forums/topic/wordpressbbpress-single-sign-on?replies=22#post-9010

    and

    https://bbpress.org/forums/topic/cookie-integration-for-wordpress?replies=3#post-6496

    and a few other threads if you search for “cookies”

    #59811
    fel64
    Member

    Can you link us to it?

    The login functions that logs you into bb redirect you to the forums. It may be possible to change that behaviour but I’m not immediately sure how – probably using an action or filter, possibly the action bb_user_login.

    #59810
    avatarx
    Member

    Thanks fel64, that did it, sort of… I inserted the line at the end of my wp-config.php file and that allows me to call the login_form() PHP function from bbPress from within WP. The page loads fine except I do get an error message at the bottom of my browser (using IE 7) that says, “Done, but with errors on page”. I think this means there’s a javascript error somewhere? No idea where to start looking for this. Any thoughts?

    Also, it doesn’t quite work as desired since when you do anything with the login form it redirects you to the forums which makes sense but not the behavior I want. I think I may forego any further modifications for now but I like the idea of the deeper integration between WP and bbPress. If I can figure out the error I may be able to dabble more later as I learn more PHP.

    Thanks!

    #2213
    vlp
    Member

    Hi,

    I would like to integrate bbpress user favorites to wordpress profile page. Is there any hook I could use?

    I search the forum but I couldn’t find anything relevant.

    thanks

    #59452
    vlp
    Member

    My solution from my last comment worked fine, but it stops I don’t know why.

    Right know, if I point to “http://www.tasty.sk/forum/profile/&lt;?php echo $user_identity; ?>/favorites” it takes me to “http://www.tasty.sk/user/vlp//favorites&#8221;

    Any ideas why could be this happening?

    Or how to integrate favorites page (what url) to show it inside wordpress?

    #2210
    so1o
    Participant

    Here is a how-to on the integrated live search for bbpress and wordpress

    http://www.adityanaik.com/integratepress-part-ii-live-search/

    #49558
    so1o
    Participant
Viewing 25 results - 25,201 through 25,225 (of 26,836 total)
Skip to toolbar