Search Results for 'code'
-
AuthorSearch Results
-
July 26, 2015 at 8:13 pm #164602
In reply to: Logout Link Redirects to Topic
Robkk
Moderatormax links allowed in posts are 2 this includes links in embedded images.
You can remove the http:// from the code, I would know what you are talking about.
July 26, 2015 at 8:09 pm #164600In reply to: Check if post is visible to user
Robkk
ModeratorMaybe this? Not 100% sure though, if you haven’t contact BuddyPress support.
if ( is_user_logged_in() || bp_group_is_member() )July 26, 2015 at 12:29 pm #164595In reply to: Logout Link Redirects to Topic
drinkingsouls
ParticipantMy replies with code won’t post for some reason..
July 25, 2015 at 7:17 pm #164583In reply to: Display this plugin before the username on replies
Stagger Lee
ParticipantForgot about this and that I did it without buddyPress. Took code from this plugin and adapted it to my needs. But I see you already found it and adapted it self. Added some additional thing, Non logged User doesnt see online/offline icons, logged in User see them. Good to force curious people to log in.
https://wordpress.org/support/topic/show-a-red-green-circle?replies=16
https://wordpress.org/plugins/bbp-user-online-status/screenshots/July 25, 2015 at 5:31 pm #164580In reply to: bbCode toolbar with markItUp! editor
killer_x10
ParticipantThank you for the Information but I am just replacing all the HTML Tags with bbcode tags, nothing special because I am very bad at php and javascript, I know very little js and just started with php. Btw I have finished it, just couldn’t get 1 thing right, Close HTML Tags.
Here’s the Link to the Topic: https://bbpress.org/?post_type=topic&p=164557
July 25, 2015 at 4:38 pm #164578In reply to: Redirect from page to profile url (menu link)
Robkk
Moderatorif you need to use the user nicename replace
$user = $current_user->user_login ;with
$user = $current_user->user_nicename ;How could I possibly find out the correct menu slug id? Right now the menu appears in every menu (sidebar as well) and regardless of an user’s login status.
I guess you can try doing what the top answer said here.
http://wordpress.stackexchange.com/questions/104301/get-menu-id-using-its-name
July 25, 2015 at 2:13 pm #164565Stagger Lee
ParticipantI help others as much I can and know. I cannot code from scratch. I knew this argument would come soon or later.
Cannot be more specific. Move plugins from Github to WP repository and if possible maintain them by themselves. Good start.
Can tell you story of most advanced and most powerfull forum on the world.
Drupal forum, long time ago in the core, then as “featured plugin” (module) and now lost, not existing.
I worked few months very intense on it and can witness that it is most advanced and powerful on the world (was).But for what use, what is the point. Nobody use it and now everyone forgot about it. Ugly as hell when installed, takes lot of time.
Learn from mistakes of other people. Not everything is in the code.
July 25, 2015 at 2:00 pm #164563Robin W
ModeratorAn interesting discussion, and can I perhaps add my thoughts as a plugin developer
You start from a perspective that bbpress would naturally seek to be all things to all people and should want to compete with other products.
I cannot speak for bbpress authors, but as a plugin author I write for the enjoyment and challenge of coding and to help others – I am not in an arms race or commercially minded – I can do plenty of that outside bbpress – and if some code I write has one user or thousands as long as it does what I want it to, I am happy. Yes it is nice to have good feedback, and improve it using others suggestions, but when these are posted as pseudo demands, or as a big list of complaints, then I have to say I would turn off. I do this for free, in my spare time, and for my enjoyment, and I suspect that the bbpress authors do the same as well.
I have to say therefore I find your general thrust of your demands, and your ‘I know better’ how bbpress should be run attitude upsetting.
This is a free product – if you want to improve it don’t whinge for the sidelines – write a detailed spec or better still write the code and submit it yourself.
Just telling others how they should do something that costs you nothing seems a very negative way to go about things.Just my view 🙂
July 25, 2015 at 1:51 pm #164562Robkk
ModeratorTo edit the templates make sure to copy the files from the bbPress plugin into your child theme in a folder called bbpress.
In
content-single-forum.phpremove this to remove the forum subscription link.<?php bbp_forum_subscription_link(); ?>In
user-subscriptions.php, remove all of this.<h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'bbpress' ); ?></h2> <div class="bbp-user-section"> <?php if ( bbp_get_user_forum_subscriptions() ) : ?> <?php bbp_get_template_part( 'loop', 'forums' ); ?> <?php else : ?> <p><?php bbp_is_user_home() ? esc_html_e( 'You are not currently subscribed to any forums.', 'bbpress' ) : esc_html_e( 'This user is not currently subscribed to any forums.', 'bbpress' ); ?></p> <?php endif; ?> </div>July 25, 2015 at 12:36 pm #164558In reply to: Redirect from page to profile url (menu link)
Robkk
ModeratorShould be also possible to make new menu items via functions to one of the menus created in backend design -> menu, right?
Maybe? maybe do something similar to what Baw login/logout menu uses, but I haven’t dived deep into this yet.
The way your code looks is a little odd, you might have to construct it similar to what I posted above.
This is what I made while messing with it, there could be a different class that your theme uses for sub-menu’s though.
add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in() && $args->menu->slug == 'mobile_menu') return $menu; else $current_user = wp_get_current_user(); $user = $current_user->user_login ; $class = 'sub-menu'; $profilelink = ' <li><a href="/forums/users/' . $user . '/">Your Profile</a> <ul class=' . $class . '> <li><a href="/forums/users/' . $user . '/replies">Replies</a></li> <li><a href="/forums/users/' . $user . '/topics">Topics</a></li> <li><a href="/forums/users/' . $user . '/subscriptions">Subscriptions</a></li> <li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li> </ul> </li> '; $menu = $menu . $profilelink; return $menu; }July 25, 2015 at 12:23 pm #164556In reply to: bbCode toolbar with markItUp! editor
Robkk
ModeratorThere is a toolbar plugin which is quite old. Just so you know if you plan to fix it up, you might as well structure it out better, because with all of its inline javascript it will add about 3 seconds load time to your site.
There is also a way to hook up other toolbars that could be just for bbcode into bbpress also.
July 25, 2015 at 11:20 am #164552In reply to: bbCode toolbar with markItUp! editor
killer_x10
ParticipantI understand, thank you anyway Robkk.. btw I am actually testing another Toolbar Plugin and I am editing some stuff around and my first Test went okay, now I’m just editing that Toolbar Plugin to add up with bbcode.
July 25, 2015 at 11:17 am #164551In reply to: bbCode toolbar with markItUp! editor
Robkk
ModeratorThis topic was way back in bbPress v1, so nothing is good for this current version.
There is a way to use shortcodes (bbcode) as long as they are whitelisted for users in the quicktags toolbar but this would require some editing of some javascript.
You can also use the TinyMCE toolbar, adding bbcode to this would be more difficult then editing the quicktags toolbar.
July 25, 2015 at 11:13 am #164550In reply to: Importing from WBB4
Robkk
ModeratorCould be the importer code.
Is there anything else you can spot that is different between WBB3 and WBB4?
July 25, 2015 at 10:52 am #164548In reply to: Forum to sit inside WordPress pages
Robkk
ModeratorYou modify the template bbPress is inheriting from your theme. Use what the file and go to the page with the forum index shortcode to see which template has the banner in it, then go to other bbPress forum pages to see what template bbPress is inheriting by default.
A step by step is pretty difficult since all themes are different.
If you really want the banner, use what ever template that is coming from.
The first issue I’ve got is when you click ‘Forum One’, it shows the message, ‘This forum contains 1 topic, and was last updated by…” but doesn’t actually show the topic.
Try some troubleshooting, try a default theme to see if the issue is present, you should also try leaving only bbPress active to see if could be a plugin issue.
July 25, 2015 at 10:39 am #164547Robkk
ModeratorI think you can hide the forum subscription link if you want? It might be better to remove the code in the template. You might also have to remove the Subscribed Forums in your subscriptions section of your profile.
July 25, 2015 at 9:55 am #164545In reply to: Importing from WBB4
sammmmy
ParticipantI dont know how to answer that.
I want to import a mysql database, i dont know if that is a file or whatever.On my server is an old wbb3 installation and i can import that very good.
My wbb4 import is not running, i think the problem is the importer code….July 25, 2015 at 8:19 am #164541Topic: Forum to sit inside WordPress pages
in forum Installationsbskamey
ParticipantHi guys,
I am looking to have the same setup these guys https://ultimatemember.com/forums/
Page 1: A Page that shows all my forums
Page 2: A Page that shows the topics of each forum
Page 3: A Page that shows the replies of each topic.Simple simple.
Here is my website: http://sincebeingsingle.com/forums/
Fyi: I am using the latest versions of WordPress, bbpress and Bridge theme (from themeforest).
Fyi: I am a bit of a newbie at this.Issue 1:
The first issue I’ve got is when you click ‘Forum One’, it shows the message, ‘This forum contains 1 topic, and was last updated by…” but doesn’t actually show the topic.
Issue 2:
When I click on ‘Forum One’ I’d like it to go to a page where the yellow header banner replicates title of the forum. And that goes the same for, clicking on a topic and a reply.
The Ultimate Members forum above is the best example of this. You can see that each blue header banner has the title of the forum, topic and reply.
fyi:
I have got the forum working for the bbpress-forum index using [bbp-forum-index] shortcode. My header banner is showing perfectly as I have designed the page for the forum to sit on.
I’m struggling with getting the topics and replies sitting on a wordpress page that I’ve designed.
I am literally going around in circles trying to work out how to get my bbpress to sit within my own WordPress pages.
(I would like the same setup as UM, where the Forum page has the Forum title in the blue banner, Topic page has the Top title in the blue banner and Reply page has the Reply title in the blue banner).
Any guidance or step by step instructions would be massively appreciated from bbpress community.
Kam
July 25, 2015 at 5:16 am #164534In reply to: Import from SMF and strange tags in text.
ABCDiamond
ParticipantI just did an import of an SMF forum to bbPress, and my posts have <tt><tt> where all my paragraph breaks were.
I don’t have any of these though, as shown by the other poster: </tt>
But I do have some individual <tt>’s
Any links in the posts also have [ class=”bbcode_url” ] attached to the end of the link.
eg:<tt>Australian Electoral Commission<tt><a href="http://www.aec.gov.au/" class="bbcode_url">http://www.aec.gov.au/</a><tt>Enrolled etcJuly 25, 2015 at 12:06 am #164477Robkk
Moderatoralright if it is out of those plugins I will probably just get one and that is the direct quotes, plugin. Take some features from the vip support forum plugin, and maybe just fork the new topics plugin into a seperate new plugin with the code improvements and post that on wordpress.org.
July 24, 2015 at 11:58 am #164453Stagger Lee
ParticipantRobby, i told you already. I counted 13-14 plugins from here:
not in the WordPress repository. Translated nobody cares about update notifications, etc.
I have no clue what they do on Github, private websites, and why. Beginner User have less chance to know.You can start with this list. Clean it and set a goal to make all possible to move all plugins to WP repository.
If not possible, well it is GPL. Take code and dont care what original developer thinks.
July 24, 2015 at 7:21 am #164445Robkk
ModeratorDont want to talk about design and style. It would ruin all from my title.
But yes, bbPress is ugly as hell when installed and takes lot of time to design. Better to keep written notes what you do and how, to be able to use it next time.email me then, I actually do want to talk about design.
Dont know what to say about buddyPress serving as “Jetpack”. I like to install buddyPress along with bbPress and think they do better with design. Guess it is up to them, will they be standalone WP plugin or serve as filling gaps for bbPress.
Really just design? Only design I can think of is the companion stylesheets? Other than that it has a plain layout look like bbPress. Not the groups, @mention autosuggest, members page, attachments api, more advanced profile fields, ability to change/crop avatar?
Back to your question. Cannot point exactly what is hard for begginers and users. It is all small bits and parts making it difficult. Even to me is hard and takes lot of time to have one bbPress forum ready for live server.
Guess it is huge amount of time spent searching on Google and forums howto. I made those mistakes on my first 2-3 instalaltions and noticed it is impossible to continue this way. Now I have searchable and filterable database with bbPress, buddyPress snippets. Just for bbPress circa 150 of them and some tutorials. But not many people will do this. When they spend half day searching on Google how to solve something they will simply go to phpbb, SMF forum and it is one user less.It is easy to get a bbPress forum set up. It will definitely get hard to make bbPress work like other forum solutions? It would be pretty difficult to make something like phpbb turn into something like discourse for example.
Most of this time lost is fixing and tweaking third party plugins, using their adapted code in functions.php, etc.
What plugins? Tell me what plugins to adopt if you need to fix them? Email me this too.
In matter of fact price of one bbPress installation and customization goes easy to level of one very advanced web shop. Only know it is not sustainable and should not be this way.
Dont want to talk about money, just took it as example of how many hours and days bbPress takes to be finished and looks professional.
Yeah this would probably be level of skill vs cost for time to do it. It is easy for me and I might say I have a moderate level of skill. This is just my opinion though.
July 24, 2015 at 6:20 am #164440Stagger Lee
ParticipantThanks Robby.
Dont want to talk about design and style. It would ruin all from my title.
But yes, bbPress is ugly as hell when installed and takes lot of time to design. Better to keep written notes what you do and how, to be able to use it next time.I have some ideas of making bbPress more acceptable to Pods or ACF. It would open many possibilities. Some of them could be, polls, attachments (very regulated and narrowed), SVG icons, reply title (it is just text input field), avatars, etc..
Dont know what to say about buddyPress serving as “Jetpack”. I like to install buddyPress along with bbPress and think they do better with design. Guess it is up to them, will they be standalone WP plugin or serve as filling gaps for bbPress.
Anything that is the same as Jetpack. Lots of modules all deactivated on default, to not force people use what they dont need and want. And without connection to wordpress.com.
If you make some better cooperation with Pods you get automatically mass of new developers and possibly mass of custom tweaks shared around. Same would be with bbPress “Jetpack” or buddyPress if they want it.Back to your question. Cannot point exactly what is hard for begginers and users. It is all small bits and parts making it difficult. Even to me is hard and takes lot of time to have one bbPress forum ready for live server.
Guess it is huge amount of time spent searching on Google and forums howto. I made those mistakes on my first 2-3 instalaltions and noticed it is impossible to continue this way. Now I have searchable and filterable database with bbPress, buddyPress snippets. Just for bbPress circa 150 of them and some tutorials. But not many people will do this. When they spend half day searching on Google how to solve something they will simply go to phpbb, SMF forum and it is one user less.Most of this time lost is fixing and tweaking third party plugins, using their adapted code in functions.php, etc. Design OK, but usually easy to find answer on Google.
In some way I try to imagine how would it be to charge a client for a bbPress installation and customization. I dont do it for money, i spend time on it because I think it is fun. But so many spent hours and days is impossible to charge. Hence, nobody will setup bbPress forum for living and earning. Web companies goes to other solutions.
In matter of fact price of one bbPress installation and customization goes easy to level of one very advanced web shop. Only know it is not sustainable and should not be this way.
Dont want to talk about money, just took it as example of how many hours and days bbPress takes to be finished and looks professional.
July 24, 2015 at 5:03 am #164435In reply to: bbPress like Flarum
illwriteit
ParticipantA few problems with this i wanted to comment on, as I’ve completely re-wrote your entire theme.
A. The way you do forum.php is going to break a lot of templates. Premium templates on theme forest, many of them have other functions to generate the WP header and footer. When you do it the way you have done it, any template that does this will be broken by this template.
B. Enabling white.php completely broke my website just by turning it on.
I stripped out all your javascript, completely re-wrote your forum.php file to use standard wordpress protocol, and turned your forum template into this:
http://www.illwriteit.com/forum/
Each forum is color coded, each forum has custom font icons assigned to it. When you view a sub forum, I completely re-wrote your loop-forums so it displays all sub topics within all child forums.
I also custom integrated mycred so that your badges and rank are shown in the topic view like:
http://www.illwriteit.com/forum/topic/patriotic-writings/
I also custom designed a privacy system so that some topics are only shown to people I give access to based on their ultimate member role.
July 24, 2015 at 4:25 am #164432In reply to: Redirect from page to profile url (menu link)
project_subdomain
ParticipantI’m using the default backend design -> menu for all my menus. Tested this at the main navigation menu on my usual desktop version. Actual links show up but throw a 404-page only when clicking.
My mobile navigation menu (plugin: Responsive Menu) then simply could use one of those menus.
Should be also possible to make new menu items via functions to one of the menus created in backend design -> menu, right? Already tried this, but really have no idea if the correct slug ID is correct (mobile-menu is the name I gave the menu in backend):
add_filter ('wp_nav_menu_items', 'add_account-link'); function add_account_link ( $items, $args ) { if (is_user_logged_in() && $args->menu->slug == 'mobile_menu') { $items = '<ul><li><a href="#">Account</a></li>'; $items ='<ul><li><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" >Profile</a></li>'; $items ='<li><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>replies" >My replies</a></li>'; $items ='<li><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>topics" >My topics</a></li>'; $items ='<li><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>favorites" >My favorites</a></li>'; $items ='<li><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>subscriptions" >My subscriptions</a></li>'; </ul></ul>; } return $items; } -
AuthorSearch Results