Search Results for 'code'
-
AuthorSearch Results
-
November 5, 2014 at 5:49 pm #154217
In reply to: User Porfile Page
brunof13712
ParticipantRobkk,
I hope to be understanding what you are requesting from me… sorry my english…
This is my link profile (when I click on my name in any topic): http://quadriciclobrasil.com.br/forum/users/admin-2-2-2/
This is the link when I click on ”edit profile” that is appearing on my menu after have I added the code on functions.php: http://quadriciclobrasil.com.br/forum/users/admin/edit (PAGE NOT FOUND)
anyway, can I give you a admin acess?
November 5, 2014 at 2:40 pm #154211In reply to: Private messages (Not with Buddy Press)
Robkk
Moderatori just googled private messages plugin for wordpress
these are my results
https://wordpress.org/plugins/cartpauj-pm/
https://wordpress.org/plugins/front-end-pm/
https://wordpress.org/plugins/private-messages-for-wordpress/
http://codecanyon.net/item/wp-ajax-private-messages-wordpress-plugin/4446743
http://codecanyon.net/item/ajax-private-messages-wordpress-plugin/3296422
https://wordpress.org/plugins/wp-private-messages/
WordPress Messenger Plugin: Send Private Messages Between WP Users
you need userPro for this one
http://codecanyon.net/item/private-messages-for-userpro/7124805
November 5, 2014 at 2:32 pm #154209In reply to: User Porfile Page
Robkk
Moderatorin both functions you see something similar to this
$profilelink = '<li><a href="/forums/users/' . $user . '/">Profile</a></li>';change forums to forum , since you have changed your root slug.
$profilelink = '<li><a href="/forum/users/' . $user . '/">Profile</a></li>';November 5, 2014 at 1:39 pm #154201In reply to: Trying to make forum full width
bsilverop
ParticipantThanks @robkk. This is looking good to me after making the changes. I tested on a few different screens here with different sizes and seems to be working well. I’m not sure why the @media screen commands weren’t working before, but suspect it had something to do with the order. This is what I ended up with for those looking to do something similar in the future. Thanks again, and if you accept donations please contact me or direct me to a place where I can contribute to all who helped here. Thanks again,
.site, .site-header { max-width: 100%; } .bbpress-forums .col-2cl .main { background: none repeat-y right 0; padding-right: 0; } .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { max-width: 100%; } .form-allowed-tags { display: none; } div.bbp-breadcrumb, div.bbp-topic-tags { font-size: inherit !important; } #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { font-size: inherit !important; } #bbpress-forums { font-size: inherit !important; } .bbpress .hentry { margin: 0 auto 48px; max-width: 100%; } @media screen and (min-width: 1008px) { .bbpress .site-content { margin-right: 0; margin-left: 182px; } } @media screen and (min-width: 1080px) { .bbpress .site-content { margin-left: 222px; } } @media screen and (min-width: 1218px) { .bbpress .site-content .entry-content { margin-right: 0; } } @media screen and (min-width: 673px) { .bbpress .site-content { margin-right: 0; } }November 5, 2014 at 1:08 pm #154198In reply to: Trying to make forum full width
Robkk
Moderator@media screen and (min-width: 1218px) { .bbpress .site-content .entry-content { margin-right: 0px; } }this should remove that space on the right of the forums
November 5, 2014 at 1:04 pm #154197In reply to: Trying to make forum full width
Robkk
Moderatorremove the
!importantfrom@media screen and (min-width: 1008px) { .bbpress .site-content { margin-right: 0 !important; margin-left: 182px !important; } }there should be some space to the right, I will try to figure out that too, but tell me if removing the
!importantfixes the forums hiding under the left sidebar.November 5, 2014 at 12:23 pm #154192In reply to: User Porfile Page
brunof13712
ParticipantHi @Robbk,
I added this code on functions.php from my theme and appeared a link ”profile” on my menu who directs to this link: http://quadriciclobrasil.com.br/forums/users/admin/ but it is a page not found. Am I doing it correctly?
November 5, 2014 at 11:53 am #154189In reply to: Trying to make forum full width
Robkk
Moderatorthis css code i forgot to add , put it before the media queries
.bbpress .hentry { margin: 0px auto 48px; max-width: 100%; }November 5, 2014 at 10:57 am #154184In reply to: Trying to make forum full width
Robkk
Moderatoralright this should be your entire css now
if the @media queries still do not work try just adding them into your child themes style.css file.
if it still doesnt work when you put the media queries in your style.css make sure you are not using @import and instead using this in your child themes functions.php
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX); function enqueue_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') ); }more info here https://codex.wordpress.org/Child_Themes
and also contact jetpacks plugin support and see if there is a problem or if i made another mistake or something
.site, .site-header { max-width: 100%; } .bbpress-forums .col-2cl .main { background: none repeat-y right 0; padding-right: 0; } .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { max-width: 100%; } .form-allowed-tags { display: none; } div.bbp-breadcrumb, div.bbp-topic-tags { font-size: inherit !important; } #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { font-size: inherit !important; } #bbpress-forums { font-size: inherit !important; } @media screen and (min-width: 1008px) { .bbpress .site-content { margin-right: 0 !important; margin-left: 182px !important; } } @media screen and (min-width: 1080px) { .bbpress .site-content { margin-left: 222px; } } @media screen and (min-width: 673px) { .bbpress .site-content { margin-right: 0; } }you can see i removed the
width:100%on the#bbpress-forumscss code , its because it didnt really do anything.November 5, 2014 at 12:27 am #154178In reply to: Voting on user-submitted posts
dtbaker
ParticipantI’ve updated the plugin to include a (very basic) paypal payment feature and the ability to mark topics as “accepted”. You have to manually update the topics when payments come in, I don’t have enough time to make any sort of PayPal IPN integration.
Code has been updated here: https://github.com/dtbaker/bbPress-Support-Forums ( warning, my paypal address is hard coded into includes/bbps-vote-functions.php )
Screenshots:
Main forum page, it sorts topics by “funds” then “accepted” then “votes”.

