My forums have been installed and seem to be working fine but could anyone explain to me how I would make a link to the forums from wordpress? I would like to make a link if possible that will wrap inside of wordpress so people will not have to leave my site to go to the forums. They would simply click the Forums link and it would load in the same place that the blog posts were before.
I’m not sure if this is possible if not, could anyone could tell me how to create a simple link to just point people towards the forums that would be great. I attempted to make a page called Forums but when I add the link to the forums in the permalink it removes all the slashes “/” taking me no where when I click it.
I’m integrating a bbpress forum into a website and I need access to the bbpress user info and functions.
at the top of my php page i’ve done
require(“/path/to/forum/bb-load.php”);
This works great so far, I can load the forum, display topics etc. The only problem is that I can not maintain a user log in when I go from the forum to my new page. I’ve dumped the $_COOKIE var from my new page and the bbpress cookie is not present. If I dump $_COOKIE from a bbpress page its present.
Any idea?
Is there any way I can make the bbpress cookie available in my new page?
I’m wondering if this is possible-
We have our wordpress blog Feast of Fools tied together with bbPress forums, and I was wondering if there was a way for bbPress to treat the comments on a blog entry as a topic in the forums.
This way, popular blog entries would “float” to the top in the same way that bbpress forum entries do.
Any ideas? It this already a function we don’t know about?
I read a thread about moving posts dated about a year ago ( https://bbpress.org/forums/topic/moving-a-post#post-6175 ). Any news on a plugin for moving wrongly placed posts to another forum? This is an issue that comes up quite often with many forums posters not payimg attention to forum names.
I’m in the middle of installing this, but I need the “database character collation”
What is that and where do I find it?
I created the database before installation, but I never heard of the “character collation value” and I’ve installed a lot of scripts.
I use cpanel if that makes a difference.
I’ve added a “geo” field to the topics table that contains latitude and longitude data for each topic. The topics table now contains lat/lng from different cities all over the US.
I’ve modified forum.php to take latitude and longitude GET parameters to use as a “center.” Then I select topics within range of X miles and order by distance from “center.”
To hack this in I wrote a new function in classes.php called generate_geo_topic_sql. This worked enough so that I can test my idea, but its not a long term solution.
So now I need to somehow integrate this query into generate_topic_sql. I still want to retain the original functionality, but just create a different view if I’m using a “center” point.
This is the query. You can not run multiple statements at once in PHP so each of these queries need to be executed separately.
SET @center = GeomFromText(‘POINT(” . $lng . ” ” . $lat . “)’);
SET @radius = 1;
SET @bbox = CONCAT(‘POLYGON((‘,X(@center) – @radius, ‘ ‘, Y(@center) – @radius, ‘,’,X(@center) + @radius, ‘ ‘, Y(@center) – @radius, ‘,’,X(@center) + @radius, ‘ ‘, Y(@center) + @radius, ‘,’,X(@center) – @radius, ‘ ‘, Y(@center) + @radius, ‘,’,X(@center) – @radius, ‘ ‘, Y(@center) – @radius, ‘))’);
Then this was the “hack” query that I wrote to get it to work. I dumped the SQL from the original generate_topic_sql and grafted on what I needed.
SELECT t.*,SQRT(POW( ABS( X(t.geo) – X(@center)), 2) + POW( ABS(Y(t.geo) – Y(@center)), 2 )) AS distance FROM bb_topics AS t WHERE t.topic_status = ‘0’ AND t.topic_sticky != ‘2’ AND t.forum_id = ‘” . $this->query . “‘ AND Intersects( t.geo, GeomFromText(@bbox) ) AND SQRT(POW( ABS( X(t.geo) – X(@center)), 2) + POW( ABS(Y(t.geo) – Y(@center)), 2 )) < @radius ORDER BY distance ASC LIMIT 3
The problem is that paging does not work (and a few other things) in my hackjob function. I need to find a way to integrate this into the regular function so that I can maintain all the functionality.
Any suggestions?
Hello,
The question is in the title.
When I “delete ” a message, this message appears in the admin panel and seem to stay there.. forever.
How to get red of deleted messages ?
Thanks in advance
I’m grafting a lot of existing functionality from my site onto bbPress.
In forum.php I load a bunch of data from my own database and sit it in variable. Lets call one of these variables $blah.
I’m trying to access $blah in the template file “post-form.php” so that I can include the value of $blah in a hidden field that gets posted.
My issue is that $blah is empty when I try and output its content in post-form.php. I’m positive this had nothing to do with naming of the variable. I don’t see any reason why it should be empty. I’ve tried making it global but no luck. The post-form.php file is displayed on the same page as forum.php so I’m really lost.
Is there a better way to add persistent data that you can access across bbPress?
In bb-includes/formatting-functions.php the values of the closed and sticky labels are hard coded:
function bb_closed_label( $label ) {
global $topic;
if ( '0' === $topic->topic_open )
return sprintf(__('[closed] %s'), $label);
return $label;
}
I want to change ‘closed’ to ‘Read Only’. I know I can just hack the file, but there should be a way to use theme functions and I’m just not thawed out enough to think of it.
Would there be a way to change the order tags are displayed?
I can’t find where it is sorting them.
The tags when they are all English, are ordered alphabetically, but tags in Japanese come up in a strange order, probably the ascending order of characters stored in db like %82….
(It is showing “other” at the start, which looks pretty silly.)
If I can order by the database’s id field or something, it’s great…