Search Results for 'code'
-
AuthorSearch Results
-
April 14, 2014 at 7:49 am #145024
In reply to: How to Change bbpress Colors
Robin W
Moderator‘The codex dosent work ‘
Can you explain a little more ?
April 14, 2014 at 7:11 am #145022In reply to: How to Change bbpress Colors
Adonismoet1608
ParticipantThe codex dosent work
April 14, 2014 at 5:11 am #145013In reply to: Videos (youku)
Stephen Edgar
KeymasterThe WordPress language pack for
zh_CHincludes the following code:
https://i18n.trac.wordpress.org/browser/zh_CN/tags/3.8.1/dist/wp-content/languages/zh_CN.php#L8483 /** 84 * Youku wp_embed handler 85 * 86 * Embed code last updated: 87 * Wed, 06 Jun 2012 00:36:11 -0400 88 * 89 * Feel free to submit or correct URL formats here: 90 * https://cn.wordpress.org/contact/ 91 * 92 * @since 3.4.0 93 */ 94 function wp_embed_handler_youku( $matches, $attr, $url, $rawattr ) { 95 $embed = sprintf( 96 '<embed src="http://player.youku.com/player.php/sid/%1$s/v.swf" allowFullScreen="true" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>', 97 esc_attr( $matches['video_id'] ) ); 98 99 return apply_filters( 'embed_youku', $embed, $matches, $attr, $url, $rawattr ); 100 } 101 wp_embed_register_handler( 'youku', 102 '#https?://v\.youku\.com/v_show/id_(?<video_id>[a-z0-9_=\-]+)#i', 103 'wp_embed_handler_youku' );So as you should be able to have this in WordPress posts and pages etc that ‘should’ flow on down to bbPress to allow you to use youku π
April 14, 2014 at 5:08 am #145012In reply to: Videos (youku)
Stephen Edgar
KeymasterHi π
bbPress follows WordPress list here https://codex.wordpress.org/Embeds
Oh…. Look… You should be able to π
Are you running WordPress with
define('WPLANG', 'zh_CH');in yourwp-config.php?April 14, 2014 at 4:49 am #145009In reply to: Forum vs Blog permalinks
Stephen Edgar
KeymasterWordPress can only have one page titled
page_nameand use the slugpage_namethus this then extends to bbPress.I thought we had a bbPress ticket for this on Trac but I can’t find it right now https://bbpress.trac.wordpress.org
April 14, 2014 at 3:29 am #145005Stephen Edgar
KeymasterProbably you should use http://chamabox.co.ke/forums/feed and http://chamabox.co.ke/topics/feed, any bbPress page, section, forum topic, just add
/feedto the end of the URL and you should be good to go.That said, I see the feeds are broken, it looks like either the ‘wdsi-slide_in’ or ‘mailchimp’ plugins are injecting content into bbPress’ RSS feeds. What happens with these plugins disabled?
April 14, 2014 at 2:58 am #145000In reply to: Displaying a custom field in profile page
Stephen Edgar
KeymasterHere is another way to do custom profile fields:
https://codex.wordpress.org/Plugin_API/Filter_Reference/user_contactmethods
bbPress will display any of of these fields you add or remove for a users profile page, as many of few as you like.
April 14, 2014 at 2:46 am #144999In reply to: Display latest post excerpt under Freshness
Stephen Edgar
KeymasterIf when you decide to come back to this you’ll want to use
the_excerpthttps://codex.wordpress.org/Function_Reference/the_excerpt
There are varios examples scattered throught this site also
April 14, 2014 at 2:38 am #144996In reply to: Make topic only visible to author and mod.
Stephen Edgar
KeymasterThere are a couple of weird things happen with bbPress and setting them to ‘private’ from the backend, we just haven’t tested it thoroughly enough.
There is a ticket on Trac somewhere, can’t find it at the moment though π https://bbpress.trac.wordpress.org
There is also a plugin that gives each user their own forum that no other users can see, I am not sure if moderators have access to this forum or just the user and the keymaster.
The name of that plugin? I have no idea, I can’t remember the name of it, what I do remember is that this feature has nothing to do with the name of the plugin nor is the feature even included in the description. It is an idea not fully implemented and approx 75% of the code is just sitting in the background doing nothing. So if I remember what it is I’ll come back and update this. π
April 13, 2014 at 8:04 pm #144992In reply to: Same design a bbpress support forum
Stephen Edgar
KeymasterThanks for sharing your code and and yes some more docs on this would be great.
Anyone can add docs to the bbPress codex https://codex.bbpress.org/
You just need to login with the same username and password you use here on bbpress.org
https://codex.bbpress.org/wp-login.php
Have a look at the current pages and or create a new page
April 13, 2014 at 3:54 pm #144982In reply to: How to Change bbpress Colors
Robin W
ModeratorApril 13, 2014 at 12:20 pm #144976In reply to: Which files to edit avatars ?
Robin W
Moderatoryou can’t – wordpress and bbpress use a language called php to create the html code, so this code does not appear anywhere, it is made up of lots of function and css calls.
Sorry !
April 13, 2014 at 12:12 pm #144975In reply to: Display latest post excerpt under Freshness
Robin W
Moderatorpresume the words from the topic/reply heading?
if so, then widgets will show you what code you need.
I could look at it, but it will be a while, and I’m buried in plugins !
April 13, 2014 at 12:09 pm #144973Topic: Background White Font White. How to Change
in forum TroubleshootingAdonismoet1608
Participanttheme: Analytical Lite
the latest version of wordpress and bbpressmy font,background, and reply background is white
so all text is hidden.i have tried applying the codes from styling crib into my theme css but it still dosent work.
does anyone have anycode to change the back ground
April 13, 2014 at 11:26 am #144972In reply to: Display latest post excerpt under Freshness
elaborate
ParticipantThank you for the reply.
I just realized that the Steam Forums I linked to don’t actually do what I’m talking about. I’m gonna see what I can do with
wdgets.phpthe plugin you linked to, but just to clarify:I’m looking for the first couple of words from the most recent post of each forum to be displayed under “Freshness” on the front page and on forum lists, etc.
I’ll figure out the PHP I need to, so don’t worry about that π
April 13, 2014 at 10:43 am #144969In reply to: Which files to edit avatars ?
vegas778
ParticipantOn which files I can find these HTML CODES :
<span class="bbp-topic-started-by">Started by: <a href="https://bbpress.org/forums/profile/renai42/" title="View renai42's profile" class="bbp-author-avatar" rel="nofollow"><img alt='' src='https://secure.gravatar.com/avatar/9cc0474d583be1164e47317a42b158c3?s=14&d=retro&r=G' class='avatar avatar-14 photo' height='14' width='14' /></a> <a href="https://bbpress.org/forums/profile/renai42/" title="View renai42's profile" class="bbp-author-name" rel="nofollow">renai42</a></span><span class="bbp-topic-freshness-author"><a href="https://bbpress.org/forums/profile/crzyhrse/" title="View crzyhrse's profile" class="bbp-author-avatar" rel="nofollow"><img alt='' src='https://secure.gravatar.com/avatar/c92f6fbad5b684dd17d1fde21aff8c24?s=14&d=retro&r=G' class='avatar avatar-14 photo' height='14' width='14' /></a> <a href="https://bbpress.org/forums/profile/crzyhrse/" title="View crzyhrse's profile" class="bbp-author-name" rel="nofollow">crzyhrse</a></span>Thank in advance.
April 13, 2014 at 10:24 am #144968In reply to: Very simple question — changing font size
crzyhrse
ParticipantAnd thanks here as well… I’ve been wishing the Subscribe toggle was over further to the right, and the necessary code for that is included on the page you’ve linked to above…
π
April 13, 2014 at 10:16 am #144967In reply to: Which files to edit avatars ?
vegas778
ParticipantThank you but I meant on which files I can edit these HTML CODES above ? I dont find the file’s name.
April 13, 2014 at 9:50 am #144964In reply to: Same design a bbpress support forum
nirgalo
ParticipantI finally managed to get to something displaying the top level forums. Guys it took me hours to do something so simple. Really should be part of the documentation somewhere. Pasting the code here in case if helps someone:
if (bbp_is_forum_archive()) { $forums = bbp_get_forums_for_current_user(); echo '<ul>'; foreach ( $forums as $forum ) { if ($forum->post_parent == 0) { echo '<li><a href="' . bbp_get_forum_permalink($forum->ID) . '">'; echo $forum->post_title; echo '</a></li>'; } } echo '</ul>'; }April 13, 2014 at 8:24 am #144959In reply to: Display latest post excerpt under Freshness
Robin W
Moderatoryes, but you’d need some php, so depends what you mean by ‘I donβt really know PHP’
the plugin bbp-last-post plays with code in this area, so take a look at that
https://wordpress.org/plugins/bbp-last-post/
and look at
bbpress/includes/common/wdgets.php for how to put a title in
April 13, 2014 at 5:23 am #144956In reply to: Very simple question — changing font size
Cole
ParticipantThanks for the reply Robin,
Though the the code stated in that article doesnt work with my theme/forum:
#bbpress-forums .status-closed, #bbpress-forums .status-closed a {color: #000 !important;}I put it in my theme CSS and also tried a CSS plugin with no result.
April 13, 2014 at 2:48 am #144953In reply to: Very simple question — changing font size
Robin W
Moderatorthe style for closed is
April 12, 2014 at 7:29 pm #144947Topic: Which files to edit avatars ?
in forum Troubleshootingvegas778
ParticipantHi Guys,
I cannot find on which file I can edit these codes ?
The avatar on the left of the message :
<img alt="" src="http://0.gravatar.com/avatar/a8792a6046cf82389373bb32241764c6?s=80&d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D80&r=G" height="80" width="80" />And the mini avatar below the date of the freshness
<img width="14" height="14" src="http://0.gravatar.com/avatar/a8792a6046cf82389373bb32241764cβ¦com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D14&r=G" alt="" />Thanks in advance
Regards,
April 12, 2014 at 6:26 pm #144944In reply to: Best bbpress polls plugin
palmdoc
ParticipantI’d like to thank @peterwsterling for modifying the plugin to allow a custom shortcode setting and make it compatible with WP Polls.
You’re a genius!April 12, 2014 at 5:12 pm #144941In reply to: Very simple question — changing font size
Cole
ParticipantThe code has definitely helped me with the trials of trying to understand bbpress.
I was wondering if anyone knows how to edit the colour of threads that are locked?
I guess for my theme, Customizr, the text is grey over a light pink background which makes it very hard to see…
Any help pointing to the right direction would be most helpful -
AuthorSearch Results