Admin topic page: you can vote, mark topic as accepted, and manually update payments.

User topic view, can vote (when logged in) and pay:

Live demo here: http://ultimateclientmanager.com/forums/forum/feature-requests/
November 4, 2014 at 10:19 pm #154173In reply to: Trying to make forum full width
bsilverop
ParticipantThanks. I’m just using one .bbpress .site-content because I’m keeping the right sidebar. Whenever I use the @media screen piece, it just chops off what’s below it. But yes, it does seem like it’s needed. The first other person to test said that the title of the page is cut off just a little bit on the left side, where as on my end it seems like there’s plenty of space.
This is all the custom CSS if it makes a difference:
.site, .site-header { max-width: 100%; } .bbpress-forums .col-2cl .main { background: none repeat-y right 0; padding-right: 0; } .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { max-width: 100%; } .form-allowed-tags { display: none; } div.bbp-breadcrumb, div.bbp-topic-tags { font-size: inherit !important; } #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { font-size: inherit !important; } #bbpress-forums { font-size: inherit !important; width: 100% !important; } .bbpress .site-content { margin-right: 0 !important; margin-left: 182px !important; }And this is it after I add the @media screen tag (notice it just cuts off the rest):
.site, .site-header { max-width: 100%; } .bbpress-forums .col-2cl .main { background: none repeat-y right 0; padding-right: 0; } .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content { max-width: 100%; } .form-allowed-tags { display: none; } div.bbp-breadcrumb, div.bbp-topic-tags { font-size: inherit !important; } #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { font-size: inherit !important; } #bbpress-forums { font-size: inherit !important; width: 100% !important; } @media screen and (min-width: 1008px) {November 4, 2014 at 9:16 pm #154170In reply to: Trying to make forum full width
Robkk
Moderatortry this and make sure its above the other
.bbpress .site-content {@media screen and (min-width: 1008px) { .bbpress .site-content { margin-right: 0 !important; margin-left: 182px !important; }November 4, 2014 at 9:00 pm #154169In reply to: Trying to make forum full width
bsilverop
ParticipantI didn’t notice this before, but the problem seems to be that when I try and save anything with the @media statement, it ends up saving it like what’s shown below (notice the missing margin-right and margin-left) no matter how many times I fill in the missing lines and re-save. I suppose it’s an issue with the CSS plugin (JetPack Custom CSS), but from what I understand that file is stored in the database and generated dynamically and cannot be modified directly. So I’m not too sure how I can add this otherwise.
@media screen and (min-width: 1008px) .bbpress .site-content { }November 4, 2014 at 8:38 pm #154167In reply to: Trying to make forum full width
Robkk
Moderatorwell i just checked and its almost there,
you have space on the left whenever you go to a smaller screen size so you probably need to bring back the @media statement so there is space for the left sidebar when it reaches 1008px but none when its on a smaller than 1008px.
#bbpress-forums { font-size: inherit !important; width: 100% !important; } @media screen and (min-width: 1008px) .bbpress .site-content { margin-right: 0 !important; margin-left: 182px !important; } .bbpress .site-content { margin-right: 0 !important; margin-left: 0 !important; }i think your full width forum should be done now
November 4, 2014 at 8:15 pm #154166In reply to: Trying to make forum full width
bsilverop
ParticipantThanks, removing
@media screen and (min-width: 1008px)and adding !important seems to have worked. The forum now resizes to fit the page if you go to a smaller screen size. I appreciate the help from both @robin-w and @robkk. I didn’t expect support like this, I really am grateful. Thanks again!Solution:
1) Copy page.php and rename bbpress.php. Remove
<?php get_sidebar( 'content' ); ?>as I want to extend beyond the content sidebar.2) Add CSS:
#bbpress-forums { font-size: inherit !important; width: 100% !important; } .bbpress .site-content { margin-right: 0 !important; margin-left: 182px !important; }November 4, 2014 at 7:42 pm #154165In reply to: Trying to make forum full width
Robkk
Moderator@robin-w đ
@bsilverop well you can try adding !important to it too, or removing the@media screen and (min-width: 1008px)i just took it right off of inspect element.
but for sure keep the
margin-right:at zero pixels because that is where your old sidebar use to be.if all still doesnt work change
.bbpressto#bbpress-forumsreply back if you havent got it yet.
November 4, 2014 at 6:27 pm #154163In reply to: User Porfile Page
Robkk
Moderatoryou can use this to add links to the edit profile section of your profile in the menu.
you can then use this to just lead to just the profile
// Filter wp_nav_menu() to profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_pro_link' ); function my_nav_menu_pro_link($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_login ; $profilelink = '<li><a href="/forums/users/' . $user . '/">Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }then you can just create a link to your topics archive by going to the menu section and adding a link to the menu with the link being yoursite.com/topics
November 4, 2014 at 6:03 pm #154159In reply to: Trying to make forum full width
Robkk
Moderatorchange the width from 150% to just 100%, if you go to a smaller screen size the forums are cut-off.
use this and see if it works
@media screen and (min-width: 1008px) .bbpress .site-content { margin-right: 0; margin-left: 182px; }November 4, 2014 at 5:27 pm #154158In reply to: Blank Members Page – What's going on?
PJ Brunet
ParticipantI had initially installed Buddypress but uninstalled it right away.
So Buddypress took a ____ on my domain and didn’t clean up after itself.Now I need to code my own members list plugin, I don’t see a good one in the plugins directory.
November 4, 2014 at 5:18 pm #154157In reply to: Problems bbPress1 migration
packzap
ParticipantJust want to add my notes in updating from dinosaur version 0.9.0.7 to 1.2 for anyone going thru the process. Follow the steps in https://codex.bbpress.org/legacy/updating/ (shown below).
At step four, these additional steps need to happen:
4-b) In bb-includes on the server create a drectory called backpress. Copy all the backpress files from the download of “backpress-1.2-bbpress\includes”. Copy the folder “schema” to \\bb-includes\backpress\ on the server.
4-c) In /bb-includes/backpress/ on server create a folder called “pomo”. Copy the 5 files from the download of “Glotpress pomo” into it.
Updating
These instructions cover upgrading to version 1.2
- First, you should always back up your files and your database in case something goes wrong.
- Second, deactivate all plugins.
- Third, keep the following files and directories.
bb-config.php
my-plugins/ (if you have it)
my-templates/ (if you have it)
my-languages/ (if you have it)
also backup your existing .htaccess file if you have modified it, then delete everything else. - Fourth, upload the newest version of bbPress to your server.
- Fifth, log in and visit your bbPress admin area. If you see an upgrade link instead of the normal screen, click it. If you donât see an upgrade link (it would have been really obvious), continue to the next step.
- Sixth, visit the new âSettingsâ area of the admin and edit any details or settings in the âGeneralâ section. Also visit the âPermalinksâ section to regenerate your .htaccess file if necessary. Also reactivate your plugins one by one (some may need to be upgraded as well).
- Seventh, sit back and relax; youâre done!
These downloads are for legacy versions of bbPress and are no longer in active development but still available for download if youâre feeling nostalgic. You can find the WordPress plugin bbPress here
bbPress 1.2The latest 1.x stand-alone version of bbPress is 1.2 (.zip / trac / svn)
The latest bbPress 1.2 specific BackPress package is backpress-1.2-bbpress (.zip / trac / svn)
(You will also need the GlotPress âpomoâ folder from here.)
November 4, 2014 at 3:52 pm #154155In reply to: Trying to make forum full width
bsilverop
ParticipantIt did indeed muck up other areas of the site. But I combined the two you sent and this seems to work:
#bbpress-forums { width: 150% !important; }Can you see any reason why this wouldn’t be ideal? The only thing I’ve noticed so far is that when testing on a large monitor, the footer has a lot of empty space at the bottom (only on the forum pages). Otherwise it looks to be working ok on my laptop, I’m just concerned it might not for others. Thanks again!
November 4, 2014 at 2:56 pm #154149Robin W
ModeratorMy role no longer displayed as âvillagerâ but instead switched back to âparticipantâ, and the âtrashâ links were never present
That’ll be because the code you’ve changed is in the functions file of your theme?!, so goes when you switch to a another theme.
November 4, 2014 at 2:38 pm #154147Topic: Forum topics template different to Index pages
in forum Troubleshootingtoomba
ParticipantHello,
Previous problem
Yesterday I was having trouble fixing the template for the forum index (Troubleshooting post here)Now I’ve fixed that, I seem to have another problem (though I’m not sure if it existed before I fixed the index).
My current problem
Topic pages are not appearing. They appear as links on the indexes, and I can create new ones, however if I click them, I am taken to a page of a messed up template (elements scattered everywhere). Something appears very broken somewhere. As soon as I create a new topic, it posts it with a title (eg: websitename.com/forum/topics/turquoise-curtains-4-11-14)
However, when inspecting the source code, none of the content of the post is there.Question
Has this been encountered by other users?
Does anyone have any pointers on how I can go about troubleshooting this problem?November 4, 2014 at 2:33 pm #154146Robin W
ModeratorOk, no don’t bother – I was not really expecting it to change anything, just wanted to eliminate before jumping into lots of code, but since it will be a hassle, we’ll leave that for the moment and I’ve now looked at the raw code !!
ok, the template it is using is loop-single-reply which then callsbbp_reply_admin_links . this then checks whether it is a topic or reply and for a reply continues and then calls each of the elements in turn
so for trash it calls
bbp_get_reply_trash_link and checks that the user can ‘delete_reply’ before posting that link.
For a topic it jumps to
bbp_get_topic_admin_links and checks that the user can ‘delete_topic’ before posting that link.
NOW I guessing (and probably wrongly, but am short of time tonight so will get you to do more work!) that the codex or this function might be wrong and you should be giving a delete_topic singular rather than delete_topics so give that go.
If that works (and I’ll be very surprise if it does!), then you’ll need the filter much earlier to prevent permanent deletion.
Otherwise I’ll take another look tomorrow !
November 4, 2014 at 1:58 pm #154144In reply to: Adding bbcode like image, you tube etc…
Robkk
Moderator@atfpodcast yeah thats what people usually say there.
try just switching to bbpress bbcode with the whitelist plugin
and also bbpress direct quotes.
the bbcode plugin just turns basic html into shortcodes , so its still fine even though it is 2 years old.
but remember to use it with the whitelist plugin too so that other users cant post the bbpress login shortcode and other unwanted shortcodes you dont want in bbpress posts/wordpress comments/buddypress activity/buddypress private messages.
bbpress direct quotes wont quote as fast as gd bbpress tools quotes but it still works fine too.
-
AuthorSearch Results