Two part question
1. Is there a code to imitate wp_list_pages(‘title_li=’) with the forum names?
result in…
<li><a href="https://bbpress.org/forums/forum/installation">Installation</a></li>
<li><a href="https://bbpress.org/forums/forum/troubleshooting">Trouble Shooting</a></li>
etc etc…
2. How do you add class=selected to current forum page?
Is there a way to limit the amount of latest discussion shown on the front page? There are currently 30 of them and I want to cut that number down to 10-15.
http://gmauthority.com/forum/
Long live bbPress!
How do I get a count of how many forums (and sub-forums) on the front page?
“Viewing ### total forums”
So I was just browsing around WordPress.org support forums and noticed the way they have their text entry box set up.
It contains the standard markup as we have on bbPress (installable) but it’s clickable by the user, with the resulting clicks being reflected in the text entry box. Here’s what I mean https://wordpress.org/support/topic/384052?replies=5
I’m talking about the b i link buttons at the top of the text entry box.
My question is whether we have and/or can do something similar with our own bbPress installs. I know we have TinyMCE and – most recently – WYSIWYG editor, but this is a bit different as it outputs the markup for you.
what will happen,when the topic title is the same ?
in .htaccess add
RewriteRule ^attachments/([^/]+)/download/([0-9]+)/inline/?$ /?bb_attachments=$1&bbat=$2&inline [L,QSA]
RewriteRule ^attachments/([^/]+)/download/([0-9]+)/?$ /?bb_attachments=$1&bbat=$2 [L,QSA]
in bb-attachments.php line 234 edit like this
if ($attachment->status==0) {
$output.=" "."<a href='".$uri."attachments/$attachment->post_id/download/$attachment->id/'>".$attachment->filename."</a> "." ";
}
in bb-attachments.php line 289
if (file_exists($fullpath)) { // it's been resized, so it's likely on AWS, show directly
$aws=$bb_attachments['aws']['url'].$file->id.'.'.$file->filename;
$replace="<a class='bb_attachments_link' href='".$uri."attachments/".$match[1]."/download/".$match[2]."'><img src='$aws' /></a>";
if (is_bb_feed()) {$replace=wp_specialchars($replace);}
$text=str_replace($match[0],$replace,$text);
}
in bb-attachments.php line 298
http://pastebin.com/gDG523R2
so now your attachments have permalink like this
example.com/attachments/*postid*/download/*attachmentid*/
and embed image url
example.com/attachments/*postid*/download/*attachmentid*/inline/
Related thread : https://bbpress.org/forums/topic/on-attachment-file-permalink
function get_post_img(){
global $bbdb;
$topic_id_ft = get_topic_id(); //topic id for getting text of first post of the topic
$first_post = (int) $bbdb->get_var("SELECT post_id FROM $bbdb->posts WHERE topic_id = $topic_id_ft ORDER BY post_id ASC LIMIT 1");
$content = substr(strip_tags(strip_shortcodes(get_post_text($first_post))),0);
preg_match('/[img](.*?)[/img]/i', $content, $matches);
$src = $matches[1];
echo $src;
}
modified from here https://bbpress.org/forums/topic/show-a-snippet-of-the-post-under-the-topic-title#post-39260
to moderator: bozo or bug:
https://bbpress.org/forums/topic.php?id=66744
https://bbpress.org/forums/topic.php?id=66746 (created later for test)
if bozo – why?
I want to organize my front-page.php to show where the topic is from.
example this thread.
Lastest Discussion
How to get Forum name from Topic? in Troubleshooting
I want to know how to get “Troubleshooting”
I’m assuming <?php forum_name(***topic ID HERE***); ?>
Hey all.
A friend of mine finally agreed on using WordPress and finally convert away from e107. So for the last few days, I have converted his website over from e107 to WordPress & bbPress and done quite abit on it. Firstly, I converted all the e107 pages and users to WordPress and then converted the forums to bbPress via my own converter script.
Now bearing in mind that it is still in development, I then integrated bbPress into the WordPress theme and then integrated his login into IP.Converge so that it can hook up with my website.
While it is still work in progress, what do you lot think of bbPress so far ?
http://wrightsproductions.co.uk/community/