Search Results for 'code'
-
AuthorSearch Results
-
July 18, 2014 at 5:12 am #149281
In reply to: How to make similar bbpress forum to QuicSprout one?
Pavle123
ParticipantOkay, figured it out.
I added this code
<a class="bbp-new-topic-button" href="#new-post">New Thead</a>right after
<?php do_action( 'bbp_template_before_topics_loop' ); ?>And now I need to float my button right and add a bit css to it!
Thanks so much guys!
July 18, 2014 at 3:46 am #149278In reply to: How to make similar bbpress forum to QuicSprout one?
Robkk
ModeratorThings are getting tricky and or difficult following the actual code here
XD haha did not know you were tracking this
i created a github account, was gonna end up with one anyway, so ehh why not now.
July 18, 2014 at 3:03 am #149272In reply to: How to make similar bbpress forum to QuicSprout one?
Stephen Edgar
KeymasterThings are getting tricky and or difficult following the actual code here 😉
I just made a GitHub gist containing the original bbPress files and then progressing through each of the above posts revising the code in each file.
You can see it here https://gist.github.com/ntwb/695bc26b44d6458040c7
Scroll to the very bottom and you will see the descriptions of the revisions and links to each change 🙂
If you have a GitHub account you can ‘fork’ my Gist, edit and revise your own versions, it makes sharing code so much simpler to follow, but is only a suggestion of course, don’t feel obliged to have to create a GitHub account and continue as you are here if you like. Showing revisions, green code is new code and red is removed code along with line numbers is what makes version control so awesome, you are able to clearly see what has changed and where exactly 🙂
Here all the revisions listed in one hit https://gist.github.com/ntwb/695bc26b44d6458040c7/revisions
July 18, 2014 at 2:10 am #149269In reply to: How to make similar bbpress forum to QuicSprout one?
Robkk
ModeratorUnfortunately I pasted the code correctly, but I still do not see a link anywhere
well like is said i had trouble with it too i had the code in my content-archive-topic.php and then it disappeared for some reason.
But before i had the code there i just threw it into loop-topics.php so it should work.
But if your a style freak like me you will get annoyed whenever you look at your favorited topics and subscribed topics and also see the new thread link there too.
Any other ideas perhaps?
No idea, flush cache?
Sorry for bothering you man
nah your not bothering
ok delete the new thread code from content-archive-topic.php
and now copy loop-topics.php into your child theme
the entire code of loop-topics.php should look like this
<?php /** * Topics Loop * * @package bbPress * @subpackage Theme */ ?> <?php do_action( 'bbp_template_before_topics_loop' ); ?> <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics"> <a class="bbp-new-topic-button" href="#new-post">New Thead</a> <li class="bbp-header"> <ul class="forum-titles"> <li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></li> <li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li> <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li> <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li> </ul> </li> <li class="bbp-body"> <?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php bbp_get_template_part( 'loop', 'single-topic' ); ?> <?php endwhile; ?> </li> <li class="bbp-footer"> <div class="tr"> <p> <span class="td colspan<?php echo ( bbp_is_user_home() && ( bbp_is_favorites() || bbp_is_subscriptions() ) ) ? '5' : '4'; ?>"> </span> </p> </div><!-- .tr --> </li> </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> --> <?php do_action( 'bbp_template_after_topics_loop' ); ?>July 18, 2014 at 1:15 am #149268In reply to: How to make similar bbpress forum to QuicSprout one?
Pavle123
ParticipantThanks for all the help @Robbk.
Unfortunately I pasted the code correctly, but I still do not see a link anywhere, will try to figure out why. Any other ideas perhaps? Sorry for bothering you man.
July 17, 2014 at 11:52 pm #149264In reply to: customizing bbpress admin links
Robkk
Moderator1 [x] admin links show up in a dropdown menu
2 [x] admin links work while in the dropdown menu
3 [x] admin links work on every post
4 [x] different admin links show up depending on post type
5 [x] admin links hover over all objects and is not hidden if all the way right
6 [x] dropdown menu show links to all users
7 [/] add report content link and ignore user link on reply admin links
8 [/] and mark as read, report content , ignore user, favorite , and subscribe links to topic admin links
*2 cant single out stick , and (to front) to where its on 2 different
li
*3 Fixed with different css code
*5 used z-index
*7 only ignore user is left (1/2)
*8 only ignore user is left (4/5)will post code when i fix some css positioning for original bbpress layout
July 17, 2014 at 9:12 pm #149262In reply to: Different Sidebar for the Forums
Herophantom
ParticipantThank you.
I would also like to update, so after reading some more last night, I found the documentation on the short codes. I tried making a dedicated page and using the short codes to load the main forum index. Now this works in almost every way, including using the proper sidebar that I want, however, the search option at the top is now off set, with the button below the bar instead of next to it. I have been fiddling with the CSS for awhile to see if I can get it to align properly, but so far no luck. And now, even the page provided by the bbpress plugin is doing the same thing. So maybe I messed something up, or maybe I’m just missing something, but if I can get this solved, I will have a perfect solution.
July 17, 2014 at 7:24 pm #149258In reply to: How to make similar bbpress forum to QuicSprout one?
Robkk
Moderatorwhat am I doing wrong guys?
reading carefully
your suppose to put
<a class="bbp-new-topic-button" href="#new-post">New Thead</a>above
<?php do_action( 'bbp_template_before_topics_index' ); ?>like this
<?php /** * Archive Topic Content Part * * @package bbPress * @subpackage Theme */ ?> <div id="bbpress-forums"> <?php if ( bbp_allow_search() ) : ?> <div class="bbp-search-form"> <?php bbp_get_template_part( 'form', 'search' ); ?> </div> <?php endif; ?> <?php bbp_breadcrumb(); ?> <?php if ( bbp_is_topic_tag() ) bbp_topic_tag_description(); ?> <a class="bbp-new-topic-button" href="#new-post">New Thead</a> <?php do_action( 'bbp_template_before_topics_index' ); ?> <?php if ( bbp_has_topics() ) : ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php bbp_get_template_part( 'loop', 'topics' ); ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_topics_index' ); ?> </div>tell me if you got it to work now
July 17, 2014 at 6:17 pm #149256In reply to: How to make similar bbpress forum to QuicSprout one?
Pavle123
ParticipantOkay I am here with “New Thread button”
1)Downloaded folder content-archive-topic.php from my bbPress plugin folder.
2)Uploaded whole folder to my child theme
here is how it looks now

