Search Results for 'code'
-
AuthorSearch Results
-
September 6, 2009 at 2:29 pm #78692
In reply to: Avatar sharing between buddypress and bbpress
gerikg
Memberthis is the code I use… (in post.php) hopefully that can lead you in the right track to finding the right code for your plugin.
<?php echo bp_core_get_avatar( get_post_author_id() ); ?>September 6, 2009 at 2:20 pm #78557In reply to: Free hosting for bbPress
Olaf Lederer
ParticipantI think you need more since there are sites providing buddypress+wordpress+bbpress

success with your free hosting site
September 6, 2009 at 11:36 am #76967In reply to: Kin Kakumei (Gold Kakumei)
Marius-
Memberkirpi.it, here is the code, like Kawauso pointed out:
#latest th a, #forumlist th a, #favorites th a {style.css (line 714)
-moz-border-radius-bottomleft:6px;
-moz-border-radius-bottomright:6px;
-moz-border-radius-topleft:6px;
-moz-border-radius-topright:6px;
background-color:#9D0000;
border:1px solid #FFFFFF;
color:#FFFFFF;
padding:2px;You can see this theme in action at http://www.michaeljackson.no/forum
September 6, 2009 at 10:26 am #76966In reply to: Kin Kakumei (Gold Kakumei)
Adam Harley (Kawauso)
MemberIt’s using class
new-topic, so you’d need.newtopic {}… it can’t be found because there’s no actual CSS affecting it specifically. I’d recommend using Mozilla Firefox’s DOM inspector or looking at the HTML source to find class/ID tags for things.Oh, and it’s affected by (in Kakumei at least):
#latest th a, #forumlist th a, #favorites th aanda:visitedSeptember 6, 2009 at 8:22 am #77510In reply to: All RSS Feeds Broken?
Adam Harley (Kawauso)
MemberThat’s weird. Seems to be throwing
<![CDATAin still… could you check if there’s arss2.phpin your template’s directory and if so either change that or delete it? That’s the only thing I can think of that might be causing that. Forgot themes usually copy everything.September 6, 2009 at 7:15 am #78646In reply to: If BBpress then, else
Ashish Kumar (Ashfame)
ParticipantIf they are deeply integrated then you will have a hard time figuring this out as if you ask
Is this is WP?WP will say yes and if you askIs this is bbP?then bbP will say yes and if they are deeply integrated then both questions will return a yes.September 6, 2009 at 1:47 am #76108In reply to: Categories at the top?
Adam Harley (Kawauso)
MemberHmm? I accidentally left the comment saying
// List forumsin there, but in actual fact that will only return categories, not forums in them because it does thebb_get_forum_is_category()check. If you’re referring to the normal forum code infrontpage.php, taking that out will take out the normal list of forums you see there, so I’m not sure if that’s what you want to do.September 6, 2009 at 1:34 am #78593In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
MemberSorry about that!
September 6, 2009 at 12:27 am #76107In reply to: Categories at the top?
rgregory1
MemberThanks mate, and then I remove the similar code at the bottom? Because if I understand correctly, I will then have two listings of forums.
September 5, 2009 at 10:27 pm #78591In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
Member@ashfame have a look at the bottom of
front-page.php, it should read<div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Add New Topic'); ?></div>. Your code seems to have somehow dropped everything between the last two PHP snippets and the trailing</div>too. That’s not being returned by the breadcrumb function though at least, so it should be easier to fix
if it doesn’t work with your template’s front-page.php deleted/renamed though, there might be something wrong with your core files.
September 5, 2009 at 9:46 pm #78590In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
Member@gerikg he’s trying to fix an additional
<a>with no closing tag in the new post form, not generate a link to it
September 5, 2009 at 9:02 pm #31639Topic: If BBpress then, else
in forum Installationgerikg
MemberWPMU+BuddyPress+BBpress
How do you write the php code to say
if in a bbpress side
do this
if wordpress (or else) do that.
?
September 5, 2009 at 7:08 pm #78588In reply to: Need to fix a couple of things in theme
chandersbs
MemberMaybe you can hardcode the URL like this http://domain/forum.php?id=9#postform
September 5, 2009 at 6:40 pm #78587In reply to: Need to fix a couple of things in theme
Ashish Kumar (Ashfame)
ParticipantMine post-form.php is exactly the same as that of Kakumei.
I can trace the problem to an unclosed anchor tag
<a>which is inbbcrumbDIV.Where does this code comes from? I mean which file?
Username:demo
Password:demo
I don’t get any of what you are trying to tel me. Probably you misunderstood my question.
September 5, 2009 at 3:46 pm #73176In reply to: target _blank
Fernando Tellado
ParticipantGreat idea!
I’ve applied this way and works fine …
<?php/*
Plugin Name: Target Blank
Plugin URI: https://bbpress.org/forums/topic/target-_blank
Description: Abre los enlaces del foro en nueva ventana. Nada que configurar, lo activas y funciona. Creado desde una idea de _ck_.
*/
function bb_target_blank( $text ) {
$text = preg_replace('||i', '', $text);
return $text;
}
add_filter('post_text', 'bb_target_blank',255);
?>
Thanks _ck_
September 5, 2009 at 3:23 pm #78658In reply to: Connecting Facebook group to BBPress ?
Adam Harley (Kawauso)
MemberI’m afraid I didn’t make it, so I can’t help you too much there, sorry. You used the full ID after
http://www.facebook.com/group.php?gid=right?September 5, 2009 at 3:07 pm #78669In reply to: canonical URLs for bbPress 1.02?
Fernando Tellado
ParticipantYou may do it by .htaccess …
From www to no-www
Options +FollowSymLinksRewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www.myforums.com.com
RewriteRule (.*) myforums.com/$1 [R=301,L]
and the opposite …
Options +FollowSymLinksRewriteEngine on
RewriteCond %{HTTP_HOST} ^myforums.com [NC]
RewriteRule ^(.*)$ http://www.myforums.com/$1 [L,R=301]
September 5, 2009 at 2:52 pm #55563In reply to: Hooks & Filters Docu
Olaf Lederer
Participantno that is link is Okay, but his server is hacked
September 5, 2009 at 2:34 pm #78666In reply to: The Wiki Post plugin can't use in bbPress 1.0.2
leoleoleo
MemberThanks for help, your code is work fine for install. but the wiki history function still not work.
September 5, 2009 at 1:38 pm #78655In reply to: Connecting Facebook group to BBPress ?
Adam Harley (Kawauso)
MemberFrom what I can tell, the only things relating to groups in Facebook’s API are
groups.get
Returns all visible groups according to the filters specified.
groups.getMembers
Returns membership list data associated with a group.I think you’d therefore have to scrape the Facebook page manually and parse it’s HTML to pass back Facebook posts. Do-able, but it wouldn’t be very good for keeping in sync well.
September 5, 2009 at 12:58 pm #78667In reply to: css problem
Olaf Lederer
Participantmight be changed in my own sheet, but this is the class:
#latest th, #forumlist th, #favorites th {
text-align: left;
background-color:#666666;
font: 11px Arial, Helvetica, sans-serif;
font-weight: normal;
padding: 5px 9px;
color:#fff;
white-space: nowrap
}September 5, 2009 at 12:03 pm #78665In reply to: The Wiki Post plugin can't use in bbPress 1.0.2
Adam Harley (Kawauso)
MemberChange
@require_once( BB_PATH . BB_INC . 'registration-functions.php');to@require_once( BB_PATH . BB_INC . 'functions.bb-meta.php');on line 77 ofwiki-post.phpto get it to load. I’m not sure how to fix anything else though.September 5, 2009 at 11:48 am #78650In reply to: prevent bbpress from encoding & nbsp;
Adam Harley (Kawauso)
MemberFor some reason it doesn’t get escaped by anything. How weird. Okay, the hackiest way of doing it ever:
function bb_escape_nbsp( $text ) {
$text = str_replace ( ' ', '& ;nbsp;', $text );
return $text;
}
add_filter('post_text', 'bb_escape_nbsp');
add_filter('edit_text', 'bb_escape_nbsp');Take out the space between amp and ;
September 5, 2009 at 9:31 am #31642Topic: prevent bbpress from encoding & nbsp;
in forum TroubleshootingTomcraft1980
MemberHi there,
I have the Problem, that in Code & nbsp; is encoded so the user doens’t see it anymore.
Is there a way to tell bbpress to not encode & nbsp; or does this make other problems?
Kind regards
Tom
September 5, 2009 at 6:37 am #73175In reply to: target _blank
chandersbs
MemberThat was indeed the problem

The plugin is working.
If i detect errors, I’ll report it here.
Thanks very much for your help.
-
AuthorSearch Results