Search Results for 'code'
-
AuthorSearch Results
-
May 10, 2010 at 9:54 am #88242
In reply to: How do I choose the URL name of the bbpress forum?
zaerl
ParticipantIf it’s a fresh install do this:
1) Unzip the bbPress zip file
2) Change the newly created folder name from “bbpress” to “community”
3) Browse to /community and install bbPress
Keep in mind that if you have already installed bbPress on
/bbpressyou can’t simply rename the folder. If you want to rename it follow these steps:1) Go to
bb-admin/options-general.phpand change the bbPress URL to the new one2) If you have custom permalinks open the .htaccess file (on the forum root folder) and change the RewriteBase directive to
RewriteBase /community/3) Rename the folder
May 10, 2010 at 8:11 am #68598In reply to: Theme: WP Mimic Released (v.02)
KateS30
Memberthank you clockworker also thanks to suzkaw (Eric)
May 10, 2010 at 3:13 am #34238Topic: How do you write this?
in forum Troubleshootinggerikg
MemberWhat is the proper way to write this:
<?php require( '<?php include('site.html'); ?>/abc.html' ); ?>May 9, 2010 at 9:59 pm #88227In reply to: show user avatar
Arturo
Participantyou rocks Rick

this is the solution:
<?php echo bb_get_avatar(bb_get_current_user_info(‘ID’), 40); ?>
May 9, 2010 at 9:44 pm #88226In reply to: show user avatar
Rich Pedley
MemberI’m coming to grips with bbPress.. slowly.
Is the $user->ID actually availabel for use at that point or do you need to do a
bb_get_current_user_info('ID');?May 9, 2010 at 9:16 pm #88224In reply to: show user avatar
Rich Pedley
Memberwhat value are you using for $default? have you tried just using:
<?php echo bb_get_avatar($user->ID, 40); ?>May 9, 2010 at 4:48 pm #87961In reply to: Welcome Back _ck_
Elias
MemberWow. This is a reason to log in again here (after being totally fed up by being censored and having to read on the fine bbPress as a plugin for the bloaty WP) and to say: Hello _ck_!
May 9, 2010 at 2:44 pm #87960In reply to: Welcome Back _ck_
wiseacre
MemberWelcome back, girl.
May 9, 2010 at 1:07 pm #88192In reply to: Highlighting source code
MayurSomani
Memberok managed to use js to highlight the code. Thanks for help everyone.
May 9, 2010 at 12:10 pm #68597In reply to: Theme: WP Mimic Released (v.02)
clocky
Participant@KateS30 http://bbshowcase.org/forums/view/available-themes
WP Mimic 0.02 download link for you! enjoy and have fun!
May 9, 2010 at 11:39 am #88191In reply to: Highlighting source code
MayurSomani
Memberok I managed to activate the plugin,
https://bbpress.org/plugins/topic/bbpresssyntax-hiliter/
by changing my_plugins to bb_plugins and the folder name to bbpress_syntax_hilite.
I checked and js and styles are being loaded in header.
Still, the code is not highlighted
May 9, 2010 at 11:10 am #88190In reply to: Highlighting source code
gerikg
MemberHow about this?
May 9, 2010 at 10:42 am #84342In reply to: WordPress theme integrator plugin: Alpha launch
gerikg
MemberI added a specific page number and nothing.
Then I visited the specific page then it started generating the code to the uploads folder.
In the admin section and your screen-shot (http://pixopoint.com/uploads/theme_integrator_adminpage1-480×668.png) notice it doesn’t have “.html” after.
<?php require( '/homepages/0/xxx/htdocs/xxx/wordpress/wp-content/uploads/pixopoint-theme-integrator/chunk1' ); ?>I added html and it’s working so far.I’m still going…
May 9, 2010 at 10:22 am #88189In reply to: Highlighting source code
MayurSomani
MemberHi _ck_
Thanks for quick reply. Can you please tell me about the other ways?
This is because the plugin above is not working.
What I need is that someone wraps the code in code tags or pre tags (but not both) and it gets highlighted. I need to highlight java code.
I can edit any existing plugin to suit my requirements, I just need a hint to start.
Looking forward to your reply.
Thanks
May 9, 2010 at 10:09 am #88188In reply to: Highlighting source code
_ck_
ParticipantThis has been done a few different ways for bbpress over the years, this plugin is the easiest to find but there are other ways:
May 9, 2010 at 9:37 am #34225Topic: Highlighting source code
in forum PluginsMayurSomani
MemberIs there any plugin that can help me highlight source code on bbpress?
Any other ideas are also welcome.
Thanks for reading.
May 9, 2010 at 8:35 am #88181_ck_
ParticipantThanks for the feedback.
Good to hear they fixed it in 1.0 – it’s actually easy to fix by hacking the core, only two characters need to be changed that way!
(
>0instead of=1)May 8, 2010 at 4:47 pm #88009In reply to: Linking to WordPress
xarzu
ParticipantI went the PHP route.
At the top of register.php I put this code:
<?php
header( ‘Location: http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php?action=register’ ) ;
and it works.
May 8, 2010 at 4:35 pm #88008In reply to: Linking to WordPress
xarzu
ParticipantWhile I try several combinations of this I thought I would throw this out for consideration.
PHP is not like HTML. PHP generates HTML or browser code on the server and spits it out onto the browser on the client side. I am just thinking now that maybe you cannot use this method of redirection because the functionality is overwritten. I am just asking. Has anyone tried this redirection method with PHP before?
As I type this, I am deleting the browser histrory/memory to see if that helps because so far this method does not redirect anything.
May 8, 2010 at 1:43 pm #87958In reply to: Welcome Back _ck_
kevinjohngallagher
MemberWelcome back _ck_!
You’ve truly been missed
May 8, 2010 at 11:26 am #88007In reply to: Linking to WordPress
zaerl
ParticipantTry:
RewriteRule ^.*/bb-login.php$ http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php [R=301,L]or:
Redirect 301 /bb-login.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.phpMay 8, 2010 at 10:37 am #88174In reply to: Modlook tag
_ck_
ParticipantYes, I wrote the “Skip Akismet” plugin last year to do that.
https://bbpress.org/plugins/topic/skip-akismet/
It’s cross compatible with bbPress and WordPress, however they refused to accept it into the WordPress plugin repository and told me to submit it to the core (which I didn’t bother if they are going to be like that).
Later I discovered the akismet plugin itself already has a “trusted user” filter via
bb_is_trustedso my method is overly complicated, but my plugin could in theory be modified to trust users who have X number of posts or pass a certain minimum membership age.This method however would be much cleaner:
add_filter( 'bb_is_trusted_user','more_trusted',10,2);
function more_trusted($trusted,$user_id) {
// bb_get_user here and determine if trusted, possibly cache result
return $trusted; // boolean true/false
}Feel free to develop that, let me know if you need help.
May 8, 2010 at 9:28 am #88006In reply to: Linking to WordPress
xarzu
Participantoh.
That is pretty clever. I like that. I think I will use this technique. Now I just need to refresh my memory on how to code .htaccess
I have created the file, .htaccess and I included the lines
Code:RewriteRule ^bb-login.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php [L,R=301]
RewriteRule ^register.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php?action=register [L,R=301]And I gave it a shot, but it did not work. Is there something I need to do such as make the file a certain type or read/write privledge?
May 8, 2010 at 6:12 am #88172In reply to: Modlook tag
Ashish Kumar (Ashfame)
Participantthanks
May 8, 2010 at 5:57 am #88183In reply to: Facebook Integration
Ashish Kumar (Ashfame)
Participantyou asking for help or notifying that you have done it.
If the latter one, then I would like to know more on how you did it
-
AuthorSearch Results