Search Results for 'code'
-
Search Results
-
hello..
i like to offer my users an extra (costum) profilepage where they can see an overview of their own posts… like in the profile. is this with a shortcode possible ?
thanks
Topic: Forums Index Issue
Hi there —
I’ve searched the forums and think I’ve tried all suggested solutions.
I have this forum and it works fine: http://realworldsupplychain.com/forums/discussion/certified-supply-chain-professional/
But then when I go to the “forums” slug, I get an error page like this: http://realworldsupplychain.com/forums/
I tried different permutations. I tried creating a /forums Page and entered the [bbp-forum-index] shortcode. That didn’t work too. I’ve tried deleting/reinstalling bbPress, still no joy.
I don’t have any existing pages with /forums off my domain.
Any help would by much appreciated. Thanks in advance!
Hello
On the site I am working on (not yet live) we are using BBpress Forums integrated with a Buddypress installation. Both the Buddypress Group and associated BBPress Forums are marked Hidden.
Users with Group Role as Member can properly see the Forums when viewing directly.
The issue comes to when we try to have users view the Forums via Short Code.
Only those with a Group Role of Moderator or higher can see the forum via Short Code.
WP is 3.6, bbPress 2.4, BuddyPress 1.8.1
Hi there,
I created a couple of custom fields and integrated it with my Group Topics, new topic form. I’d like to be able to just load this new form for specific groups. I ended up creating a little plugin to load the following code found on a tutorial that worked for me.
It took a long time to figure this out and I was hoping to get a bit of direction to expedite figuring this out (the topic of this thread).
Thanks!
add_action ( ‘bbp_theme_before_topic_form_content’, ‘bbp_extra_fields’);
function bbp_extra_fields() {
$value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field1’, true);
echo ‘<label for=”bbp_extra_field1″>Seeking Funding? (Yes or no)</label><br>’;
echo “<input type=’text’ name=’bbp_extra_field1′ value='”.$value.”‘><br>”;$value = get_post_meta( bbp_get_topic_id(), ‘bbp_extra_field2’, true);
echo ‘<label for=”bbp_extra_field2″>Resources Needed (talent, knowledge, mentors, etc.)</label><br>’;
echo “<input type=’text’ name=’bbp_extra_field2′ value='”.$value.”‘>”;
}add_action ( ‘bbp_new_topic’, ‘bbp_save_extra_fields’, 10, 1 );
add_action ( ‘bbp_edit_topic’, ‘bbp_save_extra_fields’, 10, 1 );function bbp_save_extra_fields($topic_id=0) {
if (isset($_POST) && $_POST[‘bbp_extra_field1’]!=”)
update_post_meta( $topic_id, ‘bbp_extra_field1’, $_POST[‘bbp_extra_field1’] );
if (isset($_POST) && $_POST[‘bbp_extra_field2’]!=”)
update_post_meta( $topic_id, ‘bbp_extra_field2’, $_POST[‘bbp_extra_field2’] );
}add_action(‘bbp_template_before_replies_loop’, ‘bbp_show_extra_fields’);
function bbp_show_extra_fields() {
$topic_id = bbp_get_topic_id();
$value1 = get_post_meta( $topic_id, ‘bbp_extra_field1’, true);
$value2 = get_post_meta( $topic_id, ‘bbp_extra_field2’, true);
echo “Seeking Funding? “.$value1.”<br>”;
echo “Resources Needed: “.$value2.”<br>”;
}Topic: Forum Layout Problem
Hi
I’ve searched the web but nothing shouts out at me. The only thing I can see is to edit the PHP but I’d rather avoid that if possible
Currently my layout is as follows:
<strong>South Yorkshire</strong> Sheffield & District Fair Play League (2, 6), Sheffield & Hallamshire County Senior (2, 10), The Wragg League (1, 1), Doncaster & District (1, 1) <strong>East Yorkshire</strong> Humber Premier League (0, 0), East Riding Amateur (0, 0), East Riding County (0, 0)But I’d like it as below.
<strong>South Yorkshire</strong> o Sheffield & District Fair Play League (2, 6), o Sheffield & Hallamshire County Senior (2, 10), o The Wragg League (1, 1), o Doncaster & District (1, 1) <strong>East Yorkshire</strong> o Humber Premier League (0, 0), o East Riding Amateur (0, 0), o East Riding County (0, 0)Essentially I want my forums in a nice list rather than in a clump. I’d like the same palyour as most forums (PHPBB etc). Is this possible?
Plugin/ easy setting I’m missing?