Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,751 through 6,775 (of 32,522 total)
  • Author
    Search Results
  • #172878
    thinkDrew
    Participant

    Afternoon,

    I am looking to create a new template with an entirely new look and feel from what the basic / generic bbpress forums look like. Templates are not my issue but more along the lines of displaying the right content via 3 block rows.

    I am looking for a starting point (at least) to achieve the following index layout – 3 block rows (using bootstrap):

    FORUM NAME
    Topics | Posts | Freshness
    List of Sub Forums
    
    FORUM NAME
    Topics | Posts | Freshness
    List of Sub Forums
    
    FORUM NAME
    Topics | Posts | Freshness
    List of Sub Forums
    

    Note: These will be in a 3-col format, not full width. Any help would be helpful! You can see a visual here: http://postimg.org/image/894k4fp47/

    #172869
    berkelmudez
    Participant

    Yup I have literally copied all the code from ‘loop-topics.php’ in custom theme to the wordpress theme twenty fifteen, where it correctly does return true and topics are shown correctly.
    I must have done something wrong in my custom theme, I just have no idea what the possible causes could be tho.

    It just came to my mind that it might be template php file that bbpress uses, I’ll go check that now.
    I use bbpress in combination with buddypress maybe it can be something with that also.

    #172861
    Pascal Casier
    Moderator

    Hi,
    You will have to check the bbp_topic_admin_links, something like:

    add_filter ('bbp_topic_admin_links', 'change_topic_admin_links' );
    function change_topic_admin_links ($r) {
      // whatever is needed here
      return $r;
    }

    Pascal.

    #172849
    Robin W
    Moderator
    #172838

    In reply to: How to hide a user IP

    Robin W
    Moderator

    Pascal’s method is better as the ip address is never sent to a PC. With the css code, it is entirely possible for anyone to get hold of the ip address, as it is sent to the PC, and viewable using developer tools.

    #172835

    In reply to: How to hide a user IP

    Pascal Casier
    Moderator

    Hi,
    The above CSS would hide it from viewing on screen, but if you want to go a step further, you could add this into your functions.php :
    add_filter( 'bbp_get_author_ip', '__return_empty_string' );
    Pascal.

    #172823
    junglejim620
    Participant

    Hi Robin,

    Correct, both shortcodes I tried it doesn’t show the widget?

    #172822

    In reply to: How to hide a user IP

    tech55541
    Participant

    Hello,
    If it is the IP address you want to hide, instead use this CSS code.

    span.bbp-author-ip {
      display: none;
    }

    Please let us know if we can help you with anything else. 🙂

    #172820
    Pascal Casier
    Moderator

    Bonsoir JF,

    First of all, please try to change your permalink settings (Settings > Permalinks) to plain and save. Then try the events calendar again.

    If that didn’t work, could you please try (if this makes sense to you):
    In Admin > Events > Settings > Community > Access Control, UNcheck the “Block access to WordPress Admin” and have all “Roles to block” UNchecked

    If that didn’t work, could you please try to copy this code into your functions.php and let me know if it fixed your issue ?

    function casiepa_pre_get_posts( $query ) {
        global $wp_the_query;
    
        if ( $query === $wp_the_query && $query->is_main_query() && is_array( $query->query_vars['post_type'] ) && in_array( 'forum', $query->query_vars['post_type'] ) ) {
            $query->query_vars['post_type'] = 'forum';
        }
    
        return $query;
    }
    
    add_filter('pre_get_posts', 'casiepa_pre_get_posts', 11);

    Please get back to us with some news.

    Pascal.

    #172795
    Pascal Casier
    Moderator
    #172778
    Robin W
    Moderator

    I wasn’t worried about what was showing in the body, I was only interested in whether the widget in the footer disappeared.

    Can you confirm that it does with both the codes you tried?

    #172770
    junglejim620
    Participant

    I just found and tried this shortcode as well [bbp-forum-form], no luck on the widget neither?

    #172769
    junglejim620
    Participant

    Hi Robin,

    I tried this [bbp-topic-index], it got worst, the whole forums are now gone using this shortcode? It say no topic (blank page)? What will it cause it not showing nothing?

    https://www.damndramaqueen.com/no-topic.JPG

    Please help, Thanks,

    #172756
    Robin W
    Moderator

    ok, I can now see the issue, and have looked at both a forum page and a non forum page.

    From the web browser tools available to me, I can’t immediately see what the core issue is.

    as an experiment can you try on of the other bbpress shortcodes eg `[bbp-topic-index]
    `

    to see if this is bbpress or just that shortcode

    #172754
    uschesch
    Participant

    Hi,

    Thanks to all of the information I was able to gather on this forum, I created a forum home page in my WP site, and added the [bbp-forum-index] shortcode to display the forums. It worked perfectly, but I would like to eliminate some of the vertical space between the forum names in the list.

    Does anyone know if/how I can change the style to eliminate some of the vertical space between the forum names?

    Thank you.

    #172736
    spadan1963
    Participant

    Exist a plugin that it show the users on-line or shortcode?

    #172731

    In reply to: How to hide a user IP

    ZivotsRS
    Participant

    Hello,
    CSS code I have put, unfortunately visibility IP remained unchanged.

    #172730
    Robkk
    Moderator

    I would say maybe just place the default bbPress login widget instead of your themes custom one, or customize the widgets settings if it has an option to remove the modal login, or remove the deregister widget code that has possibly removed the default bbPress login widget.

    #172726

    In reply to: How to hide a user IP

    tech55541
    Participant

    Hello,
    Please use this CSS code.

    #bbpress-forums div.bbp-topic-author a.bbp-author-name, #bbpress-forums div.bbp-reply-author a.bbp-author-name {
    display: none;
    }

    Please let me know if this worked for you.

    #172714
    blandow
    Participant

    Awesome — used the code snippet for the child’s function.php and it worked!

    Thank You

    #172695
    Nicolas Korobochkin
    Participant

    Hi @mairag. Updated step by step tutorial with working source code example available in next article https://wpmag.ru/2015/wordpress-multisite-signup/ (on Russian but you can use Google Translator to translate this) 🙂 Inside article you can find the links to Github with source code. Feel free to leave any questions here.

    #172694
    farbewerk
    Participant

    WP 4.4.2
    BBPress 2.5.8

    I’m creating a custom import module from the Example.php file that comes with the installation. I’ve filled in the table and field for everything that is available from the previous forum software (WebWiz) and have commented out sections that don’t have information to map.

    Upon start, the importer trips up at the Join part of the forum section. I need to know what to put in these areas:

    		// Setup the table joins for the forum section
    		$this->field_map[] = array(
    			'from_tablename'  => 'groups_table',
    			'from_fieldname'  => 'forum_id',
    			'join_tablename'  => 'forums_table',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING groups_table.forum_id = forums_table.forum_id',
    		//	'from_expression' => 'WHERE forums_table.forum_id != 1',
    			'to_type'         => 'forum'
    		);
    

    The “groups_table” and the “forum_id” fields are the ones I don’t know where to find.

    On a realted subject, what of these mapping statements are absolutely 100% necessary to get a successful import? I can send anyone the module code if that helps.

    #172689
    Robin W
    Moderator

    suggest you turn on debugging and see what come up

    https://codex.wordpress.org/Debugging_in_WordPress

    #172676
    shadynicnack
    Participant

    Here is what I figured so far….

    – I had created a new file wp-custom-config.php
    – Use define define( ‘NEW_HOST’, host name); and other details.
    – And add code for DB connect like below

    $newdb = new wpdb($DB_USER, $DB_PASSWORD, $DB_NAME, $DB_HOST);
    $newdb->show_errors();

    – Included this file in wp-config.php file.

    So the wp-customer-config.php looks like:

    $DB_NAME_EXT = ‘database’;

    /** database username */
    /*define(‘DB_USER_EXT’, ‘username’);*/
    $DB_USER_EXT = ‘username’;

    /** database password */
    /*define(‘DB_PASSWORD_EXT’, ‘password’);*/
    $DB_PASSWORD_EXT = ‘password’;

    /** database hostname */
    /*define(‘DB_HOST_EXT’, ‘host’);*/
    $DB_HOST_EXT = ‘host’;

    global $newdb;
    $newdb = new wpdb($DB_NAME_EXT, $DB_USER_EXT, $DB_PASSWORD_EXT, $DB_HOST_EXT );
    $newdb->show_errors();

    Like I mention before, I have included it or should I say required it in the wp-config.php at the bottom after require_once(ABSPATH . ‘wp-settings.php’) and looks like…

    require_once(ABSPATH . ‘external-config.php’);
    _______________________________________________________

    FIRST QUESTION: – I read that you can use $newdb in any file any where. How would you do that? Can I see examples?

    SECOND QUESTION: I want to use the $newdb for the login page. So instead of using the $wpdb, I want to use $newdb to pick and check username and password. How would I do that? Would I need to make a custom login page or can I go into the code and switched databases around? Whats the best practice?

    #172670
    Robkk
    Moderator

    @shadynicnack

    You are probably going to end up using this plugin, I do not really have much knowledge of setting it up for what you want though.

    https://wordpress.org/plugins/hyperdb/
    https://codex.wordpress.org/HyperDB

Viewing 25 results - 6,751 through 6,775 (of 32,522 total)
Skip to toolbar