Search Results for '"wordpress'
-
AuthorSearch Results
-
August 9, 2007 at 4:56 pm #59892
In reply to: Always login
fel64
MemberI 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;
}
}August 9, 2007 at 4:47 pm #59816In reply to: bbPress Login from WordPress
MaryJane
MemberThis 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 :
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.
August 9, 2007 at 3:21 am #59815In reply to: bbPress Login from WordPress
Detective
MemberHi!
I don’t use BBPress in that site, i’m installing it on another site, and there the code i posted works
August 9, 2007 at 3:19 am #59814In reply to: bbPress Login from WordPress
avatarx
MemberHey 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.
August 8, 2007 at 3:30 pm #59869In reply to: Askimet as a plugin?
_ck_
ParticipantI’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.
August 8, 2007 at 9:20 am #58970In reply to: Plugin: Admin Post Anything
_ck_
ParticipantUpdated 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)
August 8, 2007 at 9:15 am #59868In reply to: Stopping backslashes before quote marks
_ck_
ParticipantProblem 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
August 8, 2007 at 3:43 am #59813In reply to: bbPress Login from WordPress
Detective
MemberThis 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>August 8, 2007 at 3:35 am #59812In reply to: bbPress Login from WordPress
avatarx
MemberI 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.
August 8, 2007 at 1:54 am #52079In reply to: Simply doesn’t work
wazzupdude
MemberOptions +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.
August 8, 2007 at 1:38 am #55379In reply to: Pretty Permalinks Not Working
drewstylz
MemberI 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.
August 7, 2007 at 8:47 pm #59856In reply to: Favorites on wordpress profile
vlp
MemberI’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.
August 7, 2007 at 8:32 pm #59855In reply to: Favorites on wordpress profile
so1o
Participantvlp..
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?
August 7, 2007 at 7:56 pm #59854In reply to: Favorites on wordpress profile
vlp
MemberI 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
August 7, 2007 at 7:40 pm #59853In reply to: Favorites on wordpress profile
so1o
Participantyup 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; ?>
August 7, 2007 at 5:41 pm #59852In reply to: Favorites on wordpress profile
vlp
MemberSo 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?
August 7, 2007 at 3:47 pm #59851In reply to: Favorites on wordpress profile
so1o
Participanthere 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
}August 7, 2007 at 3:33 pm #59626In reply to: AdityaNaik.com
August 7, 2007 at 2:09 pm #58456In reply to: doesn’t work admin panel
_ck_
ParticipantIf 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”
August 7, 2007 at 12:41 pm #59811In reply to: bbPress Login from WordPress
fel64
MemberCan 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
.August 7, 2007 at 7:07 am #59810In reply to: bbPress Login from WordPress
avatarx
MemberThanks 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!
August 7, 2007 at 6:40 am #2213Topic: Favorites on wordpress profile
in forum Installationvlp
MemberHi,
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
August 6, 2007 at 9:10 pm #59452In reply to: How to link to favorites of logged user
vlp
MemberMy 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/<?php echo $user_identity; ?>/favorites” it takes me to “http://www.tasty.sk/user/vlp//favorites”
Any ideas why could be this happening?
Or how to integrate favorites page (what url) to show it inside wordpress?
August 6, 2007 at 8:28 pm #2210Topic: Integrated Live Search
in forum Installationso1o
ParticipantHere is a how-to on the integrated live search for bbpress and wordpress
http://www.adityanaik.com/integratepress-part-ii-live-search/
August 6, 2007 at 5:42 pm #49558In reply to: Plugins for WordPress integration
so1o
Participantadd these pluginsin bbpress
https://bbpress.org/plugins/topic/2
https://bbpress.org/plugins/topic/4
and this one in wordpress..
-
AuthorSearch Results