On top of the code in that folder I added this code :
<?php do_action( 'bbp_template_before_topics_index' ); ?> <a class="bbp-new-topic-button" href="#new-post">New Thead</a>So now my folder looks like this
<?php do_action( 'bbp_template_before_topics_index' ); ?> <a class="bbp-new-topic-button" href="#new-post">New Thread</a> <?php /** * Archive Topic Content Part * * @package bbPress * @subpackage Theme */ ?> <div id="bbpress-forums"> <?php if ( bbp_allow_search() ) : ?> <div class="bbp-search-form"> <?php bbp_get_template_part( 'form', 'search' ); ?> </div> <?php endif; ?> <?php bbp_breadcrumb(); ?> <?php if ( bbp_is_topic_tag() ) bbp_topic_tag_description(); ?> <?php do_action( 'bbp_template_before_topics_index' ); ?> <?php if ( bbp_has_topics() ) : ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php bbp_get_template_part( 'loop', 'topics' ); ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_topics_index' ); ?> </div>Unfortunatlelly I am unable to see new thread link anywhere, what am I doing wrong guys? @netweb @robkk ?
July 17, 2014 at 5:37 pm #149255In reply to: How to make similar bbpress forum to QuicSprout one?
Pavle123
ParticipantHaha I am not that confused 😀
Joking, I would be totally lost without you man, thanks for everything.
I just had to add !important; thingy to the css of my child theme.
.bbp-stats .bbp_stats li { margin: 0; display: inline-block <strong>!important;</strong> padding: 5px; }Now my stats look neat. Any idea how this forum I sent you a link to has them with these icons,etc?
Even now my stats look neat. Will try to move on to the “new thread button” now, and post what I did 🙂
July 17, 2014 at 3:41 pm #149254In reply to: Description under title forum
Vladimir
ParticipantHello @robin-w,
Now i fixed it, only i was need to put this lines into loop-single-forum.php
<?php do_action( 'bbp_theme_before_forum_description' ); ?> <div class="bbp-forum-content"><?php bbp_forum_content(); ?></div> <?php do_action( 'bbp_theme_after_forum_description' ); ?>July 17, 2014 at 3:13 pm #149251In reply to: Sidebar reappear in topic and topic/
Robin W
Moderatorok, so in your PC create a file called bbpress.php
(you can use notepad for this)
then dump this code into it
<?php /** * bbPress - Forum Archive * * @package bbPress * @subpackage Theme */ get_header(); ?> <?php do_action( 'bbp_before_main_content' ); ?> <?php do_action( 'bbp_template_notices' ); ?> <div id="forum-front" class="bbp-forum-front"> <h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1> <div class="entry-content"> <?php bbp_get_template_part( 'content', 'archive-forum' ); ?> </div> </div><!-- #forum-front --> <?php do_action( 'bbp_after_main_content' ); ?> <?php get_sidebar(); ?> <?php get_footer(); ?>save it and using ftp copy it to get
wp-content/themes/%yourthemename%/
where %yourthemename% is the name of your theme
so you end up with
wp-content/themes/%yourthemename%/bbpress.php
bbpress will then use this template
Come back and let us know how you get on !
July 17, 2014 at 1:38 pm #149246Topic: Forum index not ordering topics by Freshness
in forum Troubleshootingallieslabs
ParticipantHey Guys,
We would like the topics on the Forum index page to display in order of Freshness. I understand this to be the default behavior, but for some reason our forum is not using that ordering.
http://cornerstonecollective.com/forum/
I have looked in settings and dug into the source code looking for a way to set the order to use the appropriate meta data, which I believe to be _bbp_last_active_time, but cannot seem to find the answer. Any suggestions would be most appreciated!
Thanks!
WordPress Version: 3.9.1
bbPress Version: 2.5.4
Website: http://cornerstonecollective.com/forum/July 17, 2014 at 1:23 pm #149244In reply to: How to make similar bbpress forum to QuicSprout one?
Robkk
Moderator@pavle123 damn your confused haha
read everything carefully
Look at the code i tell you to put in templates carefully , it is just a snippet of the template with each new code in it. So you have to copy the original template to your child theme. find where the new code on here is placed, compare it to the original and place the new code in your copy of the templates in your child theme.
nothing goes into your child theme functions.php
you copy bbpress templates into your child theme so its okay when bbpress updates, i explain exactly what template to copy and also i show you a snippet of where to put the code by the original code.
you put custom css into anything that can handle custom css
in bbpress.css in your child theme(you copy the original in your child theme)
in your child themes css stylesheet
the jetpack plugin module custom css
a standalone custom css pluginif your still confused read https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/
July 17, 2014 at 12:10 pm #149243In reply to: bbPress don't work.
thecatholicwoman
ParticipantCan you explain what steps you took? It does sound like you did not add the shortcode that Paviel123 spoke of. However, if you followed the same steps and it worked on the test site I am assuming that something more may be going on. I am learning myself but when I had issues some very nice people helped me and I know what it is like to be where you are 🙂
If you can provide some more details and links it would be very helpful
July 17, 2014 at 10:34 am #149242In reply to: bbPress don't work.
Pavle123
ParticipantIt would be useful if you could share the link or something.
Have you pasted the forum shortcode on a page?Forums
[bbp-forum-index] – This will display your entire forum index.
July 17, 2014 at 8:54 am #149241In reply to: How to make similar bbpress forum to QuicSprout one?
Pavle123
ParticipantOh crap, do you mean I should copy the whole folder content-archive-topic.php inside my theme? Well that makes sense 🙂
Here is what I did :
1) Uploaded content-archive-forum.php to my child theme folder.
2) Added this piece of code at the bottom<?php do_action( 'bbp_template_after_forums_index' ); ?> </div> <?php echo do_shortcode("[bbp-stats]"); ?>3) Added this CSS in my style.css of child theme (CSS is not working unfortunately, not sure why?)
.bbp-stats .bbp_stats { list-style-type: none; display: block; text-align: center; margin-left: 0px; float: none; } .bbp-stats .bbp_stats li { margin: 0; display: inline-block; padding: 5px; }So, now stats are shown at the bottom, but CSS is not targeting the stats.
Okay about “new thread button” I was unable to make it work. Here is what I did.
1) I added content-archive-topic.php folder from my bbPress plugin content-archive-topic.php into my child theme folder.2)Added this code
<?php do_action( 'bbp_template_before_topics_index' ); ?> <a class="bbp-new-topic-button" href="#new-post">New Thead</a>At ABOVE the content-archive-topic.php
<?php /** * Archive Forum Content Part * * @package bbPress * @subpackage Theme */ ?> <div id="bbpress-forums"> <?php if ( bbp_allow_search() ) : ?> <div class="bbp-search-form"> <?php bbp_get_template_part( 'form', 'search' ); ?> </div> <?php endif; ?> <?php bbp_breadcrumb(); ?> <?php bbp_forum_subscription_link(); ?> <?php do_action( 'bbp_template_before_forums_index' ); ?> <?php if ( bbp_has_forums() ) : ?> <?php bbp_get_template_part( 'loop', 'forums' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-forums' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_forums_index' ); ?> </div> <?php do_action( 'bbp_template_after_forums_index' ); ?> </div> <?php echo do_shortcode("[bbp-stats]"); ?>But its not working for me.
Any ideas?
July 17, 2014 at 8:17 am #149238In reply to: How to make similar bbpress forum to QuicSprout one?
Pavle123
ParticipantHm, okay I did not know where elswehere to put it.
<?php /** * Archive Topic Content Part * * @package bbPress * @subpackage Theme */ ?> <div id="bbpress-forums"> <?php if ( bbp_allow_search() ) : ?> <div class="bbp-search-form"> <?php bbp_get_template_part( 'form', 'search' ); ?> </div> <?php endif; ?> <?php bbp_breadcrumb(); ?> <?php if ( bbp_is_topic_tag() ) bbp_topic_tag_description(); ?> <?php do_action( 'bbp_template_before_topics_index' ); ?> <?php if ( bbp_has_topics() ) : ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php bbp_get_template_part( 'loop', 'topics' ); ?> <?php bbp_get_template_part( 'pagination', 'topics' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?> <?php endif; ?> <?php do_action( 'bbp_template_after_topics_index' ); ?> </div>So this obviously does not go into css, so do you know where inside my child theme should I put the content-archive-topic.php code?
July 17, 2014 at 6:08 am #149236In reply to: How to make similar bbpress forum to QuicSprout one?
Pavle123
ParticipantHey Robkk,
Okay I started customizing ,and I started with new thread button.
I did this as you suggestedcopy content-archive-topic.php into your child theme right now then
And I copied it into my child theme functions.php, but it all looked messed up, is the functions.php the place to copy this code or not?
Thanks again, you are amazing.
July 17, 2014 at 2:07 am #149229In reply to: Different Sidebar for the Forums
Robin W
Moderatorbbpress will use the default page template for the main index rather than the specific page template set in the page – so your setting in the forum page won’t apply.
There are several ways around this, but as your plugin is a paid one, I can’t see the code to recommend the best solution.
So first off I’d post a query onto their support site
they probably have come across bbpress before and will know the answer. You could tell them that bbpress uses ‘is_bbpress()’ to see if it is a bbpress page, that might help them.
July 16, 2014 at 3:50 pm #149222Robin W
Moderator1. bbpress plugins add exactly as normal wordpress plugins
Dashboard>plugins
Bbpress will try and use your theme, you may want to visit the set up guides
2. depending on your theme, you should see the ability to add a topic at the end of each forum.
You can add a ‘topic’ add in your sidebar using the text widget and putting
<a href="/add-new-topic/">Create a new topic</a>in the text
July 16, 2014 at 2:45 pm #149220In reply to: bbpress SQL Injection
John James Jacoby
KeymasterEchoing what Stephen said above, these issues are not actual issues (with bbPress 1.x or 2.x) and in are in no way responsible for anything that could have happened to your site.
When something is not installed incorrectly, of course it isn’t going to work correctly. These issues are akin to installing your TV with the screen facing the wall, and complaining that you can’t see it from the couch. 🙂
If it so happens any security issues are found in any version of bbPress, please do not publicly report them in these forums. Instead, responsibly disclose us:
https://codex.wordpress.org/FAQ_Security
We try to be really good about fixing any security issues ASAP.
July 16, 2014 at 11:34 am #149218In reply to: Sidebar reappear in topic and topic/
Robin W
ModeratorJuly 16, 2014 at 2:08 am #149201In reply to: Vbulletin to bbPress Import – Replies Missing
Stephen Edgar
KeymasterOk, maybe the pre v3.0.0 never included ‘topic tags’ so the best solution is to delete or comment out this section in
vBulletin3.phpBasically remove the code between lines #293 and #334 in
vBulletin3.phpbbPress 2.5.4https://bbpress.trac.wordpress.org/browser/tags/2.5.4/includes/admin/converters/vBulletin3.php#L293
https://bbpress.trac.wordpress.org/browser/tags/2.5.4/includes/admin/converters/vBulletin3.php#L334I hope to get the updates that I have been doing over the past week and a bit finished by the end of the week and it would be great if I could get a few people to test theme out 🙂
July 16, 2014 at 1:41 am #149197In reply to: Vbulletin to bbPress Import – Replies Missing
themefurnace
ParticipantI believe I did get this error :
[Table 'vbulletincopy.tagthread' doesn't exist]The version is 3.0.0 RC8
Thanks
-
AuthorSearch Results
