Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,251 through 10,275 (of 32,519 total)
  • Author
    Search Results
  • #154073

    In reply to: CSS Problem

    Robkk
    Moderator

    the css from this code is affecting the whitespace

    #left-area ul, .entry-content ul, .comment-content ul {
    list-style-type: disc;
    padding: 0 0 23px 16px;
    line-height: 26px;
    }

    maybe creating a bbpress.php file could fix this or just adding #bbpress-forums to the selector with reduced padding-left .

    #bbpress-forums #left-area ul, .entry-content ul, .comment-content ul {
    list-style-type: disc;
    padding: 0 0 23px 0px;
    line-height: 26px;
    }

    heres info on creating a bbpress.php file.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    umm i dont know what to tell you about the sidebar going the profile and tag pages, it might be because of the template you are using for bbpress currently so maybe making a bbpress.php could fix it but i dont know

    #154070
    Robkk
    Moderator

    the link should be <a href="http://mysitename.com/login" title="login">Login</a>

    i forgot to put the actual word LOGIN , idk maybe i was drunk or something

    #154062
    jlaks
    Participant

    Hi robkk,

    I have tried every way I can to get the link to show, but no matter what I do it won’t. I can easily change the text “You must be logged in to create new topics” but no luck adding a link there. I have been working with the files form-topic.php, form-reply.php and form-forum.php. Here is the piece of code in each file I am working with including your snippet above. Any help will be much appreciated.

    <div class="bbp-template-notice">
    			<p><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.<a href="http://mysitename.com/login" title="login"></a>', 'bbpress' ); ?></p>
    		</div>

    I understand I have to use my url for forum login in “mysitename.com”

    Thanks

    #154059
    bsilverop
    Participant

    Hi All,

    I’m having some trouble getting my forum pages to be full width. If I use the shortcode to embed a forum and set my page template to “Full Width”, it works fine. But then if you click another forum topic it goes back to what looks like half width. I have tried copying my full-width.php (twenty fourteen) and calling it bbpress.php and forum.php, but it seems to have no impact. I have also tried adding some CSS, but also seemed to have no impact:

    .bbpress-forums .col-2cl .main {
    background: none repeat-y right 0;
    padding-right: 0px;
    }

    I’m kind of at a loss as to why the forum pages are still not full width, so would appreciate any suggestions. Thanks,

    #154056
    Robin W
    Moderator

    quite codeable, but don’t know of any existing code to do this

    #154049
    Robin W
    Moderator

    simplest solution without me documenting alternatives would be to create bbpress roles with the same names as you member ones

    see https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#14-adding-new-bbpress-roles

    so you’d create a bbpress role called new member and give it the same capabilities as participant

    #154047

    In reply to: Separate forums?

    Robin W
    Moderator

    Meanwhile, however, can I list only one forum at a time?

    see earlier answer – ‘[bbp-single-forum id=123]‘

    at the end the pages that appear after the user clicks a top menu called “Chevrolet.”

    see earlier answer – ‘Then create a wordpress page called say GM, and put the shortcode’

    you can put as much text on that page before the shortcode as you like

    “See other forums,”

    just use a hyperlink to a page with the shortcode [bbp-forum-index]

    http://www.w3schools.com/html/html_links.asp

    #154032
    akyboy
    Participant

    HI thanks for answer

    This is the link to our site:

    http://www.cannedbandits.org/the-third-campaign-on-the-global-map/ and this thread have some link in it, as you can see, on hover it goes red but Author link is changed to with same colors.

    #154030
    Robkk
    Moderator
    #154029
    akyboy
    Participant

    HI guys,

    I am trying to do the same,…

    I have this in my theme css

    body {	
    	color:#dbd8c4;
    	font-size:13px;
    	font-family: 'arial';
    	position:relative;
    }
    a {
    	color:#dbd8c4;
    	text-decoration:none;
    	
    }
    a:hover {
    	text-decoration:underline;
    	color:#ba110e;
    	font-size: 14px;
    }

    If i change colors even nickname profile link changes too.

    I would only like to change formatting of links user post on forums. Is that possible?

    #154027
    mrpjdavis
    Participant

    Hi there.

    When I try to import an existing SMF forum I get the following error:

    WordPress database error: [Unknown column 'members.member_name' in 'field list']
    SELECT convert(members.id_member USING "utf8") AS id_member,convert(members.passwd USING "utf8") AS passwd,convert(members.member_name USING "utf8") AS member_name,convert(members.email_address USING "utf8") AS email_address,convert(members.website_url USING "utf8") AS website_url,convert(members.date_registered USING "utf8") AS date_registered,convert(members.real_name USING "utf8") AS real_name,convert(members.aim USING "utf8") AS aim,convert(members.yim USING "utf8") AS yim,convert(members.icq USING "utf8") AS icq,convert(members.msn USING "utf8") AS msn,convert(members.signature USING "utf8") AS signature,convert(members.avatar USING "utf8") AS avatar,convert(members.location USING "utf8") AS location,convert(members.personal_text USING "utf8") AS personal_text FROM smf_members AS members LIMIT 0, 100

    Not sure what I am doing wrong!

    #154022

    In reply to: Help Css & Layout

    Robkk
    Moderator

    @mnhfile

    I am using godaddy wordpress managed hosting and this issue occurs because of their cache layer

    great that you found the issue with the cache layer from godaddy

    Anyhow my tab/heading problem is solved because of loop code in this link

    well its there for sure , but i forgot i edited the file,

    i will link you to the unedited file i based the one i edited off of in a minute.

    The new file should show freshness, voices, topics, and all the missing labels.

    i want some modification in tabs/heading — which show or hide forums../// or modification like tabs act like toggles

    This is some custom development , i dont know how to hook this up yet , but i know its made up of some jQuery

    heres an example in this link

    http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_toggle

    you can create a new topic for this and see if anyone else can help , right now i dont know how to do it.

    #154021
    Robkk
    Moderator

    @johnohfs oh , well the grey bars are actually the li.bbp-header and li.bbp-footer that hold the labels

    here are what css codes are causing the problem.

    changing display:inline; to display:block; should fix the problem for you.

    #main li {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
    display: inline;
    margin-right: 5%;
    }
    @media only screen and (min-width: 769px)
    #main li {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
    display: inline;
    margin-right: 12%;
    }

    i think putting .bbpress if you already created a bbpress.php file or #bbpress-forums before #main li { should fix the problem, so that only on bbpress pages would have a different css for the #main li

    #154020

    In reply to: Help Css & Layout

    mnhfile
    Participant

    Css or php changes by sftp not updated to my wordpress site. I figured out this is not parent/ child theme problem .. I am using godaddy wordpress managed hosting and this issue occurs because of their cache layer and i don’t know how to clear it. I try to contact them but unable to reach them beacuase of voice issue in international call.

    Anyhow my tab/heading problem is solved because of loop code in this link https://raw.githubusercontent.com/robkk/better-bbpress-responsive-theme/master/bbpress/loop-forums.php

    i want some modification in tabs/heading — like in the picture arrow appears which show or hide forums../// or modification like tabs act like toggles (function).
    Image and video hosting by TinyPic

    #154012

    In reply to: How to display Users

    Robkk
    Moderator

    thats some custom development right there.

    you can of course display the Original Poster and Recent Poster’s image using code that is already in bbPress.

    getting an avatar image of the frequent posters is custom development.

    Robkk
    Moderator

    for just the forum and topic title links

    #bbpress-forums a.bbp-forum-title, 
    #bbpress-forums a.bbp-topic-permalink {
    font-size: 16px;
    }
    #154006
    packzap
    Participant

    Yes, that was the problem. I added bb_ to table prefix and re-ran. Now it imported all users, forums, topics and posts from old version 1.2 bbPress. Woo-hoo! Thanks.

    #153999
    chero123
    Participant

    hello, good day!…I want to put a button "thanks" for each post in the user profile and the Times Appears "Thanked"

    but I find this plugin or shortcode, or a way to do

    example:

    I found this plugin: https://wordpress.org/plugins/bbpress-like-button/

    but does not show the data in the public profile …

    although the plugin either to pay, no matter
    It is now important for a forum

    help!
    kind regards

    Robin W
    Moderator

    Try

    Forum/Topic headings

    #bbpress-forums ul.forum-titles
     
     {
    font-size:  16px;
     }

    Topic/reply text

    #bbpress-forums .bbp-topic-content p, 
    #bbpress-forums .bbp-reply-content p
     
     {
    font-size:  16px;
     }
    #153993
    Robin W
    Moderator
    #153988
    Sam Rohn
    Participant

    bbpress 1.0.2 is obsolete for a few years now and is no longer supported, current bbpress is version 2.5.4

    https://wordpress.org/plugins/bbpress/

    using wordpress and bbpress 2.x, you could set up wp at domain.tld/blog and put bbpress (2.x) on a wp page like domain.tld/blog/forum

    see the bbpress codex for more info on setting up bbpress 2

    Step by step guide to setting up a bbPress forum – Part 1

    see here for info on importing other forums

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

    sam

    Pavle123
    Participant

    Code above should be added to your functions.php file in your theme folder.

    #153978
    Robin W
    Moderator

    And how do I remove Topic:

    I’ve not tested but believe this will do it

    function my_generate_titles( $new_title ){
            // reset the format to title only
    	$new_title['format'] = '%s';
    	return $new_title;
    
    }
    add_filter( 'bbp_before_title_parse_args', 'my_generate_titles' );

    come back and let us know if it does or doesn’t

    #153976
    Stephen Edgar
    Keymaster

    Thanks for the screenshots, indeed it looks like no forums or topics are actually being imported.

    A quick look at your forums_forum` table leads me to the following in how the forum section of your custom importer should look like, it is not complete as you have more data that what I could see in the screenshot you posted.

    
    
    		/** Forum Section *****************************************************/
    
    		// Forum id (Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'forum',
    			'from_fieldname' => 'forum_id',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_forum_id'
    		);
    
    		// Forum parent id (If no parent, then 0, Stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename' => 'forum',
    			'from_fieldname' => 'cat_id',
    			'to_type'        => 'forum',
    			'to_fieldname'   => '_bbp_forum_parent_id'
    		);
    
    		// Forum title.
    		$this->field_map[] = array(
    			'from_tablename' => 'forum',
    			'from_fieldname' => 'f_subject',
    			'to_type'        => 'forum',
    			'to_fieldname'   => 'post_title'
    		);
    
    		// Forum slug (Clean name to avoid conflicts)
    		$this->field_map[] = array(
    			'from_tablename'  => 'forum',
    			'from_fieldname'  => 'f_subject',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_name',
    			'callback_method' => 'callback_slug'
    		);
    
    		// Forum description.
    		$this->field_map[] = array(
    			'from_tablename'  => 'forum',
    			'from_fieldname'  => 'f_subject',
    			'to_type'         => 'forum',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_null'
    		);
    
    		// Forum dates.
    		$this->field_map[] = array(
    			'to_type'      => 'forum',
    			'to_fieldname' => 'post_date',
    			'default'      => date('Y-m-d H:i:s')
    		);
    		$this->field_map[] = array(
    			'to_type'      => 'forum',
    			'to_fieldname' => 'post_date_gmt',
    			'default'      => date('Y-m-d H:i:s')
    		);
    		$this->field_map[] = array(
    			'to_type'      => 'forum',
    			'to_fieldname' => 'post_modified',
    			'default'      => date('Y-m-d H:i:s')
    		);
    		$this->field_map[] = array(
    			'to_type'      => 'forum',
    			'to_fieldname' => 'post_modified_gmt',
    			'default'      => date('Y-m-d H:i:s')
    		);
    

    If you modify your forum section per the above I think you will find you will now have forums imported, if you have a more detailed i.e. “full” view of the forum data I can help work out what elese we can add for a more complete import, the same goes for topics, if you can add full screenshots of ALL the rows in your forums_forum and forums_topic tables I can work out what else needs to be added 🙂

    Pavle123
    Participant

    I have been using this piece of code to call the default bbPress breadcrumbs.

    /**
     * Filter to call default bbPress breadcrumbs
     */
    add_filter( 'bbp_get_breadcrumb', 'myfix_bbp_get_breadcrumb', 1, 3 );
    function myfix_bbp_get_breadcrumb($trail, $crumbs, $r){
            // This will remove wordpress-seo filter to disable bbPress breadcrums by default
            remove_all_filters("bbp_get_breadcrumb",10);
            return $trail;
    }
Viewing 25 results - 10,251 through 10,275 (of 32,519 total)
Skip to toolbar