Search Results for 'code'
-
AuthorSearch Results
-
June 11, 2013 at 9:28 am #134916
In reply to: What’s wrong with bbpress org toolbar + login?
Nate
ParticipantFirst of all,
You can drop the attitude. I work in digital marketing for a living and have done so successfully for many, many years, dealing with everything between Drupal, WP and proprietary software, and your response in this thread is easily the most unprofessional, immature, and frankly, baffling I’ve come across.
Understand that I’m under ZERO obligation to report security flaws in codex.bbpress.org to you. I DID contact you via Facebook (evidence here: http://imgur.com/gDcoOYG) out of sheer freaking goodwill. I also tried alerting you to this on the forum. Here’s the FAQ Security that you linked to: “You should also contact the plugin developer either via email (if it’s listed in the plugin source code), or by posting in the support forum on their plugin page asking how best to send them details.”
I couldn’t find your e-mail address, and brought it up here without hesitation — with that said, it shouldn’t come as a surprise that the lack of response generally shown on these forums is concerning toward a security flaw. Half the time it’s littered with spam for thai prostitutes anyway. Why would I assume that the thread would even be glanced at? Hence why I used Facebook to reach out to you.
And rather than inform you of bbPress.org login issues, I could have simply chuckled and chosen another open source platform of which to host my community. Or are you so self-righteous that you think multiple users complaining of the SAME login issues are probably just “doing it wrong” ??
In the words of the great Wayne Campbell, are you mental?
Your last question “How I managed to login” is already addressed within my post and in a post I made last week. I’m glad you did your homework.
If you’re ready to have an adult, professional conversation about this, let me know. Or check your Facebook messages from YESTERDAY AFTERNOON, when I addressed them.
June 11, 2013 at 2:32 am #134914In reply to: What’s wrong with bbpress org toolbar + login?
John James Jacoby
KeymasterI’ve received no message on Facebook (it’s also a poor approach to reporting security issues.)
Please read this page on the WordPress Codex.
Not fair to say I’ve ignored something I didn’t receive. I’m curious how you’re managing to login and post anything here, if logins are broken?
June 10, 2013 at 7:28 pm #134912In reply to: Putting the @username below name
Tecca
Participant@redknite, put this in your loop-single-reply.php file:
<?php $user = get_userdata( bbp_get_reply_author_id() ); if ( !empty( $user->user_nicename ) ) { $user_nicename = $user->user_nicename; echo "@".$user_nicename; } ?>June 10, 2013 at 1:02 pm #134909In reply to: Putting the @username below name
redknite
Participant@pjtna or @sambora5150 can you tell me how you got this to work? Where did you put the code? and was it exactly like above or did you have to add additional code?
June 8, 2013 at 2:09 pm #134885In reply to: Making Topics and Replies Takes So Long
rossagrant
ParticipantI’ve been experiencing similar results for a few months now, BUT only on topics with more than a few subscribers.
It seems that BBPress is waiting for a confirmation that the email notifications have been sent to subscribers BEFORE it releases the rest of the php script and allows the page to refresh for the actual person posting.
The post is actually posted very quickly if you look at the forum on another browser whilst the browser used to actually post is still processing.
I’ve set up a TRAC ticket here and have been investigating it for a while.
https://bbpress.trac.wordpress.org/ticket/2162#comment:8
I’m wondering if there is a better way to handle the notifications?
I’m no coder though unfortunately.
June 8, 2013 at 10:55 am #134882In reply to: Image upload
Shmoo
ParticipantYeah but they don’t wish to be like other forum software I guess.
bbPress wants to stay very clean, lean en mean I think. They hope somebody will ever make plugins for bbPress to accomplish all those tasks even history has proven Plugins aren’t the best way to go forward.
Anyway,
The code-snippet should go in the template that handles the form-stuff.Find the next files.
wp-content / pluings / bbpress / templates / default / bbpress / form-topic.php
wp-content / plugins / bbpress / templates / default / bbpress / form-reply.phpCopy & paste ( don’t drag & drop ) both files to your theme folder inside a new fodler called bbpress.
wp-content / themes / your-theme-name / bbpress / ** paste them here **Open the files and search for a line that say:
<?php bbp_the_content( …. ); ?>Line 66 and 92 I think it is.
Change the code and Save it.Refresh the page and you should see a Media upload button above the toolbar.
June 8, 2013 at 7:35 am #134881In reply to: Image upload
joesed
ParticipantHi Shmoo
Thanks for your reply. If you can let me know where this code should go (i.e. which file and approximate line number), that’d be much appreciated.
I’m really surprised that bbpress doesn’t have much better image upload functionality. If it did it would be right up there with other forum software. As it is, it seems inferior.
Once again, thanks
Joe
June 8, 2013 at 6:48 am #134880Topic: with WPML: bbp_setup_current_user was called incorrectly
in forum InstallationViktor Szépe
ParticipantPlease help to make these plugins compatible. WPML 2.8.2 and bbPress 2.3.2
[Sat Jun 08 12:41:04 2013] [error] [client 80.98.70.185] PHP Notice: bbp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init(). Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 2.3.) in /home/davidprog/dev/keszul.tk/server/wp-includes/functions.php on line 2959, referer: http://keszul.tk/wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s=June 8, 2013 at 6:13 am #134878In reply to: bbpress and child theme
Shmoo
ParticipantWell to now what file you have to get isn’t really that difficult, you just need a little understanding of what files will be loaded when view a specific page.
This is a good sheet to show you the logic, but it can be difficult te read.
https://codex.wordpress.org/File:Template_Hierarchy.pngThis one explains in my opinion much better whats going.
But it’s not too difficult, lets say you’re on the homepage of your website.
Often the index.php is need to start. If you open the index.php you see at the top something like this<?php get_header(); ?>the funny thing about PHP is that you can alsmost read-/understand what it is going to do. Like the code tag above says get_header so on that position it will grab the header.php file and open it. Keep following all those files and you will be okay.
Think of it as LEGO – building blocks – it needs a few blocks to make a house and a webpage is the house.—
For the forum (bbPress) side I can tell you that the homepage of the forum is the page where it shows all forums & categories. This is called an archive page and not a regular page.php what most people would think when they first start.
Normally if it’s an archive page WordPress would load the archive.php template but because we have a Post_Type created by bbPress called Forum we can add the Post_Type_Name behind the archive.php – like this: archive-forum.phpWhen you copy that archive-forum.php file form your extra’s (plugins) folder to your Theme folder and open it you will again see the
<?php get_header(); ?>stuff and all other typically WordPress stuff.To remove the sidebar of the main forum-page you just go into that archive-forum.php template and delete the code that called the sidebar:
<?php get_sidebar(); ?>
Just like the header it’s telling you what it does -> GET Sidebar ( load the sidebar files )It’s really just trying and not being afraid. Them ore you do it the better you get at it.
*** Never try to edit files on a working website – online ***
Install WordPress + your website on your computer locally, get a code editor – edit the files and check if everything is working. When your finished editing and everything is Fonzy cool you can upload and overwrite the files at your online-server.
You know how I got my start (years ago) while not knowing what files to edit – By just opening some files I thought could be the files I needed. Typing 55555555555 or something else inside the file – Save it – reload the page in the browser and if 55555555555 didn’t show-up on the webpage I knew it wasn’t that template I was looking for and kept searching for the right one.
Don’t be afraid to make mistakes… You gonna make some trust me, but when you have a back-up file or you can simply undo your edit inside the Code-editor ( CMD + Z ) you’re all fine.
June 8, 2013 at 5:40 am #134877In reply to: Making Topics and Replies Takes So Long
Shmoo
ParticipantTry to install some Debug plugins they will give you some answers about why things take so long to load.
https://codex.wordpress.org/Debugging_in_WordPress
– at the bottom is a list of good plugins.June 8, 2013 at 5:37 am #134876In reply to: Image upload
Shmoo
ParticipantThere is an option but it’s so WordPress. (half done)
This will add a WP Media upload button above the form.
<?php bbp_the_content( array( 'context' => 'topic', 'media_buttons' => true, ) ); ?>June 8, 2013 at 5:26 am #134875In reply to: Why is TinyMCE totally disabled ??
Shmoo
ParticipantJune 8, 2013 at 12:53 am #134872In reply to: Get User’s WordPress Role
tommysvr
ParticipantAlternatively, if I could show a user_meta field for each post, that would work too. I’m struggling with the code below too.
global $current_user; get_currentuserinfo(); get_user_meta($current_user->ID, 'membership', true);June 8, 2013 at 12:50 am #134871Topic: Get User’s WordPress Role
in forum Troubleshootingtommysvr
ParticipantHi all,
I have a little issue since bbPress switched to its own user roles. I was previously showing an image under a users avatar based on this role (ie admin, subscriber).
With the new method, it just shows the bbPress role of participant or key master. This is a problem because my registration forms put the user in WordPress role.
My question is this: is there a way to output the WordPress role rather than the bbPress role? Here is what I’m using at the moment:
$role = bbp_get_user_display_role(bbp_get_reply_author_id($reply_id));<div class="bbp-reply-author <?php echo $role; ?>">Any help is greatly appreciated!
June 7, 2013 at 10:33 am #134856In reply to: Is this the correct url structure?
Shmoo
ParticipantYou probably have a misunderstanding of the word Forum and Forums it happens a lot.
A Forum is a common name for a support forum like we have at WordPress of bbPress or any other website online. They all call the page Forum or Support or Community.
But a Forum can also be ONE single item like a category inside other Forums. Thats why the landing-page you’re looking for is: yourwebiste.com/forums/ ( list all forums together )But you can make your own landing-page by going into WordPress backend and Add a New Page + paste one of those Shortcodes to make it more easy.
https://codex.bbpress.org/shortcodes/June 7, 2013 at 3:45 am #134848Topic: Errant space in reply widget
in forum Troubleshootingfencer_x
ParticipantBecause it was an eyesore, I display:none’d the avatars on the reply widget in my sidebar to keep them from displaying and have replies simply show up as a list of “AUTHOR on TOPIC”. However, it seems that there was a non-breaking-space included somewhere AFTER the avatar and before the author, and it’s still there because it’s hardcoded in somewhere.
It looks more than a little odd, and I’d like to remove it if possible. Anyone know where I might find it? I’ve found the recent replies widget code in widgets.php, but I can’t figure out where this space is coming from.
June 6, 2013 at 8:56 pm #134844Topic: Change author
in forum TroubleshootingSickSquirrelTwo
ParticipantI wanted to edit a post by my coder but it saved as he being poster.
How do I edit author/poster?
June 6, 2013 at 1:14 pm #134837In reply to: iPhone: Dont see submit button
Shmoo
ParticipantYes, but try using a Webkit browser on your PC or Mac ( Chrome or Safari are Webkit based )
Scale your browser-window down to iPhone size and try to spot at what size things start going wrong -layout wise.
Just before things start going wrong you Right-click at the page where things go wrong and pick the ‘Inspect Element’ option to see the code. It really helps a lot.
June 6, 2013 at 12:53 pm #134835Topic: bbp_breadcrumbs – include_current
in forum TroubleshootingShmoo
ParticipantWhy does example #1 work just fine but example #2 doesn’t ?
#1
<?php bbp_breadcrumb( array( 'include_home' => false ) ); ?>#2
<?php bbp_breadcrumb( array( 'include_current' => false ) ); ?>June 5, 2013 at 5:03 am #134810Ünsal Korkmaz
ParticipantSadly lots of planned featured needed to remove from FirmaSite theme because of theme rules in WordPress.Org theme system:
https://codex.wordpress.org/Theme_ReviewI really was disappointed when i learn that most of stuff needed to remove but now i can understand their logic. While i dont agree those rules, i respect them.
All social integration (Facebook like,comments etc) is removed from theme because of WordPress.Org rules. They decide that some planned features are plugin territory. So i built a plugin for theme:
http://theme.firmasite.com/plugin/ or
https://wordpress.org/plugins/firmasite-theme-enhancer/This plugin will add all those social integration soon. Sorry for misinformation on theme site.
June 5, 2013 at 1:26 am #134806Etan Rozin
ParticipantThanks. That fixed it.
(the example in the link has a code error, but by removing the escaping all works fine).I had another question. The feature list mentions facebook comments (the ability to add or remove them). How is this done, I could not find it in the interface.
Thanks
Etan
June 4, 2013 at 8:01 pm #134800In reply to: Remove search bar
Pippin Williamson
ParticipantThere’s no reason to place this in your functions.php instead of as a plugin. It is the exact same code that gets executed, except as a plugin it is easier to maintain.
June 4, 2013 at 6:12 pm #134799In reply to: No bbpress themes folder?
Edie Sellers
ParticipantOkay, but I thought in order to remove the sidebar from your forum (i.e.: a full-page forum) you need to be working in “themes” not “templates.”
Let me be more to the point. I have a website with a custom WP theme, (http://www.gamehounds.net/).
I want to intgrate bbPress forums under the tab “Forum.” I want the bbPress forums to be full-screen without the sidebars, but of course I want to keep the sidebar in the rest of my site.
After a LOT of reading… including your wonderful thread that says Never Modify bbPress core files, I built a child theme and activated it.
But when I go to where says to in order to put my bbPress theme into my child-theme file, there is no “themes” folder.
I do have a “templates” folder, but it doesn’t seem to have any information for themes where it instructs to “get sidebar,” which from what I read is the thing that I want to “//”.
Does this make sense at all? Again, apologies for being kind of numbskully about this. I’m really just hacking around in the dark and learning as I go.
June 4, 2013 at 4:10 pm #134795Etan Rozin
ParticipantHi.
Using FirmaSite and liking it a lot.
I do have a problem though.
Anytime a member leaves another member a comment on his profile, it shows up as html code
Any idea how I can solve this? It is really ruining an excellent presentation otherwise.
ThanksJune 4, 2013 at 2:28 pm #134793In reply to: Anonymous Even Though Logged In
John James Jacoby
Keymasterhttps://bbpress.org/login/ submits data directly to https://bbpress.org/wp-login.php – they use the exact same code to process your login. Sounds likely that there’s a cookie somewhere in your browser’s cache that’s being stubborn.
Happy you found a solution that works for you, and sorry you’re having trouble.
-
AuthorSearch Results