Search Results for 'code'
-
AuthorSearch Results
-
October 6, 2009 at 11:56 am #79974
In reply to: removing tags
InvTrdr
MemberAnyone else having the problem of deleting tags within the “Structure” theme? Can I check for that code somewhere that deletes tags?
Thanks.
October 6, 2009 at 7:58 am #31983Topic: What code is generating this
in forum TroubleshootingNavin
MemberOctober 5, 2009 at 11:45 pm #80158In reply to: Page Conditional Checking
Adam Harley (Kawauso)
MemberThere’s
bb_get_location()in functions.bb-template.php which returns the page you’re on and is above all the page conditional functions (which are based onbb_get_location()anyway)October 5, 2009 at 9:13 pm #75052In reply to: Convert YetAnotherForum to bbPress, or any platform…
Adam Harley (Kawauso)
MemberArgh, ASP.NET is an evil possessed devil of a language… anyone got a database dump I can test with?
October 5, 2009 at 7:15 pm #75051In reply to: Convert YetAnotherForum to bbPress, or any platform…
Adam Harley (Kawauso)
MemberAt first I was like
“open”, then I was all
“ASP.NET”So yeah, uhh, anyone got a dump of a database for one of these? I don’t even have a test install I can run ASP.NET that I know of…
Edit: Nevermind, Apache can do it. Will look into a conversion script, but it’ll be written in PHP.
October 5, 2009 at 4:28 pm #80108In reply to: Latest reply in user activity and search results
Navin
MemberOk, will wait on it
October 5, 2009 at 4:17 pm #57730In reply to: One profile page to rule them all
anaon
MemberHello,
Sorry for updating an old post but where do I have to put this previous code?
Thanks
October 5, 2009 at 4:07 pm #52360In reply to: A phpBB to bbPress database converter
fontadoni
ParticipantThe script worked for me last night and this is the second phpbb 2 board I convert. A few tips I can give whoever will try this script:
Follow the steps that come in the given file but make sure to:
1. Install bbPress 0.7 first, then upgrade to 0.8 when you have done the conversion. You can download 0,7 here: https://bbpress.org/forums/topic/download-previous-versions-of-bbpress#post-17770
Then you can go ahead and upgrade to the latest version (1.0.2). Make sure you update the settings in your admin panel (board path, name, etc) as you will need to get rid of your old config.php file when you upgrade to 0.8
2. If you’re hosted on 1and1, switch EXPORT_TO_FILE to false and AUTO_IMPORT_EXPORTED_DATA to true. Also add teh following code to your .htaccess file: AddType x-mapp-php5 .php (not sure if this is necessary but it worked for me).
3. I got an error saying that some query was empty, but it seems that the conversion went without any problems.
October 5, 2009 at 3:56 pm #80146In reply to: list of plugins used at wordpress.org forums??
Adam Harley (Kawauso)
MemberThe WordPress.org support forums will almost certainly just be using custom-written code. What functionality are you trying to get? Someone here might know of an equivalent plugin.
October 5, 2009 at 3:25 pm #80143In reply to: How do I find a programmer to modify a theme?
Peter A. Gebhardt
ParticipantWho else should I consider calling to get this theme modified?
The creator of “kakumei” – on which Garry Vander Voort based his design?
In ernest: What are the areas where you need integrating help? Is it “cosmetics” only or deep code integration? What version of bbPress would you use … and so on.
Depending on the amount of time you want to spend on it (and your willingness to get acquainted to some cut & paste coding), I’m pretty sure that most of the questions (conc. Kakumei & it’s siblings) have already been answered here & in _ck_’s forum.
October 5, 2009 at 2:37 pm #80121In reply to: Template URI
chrishajer
ParticipantIt’s called in header.php:
<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" /><?php bb_stylesheet_uri(); ?>
October 5, 2009 at 2:15 pm #31963Topic: Template URI
in forum Themesdarrinb
MemberIs there a template tag or function to get the uri to your template file? So far, all I’ve been able to find is
<?php bb_option('url'); ?>, but that just returns the uri to the base directory. Is there one that will display the uri to the template directory? Like in WordPress (<?php bloginfo('template_directory'); ?>)?October 5, 2009 at 1:53 pm #80120In reply to: bbPress, WP post synchronization issue…
Jim R
ParticipantThis is what they said, but he wasn’t the support guy who fixed it:
It appears that they added the correct rewrite rules for WordPress to resolve the issue with the permalinks this can also by done from the WordPress admin under Permalinks.My new issue with this plug-in is trying to get it to NOT create a new bbPress post every time I edit a WP post.
October 5, 2009 at 11:44 am #80054anaon
MemberOups, actually, it is not the case
What do you think I’ve missed?
October 5, 2009 at 11:13 am #80137In reply to: Members Only
Peter A. Gebhardt
ParticipantAddendum: To check a user’s role anywhere in your code use
<?php if (bb_current_user_can('administrate')) { ?> .....(by replacing
administrateby the proper role description)as proposed here:
https://bbpress.org/forums/topic/page-elements-viewable-only-to-admin
October 5, 2009 at 9:45 am #80136In reply to: Members Only
Peter A. Gebhardt
ParticipantBrad,
I’m confronted with a similar problem (on the ‘Post’ level): Beside
visitors(lurkers), I need user categories likeVIPorPaying(for content) too.Where I was able to get an idea how to eventually handle it, was by looking at _ck_’s
bb_attachments.phpPut this into
capabilities.phpjust behind thememberblock:'visitor' => array(
'name' => __('Visitor'),
'capabilities' => array(
'participate' => false,
'read' => true
)),Then changing her (shipping) setup code in
bb_attachments.phpto this here:$bb_attachments['role']['see']="participate"; // minimum role to see list of attachments = read/participate/moderate/administrate
$bb_attachments['role']['inline']="participate"; // add PAID ! minimum role to view inline reduced images = read/participate/moderate/administrate
$bb_attachments['role']['download']="participate"; // add PAID ! minimum role to download original = read/participate/moderate/administrate
$bb_attachments['role']['upload']="moderate"; // minimum role to upload = participate/moderate/administrate (times out with post edit time)
$bb_attachments['role']['delete']="moderate"; // minimum role to delete = read/participate/moderate/administrateI was able to exclude the ‘Visitor’ from even seeing that there are attachments to a certain post.
Hope that helps.
October 5, 2009 at 8:06 am #76129In reply to: integrating with external authentication system
panchz
MemberI had that same problem when trying to make only one register & only one login from my site with bbpress integration.
register is easy, I just wrote directly to the db from php using the hash classes included. but for login i made a kind of webservice. When I login from tomcat I just request the next url…
and i wrote the next code for bb-login-check.php
<?php
// Load bbPress.
require(‘./bb-load.php’);
// Redirect to an SSL page if required.
bb_ssl_redirect();
$user = bb_login( @$_GET, @$_GET, @$_GET );
if ( $user && !is_wp_error( $user ) ) {
echo “0”;//login successfully
exit;
}else{
echo “1”; //login fail
exit;
}
?>
i hope that’s usefull…
for any question or help needed for bbpress or wordpress try fran.rod.rod [at] gmail.com
October 4, 2009 at 7:14 pm #80052anaon
MemberOh Kawauso, thank you so much!! This code works perfectly!!
But do you mean that normally, I should have just one profile page for WordPress and BBpress?
October 4, 2009 at 6:19 pm #56793In reply to: Plugin: Avatar Upload
Billy Wilcosky
ParticipantDoes anyone have any suggestions for showing the bbpress avatar next to comments in wordpress. I know a couple suggestions were given here, but, I don’t want to try the first suggestion, because they say to delete a file in my plugins, and I have a feeling that will cause more trouble than it’s worth. I saw another suggestion, tried it, but the avatar didn’t show. This probably won’t happen, but, it would be nice if there was a sister plugin to this one for wordpress… and you installed it and magically the bbpress avatars showed up.
Wouldn’t that be nice. Unfortunately I don’t know php very well.Here’s hoping someone can come up with a solution!
October 4, 2009 at 2:57 pm #80051Adam Harley (Kawauso)
Member<?php if ( $wp_profile_user = bb_get_user( get_post_author_id( $post_id ) ) ) : $wp_profile_link = esc_attr( "/members/{$wp_profile_user->user_nicename}/" )?><a href="<?php echo $wp_profile_link?>">View profile</a><?php endif?>Your profile pages from bbPress and WordPress should be in sync anyway if you’ve integrated properly…
October 4, 2009 at 2:13 pm #80117In reply to: How do I create user records?
Adam Harley (Kawauso)
MemberRead through
register.phpin bbPress’ base directory and functionbb_new_userunderfunctions.bb-pluggable.phpin bb-includes to get an understanding of how normal registration works.Normally the user is given an auto-generated password, but the function used in the registration function will hash anything anyway.
October 4, 2009 at 1:57 pm #80043Adam Harley (Kawauso)
MemberAh…. add a sidebar capability
October 4, 2009 at 1:47 pm #80131In reply to: How to fix it
chrishajer
ParticipantYou can limit it on input with that javascript, which will take care of most of the people who use a long name by mistake, not knowing what it will affect. You could also just limit the field maxlength, which will prevent people from entering more characters than you want. Either of those client side ways can be circumvented by someone who is really determined, but really, you just want to prevent people from doing it be accident.
You could also just add
overflow:hiddento the display of that field in your style.css and have the displaye truncated rather than have it mess up your layout.October 4, 2009 at 1:31 pm #31967Topic: Moving bbPress to a different directory
in forum TroubleshootingCraigElias
MemberI want to use Wishlist member to protect a page called Forum – with the slug shiftselling.com/forum.
That means I need to move the files for the forum to a different directory – currently shiftselling.com/forum.
Should I move it or rename it?
Should it be moved to a directory or a sub domain?
I am also trying find what code I could put into a the page called forum that would display the forum inside my page.
Regards,
Craig
Cell: +1.403.874.2998
October 4, 2009 at 12:36 pm #31966Topic: How to fix it
in forum Troubleshootingharakiri1
MemberI have some problem with display name, how to set the maximun characters in First name and Lastname, also in displayname
)
-
AuthorSearch Results
