Published on February 14th, 2007 by
Hi,
I am trying to write a plugin and I do not know how can I do it properly.
The plugin I am working on requires the editing of the “get_forum_link” function, specifically the “$link ” vatiable.
I have the code done in php but do not know how to make a plugin out of it. What and how should I use add_action or add_filter?
Thanx.
function get_forum_link( $forum_id = 0, $page = 1 ) {
global $forum;
if ( $forum_id )
$forum = get_forum( $forum_id );
if ( bb_get_option( ‘mod_rewrite’ ) )
$link = bb_get_option( ‘uri’ ) . “forum/$forum->forum_id” . ( 1 < $page ? “/page/$page” : ” );
else {
$args = array();
$link = bb_get_option( ‘uri’ ) . ‘forum.php’;
$args = $forum->forum_id;
$args = 1 < $page ? $page : ”;
$link = add_query_arg( $args, $link );
}
return apply_filters( ‘get_forum_link’, $link, $forum->forum_id );
}
Published on February 14th, 2007 by jazbek
Hi,
I have a fairly default install of bbpress here:
http://www.asianamericanmedia.org/discuss/
… using the default the default kakumei theme. I noticed that if you click the little double-right-arrow next to “New topic in this forum” on an empty forum page, it gives a 404 error. The link is pointing to /discuss/topic/#postform, and I have pretty permalinks on.
What is this link supposed to point to?
Note: I just noticed the same problem on this support forum too! If you go to the ADD NEW topic page, there is a little double arrow next to the header “Add New Topic”, pointing to https://bbpress.org/forums/topic/#postform – which also results in a 404. What gives?
Published on February 14th, 2007 by
hi, i’m sure this is a really obvious mistake, just installed bbpress, changed everything i thought i had to, and when i got to the login page @ www.fulltimecasual.com/forums and entered my user name and password, i got an error message:
The requested URL /forums/bb-login.php was not found on this server.
looking at the address in the bar, it is:
http://forums.fulltimecasual.com/forums/bb-login.php
surely it shouldnt be both forums.fulltime as well as fulltime/forums, so that where i assume the mistake is. how do i fix this?
thanks
Published on February 14th, 2007 by chrishajer
I am using the allow images plugin Version: 0.7.1 and it apparently does not allow images if the filetype extension is in CAPS. So, this will work to insert an image into a post:
http://www.appraisercitywide.com/xsites/appraisers/appraisercitywide/Content/UploadedFiles/Heurtley.jpg
and this will not:
http://www.appraisercitywide.com/xsites/appraisers/appraisercitywide/Content/UploadedFiles/Heurtley.JPG
If the image is hosted on a Windows server (or I guess any server where case does not matter for filenames/URLs) you can change the extension to lowercase, and it will work within the plugin just fine: the hosting server knows what to do. If the image is hosted on a Linux server, or any server where case does matter, you can’t do that and the img tag gets stripped out of the post if you insert it in uppercase like JPG. (i.e. if you tried changing it to lowercase, the tag would remain in your post, but would result in a 404 since the hosting server would not have a file by that name.)
Can the plugin be updated to allow upper, lower or mixed case filename extensions?
Thanks
Published on February 14th, 2007 by
I have looked at the private forums plugin, but it seems to be an all or nothing deal based on the user being logged in…
I didnt find anything when I searched, but wondering if anyone knows of or is working on forum access based on membership in a group? So basically, you would allow forum access to certain groups and you would assign users to various groups (or roles in wp/bb terms). Gives you much finer control over who can access which forums…
also, any way to make bbpress inherit the roles as defined in WP? or maybe just add new roles to bb? easy enough to do hacking the code, but I havent looked at the bbpress plugin structure yet…
thanks…
Published on February 13th, 2007 by talya
I am trying to start using my forum. I have an Hebrew version, when I try to add an Hebrew tag – I get a message saying that my tag wasn’t added. Is it an encoding issue or what? can I do something about it?
Published on February 13th, 2007 by
I have come across a link in the forums that seems to do nothing past 404’ing out. I thought it was only present in my forum since I’ve been heavily reconfiguring it. However, even posting this message I see the bug here, unless I don’t understand it correctly. Above this post box, there is an h2 element with a post-form class which says “Add New Topic »”. Only the “»” is hyperlinked to:
https://bbpress.org/forums/topic/#postform
(which 404’s out). This behavior is consistent on my forum as well. The offending??? code is in:
bb-includes/template-functions.php
Search for $h2 and you should be able to find it.
I found this applies to the “Add New Topic” message, as well as the “New Topic In This Category” message, but only if there is no current topic in that category.
Is this a bug, groundwork for a future feature, or am just not catching the vision of something earthshattering?
Published on February 13th, 2007 by Sam Bauers
The Support Forum plugin has been upgraded to version 1.2.
It now includes the features of the Visual Support Forum plugin as options.
Download via the plugin browser.
Published on February 13th, 2007 by
Hello everyones! I have a new problem i’ve to be helped with. Suddenly in my forum i’ve got a negative/minus (-) before my topic count. Like this: “-15”, but it is only in my first and last forum count. Check http://www.ungodum.se to see what i mean. It’s under “Ämnen”.
This happened after i back-uped my database i think, or when i created a tables with another prefix than my real forum. Can this be a coincidence or should i delete the tables that i cretaed (i don’t want to because maybe i’ll need it for later versions)?
I had this problem _before_ i upgraded from 0.75 to 0.8!
Published on February 12th, 2007 by marky
I recently installed bbPress to localhost to experiment before I put it on a live site. Strangely, the stylesheet was being ignored. Looking at the source brought up this:
<link rel="stylesheet" href="http://localhost#support/bb-templates/kakumei/style.css" type="text/css" />
Edit: OK, I can’t seem to type a backslash here, but the # symbol in the above code snippet is actually a backslash (opposite of /)
I have no idea why the slash after localhost is backwards. It appears correctly in all other locations. For what it’s worth, here is the relevant section of my config.php file:
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = 'http://localhost'; // Example: 'http://bbpress.example.com'
// There should be both a leading and trailing slash here. '/' is fine if the site is in root.
$bb->path = '/support/'; // Example: '/forums/'
Any help?