Forum Replies Created
-
nevermind i pretty much add it after the else so it would just return a normal reply author link
EDIT: didnt get it , still dont know how to construct functions π
In reply to: Example forums that use plugins for imageswhy do you need a plugin ?
when you reply to this comment look at the toolbar there is an image upload by url (img) button.
if you want images to be uploaded to your server
add this function to your functions php (if you have a child theme already set)
add_filter( 'bbp_after_get_the_content_parse_args', 'bavotasan_bbpress_upload_media' ); /** * Allow upload media in bbPress * * This function is attached to the 'bbp_after_get_the_content_parse_args' filter hook. */ function bavotasan_bbpress_upload_media( $args ) { $args['media_buttons'] = true; return $args; }
but function only allows admins, moderators , and authors to upload images to your server.
you would then need to change some user role capabilities so that if you want subscribers to upload images to your server
ok my bad for bumping this
but i changed my mind on how i want the function to display
is there a way to use
if (bbp_get_reply_author_id() == bbp_get_topic_author_id() ) {
so that it just replaces this code of the reply author name
div class=reply-author-name><?php bbp_reply_author_link( array( 'show_role' => false, 'type' => 'name' ) ); ?></div>
to this instead
div class=topic-starter><?php bbp_reply_author_link( array( 'show_role' => false, 'type' => 'name' ) ); ?></div>
i just want to change the div class so that if the topic author = reply author it would just show the reply author name in just a different color , kind of like reddit
i want this because when my site goes to a smaller size i have to remove some attributes like post count , buddypress profile data , user role , and the user avatar at really small screens just so i could make it look nice.
i want to users to still recognize the topic starter even at smaller screens
i think a simple filter might do this
but i dont know where to even start.
thanks if anybody helps
In reply to: Adding border bottom to widgetsyour welcome
In reply to: Do you guys think this is possible??yeah i might have to
but before that im going to contact the developer , because they have this plugin where you can implement it into wordpress comments and im sure that an akismet integration would be a hell of a feature on wordpress comments or other post types.
In reply to: Adding border bottom to widgetsit shouldnt be each page…just each different sidebar you use if you use a plugin like custom sidebars .
you can either enter each css code for each instance of the widget
or you can give each instance of the widget a certain css idif you want to give each recent topics widget a certain css id
download the plugin “widget css classes”
in the options of the plugin you can activate “show additional field for id”
then you can just 1 css id for where ever you place the widget
you input your id in the widgets section , in each widgets options
it should show fields to input your custom fields like this
CSS CLASS:
CSS ID:so if i enter
CSS CLASS:
CSS ID: custom-idi would have to add this css code
#custom-id ul li {
border-bottom: 1px solid #F1F1F1;
}In reply to: css advice needed for forum posts on mobile deviceyeh i have the layout your talking about but i have it on my site for whatever width the screen is.
heres a pic of a single reply
https://docs.google.com/file/d/0B_Ue9ryY5cmYU3BHMDRkNzJsNU0/edit
and whenever the screen gets smaller i just change the size of the fonts and the avatar size
i will share the template files and css on github some time later though
In reply to: css advice needed for forum posts on mobile deviceim working on a good layout that should be great on mobile devices
its pretty much just turning attributes like freshness, posts, voices, and topics into rows instead of columns.
And using topic reply space wisely , and basically turning bbpress replies VISUALLY into a comment system
I might share my template files and css in the future
but i did check out your site and see that your using buddypress too
so you could try this plugin
https://wordpress.org/plugins/buddymobile/
I havent tried it yet so i cant really say much about it though.
In reply to: Real anonymous posting in bbpressSo where do we put this code, some might ask?: This is a plugin, so we can create a file like /wp-content/plugins/empty-anonymous-replies-in-bbpress/empty-anonymous-replies-ββin-bbpress.php. Then we visit the plugin section in the backend and activate it. This code should also work from the functions.php file in the current theme directory. I hope this helps the users, that aren’t sure what to do with this code.
you make a .php file copying the entire code they published
or copy after
/** * Plugin Name: Empty Anonymous Replies in BBPress * Plugin URI: http://wordpress.stackexchange.com/a/133420/26350 */
and add that code to functions.php if you hopefully have a child theme
In reply to: Adding border bottom to widgetslook up the css in inspect element
and youll see that when you look at http://desimedicos.com/forums/view/latest-topics/
on the recent forum topics widget the id of the widget is #bbp_topics_widget-8 now
so now you would have to also add the custom css
#bbp_topics_widget-8 ul li {
border-bottom: 1px solid #F1F1F1;
}look for changes like that on each page you have those widgets
In reply to: Adding border bottom to widgetson my end whenever i used #sidebar and .widget it didnt work
so
#bbp_topics_widget-4 ul li {
border-bottom: 1px solid #F1F1F1;
}#bbp_topics_widget-4 ul li {
border-bottom: 1px solid #F1F1F1!important;
}#bbp_topics_widget-4 li {
border-bottom: 1px solid #F1F1F1;
}should all work
In reply to: Adding border bottom to widgets#bbp_topics_widget-4 ul li {
border-bottom: 1px solid #F1F1F1;
}they work on my end
do
#bbp_topics_widget-4 ul li {
border-bottom: 1px solid #F1F1F1!important;
}or clear your cache
In reply to: Adding border bottom to widgets#bbp_topics_widget-4 li {
border-bottom: 1px solid #F1F1F1;
}i think this is what your looking for?
In reply to: Adding border bottom to widgetsgive me a site link and ill check it out
In reply to: Adding border bottom to widgetsread this on finding the widget class and id and customize it
if you want to use a custom class and id for the widgets then get this plugin
In reply to: Has anyone used the bbpress ajax replies plugin??i see this plugin will work when enable threaded replies is activated.
plugin developer should have put that on the read me text file
In reply to: Changing Font Color & Sizeuse css to make your changes
everything is pretty much in there
this is very touching
thanks for the information
In reply to: I want to add ads a lots of ads!!2. Below Each of the reply
3. Interstilies add before opning forum.
users are going to love adblock then
i suggest that you dont bombard them with ads everywhere , show at least 2 – 4 on just one page
use this plugin
In reply to: display labels based on topic status?solved my own problem
found this
instead of using function.php
i threw this into loop-single-topic ,
the way i have my topics arranged it shows below the titlefor closed label
<?php $topic_id = bbp_get_topic_id(); if ( get_post_type( $topic_id ) == bbp_get_topic_post_type() && bbp_is_topic_closed( $topic_id ) ) echo '<span class="closed">[CLOSED]</span>'; ?>
for sticky label
<?php $topic_id = bbp_get_topic_id(); if ( get_post_type( $topic_id ) == bbp_get_topic_post_type() && bbp_is_topic_sticky( $topic_id ) ) echo '<span class="sticky">[STICKY]</span>'; ?>
In reply to: custom forum freshness blocknevermind i pretty much got it
looked at https://bbpress.org/forums/topic/freshness-link/
used
<?php bbp_forum_last_topic_title(); ?>
to get the title of the last recent topicand some code i had that robin gave me some time ago
end function is this
<div class="bbp-forum-last-topic-name"><a href="<?php bbp_forum_last_topic_permalink(); ?>" title="<?php bbp_forum_last_topic_title(); ?>"><?php bbp_forum_last_topic_title(); ?></a></div> <span class="bbp-last-post-by-author"><?php printf( __( '%1$s', 'bbpress' ),bbp_get_forum_freshness_link( array() ) ); ?></span> <?php _e(' by ', 'bbp'); ?> <span class="bbp-forum-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
@robin-w Thank you very much!!!
@robin-w its not anything additional
im just trying to get the same function cyberchimps forums is using
@robin-w if it works
i dont know any other ways to make a function find out if the topic author and reply author have something in common , then in the end result display the label “topic author”
after – i did find an example of a bbpress forum using exactly what i want though
http://cyberchimps.com/forum-topic/full-width-bbpress-forum/page/2/