Search Results for 'code'
-
Search Results
-
Hello BBP Forum,
I got nearly everything set up with the BuddyPress and bbPress forum plugins, however there’s a few tweaks I need to finish it off and I’m trying to figure out which files I need to adjust the html settings to match my custom theme of my other pages.
Going from these directions: http://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ I created a child from my Alyeska theme and copied the Default bbPress Theme to the child theme folder. This helped get the forum page a little closer to my custom theme style, but still not there yet; the sidebars are missing, the forum BG is white, amongst a few other issues, but it’s getting closer. I’m just not sure where the CSS master file for this page is, I tried editing the two files in the child_theme/bbp/CSS folder but it didn’t make any change: http://ouyagamingsource.com/forums/, any ideas?
Thanks ahead of time!
–Bryan
Hello, i didn’t know a better title but i’ll try to explain what i meant to say.
I don’t understand why it’s very easy to get all info that you need from the Topic Starter and when you need the same info from the last person who has replied on a topic it’s very difficult.
Look at my screenshot and you’ll see what i’m trying to say.
http://i48.tinypic.com/33op6wz.pngEverything on this picture is done by CSS the only images you’ll see are the Gravatars,
At the left side it’s the Gravatar of the Topic Starter with a Hover effect when i took the screenshot.I didn’t use the default PHP code that bbPress provided because it wasn’t very clean so i searched around and found a few simple and easy to understand PHP tags who could help me build my custom lay-out.
php bbp_topic_author_url(); = provides a clean urlphp bbp_topic_author_display_name(); = provides clean text without url
php bbp_topic_author_avatar( $topic_id = 0, $size = 60 ); = provides a gravatar with url
I love those simple codes because i can add and wrap HTML around it and position everything i need on every corner of the website if i would like so..
But when i try to make the same Gravatar at the right side it’s getting difficult because there aren’t a few simple tags i can use to get the same clean code from the last person who has posted inside a topic.
php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'type' => 'avatar', 'size' => 60 ) ); = provides a gravatar with url okayphp bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'type' => 'name' ) ); = this doesn't provide clean text but a name + url
It’s a huge bummer because i can’t make the Hover effect on the Gravatar without clean code tags.
I am using BuddyPress 1.6.1, bbPress 2.1.2 and WordPress 3.4.2
I follow the guide here.
In the end, I did the trick pointed out by Sarah Gooding because mywebsite.com/forums was blank right after the above installation
- Created a page called “Forums” with permalink mywebsite.com/forums
- Insert bbPress shortcode [bbp-forum-index] into “Forums” page
My questions are
1) How do I customise page templates for the forum e.g. Forum page, topic page etc.
My current theme is a child theme of twentyeleven and it has the following structure
> themes/bp-twentyeleven/
>
> /activity/
>
> /blogs/
>
> /forums/
>
> index.php
>
> forums-loop.php
>
> /groups/
>
> /members/
>
> /registration/
>
> header.php
>
> sidebar.php
>
> style.css
Notes
- Apparently, bp-twentyevelen/forums/index.php is being ignored.
- The reason for this set up is that I need the site to looks like TwentyEleven and has BuddyPress’ functionality at the same time
2) How do I make sure that bbPress functions will work for my site e.g. do I copy and past all the functions in functions.php of bbPress’ default theme over my theme’s functions.php?
3) How do I ensure that whatever I will get from 1) and 2) (probably from bbPress experts somewhere) will not conflict with BuddyPress’ functionality or my theme?
BuddyPress setting screenshots are here and here.
bbPress settings screenshot is here.
I would like to have a form like the shortcode forms, [bbp-topic-form] is what I need but without the drop down box for choosing a forum but rather a forum already been chosen.
From looking at the short codes the following looks exactly like what I need:
[bbp-xxx-xxx id=$forum_id]** – Display the ‘New Topic Form’ for a specific forum ID.
However I don’t believe this has been added. Is there any way to achieve this? Or any plugins that can do this?
Any help is greatly appreciated.
I would like to have a form like the shortcode forms, [bbp-topic-form] is what I need but without the drop down box for choosing a forum but rather a forum already been chosen.
From looking at the short codes the following looks exactly like what I need:
[bbp-xxx-xxx id=$forum_id]** – Display the ‘New Topic Form’ for a specific forum ID.
However I don’t believe this has been added. Is there any way to achieve this? Or any plugins that can do this?
Any help is greatly appreciated.
Topic: Cache problem ?
Hi all,
I ask your help beacause I’ve already tried everything that I knew before to make a query work in few seconds
I’m on BP 1.5.5/
Before, everything was working well, but one day, access to our forum became very very long (170 s average).
After many tests, I think that it’s a cache problem.Here is two queries that make me think that :
SELECT t.*, g.id AS object_id, g.name AS object_name, g.slug AS object_slug
FROM wp_bb_topics AS t
INNER JOIN wp_bb_posts p ON p.topic_id=t.topic_id AND p.post_time=t.topic_start_time
JOIN wp_bp_groups AS g
LEFT JOIN wp_bp_groups_groupmeta AS gm ON g.id = gm.group_id
WHERE (gm.meta_key = 'forum_id' AND gm.meta_value = t.forum_id) AND g.STATUS = 'public' AND t.topic_status = '0'
ORDER BY t.topic_time
LIMIT 20And the same without the “LIMIT”
SELECT t.*, g.id AS object_id, g.name AS object_name, g.slug AS object_slug
FROM wp_bb_topics AS t
INNER JOIN wp_bb_posts p ON p.topic_id=t.topic_id AND p.post_time=t.topic_start_time
JOIN wp_bp_groups AS g
LEFT JOIN wp_bp_groups_groupmeta AS gm ON g.id = gm.group_id
WHERE (gm.meta_key = 'forum_id' AND gm.meta_value = t.forum_id) AND g.STATUS = 'public' AND t.topic_status = '0'
ORDER BY t.topic_timeThe first (with LIMIT) take 150 secondes (At the beginning, it was working well).
But the second (without LIMIT) takes 1.5 secones !!!!When I’m in PHPmyADMIN, the “show full processlist” tell “copy to tmp table” during the 150 secondes.
So my question is :
Is there a cache limit I’ve reache with my DB (20.000 topics) ?
Where I’ve to modified (I think in my.cnf), and what is the value to put (I’ve make a lot of test, without good results)?Thank you very much !
Bye
I’m just curious because i would like to edit the author’s gravatar and how it’s showed in the source to get more CSS options.
When i use the bbp_topic_author_avatar() version inside the loop-single-topic.php file it shows a perfect 40 pixels gravatar like explained on the website with all possible bbPress code tags.
Great but when i try to make this gravatar 80 pixels instead of the default 40 there is something wrong because the code doesn’t accept my array when i try do this.'80' )); ?>Even when i do this it doesn’t work.
80 )); ?>Topic: Editing a shortcode
I have a page which uses the shortcode [bbp-topic-form]
However I would like to comment out some things I don’t want to be viewed. Could anyone point me in the right direction in how to find the file which creates this short code.Thanks in advance.