Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,201 through 11,225 (of 32,521 total)
  • Author
    Search Results
  • Robkk
    Moderator

    From my experience this worked best

    But requires an account from a website

    only works for 2000 users only , to have more than that you would have to pay for a premium version of the service

    https://wordpress.org/plugins/oa-social-login/

    This didnt really work for me , and is also a free/premium service

    requires an account to their website also , and is limited on users that can use the social login feature.

    https://wordpress.org/plugins/loginradius-for-wordpress/

    I tried this plugin before it was called super socializer

    and it didnt work at all on my site

    https://wordpress.org/plugins/super-socializer/

    I havent really gotten into trying all the social login plugins on codecanyon.

    other than my opinion , do a google search try to find other peoples opinions on the best social login plugin , and make a very decisive decision on your plugin choice.

    #149625
    danilsk
    Participant

    Hi there,
    I have a WP website with sub-domains (not multisite). For some reason bbPress redirects all logged-in subscriber users to the main domain when they visit homepage. It doesn’t happen with guests and admins. The only solution I could come up with was to
    remove_all_filters('bbp_template_redirect');
    when the homepage is being requested. Have I made a security breach? Is there a better way to solve it? Also I don’t quite understand why bbPress needs to interfere with my homepage.

    #149622
    elaborate
    Participant

    Thank you for the quick, helpful reply. Sorry I didn’t get back to you sooner.

    I would like to count each subscribed forum and subscribed/favorite topic but not every topic within a subscribed forum, though with a few technical exceptions.

    In my case, WP__bbp_subscriptions and WP__bbp_favorites only output topics, not forums or the topics of a subscribed forum.

    Fortunately, I found three functions that provide either subscribed forum ids or subscribed/favorite topic ids separately, based on a user id:

    bbp_get_user_subscribed_topic_ids()
    bbp_get_user_subscribed_forum_ids()
    bbp_get_user_favorites_topic_ids()

    Here is my solution in the form of two custom functions. The above functions obviously made it all very simple:

    // display bbPress subscription count
    function user_subscriptions_count( $user_id = null ) {
    
    	$topic_count = count(bbp_get_user_subscribed_topic_ids($user_id));
    	
    	$forum_count = count(bbp_get_user_subscribed_forum_ids($user_id));
    	
    	echo  $forum_count + $topic_count ;
    }
    // display bbpress favorites count
    function user_favorites_count( $user_id = null ) {
    
    	echo count(bbp_get_user_favorites_topic_ids($user_id));
    }

    I do realize that a user’s subscribed forums and topics are usually private, but I prefer to check for permissions outside functions.

    Thanks for the help, I hope this might be useful for someone in the future.

    #149581
    RILEYP
    Participant

    Hi all,
    We are working on a forum in BB Press but wish to have the following:
    1) Permit forum users to reply to an email (e.g. to their yahoo or gmail account) to respond to a post rather than logging in and posting on site.
    2) Send new forum applications (registrations) to the moderator to either approve or disapprove
    3) Permit forum users to post pictures e.g. .jpgs

    We have been told that 3) is possible via a plugin: http://wordpress.org/plugins/gd-bbpress-attachments/

    Can you assist?
    Regards,

    Simon
    P.S.
    Software is out there that can do 2) but not BB press
    E.g. http://codecanyon.net/item/user-profiles-made-easy-wordpress-plugin/4109874
    See User Profile Approvals allows admin to manually approve users before they login (New Feature)

    #149578
    Robin W
    Moderator

    It can be done, you would start with

    wp-content/plugins/bbpress/templates/default/bbpress/loop-forums.php

    see https://codex.bbpress.org/amending-bbpress-templates/

    Robin W
    Moderator

    remove the number – that’s also on loop single reply – see my response on

    [Resolved] how to remove the author box on left page post ?

    take out line 27 on loop single reply

    change word

    put the following into your functions file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'reply' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    
    

    and just change ‘new text’ to whatever you want it to say

    see

    Functions files and child themes – explained !

    #149574
    Robin W
    Moderator

    bbpress has a number of converters, including phpbb

    https://codex.bbpress.org/import-forums/phpbb/

    suggest you create a test site and give it a go. That will tell you if you need to get back to a vanilla version first.

    https://codex.bbpress.org/creating-a-test-site/

    to convert, just go into dashboard>tools>forums>import forums

    Stephen Edgar is the bbpress converter guru, and if you hit difficulties I’d suggest you post a new thread, and I’m sure he’ll help.

    #149568
    Robin W
    Moderator

    sorry, you need to put it at the end of your functions file

    Functions files and child themes – explained !

    #149564
    bm_kabin
    Participant

    Sorry Robin, where would I add that shortcode?

    #149561
    Robin W
    Moderator

    ok, interestingly (or not !) the forum code uses this shortcode.

    Ok so plan b !

    I’ve cut a quick new shortcode that looks for content-single-topicb.php

    you can download it from my site

    Topic shortcode

    use the shortcode

    [display-topic-special id=$topic_id]

    #149558
    Robin W
    Moderator

    It should work for just the shortcode, but let me test on my site

    #149554
    Robin W
    Moderator

    You have done it correctly and it works !

    If you log out, you’ll see a login on your forum page. It doesn’t appear if you are logged in, as it is not needed then.

    if you want register and lost pasword as well, then use

    //add login to top of index
    function index_login () {
    if (!is_user_logged_in() ) {
    echo do_shortcode(‘[bbp-login]‘);
    echo do_shortcode(‘[bbp-register]‘);
    echo do_shortcode(‘[bbp-lost-pass]‘);

    }
    }
    add_action (‘bbp_template_before_forums_index’, ‘index_login’ ) ;

    Robin W
    Moderator

    ok, start with

    bbPress Styling Crib

    #149552
    bm_kabin
    Participant

    The modification does not limit to just the shortcode inclusion of the topic but on the forum as well. I thought it would have isolated but the changes seem to follow even on the default forum view?

    #149545
    Robkk
    Moderator

    you should be more specific next time so i could give you what you wanted

    copy loop-replies.php from your bbpress plugin to a child theme folder named bbpress, if you havent created one create one

    more information on this

    https://codex.bbpress.org/theme-compatibility/step-by-step-guide-to-creating-a-custom-bbpress-theme/

    remove this entire code inside of your loop-replies.php in your child theme

    <li class="bbp-header">
    
    		<div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
    
    		<div class="bbp-reply-content">
    
    			<?php if ( !bbp_show_lead_topic() ) : ?>
    
    				<?php _e( 'Posts', 'bbpress' ); ?>
    
    				<?php bbp_topic_subscription_link(); ?>
    
    				<?php bbp_user_favorites_link(); ?>
    
    			<?php else : ?>
    
    				<?php _e( 'Replies', 'bbpress' ); ?>
    
    			<?php endif; ?>
    
    		</div><!-- .bbp-reply-content -->
    
    	</li><!-- .bbp-header -->

    if you want to keep the favorite and subscribe links just place this code anywhere where you want to put them

    <?php bbp_topic_subscription_link(); ?>

    <?php bbp_user_favorites_link(); ?>

    #149544
    eddie01001
    Participant

    hi Robkk thank you for your reply
    the problem is my forum page header also removed after this code

    http://ww.168nyc.com/wp-content/uploads/2014/07/help5-1024×640.jpg

    #149543
    Robkk
    Moderator

    just use

    li.bbp-header {
    display: none;
    }

    my topic that you posted on was about a plugin , and what it adds to a site.

    so if you just want to hide the li.bbp-header just use that code above.

    delete the other code with .post in it

    #149542
    arminius
    Participant

    I was able to drop that into my functions.php, but it did not change any of my pages. Do I need to map that code somehow to my page url to get it to work? I guess I’m confused on where and what change to expect.

    Robkk
    Moderator


    @eddie01001

    the li.bbp-header has nothing to do with page title.

    this code from my topic would not work on page title.

    #149525
    Robkk
    Moderator

    the li.bbp-header has nothing to do with page title.

    this code from my topic would not work on page title.

    give me a link to your site??

    #149521
    eddie01001
    Participant

    when i put this code
    li.bbp-header {
    display: none;
    }

    it works all forum pages title not show up

    but when i put the following code
    .post li.bbp-header {
    background: none repeat scroll 0% 0% transparent;
    display:block;
    }

    it has nothing happen no change at all

    how can i make just NO title on blog post only i want title on other pages.
    thanks

    eddie01001
    Participant

    when i put this code
    li.bbp-header {
    display: none;
    }

    it works all forum pages title not show up

    but when i put the following code
    .post li.bbp-header {
    background: none repeat scroll 0% 0% transparent;
    display:block;
    }

    it has nothing happen no change at all

    how can i make just NO title on blog post only i want title on other pages.
    thanks

    peter-hamilton
    Participant

    OK, the way I see it is like this.

    There are two avatars cause the forum/topic list has two elements that use an avatar.

    1. the avatar from the poster of the topic, this avatar is there with the topic title.
    2. there is in the freshness an avatar displayed for the reply poster.

    In between the topic title and topic freshness there is an element that handles reply, post and/or voice count.

    This makes three elements inside this forum list, two with an avatar, hence two avatars.

    The list itself is situated in an UL (unordered list in a bbpress php file called loop-single-reply.php).

    This ul has three LI (list) elements inside it, the first topic-title, second topic-count, and third topic-freshness.

    btw, you have a cache plugin that prevents s to check your CSS in chrome etc.

    This line of code will put the avatars where they need to be, you just add this to your themes CSS file, and remove the display:none from your .avatar CSS.

    #bbpress-forums li.bbp-body ul.topic {
    border-top: 1px solid #eee;
    overflow: hidden;
    padding: 8px;
    float: left;
    width: 100%;
    }

    Here is how it looked for me after adding this.

    CSS changes on a bbpress forum

    good luck
    Peter Hamilton

    nightcoder
    Participant

    @Sura You getting this “Mail Delivery Failure” email because there is no such email and domain name. BB-Press sends email to all the subscribers and also sends an email to “noreply@oi-seattle-kinship.org” Since there is no such an email, you getting the bounce back email.


    @Sura
    and @Robin

    I disabled all plugins and still noreply email missing the first “s” like;

    noreply@itename.com instead of noreply@sitename.com

    When I change line:1065 in includes/common/functions.php like this

    
    	//$do_not_reply  = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
    	$do_not_reply  = '<noreply@sitename.com>';
    

    it works with or without the plugins.

    Hope this helps both developers and users

    Halo Diehard
    Participant

    The double avatar was fine, because there were two instances on that page that were calling for the avatar; If there were more posters there could be two different avatars there.

    The only problem I saw was that they were too large on the one page and it was nerfing your layout. The code I gave you above worked when I tested it, what was it doing that wasn’t working for you? If you have Gyazo or some other way to show a screenshot, that would be helpful, since you are still playing with it and it’s changing when we go to look.

    My opinion is that the larger avatars looked great in the other areas of your forum, and that you only needed small avatars in that one spot so that they didn’t make your layout look wonky.

Viewing 25 results - 11,201 through 11,225 (of 32,521 total)
Skip to toolbar