Search Results for 'code'
-
AuthorSearch Results
-
January 9, 2007 at 7:16 pm #53229
In reply to: tag.php access issue
chrishajer
ParticipantIs it possibly related to cookies and the domains they come from?
This problem can sometimes be caused by
disabling or refusing to accept cookies
My error was with Firefox 1.5.0.7 on Linux. Maybe it’s just coincidental it went away when the scripts were parsed by PHP5.
January 9, 2007 at 3:49 pm #53226In reply to: tag.php access issue
chrishajer
ParticipantThey will not offer to support .htaccess, but that’s OK as long as they let you use it.
Put that .htaccess (make sure it starts with a period) in your forum root, with the line:
AddType x-mapp-php5 .php
in it.
Then, make sure it’s working. Create a file called phpinfo.php in your forum root. Put this into it:
<?php
phpinfo();
?>
Then, access that URL
http://www.yoursite.com/forum/phpinfo.php
. The resultant page will have the PHP version at the top. You want to see PHP5.x.x there, not PHP4.x.x. Try it both with and without the .htaccess to see if it changes. If it’s already parsing php files as PHP5, then we have to dig into what’s not working. If php files are still being parsed as PHP4, the we need to figure out if the htaccess is working or not, or in the wrong location or something.January 9, 2007 at 2:19 pm #50148In reply to: Adjust Size of Hot Tags
A1ex
MemberThere is an error in
/bb-includes/template-functions.php
file .In that file find
($smallest + ($count/$fontstep)."$unit;'>$tag n";
and replace it with:
($smallest + (($count-min($counts))/$fontstep))."$unit;'>$tag n";
January 9, 2007 at 12:45 pm #53134In reply to: 1st line of the first post in a topic?
phollo
Memberguys, any other suggestion?
January 9, 2007 at 11:58 am #1214Topic: Problems with tranlation
in forum TroubleshootingGorka Urrutia
MemberI’m working on the spanish translation and I’m having a problem.
syntax error, unexpected $end in /…/bb-includes/gettext.php(307) : eval()’d code on line 1
The error really comes from this line of code:
$posts = sprintf('%1$s %2$s', $post_num, __ngettext( 'post', 'posts', $post_num ));
And I guess it has something to do with the plurals (post and posts). I’ve generated the po file using poEdit.
Does anyone have an idea of how to solve this?
January 9, 2007 at 1:43 am #53224In reply to: tag.php access issue
chrishajer
ParticipantAdding this to the .htaccess in the forum root did it for me:
AddType x-mapp-php5 .php
Basically, you need PHP5 to prevent that redirect error. If your server has PHP5, then this will resolve the issue for you.
This problem was mentioned and resolved here before:
January 9, 2007 at 1:05 am #53223In reply to: tag.php access issue
Michael Adams (mdawaffe)
MemberWhat version of bbPress are you using?
Do you have a
.htaccess
file in bbPress’bb-templates/
directory?January 8, 2007 at 10:29 pm #53213In reply to: Looking for help with bb-ratings
Michael Adams (mdawaffe)
MemberGlad it works
January 8, 2007 at 10:04 pm #52999In reply to: Request: Posts since last visit
ostlund
MemberIn bb_press 0.74 you need to change “init” to “bb_init” on line 48. Like this:
add_action(‘bb_init’, ‘online_update’);
And then it works again.
January 8, 2007 at 9:36 pm #53208In reply to: how many posts can bbpress handle
ardentfrost
MemberMan, looks like I’ll have to move to some better forum software in the year 6354 then
January 8, 2007 at 9:34 pm #53212In reply to: Looking for help with bb-ratings
ardentfrost
MemberSame thing happened to me in one of mine. I was using get_header instead of bb_get_header. Silly mistakes are the worst when you need help finding them
January 8, 2007 at 5:52 pm #53210In reply to: Looking for help with bb-ratings
Michael Adams (mdawaffe)
MemberTry
$topics = bb_top_topics();
as your first line.
January 8, 2007 at 11:48 am #1211Topic: Looking for help with bb-ratings
in forum PluginsGeezerjim
ParticipantI am looking for some help with the plugin bb-ratings. Specifically the functions bb_top_topics. From what I gather it returns an array of topics in descending order of the votes the topics have received. I took that information and put the following in my front page template:
<?php bb_top_topics();
foreach ($topics as $topic) : ?>
<tr<?php alt_class('forum'); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
</td>
<td class="num"><div class="rating-holder"><?php bb_rating();?>
<span class="count"><?php bb_rating_count(); ?>
The problem is that it does not display the topics in descending order, it just displays all of the most recent in the order they were entered.
I know the plugin page (bbpress.org/plugins/) has this function working as it should be.
Thanks in advance for any help.
January 8, 2007 at 9:00 am #53168In reply to: Request: Ability to Merge 2 bbPress Installs
Null
MemberWould be nicer to have some bbpressMU
Something I really want. Could be done izi I think, just put an id code with each forum and posts and filter on that ID. Only each forum should be able to pick its template and plugins…. well perhaps in the future? wish wish
January 8, 2007 at 8:56 am #52536Null
MemberLike mdawaffe said above: Probably not. There’s a lot of custom code talking to two different servers via http, cron jobs, svn actions and a dozen other things.
/Me guesses there is TOO much stuff going on behind the scenes, to even want to consider making this a “plugin” per se..
I understood that, was aiming to some pluginmaster that want to created something like this
Well it aint that important, it would be just handy. Even more if all the info could be pulled (with some filters) so the plugins would stay at 1 central point (this site) and updated to. So no different plugin versions on every site….
Well just some suggestions…
January 8, 2007 at 5:44 am #50377In reply to: Slashes being added in front of apostrophes
chrishajer
ParticipantI have bbpress and wp on the same database too, and I don’t have a problem with either one. Looking into the gpc_magic_quotes or where addslashes and stripslashes are used.
What type of quotes are added, single or double?
Also, do you have a URL where this can be experienced? Looking through the code, there are a lot of slash-things in there. I would like to narrow the problem down by first seeing it. Thanks.
January 8, 2007 at 4:24 am #53084In reply to: WP+BB integrated, theme integrating login issues..
so1o
Participantspencerp..
good thing – you know how to talk to yourself huh??
January 8, 2007 at 3:59 am #53204In reply to: how many posts can bbpress handle
mozey
Memberwell, its good to know the limits of your software thats all. However, what i was more interested in is, does bbpress somehow purge posts from the database and cache them somehow to lower the load on the DB!!?!?. Thats the only way I can think of how they go over this limit.
I just wanna know how they do it and i’m lazy to look over the code
January 8, 2007 at 1:35 am #52535spencerp
MemberLike mdawaffe said above: Probably not. There’s a lot of custom code talking to two different servers via http, cron jobs, svn actions and a dozen other things.
/Me guesses there is TOO much stuff going on behind the scenes, to even want to consider making this a “plugin” per se..
Or some page we can put on our site, but that pulls al the plugins from this site for display?
There might be a way, I’m just not sure off hand which way would be the “best” though.. Maybe one of the devs, or someone else could help you better.
Either way, good luck with this!
spencerp
January 8, 2007 at 1:26 am #53175In reply to: REQUEST: Enable Guest Posting
bbpressfriend
Memberthe guest posts should be automatically marked as deleted for moderation (if spam = no action, if no spam = undelete) same for new guest topics
January 8, 2007 at 1:10 am #53082In reply to: WP+BB integrated, theme integrating login issues..
spencerp
MemberNevermind, much props goes to boyevul on GoogleTalk!
The login codes were placed in the theme’s header2.php file, directly after an “onclick” action, which was the culprit.
So this:
<div id=”header” onclick=”location.href='<?php bloginfo(‘url’); ?>’;” style=”cursor: pointer;”>
<h1>
<a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a>
</h1><?php login_form(); ?>
<div id=”memlist”>
<a href="<?php bb_memberlist_link(); ?>">Member List</a>
</div></div>
Was changed to this:
<div id=”header”>
<h1>
<a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a>
</h1><?php login_form(); ?>
<div id=”memlist”>
<a href="<?php bb_memberlist_link(); ?>">Member List</a>
</div></div>
And all was peachy! I didn’t however upload the latest files of bbPress to the online copy, and I didn’t upload the new changes I just made here either.. I will then ..
Either way, problem is solved!
spencerp
January 7, 2007 at 11:15 pm #50375In reply to: Slashes being added in front of apostrophes
chrishajer
ParticipantThat’s different from my install, my magic_quotes_gpc are “on” and “on”. Now to find out how to get around that for your server…
What version of PHP are you using? That phpinfo() will tell you, or from the command line, I think
php -v
Also, do you have the ability to use a .htaccess file?
January 7, 2007 at 9:51 pm #52534Null
MemberCan someone make it as a plugin then
Or some page we can put on our site, but that pulls al the plugins from this site for display?
January 7, 2007 at 8:04 pm #50373In reply to: Slashes being added in front of apostrophes
chrishajer
Participantlarmir, do you have an example URL where we can register and test this out? Also, does Dreamhost have a phpinfo() where we could see about magic_quotes_gpc and magic_quotes_runtime? If they do not have that file, can you create a file on your server called info.php or phpinfo.php (name does not matter so long as you know it) and then, in that file, put this:
<?php
phpinfo();
?>
That will give all sorts of useful information, including your magic_quotes settings.
Thanks.
January 7, 2007 at 7:59 pm #53172In reply to: Request: Post Edit Times
chrishajer
ParticipantI also agree that posts should be locked after a while to prevent editing. I hate rereading a post I thought I already read, and finding new information there because they edited it after I read it the first time. Maybe the post_time could be updated when it’s edited? Then it would keep bumping to the top?
I don’t know how to make a plugin yet, but here is what you would change in the core bb-includes/capabilities.php, comment out lines 348 and 349. That seems to do it for me.
if ( $curr_time - $post_time > bb_get_option( 'edit_lock' ) * 60 )
$caps[] = 'ignore_edit_lock';
-
AuthorSearch Results