Search Results for 'code'
-
Search Results
-
Hi all
i already created a forum(I was given a shortcode but i lost it) in any case i do not know how to use it to put a forum link on my home page. Help please!I will need to spend long periods of time away from my site and bbpress forum, and want the Moderators to have the ability to delete users that are clearly just there to spam. I want them to have more than blocking capability and the ability to delete posts and topics.
I have not found much on this topic through searching. I am willing to implement some specific code. If there is something I can edit with Buddypress to allow this, please let me know. However, I don’t want to make the moderators Keymasters – I only want them to have authority over the forums and who uses them.
I would rather use code than a plugin. Not sure if it is simple as adding a line to the bbpress moderator capabilities that allows them to essentially ban Buddypress users.
WordPress version: 5.2.3 (Vantage theme)
bbPress version: 2.5.14
Site: https://pirateswithben.com/forums/forum/pirates-csg/Thank you!
BenTopic: importer help please sql
I’m setting up the importer using the example but I’m a little stuck doing the joins. This is a little advanced for me because it seems to me that I need to join 3 tables and a total of 3 fields to match from the origin forum which has each post separated in two separate tables and those tables reference the forumID in a third table.
so the example code for topics is:
`// Setup any table joins needed for the topic section
$this->field_map[] = array(
‘from_tablename’ => ‘replies_table’,
‘from_fieldname’ => ‘the_topic_id’,
‘join_tablename’ => ‘topics_table’,
‘join_type’ => ‘INNER’,
‘join_expression’ => ‘USING replies_table.the_topic_id = topics_table.the_topic_id’,
‘from_expression’ => ‘WHERE forums_table.the_topic_id = 0’,
‘to_type’ => ‘topic’
);`
in my source forum tables that are being imported from, it is broken down into four tables:
forums.forumid, forums.categoryid
categories.categoryid
messages.msgid, messages.forumid, messages.threadid, messages.subject
messagebodies.msgid, messagebodies.forumid, messagebodies.bodytextI believe that I can ignore the category to get what is needed but that is still three tables. the threadID is sequential and relative to each forum so there is a thread 1 in forum1 and and thread1 in forum2 and all other forums. So the forum ID has to be referenced in the third table (forums)
I am thinking this is a “LEFT” with and conditions is that right? can someone get me started with an example? Thank you.
Hi there,
I’m a fresh out of water BBPress user and I have never coded in my life π
We have just set up a BBPress forum on our WordPress website and we are looking into changing what is displayed in the profile section. At the moment it’s Forum Role, Topics Started and Replies Created.
I would like to create custom fields like Company, Job Title, Area, Email, Phone Number and Website to be displayed there.First of all, I would need to add these sections in Profile Edit tab. Secondly, find a way to display them on the Profile page.
I have to mention, I have found a way to remove Forum Role, Topics Started and Replies Created by editing plugin file bbpress/templates/default/bbpress/user-profile.php
Also, I have just noticed that when you visit somebody’s profile page, his name is not displayed there, which would be something i would like to be displayed as well π
Have anyone managed to do things mentioned above, and would be willing to share with the class? π
Many thanks,
DominikTopic: Where Do I Put This?
WORDPRESS VERSION [Last checked on September 18, 2019 at 9:48 am. Check Again
You have the latest version of WordPress. Future security updates will be applied automatically.]
BBPRESS VERSION: 2.5.14TWENTYNINETEEN
I am using the bbpress [forum] plugin.
I do not want to use it in its default state. I want to have it maintain my site’s design.
According to what I have read [HERE; https://codex.bbpress.org/themes/theme-compatibility/ ]to do so requires me to copy both the bbpress and the css directories
from the default folder and paste it or upload
it into the ‘theme’ directory/ folder.Thing is I am not quite sure if I ought to paste them [ bbpress & css directories] into the wp-config.php folder
& if so where [in the wp-config.php folder] ? Is it Before or after the present info I see there now?Topic: Need help with Permalinks
Hi
I have the shortcode for forums list on a page: website.com/forum/
BUT, when i click a specific forum, it redirect to that forum page: website.com/forum/forum-name.
The base forum page is beautifully designed, so i want all permalink to also follow this design, or have these link open on the same page. How can this be done?
Currently it redirect to that topic or forum page with no design and basic white background.
PLEASE HELP!
I am attempting to convert my message board to bbPress, but have run into a problem trying to convert the database. I get the following errors:
Repair any missing information: Continue WordPress database error: [Unknown column 'users.user_website' in 'field list'] SELECT convert(users.user_id USING "utf8mb4") AS user_id,convert(users.user_password USING "utf8mb4") AS user_password,convert(users.user_form_salt USING "utf8mb4") AS user_form_salt,convert(users.username USING "utf8mb4") AS username,convert(users.user_email USING "utf8mb4") AS user_email,convert(users.user_website USING "utf8mb4") AS user_website,convert(users.user_regdate USING "utf8mb4") AS user_regdate,convert(users.user_aim USING "utf8mb4") AS user_aim,convert(users.user_yim USING "utf8mb4") AS user_yim,convert(users.user_icq USING "utf8mb4") AS user_icq,convert(users.user_msnm USING "utf8mb4") AS user_msnm,convert(users.user_jabber USING "utf8mb4") AS user_jabber,convert(users.user_occ USING "utf8mb4") AS user_occ,convert(users.user_interests USING "utf8mb4") AS user_interests,convert(users.user_sig USING "utf8mb4") AS user_sig,convert(users.user_from USING "utf8mb4") AS user_from,convert(users.user_avatar USING "utf8mb4") AS user_avatar FROM phpbb_users AS users LIMIT 0, 100 No users to convert Starting ConversionThere are two problems I see. One is that it’s having trouble converting part of it. The other is that it says there are no users to convert and there are a ton, so what do I do?