Search Results for 'code'
-
AuthorSearch Results
-
June 27, 2009 at 7:17 pm #75059
chrishajer
ParticipantAlso, can you get phpinfo() for your server? Just put this into a file and call it up in a browser:
<?php
phpinfo();
?>If you save that as a file called info.php, you can load in your browser at http://www.example.com/info.php or http://www.example.com/bbpress/info.php depending on where you installed it.
June 27, 2009 at 5:11 pm #75114In reply to: Topic slugs & numeric IDs
johnhiler
MemberWhen you run this query, does your old URI show up anywhere?
SELECT * FROM bb_topicmeta WHERE meta_key=’uri’
As for the word “slugs”, I’m pretty sure it comes from typesetting.
June 27, 2009 at 4:45 pm #75033In reply to: Error messages with bbPress and WP’s WP_CACHE
r-a-y
ParticipantHi Sam,
Did the var_dump.
Here’s the result:
array(2) {
[0]=>
string(1) "2"
[1]=>
string(1) "1"
}
string(0) ""[EDIT]
I should state that I forgot to clear the memcached service. How do I go about doing that?
June 27, 2009 at 7:49 am #75109In reply to: Super Search plugin failing
_ck_
ParticipantIt sends all the invisible code before the webpage that your browser requires to understand the language, etc.
In theory commenting it out is very bad but for some reason with bb-gzip it’s being triggered twice which should not happen and is bad. The fix I gave you is a lazy workaround for now until I have time to address it properly one day (and might need a completely different fix with bbPress 1.0.1 etc)
June 27, 2009 at 7:38 am #75121Sam Bauers
ParticipantThe favourites RSS feed was always public, for some reason the page was made private in the past. We decided (me and mdawaffe) to just make it public from now on instead of getting rid of the RSS feed.
If you don’t want it to be public then you’ll need to write some plugin code to make that happen, just remember to kill the RSS feed as well.
June 27, 2009 at 7:03 am #51708In reply to: Plugin: Post Notification
lemonade-joe
MemberHi, I am trying to use this plugin on a site running in Slovak language, that means, I need to use special characters. I am not good with php, so forgive me, if am not technical enough
The system e-mails (like registration) are working fine. However, when sending mail through Post Notification, the special characters are messed up.
When I was checking the source code of the mails, I have discovered, that the registration mails contain the line “Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=”UTF-8″”.
The Post Notification mails (also the Report Post plugin mails) do not contain any charset specification (the source code contains this: X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char C3 hex).
Can that be the source of my problem, if yes, how can I solve it?
June 27, 2009 at 7:00 am #15104Topic: Special characters in plugin mails are messed up
in forum Installationlemonade-joe
MemberHi, I am trying to use Post Notification and Report Post plugins on a site running in Slovak language, that means, I need to use special characters. I am not good with php, so forgive me, if am not technical enough
The system e-mails (like user registration) are working fine. However, when sending mail through Post Notification, or Report Post plugin, the special characters are messed up.
When I was checking the source code of the mails, I have discovered, that the registration mails contain the line “Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=”UTF-8″”.
The Post Notification mails (also the Report Post plugin mails) do not contain any charset specification (the source code contains this: X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char C3 hex).
Can that be the source of my problem, if yes, how can I solve it?
June 27, 2009 at 4:58 am #75048In reply to: Convert YetAnotherForum to bbPress, or any platform…
Josh Leuze
MemberThanks so much for the links Ipstenu!
I figured if there was a way out of YAF, it would most likely be to phpBB. Surprised I didn’t find this in my own searches.
If I can just get this data out of YAF, I think it will all be downhill from there
June 27, 2009 at 3:43 am #75107In reply to: Super Search plugin failing
_ck_
ParticipantMichael3185, something in your setup is causing bb_send_headers to be sent twice.
Try commenting out line 10 in super-search-init.php
// bb_send_headers();
June 27, 2009 at 1:41 am #75083In reply to: Best way to prevent SPAM registration?
Detective
MemberI also have this in my .htaccess:
# BEGIN ANTISPAMBLOG REGISTRATION
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .register.php*
RewriteCond %{HTTP_REFERER} !.*ryuuko.cl.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://www.dii.uchile.cl/ [R=301,L]
# END ANTISPAMBLOG REGISTRATIONThe dii.uchile.cl url is an internal joke
June 27, 2009 at 1:38 am #75030In reply to: Error messages with bbPress and WP’s WP_CACHE
Sam Bauers
ParticipantCan you please do a
var_dump($cached_ids)
so we can find out exactly what the value of $cached_ids is?Just before line 71 in that file would be the spot, before
$_cached_ids = join( ',', array_map( 'intval', $cached_ids ) );
It should output something useful to the screen.
June 26, 2009 at 11:49 pm #75029In reply to: Error messages with bbPress and WP’s WP_CACHE
r-a-y
ParticipantHi Sam,
Thanks for that detailed post. I’ve added this post to my favorites so I can come back to it.
However, at this time, I’m not going to upgrade until bbPress reaches official version 1 status.
I’ve temporarily gotten rid of the warning messages by doing the following:
Line 71 of bbPress 1.o alpha 6:
$_cached_ids = join( ',', array_map( 'intval', (array)$cached_ids ) );
Lines 86-89 of bbPress 1.o alpha 6:
if(!empty($cached_ids)) {
foreach ( $cached_ids as $cached_id )
$this->results[] = $trans[$cached_id];
}Yeah I know it isn’t ideal as I’m probably not using the latest, optimized build of bbPress, but it gets rid of the warning messages.
June 26, 2009 at 10:36 pm #74846In reply to: Name of Header and Footer Files for Kakumei Theme
crimsonmai
MemberThey are named header.php and footer.php in the Kakumei directory
Just make sure you’re looking at the default Kakumei directory and not, for example, the alternate blue one.
June 26, 2009 at 9:19 pm #75028In reply to: Error messages with bbPress and WP’s WP_CACHE
Sam Bauers
ParticipantOK then, you really need to upgrade.
Here’s how I would do it…
- De-integrate cookies, clear out all cookie settings in bbPress/WordPress including hardcoded ones in configs with the exception of you secret keys (BB_AUTH_KEY and friends)
- Upgrade to the latest Trunk of bbPress
- Upgrade to the latest release of the bbPress Integration plugin
- Clear all relevant cookies in your browser
- Setup integration in WordPress first, go to the admin panel for the plugin – use the settings it gives you to use in your wp-config.php file
- Setup integration in bbPress second, if the plugin in WordPress tells you to add a special constant to bb-config.php, do that now too. You’ll need to login to bbPress separately at this stage. Only enter settings into the admin, don’t try to add anything back into your bb-config.php except that one line from the WordPress plugin
- Now you should be good to go again, clear your browser cookies and try various ways to login and logout
June 26, 2009 at 9:18 pm #75080In reply to: How to remove Occupation & Interest META data?
johnhiler
MemberAh ok, that looks pretty similar to johnbillion’s plugin. Glad it worked out.
June 26, 2009 at 9:07 pm #75027In reply to: Error messages with bbPress and WP’s WP_CACHE
Sam Bauers
ParticipantVisit the WordPress Codex and search for information on
apply_filters()
.You can filter that array with a simple plugin.
June 26, 2009 at 9:07 pm #75078In reply to: How to remove Occupation & Interest META data?
frooyo
MemberHmm … looks like it’s hardcoded in the bb-include/functions.bb-core.php
/meta_key => (required?, Label, hCard property). Don’t use user_{anything} as the name of your meta_key.
function bb_get_profile_info_keys( $context = null ) {
return apply_filters( ‘get_profile_info_keys’, array(
‘first_name’ => array(0, __(‘First name’)),
‘last_name’ => array(0, __(‘Last name’)),
‘display_name’ => array(1, __(‘Display name as’)),
‘user_email’ => array(1, __(‘Email’), ’email’),
‘user_url’ => array(0, __(‘Website’), ‘url’),
‘from’ => array(0, __(‘Location’)),
‘occ’ => array(0, __(‘Occupation’), ‘role’),
‘interest’ => array(0, __(‘Interests’)),
), $context );
}
Anyone know of a good way to remove Occupation and Interests without having to modify the bb-core.php file (to make future upgrading easier)
June 26, 2009 at 8:57 pm #75077In reply to: How to remove Occupation & Interest META data?
frooyo
MemberThanks, I’m looking into the database right now myself.
If you find anything, please let me know. Back to looking myself
June 26, 2009 at 8:47 pm #75073In reply to: How to remove Occupation & Interest META data?
johnhiler
MemberThat’s not standard… did you add a plugin to support this? If so, turning off the plugin should do the trick.
June 26, 2009 at 7:51 pm #74487In reply to: Intergration problem, when upgrading wordpress 2.8
Markus Pezold
ParticipantAfter the Update to bbPress Version 1.0-rc-3 my problems are gone. I think everyone should test there used plugins, backup and then test the update. Can’t wait for bbPress 1.
https://bbpress.org/forums/topic/cookie-integration-problem-wp28-bb-10-rc-2
June 26, 2009 at 7:45 pm #74954In reply to: Can admin but not browse to forum
stevebooth
MemberKnow what? I got fed up with my hosting service. ;P
I spent the entire morning working on my bbPress implementation, and had an epiphany about ten minutes ago. I asked myself… ‘Why in the name of the seven seas are you using Concentric?’ When I couldn’t come up with a better answer than ‘it’s what I always use’, I whipped out Google, entered the term ‘best wordpress hosting service’, was routed to WordPress’ hosting page, and I just signed up with bluehost.
So… this is now all moot (hopefully). I’m planning on just working on CONTENT after my nameserver updates happen! YAY!!!!!!!
I feel like going on vacation
June 26, 2009 at 6:21 pm #75060In reply to: User profile link in post – replacement link
Ipstenu (Mika Epstein)
ModeratorYou just want to change the output from
<a href="http://mbforum.letsdoo.org/profile/michael">Key Master</a>
to<a href="http://mbforum.letsdoo.org/profile/michael">Profile</a>
?Try this:
<div class="threadauthor">
<?php avatarupload_display(get_post_author_id()); ?>
<p>
<strong><?php post_author_link(); ?></strong><br />
<small><a href="/profile/<?php post_author(); ?>">User Profile</a></small>
</p>
</div>June 26, 2009 at 6:01 pm #74953In reply to: Can admin but not browse to forum
Ipstenu (Mika Epstein)
Moderator@johnhiller – On the other hand, going gold will mean more people using it and thus more people screaming for help and bitching at bugs
Which is stressful, but honestly there’s nothing like a real-world test. (She says, having spend 6 months beta testing new software, had NO bugs in her queue, and then twenty minutes in the wild had a fill ticket queue again
You just can’t test everything.)
June 26, 2009 at 5:56 pm #75012In reply to: Limiting my forum’s post size
Ipstenu (Mika Epstein)
ModeratorCSS doesn’t control everything. Yet.
Actually, it can control that, but not reliably or consistently, due to browser independence.
chris’s idea is probably best in the long run.
June 26, 2009 at 5:53 pm #73363In reply to: Menu Links
Ipstenu (Mika Epstein)
ModeratorI’m not sure why they decided it should be that way, I just go with the flow
What are the folder permissions on my-templates, when compared to bb-templates?
-
AuthorSearch Results