Search Results for 'code'
-
Search Results
-
Topic: Broken Breadcrumbs
WordPress 3.9.2 running Montezuma theme.
bbPress 2.5.4
There is no “Forums” landing page and the breadcrumbs don’t work for either forums or topics. You can see the individual forums from inside the admin and clicking view and then post a topic but you can’t see the forum from the public face of the blog. Follow the link and you’ll see what I mean.
http://ecopsi.org/forums/topic/the-codex-of-aman/Very frustrating. Is there something that I forget to do?
Topic: Get User Role from ID
I’m trying to add a column to bbPress 2.x that lists the last person to reply to a topic and adds a specific class to the
if that person is a moderator or keymaster. Unfortunately, I can’t find any documentation on the template tags in 2.x. So far, I’ve been able to get the user ID for the last reply, but I can’t seem to find the function that would get the role information for that user based on their ID.
Here’s the code that gets the ID:$reply_author_id = bbp_get_reply_author_id( array( 'post_id' => bbp_get_topic_last_active_id() ) );Now how can I get their bbPress role?
I’m having trouble outputting specific topic counts for individual forums into Google’s Geochart. I want to have the total topic count listed on the map for each region (each forum). I use the following code to try and print the value, but I know I’m missing something (limited PHP/Javascript experience). Please take a look below, what do I need to add in order to get the value to output?
<?php function my_geochart_script() { echo '<script type="text/javascript"> google.load("visualization", "1", {"packages": ["geochart"]}); google.setOnLoadCallback(drawRegionsMap); function drawRegionsMap() { var data = google.visualization.arrayToDataTable([ ["Country", "Popularity"], ["Canada", <?php bbp_forum_topic_count( '23196' ); ?>], ["Japan", <?php bbp_forum_topic_count( '23190' ); ?>], ]); var options = {backgroundColor:{fill:"transparent"}}; var chart = new google.visualization.GeoChart(document.getElementById("chart_div")); chart.draw(data, options); }; </script>'; } add_action( 'wp_head', 'my_geochart_script' );Any help would be much much appreciated! Thank you.
Hi
I am currently using this code to show the last topic on the main index.
<a href="<?php bbp_forum_last_topic_permalink(); ?>" title="<?php bbp_forum_last_topic_title(); ?>"><em><?php bbp_forum_last_topic_title(); ?></em></a>
I was wondering if there is a way to make the title of bbp_forum_last_topic_title a max amount of characters, so the title is smaller.
ThanksIn template feedback-no-search.php, I would like to add a suggestion to the user to create a new topic instead (since there is no result of the search). How can I make the searched keywords as the default title of the new topic ?
I think I can put the shortcode [bbp-topic-form] in the feedback-no-search.php file but would like the new topic form to have a default Title == searched text.
Thanks in advance!
Hi,
I just activated bbpress and I’d like to add a “return to forum” tab to user profil.
I understood that i must put a code like this:
<li c lass=""> <a title="Return forum">Return forums</a> </l i>But i don’t know where to find the file where i should put this code ?
Thank you for your help
