Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,376 through 14,400 (of 32,519 total)
  • Author
    Search Results
  • #133385

    In reply to: Template Tags

    Robin W
    Moderator

    code

    nirzol
    Participant

    ?

    Unsal Korkmaz
    Participant

    Going from scratch. This is became a super intelligent system that supports custom filter system, currency system that automatically updates daily from The European Central Bank, geolocation with location-taxonomy support etc.. Those are fully built on FirmaSite which have infinite design possibilities with custom Bootstrap skins. Plus there will be premium slide effects from Lush Content Slider that i talked with its author and he allowed me to do 🙂 With ShowCase system, i can add lots of premium slider system with ultra-easy usage for clients

    #133351

    In reply to: Template Tags

    Robin W
    Moderator

    ok so how do you post code in this forum? it keeps swallowing it !

    #133331
    Erlend
    Participant

    We’ll be checking out those improvements to code posting now.

    Unfortunately this is still an issue, and I’ve reopened the relevant ticket:
    https://bbpress.trac.wordpress.org/ticket/2091#comment:5

    #133328
    clickmac
    Participant

    i used this debugging code:

    `ini_set(‘display_errors’, ‘On’);
    error_reporting(E_ALL | E_STRICT);`

    #133327
    clickmac
    Participant

    when i insert the debugging code

    i get these errors:

    `Strict Standards: Only variables should be assigned by reference in /home/content/26/10349326/html/wp-content/plugins/bbpress/bbpress.php on line 845

    Strict Standards: Only variables should be passed by reference in /home/content/26/10349326/html/wp-content/plugins/bbpress/includes/users/capabilities.php on line 124

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Bpbbpst_Support_Stats::register_widget() should not be called statically in /home/content/26/10349326/html/wp-includes/plugin.php on line 406

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/26/10349326/html/wp-content/plugins/bbpress/bbpress.php:845) in /home/content/26/10349326/html/wp-content/plugins/404-simple-redirect/404-simple-redirect.php on line 77`

    #133326
    clickmac
    Participant

    awesome! i have finally found the file with that function in it
    but when i check the file for php code errors i get

    `There is 1 array declaration that contain a single equal sign ‘=’ instead of ‘=>’:
    array(), $cap = ”, $user_id = 0, $args = array() ) { switch ( $cap ) { case ‘spectate’ : case ‘participate’ : case ‘moderate’ : if ( bbp_is_user_inactive( $user_id ) ) { $caps = array( ‘do_not_allow’ );`

    i did not alter the file in no way, i was about to insert the debugging code, so i said i would check the file for php code arrors…
    the name of the file is “Edit capabilities.php”

    Stephen Edgar
    Keymaster

    Cool… Fix is in 🙂 Also updated https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    #133301
    Stephen Edgar
    Keymaster

    Are you using the latest bbPress 2.3?

    What version of vBulletin are you using? I have only tested vBulletin 4.x

    Here is the list of known issues with vBulletin https://codex.bbpress.org/import-forums/vBulletin/

    #133291
    Stephen Edgar
    Keymaster

    Presuming you are going to take ‘Approach 1’ then that links you to this doc:
    https://codex.buddypress.org/user/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/

    That looks good to me but I would not start that without both a site & SQL backup.

    #133288

    Not entirely sure how you arrived at that solution, but I can’t imagine any of it ever working correctly. 🙂

    The wp action happens before WP_Roles is called, so it’s too soon in the stack. You’re also missing a bunch of sanity checks that bbp_set_current_user_default_role already does for you; no sense in duplicating only some of that work.

    You could try hooking into init but, again, I suspect something in the iMember360 plugin is interfering and won’t allow that to work correctly either.

    You *should* actually be debugging the setup_current_user action, to see if bbp_set_current_user_default_role is even firing, and if it is, where it’s failing.

    If you’re looking for a brute-force kludge, something like this is probably closer to what you need:

    function earthman_force_current_user_caps() {
    	global $current_user;
    
    	// Only for logged in users
    	if ( ! is_user_logged_in() )
    		return;
    
    	// Reload the current user with correct capabilities
    	$current_user = bbpress()->current_user = get_user_by( 'id', bbp_get_current_user_id() );
    
    	// Try to give them a role on the site, if they need one
    	bbp_set_current_user_default_role();
    }
    add_action( 'bbp_template_redirect', 'earthman_force_current_user_caps', -99 );
    #133287
    Earthman Media
    Participant

    Well I got this far, but every time I try to call the function you suggested, or try to add the role manually, it breaks. Any ideas what I might be missing, please?

    
    add_action( 'wp', 'bbp_check_user_role_on_load' );
    function bbp_check_user_role_on_load() {
    	global $user_ID;
    	
    	//do they have a role set already?
    	$has_bbp_role = bbp_get_user_role( $user_ID );
    	if(!$has_bbp_role){ //nope, add default BBP role 
    	
    		//tried this but it breaks it
    		//bbp_set_current_user_default_role();
    	
    		// Load up bbPress once
    		$bbp = bbpress();
    		$new_role = 'participant';
    		
    		//this breaks too - wtf?
    		//$bbp->current_user->add_role( $new_role );
    		
    	}	
    }
    #133282

    /wp-content/plugins/bbpress/includes/users/capabilities.php

    Thanks for the kind words. WordPress core doesn’t need a ton of work in this regard; a few small fixes would go a long way.

    #133270
    Stephen Edgar
    Keymaster

    The new shortcode is actually [bbp-stats] https://codex.bbpress.org/shortcodes/

    #133267

    i seem to be a newbie at this, can you please walk me through the steps?

    You’ll want to search bbPress’s files for the above function, and test to make sure it’s working correctly. If you’re operating a site as the main developer, you’ll want to know how to touch files on the server (with an code editor, FTP program, etc…)

    Then, you’ll want to search the web for common PHP debugging techniques (var_dump(), echo(), die(), debug_backtrace(), etc…) so you can gain a better understanding of how the code you’re trusting to make your site function works.

    This is one of those times where, hopefully, a little tough love will pay in dividends for you later.

    #133265
    premitheme
    Participant

    @johnjamesjacoby So, when I’m working on bbpress on MAMP (not pro) and while I’m working, I found the 2.3 update notice, then I hit “update now” link. After the update I just tried to post topics or replies and all what I get is the “Are you sure …” ERROR. What is the reason in your opinion?

    The update works good on XAMPP for example as well as the build-in localhost I setup on mac, I just wonder what’s happened, is it bug in the code? MAMP configuration issue? php version?

    #133262

    In reply to: TAGContent error

    Stephen Edgar
    Keymaster

    I have only had access to test vBulletin 4.x to test importing into bbPress.

    Does vBulletin 3.8.x support topic tags at all?

    Also this doc has any other known issues https://codex.bbpress.org/import-forums/vBulletin/

    #133252

    The reason users aren’t allowed to delete their own posts, is because in the traditional forum sense, allowing users to modify or delete their content far after the fact can actually have negative consequences for the entire site, manipulating search results, causing 404 issues, and other URL hacks.

    If this is a feature that you need as part of your community, you’ll need to invest in having this custom feature built, or read through the code and learn how to do it yourself like the rest of us. 🙂

    #133245
    ehong33234
    Participant

    Hi, did you ever find a solution for this? If so, would you kindly share what code you used and where? Thank you!

    #133235
    Stephen Edgar
    Keymaster

    Currently a ‘Participant’ cannot delete their own posts as per https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    See this thread on customizing your roles https://bbpress.org/forums/topic/add-forum-roles/

    #133220
    Stephen Edgar
    Keymaster

    @alexiousrahl Search is enabled by default, you should be able to see the search form at the top of your forums list eg. http://example.com/forums/

    I have also updated the Shortcodes and Widgets codex pages.

    #133209
    Stephen Edgar
    Keymaster

    @themattman Can you please start a separate topic so we can go through your vBulletin issues.

    When you start this new topic can you please include the exact details of the error messages you are seeing.

    You also should not be running the ‘repair tool’ whilst the converter is still running, you run it after the conversion has finished. You may also want to check the docs here for any known issues with vBulletin conversion.

    mmattrw
    Participant

    I upgraded to 2.3 and now the content of forum categories are showing up in lists, however, sub forum categories only show their titles and not content.

    Is there a setting for this? (Didn’t see one)
    I figured I’d ask here before I peak through the code looking for a hook.

    #133177
    realhood
    Participant

    @trip62   @alex-ye

    when I check the codes of @jezza101 ‘s website ,I  find the problem 。

    so I try change the codes in the chrome app ,the Developer Tools,it works.

    like change http://127.0.0.1/search/ to   http://127.0.0.1/forums/search/

    my forum link is http://127.0.0.1/forums so add /forums before the/search/

    as like http://www.nxtab.co.uk/forum/search/

    so ask:how to solve this problem

    (Hope understand my Chinese English)


Viewing 25 results - 14,376 through 14,400 (of 32,519 total)
Skip to toolbar