Search Results for 'code'
-
AuthorSearch Results
-
September 3, 2009 at 7:33 pm #78585
In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
MemberHmm… as far as I can work out, (at least with pretty links on) a forum link redirects to
forum.phpwhich invokespost_form()towards the end of the page. That’s found infunctions.bb-template.php(underbb-includes) and as well as running the respective pre/during/post actions, it loads thepost-form.phptemplate from the theme’s directory.Could you post your theme’s
post-form.phphere?September 3, 2009 at 7:01 pm #78319hopeful4info
MemberHmmm, that’s interesting. I ftp’d the options-wordpress.php file down from the site and opened it in Dreamweaver. I recognize some of the comments in this as being from the “wordpress Integration settings as found in the Settings/Wordpress Integration tab of the Admin section of bbpress. This is where I set the “User Role Map”, WordPress Address (URL), Blog Address (URL), auth cookie salt, secure auth cookie salt, and logged in cookie salt.
HOWEVER, when I look into the actual options-wordpress.php file (as ftp’d down from the site) and open it up, the php code still seems to be asking for those items??? I just copied a bit of the code from that file and pasted it below. Please advise,
<table>
<tr>
<th><?php _e(‘WordPress’); ?></th>
<td></td>
<th><?php _e(‘bbPress’); ?></th>
</tr>
<tr>
<td>AUTH_KEY</td>
<td><=></td>
<td>BB_AUTH_KEY</td>
</tr>
<tr>
<td>SECURE_AUTH_KEY</td>
<td><=></td>
<td>BB_SECURE_AUTH_KEY</td>
</tr>
<tr>
<td>LOGGED_IN_KEY</td>
<td><=></td>
<td>BB_LOGGED_IN_KEY</td>
</tr>
</table>
September 3, 2009 at 6:33 pm #78202gerikg
Memberthis is a shot in the dark but JesperA move the line
define( 'SITECOOKIEPATH', '/' );BEFORE
define('DB_NAME',September 3, 2009 at 6:12 pm #78627In reply to: highlight first post
Adam Harley (Kawauso)
MemberPut
<?php if (get_post_position() == 1) { continue; } ?>after theforeach ($posts as $bb_post)line intopics.phpto stop the first post appearing in the loop.To get the first post separately, you could use
<?php $bb_post = bb_get_first_post(); bb_post_template(); ?>or<?php $bb_post = bb_get_first_post(); ?>and use the same functions as inpost.phpin your HTML.No idea on modifying the number of posts for the first page though
probably a plugin for that
September 3, 2009 at 3:42 pm #76949In reply to: Use XML RPC to post in bbPress
Ashish Kumar (Ashfame)
ParticipantI didn’t get the idea of remote posting in a forum. Is there any client for forums which enables the conversation without a web browser?
P.S. – I would love that
September 3, 2009 at 3:31 pm #78584In reply to: Need to fix a couple of things in theme
Ashish Kumar (Ashfame)
ParticipantI fixed the second & third issue but I am still stuck at the first one.
Looking at the markup I found
<select name="forum_id" id="forum-id"">is being generated by bbPress codebut the same works in default theme flawlessly so this isn’t the cause. Can I have the complete lookup order for file required to generate the “Add new” page.September 3, 2009 at 1:33 pm #75647In reply to: my custom theme stopped working with 1.0
Ipstenu (Mika Epstein)
ModeratorIs your theme installed correctly?
For example:
/bbpress/my-templates/themename/style.css
/bbpress/my-templates/themename/screenshot.pngEtc etc…
September 3, 2009 at 8:14 am #78630In reply to: Alert/notification for new posts in a forum?
Olaf Lederer
Participanthehe, I like my plugin very much, most of all if I get a notification mail about a new spam thread and that one was already filtered by Akismet
September 3, 2009 at 4:39 am #78217In reply to: Using bbpress as my "blog"… adding a header navbar
Adam Harley (Kawauso)
MemberYou could use bbPages (https://bbpress.org/plugins/topic/bbpages/) for pages. You’ll probably need to edit some code yourself though if existing plugins don’t do what you want and possibly write some of your own as well. WordPress is really more geared towards this sort of thing with regards to WYSIWIG and image management, to even allow images on bbPress you need to install a plugin and BBcode is probably the closest to WYSIWYG.
I’m sure with a lot of coding, you could get bbPress to behave like a portal, but why not just use WordPress and integrated bbPress?
September 3, 2009 at 3:37 am #78624In reply to: highlight first post
Adam Harley (Kawauso)
MemberBlergh. No idea why they’re using the post_id() instead, but okay. Try putting this
<?php if (bb_is_first(get_post_id())) : ?> style="background-color:#FFFF99;"<?php endif; ?>afterclass="typo"(no need for a space). You can change thestyleto aclassor whatever obviously, but I think that should work.September 3, 2009 at 2:58 am #78623In reply to: highlight first post
johnnydoe
Memberyay this is somehow all greek to me, were you able to handle those instructions john?
since i’m not a kakumei user it seems to be a little tricky
so i’ve got in my topic.php…
<?php do_action('under_title', ''); ?>
<?php if ($posts) : ?>
<?php topic_pages(); ?>
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<?php bb_post_template(); ?>
<?php endforeach; ?>
<?php topic_pages(); ?>
<?php endif; ?>and in my post.php the following code…
<table class="content" id="fbg3" cellspacing="0" id="post-<?php post_id(); ?>">
<tr>
<td class="typo">
<?php post_text(); ?><div class="link"><?php post_edit_link(); ?><?php post_delete_link(); ?><?php post_ip_link(); ?></div>
</td>
<td class="info">
<div class="avatar"><?php post_author_avatar(); ?></div>
<div id="fbg3info">
<div id="bubble2"></div>
<a href="<?php bb_option('uri'); ?>profile.php?id=<?php post_author(); ?>"><b><?php post_author(); ?></b></a><br />
<?php printf( __('%s'), bb_get_post_time() ); ?>
</div>
</td>
</tr>
</table>
September 3, 2009 at 1:53 am #78620In reply to: highlight first post
johnnydoe
Memberi’ll give this a shot kawauso.
thanks for now
September 3, 2009 at 1:31 am #78619In reply to: highlight first post
Adam Harley (Kawauso)
MemberThe ID of the entire first post (including the poster’s details) would depend on your theme’s code, but in Kakumei it’d be
div#position-1. If it’s anything else, it’d be underpost.php, but you could just use Mozilla Firefox’s DOM Inspector or Google Chrome’s Inspect Element to check the ID on the page anyway.Again in the case of Kakumei, the post itself is
.threadpost, so you could use something like<style>div#position-1 .threadpost {background-color:#FFFF99;}</style>to change the background colour.Hope that’s some help
September 2, 2009 at 10:27 pm #78200gerikg
MemberThe bbPress Integration plugin doesn’t make it work. It gives you instructions on what to do next.
If you have WPMU then you’ll receive four lines from the plugin
define( 'COOKIEHASH', '????????????????????????????????????' );
define( 'COOKIE_DOMAIN', '.????????????????.com' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );Paste it in wp-config after
<?then do the same in bb-config without the first line.September 2, 2009 at 8:57 pm #78199gj-tje
MemberHi there!

I’ve got the same problem with a website I’m working on.
I’ve tried every option posted here, but nothing seem to work.
I am working with WordPress 2.8.4 and bbPress 1.0.2.
I can log in on the bbPress and the WordPress, but the cookie integration (so people only have to log in from 1 place, logged in into both) isn’t working, they seem to get the user information from 1 table in 1 database.
I’ve verified that the keys are the same, all the keys are defined in both wp-config.php and bb-config.php, with the same keys and the same values for the salt. I even have a define(‘cookiepath’, ‘/’);, which also doesn’t seem to work.

I also have bbPress Integration (plugin) installed in WordPress, didn’t help as well.
Anything I may have missed?
September 2, 2009 at 8:15 pm #31557Topic: Integration problems – WordPress 2.8.4 to bbPress 1.0.2
in forum Installationhopeful4info
MemberI am looking for someone to help me with WordPress and bbPress. I have developed the wordpress site as a membership site and want to include a forum. I wasted about a month or more with SMF and couldn’t get it to work properly, so today I switched to bbPress and have it working in a iframe in one of the wordpress pages. The only problem is getting the cookies and all that to work so a person logged into the membership site can go right into the forum without having to re-log in and vice-versa.
I installed the bbpress integration plugin and went through all the set up procedures numerous times to no avail. I also went through the “WordPress Integration settings” numerous times. I have compared both the WordPress config and bbpress config files to be sure the Auth_Key, Secure_Auth_Key and Logged_In_Keys were identical and they are.
I have put the – define( ‘COOKIEPATH’, ‘/members/’ ); – line in the WPconfig file as instructed, but I just put it in exactly as shown here. I’m not sure if I should replace “cookiepath” with an actual path or if the word cookiepath is what they want.
I am not a code person, but I can get along sometimes ok. sometimes not! This is a NOT day.
Would some kind soul be able to help me with this?
If not please steer me toward someone who can help.
September 2, 2009 at 6:26 pm #77078In reply to: bbpress and memcache?
johnhiler
MemberHey Frooyo – I think you mention output caching every change you get.
Your comments about it are the first comment on this thread…
September 2, 2009 at 6:04 pm #77077In reply to: bbpress and memcache?
frooyo
MemberThere does appear to be an option that everyone is overlooking … and that’s Output Caching.
We’ve talked about memcache, optcode caching and mysql query caching … but truly the most effective is simply perform Output Caching for non-logged in users.
In case someone is not aware, Output Caching is saving to disk the generated HTML. That way, instead of memcache where you have to make a call to the memcache server, or in mysql you’re still making the database call or in optcode caching, it’s simply pre-compliling the PHP … Output Caching is by far the fastest because it essentially just serving up pre-generated HTML straight from disk.
September 2, 2009 at 3:52 pm #78583In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
MemberThe new post template is stored under
post-form.php.register.phpandbb-login.phpare seperate pages that only includeheader.phpandfooter.php, so you’d need to include the sidebar either manually or in the header or footer respectively. Hope that helps!September 2, 2009 at 3:50 pm #78610In reply to: How to Add Status Update *NEW* into Your Title
bbiSimone
MemberWorks a charm Kawauso
September 2, 2009 at 3:31 pm #78609In reply to: How to Add Status Update *NEW* into Your Title
Adam Harley (Kawauso)
MemberApparently
topic_timeis timezone-shifted, so the previous code is wrong
told you it was rough! This will take the time from the opening time 
<?php if ( (current_time('timestamp') - 24*60*60) < strtotime($topic->topic_start_time) ) : ?>*NEW* <?php endif; ?>September 2, 2009 at 3:25 pm #78564In reply to: RSS feed for user
Ipstenu (Mika Epstein)
ModeratorInteresting. There actually IS an RSS built into your user ID: https://bbpress.org/forums/rss/profile/otto42
But it’s used for your favorites so not so much. You can see all your posts in your profile (recent posts) so in theory this should be ‘exportable’ to RSS.
The rss.php file has this:
// Get latest posts by default
case 'all-posts':
default:
if ( !$posts = bb_get_latest_posts( 35 ) )
die();
$title = esc_html( sprintf( __( '%1$s » Recent Posts' ), bb_get_option( 'name' ) ) );
$link = bb_get_uri();
$link_self = bb_get_posts_rss_link();
break;Which I think you could toss an extra if
if ( $user->ID == bb_get_current_user_info( 'id' ) )but that would only punt out a list of the current user’s posts, and not be a way to see anyones. The structure is there, though.September 2, 2009 at 5:46 am #65581In reply to: Delete Post by It’s Owner
_ck_
ParticipantIn theory it should be also possible to allow users to move their own topics if placed in the wrong category:
(untested, should allow a user to move only their own topics within the same time period they can typically edit a topic, ie. 1 hour default)
function move_own_topic($retvalue, $capability, $args) {
if ($capability=="move_topic") {return bb_current_user_can( 'edit_topic', $args[1]);}
return $retvalue;
}
add_filter('bb_current_user_can', 'move_own_topic',10,3);September 1, 2009 at 5:33 pm #78570In reply to: Cookie Integration only one way
Jan_d
MemberThe only code i got from the plugin was
‘define( ‘COOKIEPATH’, ‘/’ );’
which i did put in the config file before starting this thread.
September 1, 2009 at 2:49 pm #78606In reply to: How to Add Status Update *NEW* into Your Title
Adam Harley (Kawauso)
Member<?php if ( (time() - 24*60*60) < strtotime($topic->topic_time) ) : ?>*NEW* <?php endif; ?>A very rough way of doing it there, but if you put that in
forum.phpbefore say,<?php topic_title(); ?>if you want it in the topic title, it should work. Change24*60*60to the number of seconds you want to include topics from. -
AuthorSearch Results