Search Results for 'code'
-
AuthorSearch Results
-
May 24, 2007 at 5:13 pm #55801
In reply to: Plugin: YouTube in bbPress
Trent Adams
MemberOff the top of my head, change this line:
if (bb_current_user_can('administrate')) :to something like this:
if (bb_current_user_can('moderate')) :That should get it working!
Trent
May 24, 2007 at 3:16 pm #57807fel64
MemberYou don’t need that file.
You have already installed, right? What did you last change?
May 24, 2007 at 3:15 pm #57806In reply to: Posting New Topics Problem
May 23, 2007 at 9:32 pm #57794In reply to: The Brotherhood of Makuta
fel64
MemberThat’s a cool two-column theme, and I really like what you did with the posts as speech bubbles
I think it would be a good idea to make the left column fixed-width, though, as it looks ‘too’ big on larger screens 
[edit] That’s also really nice use of a clear div to make the post list item expand to the right size. Cool!
May 23, 2007 at 5:36 pm #57777In reply to: Fading Heatmap
benbeltran
Member@box, thanks for the comments … yeah it’s really a matter of keeping your users happy because in the end they’re the ones that decide if your site gets hits or not
… in this particular case, the market – videogame enthusiasts – is one where people tend to identify their tastes in games with signatures… And of course there are regulations on the height and width of the sigs.@wmarcy, well … i have the badges system that is a semi-plugin (i’m still learning about it), and this hack … i edited the bb_get_tag_heat_map function in template-functions to add this code:
if(( $smallest + ( ( $count - $min_count ) * $fontstep ) ) < $smallest+1){
$color = "color:#f9a692;";
}else if(( $smallest + ( ( $count - $min_count ) * $fontstep ) ) <= $largest/2){
$color = "color:#f5795b;";
}else{
$color = "color:#f24c24;";
}right after the
foreach ( $counts as $tag => $count ) {And then i just echoed $color next to $unit; some lines below.
I know it’s not the proper way to do it
but it’s how i know, i’m sure someone will come up with a better option for this
May 23, 2007 at 2:51 pm #57442In reply to: *seamless* wordpress integration
davidbaldiwn
MemberI changed all of the tops to:
<?php global $forumpage;
$forumpage = TRUE; ?>
<?php get_header(); ?>
but, I am still not getting any changes to the title.
hmm, what else could be wrong?
-Baldwin
May 23, 2007 at 2:26 pm #57441In reply to: *seamless* wordpress integration
Vili
Participant<?php get_header(); ?>
<?php global $forumpage;
$forumpage = TRUE; ?>…should be the other way around:
<?php global $forumpage;
$forumpage = TRUE; ?>
<?php get_header(); ?>You need to set the $forumpage boolean before you call the header, or you won’t be able to use it there.
Alternatively, forget about $forumpage, and use a global boolean such as $bbdb that bbPress uses anyway, as suggested by fel64.
May 23, 2007 at 1:56 pm #57373In reply to: plugin: seo meta
andyblackburn
MemberI have installed this on my bbpress, but see no descriptions or keywords on any pages or posts

Any help would be greatly appreciated.
May 22, 2007 at 8:13 pm #1882Topic: Fading Heatmap
in forum Showcasebenbeltran
MemberI edited the heatmap on my forums to make the smaller tags lighter and the bigger tags darker, this emphasizes the bigger tags and gives a sense of depth in the cloud. Right now i have three levels of color, but it could be easily adapted to use more levels.
In a sort-of unrelated issue, i also added image support to the signatures
.What do you think?
May 22, 2007 at 6:46 pm #57440In reply to: *seamless* wordpress integration
davidbaldiwn
MemberAHHH
I’ve copied what you have above, and modified it slightly (to match my site), but I am not getting updated titles on topic pages like:
http://ppacp.org/forums/topic.php?id=1&page&replies=1
I’m assuming this has something to do with the templete files for bbpress, so I looked at the top of the files and it looks like this:
<?php get_header(); ?>
<?php global $forumpage;
$forumpage = TRUE; ?>I changed all the files that had
<?php bb_get_header(); ?>from the “kakumei” folder.Am I doing something wrong?
“confused”
-Baldwin
May 22, 2007 at 6:22 pm #56809In reply to: What is a bozo?
drmike
MemberHeh heh.
Can I suggest my ex?
May 22, 2007 at 3:50 pm #57573In reply to: Can someone integrate bb w/ wp for me?
fel64
MemberPerhaps someone can, but probably it’s unnecessary.
I think adding ads does make it commercial, but that’s pedantism. We could tell you how to fill out your config.php for you and the rest is veeeery likely plain sailing. Did you install your own wordpress?Off the top of my head required info is the URL you want the forum at, if you want ugly URLs (
?topic_id=59), pretty (/topic/59I think?) or awesome (/glorified-notebook-discussion-thread/), the absolute path to your wordpress install, and your Akismet key (it’ll be in your wordpresswp-config.phpfile). Database info you’ll be able to copy fromwp-configyourself plus it’s stupid to publish such a thing on a forum.May 22, 2007 at 5:24 am #57438In reply to: *seamless* wordpress integration
Vili
ParticipantMy header title tag reads like follows, I think you can modify it to fit your setup:
<title>
<?php if ($forumpage == TRUE) {
bb_title();
echo " :.: AKNI";
} else { ?>
<?php wp_title(' '); ?>
<?php if(wp_title(' ', false)) { echo ' :.: '; } else { echo "AKNI: "; } ?>
Akira Kurosawa News and Information
<?php if (is_utwtag()) { echo ': '; UTW_ShowCurrentTagSet('tagsettextonly'); } ?>
<? } ?>
</title>The last condition with UTWTAG is for the Ultimate Tag Warrior plugin — remove it if you don’t use it.
To see how the title works across the site, I think it’s easiest if you just visit http://akirakurosawa.info/
May 22, 2007 at 2:21 am #1848Topic: Can someone integrate bb w/ wp for me?
in forum Installationprovidencebooks
MemberI would like to know if someone can install and integrate BBpress with my WordPress site. I know that people install wordpress on non-commercial sites for free. My site is a blog for professionals, that I may ad some advertising just to pay for the site space. Can someone help me?
However I read (http://bbpress.org/forums/topic/1140?replies=28#post-7450 atomAstro wrote) that there were some problems with integrating it. Any suggestions? I don’t know much about php and the like. I know minimal html and most of that has been depracated (I assume).
I am good at following instructions though. As long as they are step by step
May 21, 2007 at 11:05 pm #57437In reply to: *seamless* wordpress integration
fel64
MemberIf you have the same code for the header then I think you need some conditional if statements in there to check if it’s wp or bb. This isn’t really straightfoward I’m afraid, but then I’m in the dark here (haven’t done it myself) so perhaps it is and I don’t know about it.
May 21, 2007 at 4:44 pm #57673In reply to: Tags not separating
Arlo
MemberBrackets were just my (apparently needless) way of indicating a text field. Sorry

Flickr works with spaces and quotes, but if you use commas, they are stripped.
May 21, 2007 at 3:43 pm #57672In reply to: Tags not separating
fel64
MemberI don’t understand the system. Spaces are stripped, or alternatively commas are ignored? What’s with the square brackets?
Not that it really matters, I’m just curious about what could be a good system
May 21, 2007 at 12:26 am #57434In reply to: *seamless* wordpress integration
davidbaldiwn
Membersnakefoot, Thanks!
I fell kinda stupid, I moved this up to the top and now it works!
$bb->WP_BB = true;
require_once( '../wp-blog-header.php' );It still dosn’t work with an absolute path, which means this meathod dosn’t work for subdomains.
Now that the header and footer work, I’ll follow the rest of vilimaunula’s steps to see if I can get this looking better…
Thanks for helping a nooob!
-Baldwin
May 20, 2007 at 8:31 pm #57432In reply to: *seamless* wordpress integration
davidbaldiwn
MemberI changed my config file to this:
$bb->WP_BB = true;
require_once( '../wp-blog-header.php' );and to this:
$bb->WP_BB = true;
if (file_exists('../wp-blog-header.php'))
require_once('../wp-blog-header.php');
else
if (file_exists('../../wp-blog-header.php'))
require_once('../../wp-blog-header.php');and in either instance I still recieve this error:
Fatal error: Cannot redeclare is_serialized() (previously declared in /home/turner/public_html/ppacp/forums/bb-includes/wp-functions.php:976) in /home/turner/public_html/ppacp/wp-includes/functions.php on line 165
Thanks for the help!
-Baldwin
May 20, 2007 at 8:21 pm #57431In reply to: *seamless* wordpress integration
fel64
MemberBaldwin, looks like your second error is a good error because it’s loading! I believe that the problem is that WP and BB are not set up to synchronise. Have you got this in your config.php?
$bb->WP_BB = true;
require_once( '../wp-blog-header.php' );May 20, 2007 at 7:15 pm #57429In reply to: *seamless* wordpress integration
davidbaldiwn
MemberI tryed just about everything, and I kept getting this error:
Warning: main(home/turner/public_html/ppacp/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/turner/public_html/ppacp/forums/config.php on line 62
Fatal error: main() [function.require]: Failed opening required ‘home/turner/public_html/ppacp/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/turner/public_html/ppacp/forums/config.php on line 62
So, I changed the location to this:
require_once('../wp-blog-header.php');and now I get this error (something different, yay!):
Fatal error: Cannot redeclare is_serialized() (previously declared in /home/turner/public_html/ppacp/forums/bb-includes/wp-functions.php:976) in /home/turner/public_html/ppacp/wp-includes/functions.php on line 165
I’m not an expert, but I think the former worked, but that there’s something else wrong.
Thanks for your help!
-Baldwin
May 20, 2007 at 5:34 pm #57428In reply to: *seamless* wordpress integration
fel64
MemberYes! In many cases using a relative path is essential to the
requireandincludefunctions.Maybe it’s like this? You’ll know what I mean, anyway.
/home/turner/public_html/wordpress/wp-blog-header.phpMay 20, 2007 at 5:03 pm #57427In reply to: *seamless* wordpress integration
davidbaldiwn
MemberMine looks like this:
require_once('http://ppacp.org/wp-blog-header.php');
am I supposed to use a relative path?
Thank you,
-Baldwin
May 20, 2007 at 4:02 pm #57706In reply to: Post count-based titles
M
MemberAn admin page would be handy. That’s why I had said “the ‘hard’ part would be making an admin page.” It is necessary for this in my opinion.
I think with this it would be better to put the post count in the usermeta, rather than the user title. That way for added and deleted posts all you have to do is add or subtract. The most accurate way, however, would probably be to count all the posts and update the meta every time a post is made. If a topic is deleted, a recount would need to be made too. That’s why I liked the “on the fly” method. Fewer errors that way.
Also, regarding query count, I believe it’s still one query per post, but I could be wrong. I guess the difference would be whether you’re pulling the user title from the usermeta or counting the posts on the fly. I’ll mess around with this more this afternoon.
And sorry to irritate, it’s just not that complex IMO. Even your method
May 20, 2007 at 3:20 pm #57767In reply to: WPAjax and responseText
M
MemberHmm, I tried that yesterday and it didn’t seem to work. I checked out the WPAjax class and tried
commodAjax.transport.responseText,this.responseText, and a couple more variations on that theme.Once I get an admin backend for my plugin I’m going to upload it so that everyone can see the source. It’ll probably be a little easier to answer questions then.
commodAjax.request(commodAjax.url);is requesting theadmin-ajax.phpfile, sending it some postdata, and it’s responding with a 1 (success), 0 (borked data), or -1 (permissions error).Thanks.
-
AuthorSearch Results