Search Results for 'code'
-
AuthorSearch Results
-
July 22, 2015 at 12:34 am #164347
Stagger Lee
ParticipantJust to not be missunderstood. I personally dont have any problem whatsoever with this list above. Implemented with help of code tweaking and those plugins all of this. And much, much more. All except proper Polls. For this I cannot find a solution.
Just chit-chating about bbPress from less average User perspective and how it lives in world compared to other popular forum platforms.
July 22, 2015 at 12:16 am #164345Stagger Lee
ParticipantI dont ask anything of this be in the core. Just to find some other solution because this now doesnt work well.
Dont ask plugin developers. Is it GPL ? Yes. Use code as you wish and make completely new plugin if you need. Just some of your names stand as Author of plugin.
I see tendencies to become little Joomla community. They dont want to piss off developers of very popular extensions and they never add anything good in the core (dont let “core” confuse use, using it just as example here).
I personally have tweaked bbPress to unimaginable level. It is localhost, but still one Kunena import with many Users, topics and posts. Good for testing. spent huge amount of time on it. Not for the money, nobody would pay all those lost hours, impossible. Because I see potentioal and how WordPress self can make bbPress powerfull. Or buddyPress, I install it all the time together.
But, one thing is very specific for bbPress. I would not dare to touch it as average User, who installs and setup phpbb or SMF forum without big problems. It is extremely hard for beginners, and all those important plugins depending of how will it go in private life of (one) developer, make it much more difficult to touch and maintain.
At least take those 10-12 plugins from Github and put them in WP repository. Dont ask developer, it is GPL. Developer had 2-3 years or more to decide to do it byself, and he did not wanted it.
Problem there is notification about updates.
Just one example, lost many hours to see why Live preview stoped to word and by chance checked on Github versions. If it was in WP repository I would be notificated directly there is an update for it.July 21, 2015 at 8:11 pm #164336In reply to: Forum sidebar not visible
Robkk
ModeratorOnly other thing I can think of is you set up a custom index page with a shortcode and you cannot get the forum sidebar to show up on their?? But does it show on single topics, single forums??
July 21, 2015 at 6:31 pm #164328In reply to: Check if post is visible to user
ronz
ParticipantI ment doing it with a function in code =)
July 21, 2015 at 5:09 pm #164325Robkk
ModeratorI have seen this list but it is not the same as Feature plugins are for WordPress core.
Im trying to spruce up the page on the bbPress codex.
Not of things on list has anything to do with me personally, just using other popular forum scripts as reference.
Anything that BuddyPress already has as a feature and putting it into bbPress is a BIG decision to make, this could shy away from the plugin integration with BuddyPress in bbPress, but it would make bbPress stand on its own compared to other forum solutions though. Most of the features people want could be added by just installing BuddyPress with bbPress. I am starting to think if users want something like Vbull or IP Board they install should install BuddyPress to add any social network features. If users want a simple forum just use bbPress.
Here is what I think of your plugin list, it is just my opinion, my opinion could change depending on how you reply to how I feel about this. Maybe tell us a reason of why to incorporate these features into core vs a plugin. I just want to know what you think, and please do not just tell use that this forum is doing this and that bbPress should have do it also, make it an interesting discussion.
- Live preview – maybe bring TinyMCE back, as long as it doesn’t have issues
- Report content – Josh Eaton’s plugin I think personally is pretty darn good and well developed to stay being a great plugin for awhile. Might have to see how his plugin favors in the 2015 survey for any core considerations though.
- Ignore User – I don’t know really know, this might need some additional functionality somewhere else, maybe plugin territory.
- bbPress moderation panel separate from backend – I could see improvements on front-end moderation, maybe not exactly similar to the way the backend is set up, but I have ideas.
- Notifications – BuddyPress can add this..
- Make topics/forums read, unread (dont know if it is already in the core) – Not in core, toss up if in core or not, lots of plugins to choose from.already, do not know which one is the most optimal for most sites.
- bbPress TinyMce plugin – Maybe bring TinyMCE back, as long as it doesn’t have issues
- Reply titles – I don’t see a benefit from this, there is already a plugin for this though.
- View counts – I had this implemented on one of my forums using WP PostViews, after awhile I got to thinking that the voice and reply count really do show how popular a certain topic is, especially the voice count. Because the higher the voice count amount the more participation from users and not just back and forth between two people. Plus this will bulk up your database with a bunch of data.
- Topics for posts (very important even if not used on all installations) – Something like this is set for core. The creating a new topic for each blog post and linking to the topic where the comment form is gold. Entirely replacing the comments is where I had thoughts about this and I started to question possible issues that might come forth from this, and also the set up needed to make this work flawlessly.
- Online / Offline status – Don’t know really, I don’t really care either way, it is neat though.
- bbPress Polls (not shortcode based) – Maybe someone should just fork _ck_’s version of polls and make it work for bbPress v2, but this in my opinion this should stay plugin territory.
- Attachments – bbPress definitely needs more support for the import of attachments from other forum solutions, but managing them might shift to BuddyPress because they have the attachment API now, and BuddyPress might handle it better. I could see a simple image upload button in toolbar though.
- Move topics / replies between subforums – Yeah probably needs to be core. Maybe just topics with its own replies, not single replies??
- Avatar management – Same thing with attachments, needs more support for the import of avatars, managing them might be considered a toss up too, maybe BuddyPress/plugin territory, maybe core.
- Like / Vote topics, replies (I personally would never use this one, but..) – Probably plugin territory, I have seen some great plugins for this that are compatible with bbPress though. This also gives the user to have more choices on what to use, a 5 star rating, thumb voting, up down rating, like only topics. There are lots of choices.
- New plugin that makes it easy to add custom fields and add them where you need (this one is not referenced by other forum scripts).- I think you could use Advanced Custom Fields, but I am not entirely sure where you are going with this one??
Take some of those plugis from your list and give them to bbPress core developers. Or ask original developers to sign some of you on list of plugin Authors. For those developers who dont have much free time you have some plugins literally made from one-two PHP files. Just as it is a GPL take ownership from todays developers, or cooperate with them as co-maintainer Author.
Well this is tough sometimes too, contributing is one thing but taking ownership is another. Some devs might not see eye to eye, some have probably have gotten most of their income based on a very popular bbPress plugin.
There are plugins that I have suggested merging into core because they seem to improve areas that bbPress already has, the plugin seemed simple enough to consider thinking about since it is very commonly requested, and also that it would make life easier in some cases. I have also contacted a few developers if they wanted to contribute some have said they would like to see what they made into core, and others have not replied back.
Also some plugins could be very small, that might not mean put it in the plugin anyway.
There is not a lot of core devs in bbPress as one might think to start taking over some plugins while bbPress would have a bug that needs to be fixed, testing, code improvements, and other features added to core that may not exactly be a plugin on WordPress.
If you mean just any other active plugin developer to ask them to take over stuff, well I can’t really tell what they are good at besides making their own plugin. And I don’t want to seem bossy by asking people to do stuff that they might not agree to or have time to.
All those names of developers are very active in core community. Developers of bbPress plugins are not.
Either they abandon plugin and lose lust, dissapear.WordPress core is very active compared to bbPress, but they are two different things. One is a plugin the other is the entire CMS. Other forum solutions are CMS’s to themselves but bbPress is just a plugin.
If there are some plugins that are abandoned and do not have an alternative/fork that you think the plugin should be resurrected and be contributed to, you can say which plugins here.
I think I got most of your points, if I missed one point it out. Try not to be rude at all or come off as rude, just have a decent discussion.
July 21, 2015 at 2:28 pm #164317In reply to: Allow registered members to start topics
Coach Afrane
ParticipantThanks.
Please one more thing.
I want to place a login/register form in header which drops the profile on hover as in codex.bbpress.orgI used
<?php if ( $user_ID ) : ?> <?php wp_head(); global $user_identity; ?> <p><b>Howdy</b>, <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. [<a href="<?php echo wp_logout_url(); ?>" title="Log out of this account">Log Out</a>]</p> <?php else : ?> <form name="loginform" id="loginform" action="<?php echo get_option('siteurl'); ?>/wp-login.php" method="post"> Username <input value="Username" class="input" type="text" size="20" tabindex="10" name="log" id="user_login" onfocus="if (this.value == 'Username') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}" /> <input name="rememberme" id="rememberme" value="forever" tabindex="90" type="checkbox"> Remember Me? <br /> Password <input value="Password" class="input" type="password" size="20" tabindex="20" name="pwd" id="user_pass" onfocus="if (this.value == 'Password') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Password';}" /> <input name="wp-submit" id="wp-submit" value="Log In" tabindex="100" type="submit"> <input name="redirect_to" value="<?php echo get_option('siteurl'); ?>/wp-admin/" type="hidden"> <input name="testcookie" value="1" type="hidden"> </form> <?php endif; ?>…but on log out the username and password boxes stretchesd fullwith.
Please help.
ThanksJuly 21, 2015 at 12:36 pm #164309Robkk
Moderator
@carlharrison1 <- sorry I was probably lazy that day.You would have to create a custom template for bbPress or a bbpress.php file so that all your forum pages use this.
i guess if your slider is using a shortcode you can echo the shortcode in the template too.
You need to show it only on pages you want, so single topics, single forums, forum archive, and topic archive. Usually I see sliders have a conditional to show on the home page only so you would to do something similar but only on bbPress pages. You can input multiple conditionals using && or | for example,
<?php if ( bbp_is_single_topic() && bbp_is_single_forum() && bbp_is_forum_archive() && bbp_is_topic_archive()) : ?> <?php echo do_shortcode("[shortcode]"); ?> <?php endif; ?>July 21, 2015 at 12:29 pm #164308In reply to: Forum posts to mirror main forum design
Robkk
ModeratorYou would have to create a custom template for bbPress or a bbpress.php file so that all your forum pages use this.
i guess if your slider is using a shortcode you can echo the shortcode in the template too.
You need to show it only on pages you want, so single topics, single forums, forum archive, and topic archive. Usually I see sliders have a conditional to show on the home page only so you would to do something similar but only on bbPress pages. You can input multiple conditionals using && or | for example,
<?php if ( bbp_is_single_topic() && bbp_is_single_forum() && bbp_is_forum_archive() && bbp_is_topic_archive()) : ?> <?php echo do_shortcode("[shortcode]"); ?> <?php endif; ?>July 21, 2015 at 11:28 am #164300In reply to: Check if post is visible to user
Robkk
ModeratorUse
is_user_logged_in()July 20, 2015 at 11:24 pm #164284In reply to: Forum main page empty author mark
Robkk
ModeratorYou might have to try this to only remove it on bbPress pages and not on blog posts.
#bbpress-forums div.entry-author { display: none; }July 20, 2015 at 11:03 pm #164283In reply to: Allow registered members to start topics
Robkk
ModeratorAs long as the users have registered and their default role is a participant they should be able to create topics.
You can try troubleshooting for other possible issues too.
July 20, 2015 at 10:57 pm #164282In reply to: styling the register button
Robkk
Moderatorstyle using this CSS
.bbp-form .button { background-color: #1e8cbe; color: #FFF; font-family: "Oswald", "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; text-shadow: none; font-size: 26px; font-weight: bold; } .bbp-form .button:hover { background-color: #1e8cbe; color: #FFF !important; }July 20, 2015 at 10:36 pm #164281Sam Rohn
Participantalso respects posts hidden by s2member bbpress level restrictions
i was mistaken, topics hidden by s2member restrictions are hidden, but replies are not hidden in search results when using this snippet
davidddn, you may have another plugin or theme function interfering with this search code, so try testing with default wp theme and disable other plugins etc
otherwise, including bbpress in standard wp search results as a standard option in bbpress would be great
sam
July 20, 2015 at 10:35 pm #164280In reply to: purpose of activate component
Robkk
ModeratorThe activate component I think you are talking about is part of BuddyPress.
I can’t find any documentation that details if there needs to be a shortcode on that page but mine is blank…This is the downside so far. In the Docs there should be a description of each of the required pages and what they do as well as what I need to do with them
When BuddyPress is installed you will have a register page usually at yoursite.com/register/, and also an activate page so after you register you are required to activate your account usually here yoursite.com/activate/.
All documentation for the activate page would be on BuddyPress, in their codex.
There might be more documentation on the activate page, but I can’t find them if you want more information about it contact BuddyPress in their forums.
https://buddypress.org/support/
bbPress does allow shortcodes for registration, lost-password, and also for login, but none for users to activate their account. bbPress relies on how WordPress sets up registered users.
July 20, 2015 at 3:13 pm #164269In reply to: purpose of activate component
folgerj
ParticipantWell I created a page titled activate with nothing on it… I can’t find any documentation that details if there needs to be a shortcode on that page but mine is blank. I’m still getting new users but I don’t know what they are seeing. I created one user to see the process and I did see a 404 page. I still saw on the same page a link to continue the log in process…
This is the downside so far. In the Docs there should be a description of each of the required pages and what they do as well as what I need to do with them… I’m still not sure I’m doing this right.
July 20, 2015 at 11:22 am #164257In reply to: How to add latest reply or topic to forum list
PinkishHue
ParticipantAah just realised of course that code is showing just the *last* reply, not listing all replies, so I will keep tweaking it and update if I can get it showing *all* replies.
July 20, 2015 at 10:41 am #164256In reply to: How to add latest reply or topic to forum list
PinkishHue
Participant@julia_b (If you’re still waiting for a reply!) – you need to put this in your functions.php file, more info here: https://codex.bbpress.org/functions-files-and-child-themes-explained/
This works great, thanks so much for sharing this code!
I’ve also managed, with very little tweaking, to get this displaying replies under topics within the topics list (this is very rough with some bits commented out but pasting here in case it helps someone)
// https://bbpress.org/forums/topic/how-to-add-latest-reply-or-topic-to-forum-list/ function jagreplies_add_last_reply() { { $jagreplies_last_reply_id = bbp_get_topic_last_reply_id(); //$jagreplies_last_topic_id = bbp_get_forum_last_topic_id(); $new_args = array( 'post_type'=> 'reply', 'p' => $jagreplies_last_reply_id ); $post_title_args = array( 'post_type'=> 'topic', 'p' => $jagreplies_last_topic_id ); $other_args = array( 'post_type'=> 'topic', 'p' => $jagreplies_last_topic_id ); $jagreplies_query = new WP_Query( $post_title_args ); $nest_query = new WP_Query( $new_args ); $another_nest_query = new WP_Query( $other_args ); if ( $jagreplies_query->have_posts() ) : while ( $jagreplies_query->have_posts() ) : $jagreplies_query->the_post(); $this_post_id=$post->ID; $this_post_permalink= get_permalink(); ?> <!--<a href="<?php //echo $this_post_permalink; ?>">--> <?php endwhile; endif; wp_reset_query(); if ( $nest_query->have_posts() ) : while ( $nest_query->have_posts() ) : $nest_query->the_post(); $this_post_id=$post->ID; //$this_post_title= get_the_title(); //$this_post_content= get_the_excerpt(); $this_post_content= the_content(); ?> <h1><?php echo $this_post_title; ?></h1></a> <div class="the_content"><?php echo $this_post_content; ?></div> <?php endwhile; elseif ( $another_nest_query->have_posts() ) : while ( $another_nest_query->have_posts() ) : $another_nest_query->the_post(); $this_post_id=$post->ID; //$this_post_title= get_the_title(); //$this_post_content= get_the_excerpt(); $this_post_content= the_content(); ?> <!--<h1><?php //echo $this_post_title; ?></h1></a>--> <div class="the_content"><?php echo $this_post_content; ?></div> <?php endwhile; endif; }} // Hook into action add_action('bbp_theme_after_topic_freshness_author','jagreplies_add_last_reply');This is extremely useful in creating a ‘Facebook’ style site where all content can be displayed on one single page (I know, Facebook, yuck! But it’s what ‘the people’ like)
Now I just need to try to get the bbpress Ajax Replies plugin working in conjunction with this so people can post and reply from that single page. Interesting!
**edited to add – if using my code above you may just want to change the last line ‘bbp_theme_after_topic_freshness_author’ to a different hook depending on where you want to display it, I am using customised templates but I’m not sure how it would look loading the content there if using the default templates
July 20, 2015 at 5:50 am #164244In reply to: Importing from WBB4
Stephen Edgar
KeymasterWhat happens if you logout and log in again, also fully refreshing the import page would do the same thing, if you’ve left the import page open for too long without doing anything then the MySQL connection is dropped from the database and is most often the cause of only seeing
Startingwithout any other error.July 20, 2015 at 5:37 am #164243In reply to: Importing from WBB4
sammmmy
Participant2000user…. 5000threads… 150000posts… If this could be important.
I used 1 line/sec
The field saysstartingand does nothing moreJuly 20, 2015 at 12:41 am #164237In reply to: Problem on installation
Robkk
ModeratorJuly 19, 2015 at 3:31 pm #164225In reply to: Importing from WBB4
sammmmy
Participanti thought so and used this code:
https://gist.github.com/anonymous/526a8d9913e872ad5a43
the import was starting but not more…
I am still helplessJuly 19, 2015 at 10:20 am #164217In reply to: spam users are registering in my website
seo india
ParticipantMost of the Marketing Bots are advance enough to break through any type of Captcha Code. The real issue is not pondering over your captcha code, but you need to make your login/registration process secure with additional questions such as
What is the 3rd character in my Domain after www. ?
As far as math captcha is concerned, it can be easily cracked by Marketing Bots. You need to create your own custom question and this will surely help to get rid of automated registrations.
I was handling wordpress blog for 1 client and every day I used to get around 10-50 comments. Ultimately I had to block the commenting feature. Spamming is really bad form of marketing.
July 18, 2015 at 8:21 pm #164210Sam Rohn
Participantthe bbpress search code posted above by robkk works fine for me with wordpress 4.2.2 + bbpress 2.5.8, shows expected bbpress topics and replies in wp search results for admins, non admin members, and non logged in users
also respects posts hidden by s2member bbpress level restrictions
sam
July 18, 2015 at 10:59 am #164202In reply to: Importing from WBB4
Stephen Edgar
Keymasterin wbb4 there is no salt…
Yes, if that
saltfield is not in the user table then delete that block of code from your custom script.July 18, 2015 at 9:26 am #164199In reply to: Importing from WBB4
sammmmy
Participantcould it be the there is a problem with the user import?
in wbb4 there is no
salt…
-
AuthorSearch Results