Search Results for 'code'
-
AuthorSearch Results
-
October 31, 2014 at 2:50 pm #154030
In reply to: Forums and topics show as blog posts
Robkk
Moderatoryou probably need to make a bbpress.php file.
October 31, 2014 at 1:59 pm #154029In reply to: Need to change the color of hyperlinks
akyboy
ParticipantHI 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?
October 31, 2014 at 1:18 pm #154027Topic: Error importing SMF forum
in forum Troubleshootingmrpjdavis
ParticipantHi 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, 100Not sure what I am doing wrong!
October 31, 2014 at 10:52 am #154022In reply to: Help Css & Layout
Robkk
ModeratorI 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.
October 31, 2014 at 10:13 am #154021In reply to: What's Wrong with my CSS?
Robkk
Moderator@johnohfs oh , well the grey bars are actually the
li.bbp-headerandli.bbp-footerthat hold the labelshere are what css codes are causing the problem.
changing
display:inline;todisplay: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
.bbpressif you already created a bbpress.php file or#bbpress-forumsbefore#main li {should fix the problem, so that only on bbpress pages would have a different css for the#main liOctober 31, 2014 at 9:53 am #154020In reply to: Help Css & Layout
mnhfile
ParticipantCss 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).
October 31, 2014 at 3:08 am #154012In reply to: How to display Users
Robkk
Moderatorthats 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.
October 31, 2014 at 3:02 am #154011Robkk
Moderatorfor just the forum and topic title links
#bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink { font-size: 16px; }October 30, 2014 at 6:17 pm #154006In reply to: how to upgrade bbpress 1.0.2 to a newer version?
packzap
ParticipantYes, 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.October 30, 2014 at 5:28 pm #153999Topic: help…bbpress button thanks
in forum Troubleshootingchero123
Participanthello, 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 forumhelp!
kind regardsOctober 30, 2014 at 2:20 pm #153994Robin W
ModeratorTry
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; }October 30, 2014 at 2:05 pm #153993In reply to: Customise an Existing User Role
Robin W
Moderatorand no. 15 as well
October 30, 2014 at 9:36 am #153988In reply to: Blog and Forum in different directories
Sam Rohn
Participantbbpress 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
see here for info on importing other forums
https://codex.bbpress.org/import-forums/
sam
October 30, 2014 at 5:15 am #153981Pavle123
ParticipantCode above should be added to your functions.php file in your theme folder.
October 30, 2014 at 4:05 am #153978In reply to: How to install new template
Robin W
ModeratorAnd 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
October 30, 2014 at 3:17 am #153976In reply to: Split: Import from snitz access database
Stephen Edgar
KeymasterThanks 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_forumandforums_topictables I can work out what else needs to be added 🙂October 30, 2014 at 3:01 am #153975Pavle123
ParticipantI 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; }October 29, 2014 at 11:07 pm #153965Topic: bbpress button thanks
in forum Pluginschero123
ParticipantI 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 regardsOctober 29, 2014 at 1:45 pm #153947Robin W
Moderatoryou can just show the latest topics as a list by using
say as a menu item or make this your home page.
alternately you can post the latest xx topics using
October 29, 2014 at 1:39 pm #153944In reply to: Templates problems
October 29, 2014 at 1:29 pm #153941In reply to: Separate forums?
Robin W
Moderatorno problem
set up your ‘cars’ as categories
Dashboard>forums>new forum. Call it say GM then on the right hand side you’ll see ‘Type’ change this to categorySave this and exit.
The in
Dashboard>forums>all forums you have your forum list. For the GM forum, hover over the ‘edit’ option, and at the bottom of the screen you’ll see something like
http://www.mysite.com/wp-admin/post.php/post=123&action= editMake a note that 123 equals the GM forum category – you’ll need this later.
The create your sub forums as forums eg Buick, Cadillac, and on the right and side make these have a parent of GM
Then create a wordpress page called say GM, and put the shortcode
[bbp-single-forum id=123]
where 123 was the post number of the category forum you noted above
Then just add this page to your menu
October 29, 2014 at 9:59 am #153934In reply to: Meta query in Views
robsward
ParticipantHi!
Since I only had three values, I used the following to get around the ‘OR’ issue:
'meta_key' => '_bbps_topic_status', 'meta_value' => '3', 'meta_compare' => '!='However, I now have another question, which is that I want to exclude from this view posts whose last reply author’s role is not keymaster or moderator. I have this logic in a template file to help me style the author link:
$reply_post_id = bbp_get_topic_last_active_id(); $reply_author_id = bbp_get_reply_author_id( $reply_post_id ); $reply_author_role = bbp_get_user_display_role( $reply_author_id ); if( $reply_author_role == "Moderator" || $reply_author_role == "Keymaster" ) { $role = "moderator"; } else { $role = ""; }What I’d like to do is roll this into the query to return a list of topics/threads whose status is not ‘3’, and whose last active user does not belong to either the Moderator or Keymaster groups. Not sure if this is even possible, since one seems like it requires the WP_Users_Query– perhaps I should create a separate meta_key/value pair for the last active user role?
Thanks again
October 29, 2014 at 1:06 am #153925In reply to: Moving from vBulletin 4.1 to bbPress
Stephen Edgar
KeymasterThis can be quite complex and is really not a “bbPress”, it is more a Apache/Nginx “thing”, take a look at the following on Stack Overflow, it describes the changes needed to redirect via
.htaccessan old vBulletin to bbPress site:
http://stackoverflow.com/q/13920322/1911294October 29, 2014 at 1:04 am #153924In reply to: Split: Import from snitz access database
Stephen Edgar
KeymasterHI @maddogmcewan, as per my note above, I split this to a new topic as there are sure to be a couple of things that will get confusing if we continued in that same topic.
To start with you should take a look in your
wp_poststable, you should be able to find bbPress three custom post typesforum,topic, andreplyin thepost_typecolumn.1. Check if you indeed have some post types
forumin yourwp_poststable.
2. Now find atopicin thewp_poststable, look at thepost_parent, the ID of that field should relate to one of theIDvalues of the actual forums you found in step 1.
3. Replies are the same, find a reply, look up thepost_parentand check if a topic with that same ID exists.I’m expecting you have some mismatched data from your import and it is a matter of digging in to find what is broken in the data relationships.
October 29, 2014 at 12:53 am #153922In reply to: Meta query in Views
Stephen Edgar
KeymasterHere is the resultant SQL query for your code above:
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id INNER JOIN wp_postmeta AS mt1 ON (wp_posts.ID = mt1.post_id) INNER JOIN wp_postmeta AS mt2 ON (wp_posts.ID = mt2.post_id) WHERE 1=1 AND ( ( YEAR( post_date ) = 2014 ) ) AND wp_posts.post_type = 'topic' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed' OR wp_posts.post_status = 'private' OR wp_posts.post_status = 'hidden') AND (wp_postmeta.meta_key = '_bbp_last_active_time' OR (mt1.meta_key = '_bbps_topic_status' AND CAST(mt1.meta_value AS CHAR) LIKE '%1%') OR (mt2.meta_key = '_bbps_topic_status' AND CAST(mt2.meta_value AS CHAR) LIKE '%2%') ) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 15I think you are hitting a known limitation of WordPress at the moment nesting queries, take a look at Boone’s posts on the improvements coming to WordPress 4.1:
…classes currently accept a ‘relation’ parameter, which allows multiple query clauses to be joined with AND or OR. So, for instance, you can query for: posts that are in the ‘Boone’ category AND have the tag ‘Awesome’ AND do not have the term ‘Raphael’ in the favorite_turtle taxonomy. But this syntax only allows for so much expressiveness: you can’t mix AND and OR, and you can’t group clauses. These limitations make it difficult to use these queries in support of complex content filtering…
Then take a read of the follow up post explaining what has happened since that first post, I haven’t had the time to look at how this changes affect bbPress, they should not break bbPress, but these will be something we will take a look at to a) Ensure bbPress is not affected by these WordPress 4.1 updates and b) How we can leverage these improvements in future versions of bbPress.
-
AuthorSearch Results
