Search Results for 'code'
-
AuthorSearch Results
-
August 3, 2009 at 5:59 am #77631
In reply to: Link to Latest UNREAD post
anandasama
MemberIn order of importance (1 being the most critical):
1. When I see a highlighted topic with new posts, it redirects me to the First page when I click the link.
2. To update the “All Topics Read” I have to push this button Twice. I dunno why.
edit: Is there like this only when I have both last read and New topics function on?
3. [RESOLVED] I would like the topic to be automatically read after looking at it. How to achieve this?
For now they keep higlighted until i clear all posts read. I, as a forum user, would only like to be notified if there is a topic with new posts. I dont want it to be flagged red again until it got new unread posts.
edit: Sorry I just had to disable the
$unread_posts['indicate_last_login']=false;
4. It would be nice with a function to mark specific threads as read. Like If i dont want to be notified anymore of new posts in a specific thread.
August 3, 2009 at 2:04 am #77656In reply to: WP Integration (Theme-wise) Problem
Stunt
MemberYes. Bad idea?
August 2, 2009 at 8:24 pm #77701In reply to: Adding bbPress to WordPress 2.8 blog
Ipstenu (Mika Epstein)
ModeratorI’m assuming you have it like this:
/site1/wordpress files
/site2/wordpress filesand not
/site1/wordpress/wordpress files
Right?
If so, just put it the site1 folder as a ‘forums’ folder and you should be fine.
August 2, 2009 at 6:02 pm #77586In reply to: Embedding bbpress forums into a static webpage using
Rohan Kapoor
MemberYeah an iframe would do the job properly and it wouldn’t look ugly either,
August 2, 2009 at 3:05 pm #56569In reply to: limit forums included in latest discussions
deadlyhifi
ParticipantI find that very odd. As it’s working perfectly well for me. Did you put
function filter_front_page_topics($where)
in a plugin and activate it?August 2, 2009 at 9:32 am #77175In reply to: modified quote-comments (Make new Plugin?)
anandasama
MemberI still have one problem. the TinyMCE seems to strip alot of the p tags in the WYSIWYG environment when editing a post, and everything appears on one line. But after saving the changes, the post looks normal with the tags in correct place. It’s just the editing that looks strange.
I have no idea how to solve this. I tried to add a class to each P element created but then TinyMCE wanted to create extra
<p> </p>
elements, spacing everything out in the posted text.August 2, 2009 at 3:21 am #31395recronin
MemberHello,
I saw a somewhat similar post on here about integrating bbpress into wordpress pages, but what I want to do is relatively simpler than that.
Basically all I want to do is to “embed” a given bbpress forum into a static webpage. I’d like to not have the top header and all of the navigational links appear, but I’ll take what I can get for now ; P
Using the <php include> tag I was able to embed a forum into a webpage, but the problem is that the area I want to embed into is 500px wide. The bbpress forum is inside of that area but also spills out onto the rest of the page. The php include is being placed into a <div> area and I want the width fixed while the height changes based on how much content is inside it.
My code looks like:
<?php include(‘http://example.com/forums/forum.php?id=12’); ?>
I’m sure the best way to do what I want would be something like:
<?php include(‘../forums/forum.php?id=12’/main_forum); ?>
but I’m not too sure.
Any ideas?
Thank you!
Adam Lawton
August 2, 2009 at 3:21 am #31391recronin
MemberHello,
I saw a somewhat similar post on here about integrating bbpress into wordpress pages, but what I want to do is relatively simpler than that.
Basically all I want to do is to “embed” a given bbpress forum into a static webpage. I’d like to not have the top header and all of the navigational links appear, but I’ll take what I can get for now ; P
Using the <php include> tag I was able to embed a forum into a webpage, but the problem is that the area I want to embed into is 500px wide. The bbpress forum is inside of that area but also spills out onto the rest of the page. The php include is being placed into a <div> area and I want the width fixed while the height changes based on how much content is inside it.
My code looks like:
<?php include(‘http://example.com/forums/forum.php?id=12’); ?>
I’m sure the best way to do what I want would be something like:
<?php include(‘../forums/forum.php?id=12’/main_forum); ?>
but I’m not too sure.
Any ideas?
Thank you!
Adam Lawton
August 1, 2009 at 10:06 pm #77573chrishajer
ParticipantYou will need someone who can help you debug the code then. Something is out of order.
You can post your whole topic.php at pastebin and post a link here:
Make sure you let the code stay there longer than one day (default is a month which should be OK)
August 1, 2009 at 9:56 pm #77495In reply to: All RSS Feeds Broken?
chrishajer
ParticipantSorry, I was substituting pseudo-variable names in there: $site_title is the site title from the admin (“bbPress Support Forums” here) and the $topic_title is the topic title (this topic has “All RSS Feeds Broken?”). So, here, the RSS description is
bbPress Support Forums » Topic: All RSS Feeds Broken?
.......................^
and in a 1.0.1 installation it is
bbPress Support Forums Topic: All RSS Feeds Broken?
There is no raquo in the 1.0.1 installation, and the feed validator is complaining about that one character.
August 1, 2009 at 8:13 pm #77494In reply to: All RSS Feeds Broken?
Rohan Kapoor
MemberNeither the rss.php nor the theme specific rss2.php have either of those lines of code in them. Do you want to elaborate, please?
August 1, 2009 at 5:49 pm #77572vlovers
MemberI understood the code and I had tried something similar before putting this thread here live but then the topic page fails to load, i don’t know what I m doing wrong ?
August 1, 2009 at 5:35 pm #77571chrishajer
ParticipantJust add it to the template file. To make it show up after the first post only, you need a counter to see which post you’re looping through. I did something like this:
<ol id="thread" class="list:post">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</li>
<?php if ($adcounter == 0) {
$adcounter++;
// <div id="adcode">paste ad code here</div>
} ?>
<?php endforeach; ?>
</ol>Basically just add the adcounter check and ad code right after the closing
<li>
right after the post_template. You’ll have to adjust the particulars for your installation, but this is the basic process.August 1, 2009 at 5:36 am #77493In reply to: All RSS Feeds Broken?
chrishajer
ParticipantI have a 1.0.1 installation that works fine, but this 1.0.2 installation does not seem to work.
One difference I noticed in the 1.0.1 installation. When you click on a topic feed, the feed <description> looks like this:
$site_title Topic: $topic_title
– the » is missing.With the 1.0.2 feed, it looks like this:
$site_title » Topic: $topic_title
It’s the » that is creating problems in the feed, at least with Firefox and IE8.
July 31, 2009 at 4:06 pm #77538In reply to: User roles
chrishajer
ParticipantStart by looking at
bb-includes/capabilities.php
. It defines all the roles. If you want to modify permissions, there are plugins for that depending on the version of bbPress you are using:1.0
https://bbpress.org/plugins/topic/role-manager/
0.9
Maybe a plugin was never written? (can’t find it right now)
July 31, 2009 at 2:15 pm #77490In reply to: All RSS Feeds Broken?
Ipstenu (Mika Epstein)
ModeratorRSS feeds work here and on other sites, so I’m going to guess it’s deep integration or …
XML Parsing Error: undefined entity
Location: http://canadianrugby.ca/forums/rss/topic/canadian-players-overseas
Line Number 10, Column 38: <description>Canadian Rugby Forums » Topic: Canadian Players Overseas</description>
^Might that be related to https://bbpress.org/forums/topic/fix-to-rss-xml-parsing-error#post-8864
July 31, 2009 at 4:14 am #77472In reply to: I've found exactly the theme i would like…
orizine
Memberyep, I’m interresting by buddypress.org forum theme cause it is full tableless, and really fine
exactly what i’m looking for…
I’ve done one but i’m really not a good devellopper, and code is really not perfect…
July 30, 2009 at 8:31 pm #77466In reply to: Blank page in register.php when update
hpguru
MemberThank you, ck.
I update to 1.0.2. I use 13 plugin. 11 works fine, 2 no. I delete 2 and wait your update… Anonymous Posting and plugin, which add name field etc. to quest form. Download again, when you update, know that this may need more time to fix.
July 30, 2009 at 6:37 pm #77465In reply to: Blank page in register.php when update
_ck_
ParticipantIf you edited the kakumei files directly, simply rename that folder, ie.
kakumei
->my-kakumei
Then you can copy the original kakumei from the bbPress 0.9 zip.
July 30, 2009 at 5:37 pm #77456In reply to: Blank page in register.php when update
_ck_
ParticipantOne thing I see that changed in 0.9.0.5 is Sam put
exit;
after all the redirects.In my experience I have found some weird behavior where redirects don’t happen in some cases because the exit will happen before headers are sent for the page. It shouldn’t put it does in some PHP versions/apache configurations. Probably because of buffering.
So as an experiment, maybe try editing the core file
bb-login.php
(not the template)See this change:
Put a comment in front of that
exit;
bb_safe_redirect( $re );
// exit;and see if that makes it act any differently.
July 30, 2009 at 5:28 pm #77455In reply to: Blank page in register.php when update
_ck_
ParticipantIt’s possible I broke something in the new
bb_safe_redirect
however I have tested it working and I have not seen any other complaints (and there have been several registrations on my site).Actually I just noticed you said it doesn’t work with 0.9.0.5 which didn’t have my change.
Have you tried deactivating your plugins temporarily to see if any interfere?
Let’s look at what changed from 0.9.0.4 to 0.9.0.5
July 30, 2009 at 5:17 pm #77454In reply to: Blank page in register.php when update
hpguru
MemberPlease help!
July 30, 2009 at 2:31 pm #77433In reply to: Functions for generating a menu of WordPress pages
aprendedor
MemberHello chrishajer,
I am running WordPress 2.8.2 and BBPress 1.0. I have put it into a file called functions.php in the kakumei dir. because I am using the kakumei theme.
I noticed that the new functions file is address to wordpress mu. and I am not running wordpres mu. what should I do now. what code should I put in the header to call that functions to deliver the header. I know also that I neeed to change “wordpress_mu_primary_blog_id” to some that call the regular wordpress but what itis?
THANK U for sparing some time and help with me!
July 30, 2009 at 12:57 pm #77432In reply to: Functions for generating a menu of WordPress pages
chrishajer
ParticipantIf you are using 1.0, create a file called functions.php in your current theme directory, and put all that code into it.
If you’re using less than 1.0, you can create a plugin from that code. Just add a plugin header to the top of all that, like this:
<?php
/*
Plugin Name: WordPress pages for bbPress
*/
?>And put it into file called something like
wordpress-pages.php
and drop that into folder calledmy-plugins
at the same level asbb-plugins
. If the folder is not there, you can create it. After it’s in the folder, log into the admin, you should see it there, then activate it. And report back how it worked for you.Thanks
July 30, 2009 at 12:51 pm #70038In reply to: First pass at a fix for “deep” integration in trunk
chrishajer
ParticipantThat means you have the path to the file wrong and bb-config.php can’t find it. Try using the full
/home/jwrbloom/public_html/wpm/wp-load.php
path, from the root, not a relative path. Starting it with /wpm like that makes it SEEM like a full path.Or maybe you meant
../../wpm/wp-load.php
for the relative path (up two directories)? -
AuthorSearch Results