Search Results for 'code'
-
AuthorSearch Results
-
October 19, 2008 at 2:46 pm #68375
In reply to: Problem deleting posts
chrishajer
ParticipantI don’t think the problem is with deleting a whole topic when there’s only one post in it. The problem as I understand it is that when deleting the only post in a topic, this error occurs.
I just verified that this occurs on a trunk installation (r1794) if you try to delete the only post of a topic.
Warning: Invalid argument supplied for foreach() in /homepages/46/d93980635/htdocs/trunk/bb-includes/functions.php on line 527That was my point a couple posts ago. bbPress should handle this, or remove the option to delete the post if it’s the only post on a topic, but in reality, administrators should be deleting the whole topic, not the only post in that topic. When you delete the only post of a topic, what are you expecting to be left over?
The post is gone, and the thread no longer shows up in the front page forum list, but I think bbPress or the administrator could be smarter about how to accomplish what we’re really trying to do here.
October 19, 2008 at 2:44 am #65321In reply to: Oops Broken Support-Forums Plugin
Burt Adsit
Member@createiveherb , @xlarge
function modifyTopicLabelClosed($label) and
function modifyTopicLabelSticky($label) need their sprintf substitutions changed from $1%s to %1$s
‘<img src=”$1%ssupport-forum-$1%s.png”…
should be
‘<img src=”%1$ssupport-forum-%2$s.png”…
for all 4 substitutions.
@xlarge you might have gotten a quicker reply with kinder words.

Burt
October 18, 2008 at 9:36 pm #68296In reply to: 1.0 alpha 2 parse url error
Sam Bauers
ParticipantThere was a syntax error in the code you copied from the other topic. I’ve edited it there if you want to grab it again.
October 18, 2008 at 5:21 pm #4158Topic: Installed but blank page.
in forum Troubleshootingstormbasiat
MemberI installed BBForums to my site and installation went fine
I gone to http://mbrogs.sc11.co.uk/forum/ and it’s just a blank page.Any ideas?
October 18, 2008 at 2:04 pm #68367In reply to: Double Posts
Bharat Karavadra
Participantthe WITH replace code does not seem to appear corectly – I think because it had not spaces. here it is again:
<input type=hidden id=hidden1><input type=”submit” id=”postformsub” onclick=”this.disabled=true; hidden1.name=this.name; hidden1.value=this.value; this.value=’Please Wait…’; this.form.submit();” name=”Submit” value=”<?php echo attribute_escape( __(‘Post Message’) ); ?>” tabindex=”4″>
October 18, 2008 at 5:56 am #4160Topic: Installation Error – call to undefined function
in forum Installationmojorob
MemberI’ve followed the installation instructions, including saving bb-config-sample.php as bb-config.php with the correct values (although it doesn’t say to do this in the bbpress installation instructions). When I go to the intended URL of the bbpress site I get the following error:
Fatal error: Call to undefined function: wp_kses_no_null() in /homepages/45/d144276697/htdocs/mysite.net/news/forum/bb-includes/pluggable.php on line 240I have a wordpress installation in /news/ of the domain, and attempting to put bbpress into /news/forum/
WordPress: 2.6.2
bbPress: 0.9.0.2
Any thoughts?
October 18, 2008 at 2:00 am #68391In reply to: CSS files. . .
tdrinker
MemberThank you for your help.
I have set everything right, except I can’t find how to increase the size of three fonts:
the font used when a person is in the process of typing a post
and the tiny little font for for “posted # days ago”
the “send post” font
I want to make the font large enough for geriatric eyes
I am comfortable going into all the templates files and fooling around with them. my site, http://www.bookofmatthew.org demonstrates the extent of the rough surgery
I do wish I could keep a sign giving credit to bbPress, but unfortunately I was unable. perhaps there is a nice graphic saying bbPress I can put somewhere? I cannot write the code to put a sign at the bottom saying, “powered by bbPress”
I would like to cut out the “member” etc. designations given below the name of the poster
How can I tell how large to make the font and page?? It would seem to depend on the setting of the person’s computer, which is variable. On a Mac, if you hit command+ or command-, everything is enlarged or decreased
October 17, 2008 at 6:31 pm #4157Topic: CSS files. . .
in forum Requests & Feedbacktdrinker
MemberI know where the CSS code is for my bbPress site, but what parts are relevant for the following simple adjustments?
larger font size throughout
more narrow margins and a wider text area
taking out tags and other things like that
maybe even adding a big announcement at the head of my page?
taking away titles such as “member”
replacing the text ‘be brief and descriptive’
many thanks to anyone who can tell me
October 17, 2008 at 1:31 pm #67236In reply to: WPMU 2.6 + bbPress 1.0 alpha – Keymaster issue
Tom Lynch
ParticipantI have investigated some more it seems that new users of mu which own blogs get assigned as inactive on bbpress, dispite the role map being set to give them member level or higher for all levels on the role map.
Any suggestions, theres no error codes it just plain doesn’t like wpmu’s role map
October 17, 2008 at 12:12 pm #68382In reply to: Email notification of thread reply?
chrishajer
ParticipantYour users probably want to mark a topic as a favorite if they want an email when there is a reply. A topic created by a member does not automatically subscribe them to it as a favorite (I think in some versions of phpBB that’s how it works.)
For buttons, you probably want one of these two plugins:
https://bbpress.org/plugins/topic/bbcode-buttons/
https://bbpress.org/plugins/topic/quicktags-4-bbpress/
You’ll find with bbPress that most of the things you want to do can be accomplished with plugins.
October 16, 2008 at 3:34 pm #52354In reply to: A phpBB to bbPress database converter
grenoli-dk
MemberI am having problems with the phpbb2bbpress converter (http://www.iteisa.com/phpbb2bbpress/).
When I run the file I just get this message. There isnt a sql-file to download or a file created on my server.
1: I downloaded the file from: http://www.iteisa.com/phpbb2bbpress/
2: I edited the lines I have written in bold.
Code:define(‘DB_PHPBB_USERNAME’, ‘[strong]databasename[/strong]’);
define(‘DB_PHPBB_PASSWORD’, ‘[b]databasepassword[/b]’);
define(‘DB_PHPBB_DATABASE’, ‘[b]databasename[/b]’);
define(‘DB_PHPBB_TABLEPREFIX’, ‘phpbb_’);define(‘DB_BBPRESS_HOSTNAME’, ‘localhost’);
define(‘DB_BBPRESS_USERNAME’, ‘[b]databasename[/b]’);
define(‘DB_BBPRESS_PASSWORD’, ‘[b]databasepassword[/b]’);
define(‘DB_BBPRESS_DATABASE’, ‘[b]databasename[/b]’);
define(‘DB_BBPRESS_TABLEPREFIX’, ‘bb_’);I only have one database on my server, so the databasename and password is the same on the phpbb and bbpress part
Code:define(‘EXPORT_TO_FILE’, true); // Should the converted DB be exported to a file ?
define(‘FILENAME’, ‘/tmp/phpbb_imported.sql’); // Which one ? (Ensure this path is writeable by the server)
define(‘AUTO_IMPORT_EXPORTED_DATA’, false); // Should the script automagically import the converted DB ?3: I created the folder tmp at the root and used chmod on it.
4: I uploaded the file to the root and tried to open it but I couldnt. So I removed the s in .phps and it worked. But i only got this message – but nothing really happened. I cant download a file, and there is nothing on my server. What am I doing wrong?
Q! wrote:phpBB to bbPress database converterThis script can convert a PhpBB 2.0.X (www.phpbb.com) forum database to bbPress “Bix” 0.73 (www.bbpress.org) format.
Developed by Jaime GÓMEZ OBREGÓN from ITEISA, based on the previous work of Bruno Torres and The phpBB Group.
The latest version of this file can be found on http://www.iteisa.com/phpbb2bbpress/.
Starting conversion
1.
Connected to the phpBB database host
2.
Selected the phpBB database
3.
Exporting forums…
4.
Exporting users…
5.
Exporting user metadata…
6.
Exporting topics…
7.
Exporting posts…
8.
Sending all your database e-mails to all major world-wide spam sending mafias…
‘strong’dsfgds’strong’
October 16, 2008 at 5:53 am #68083In reply to: Deleting ‘Allowed Markup’ info below posting field
chrishajer
ParticipantNo.
Kakumei is a theme (WordPress terminology) or a template (bbPress terminology) and controls the display of the content on your site. Any modifications you make to your site should be done in these template files, never in the core. Changing core files makes it hard to upgrade to newer releases: you lose your changes with every upgrade. So, if you make the changes in a template file, you can maintain them between releases.
Also, by default, the stock kakumei theme is used and it’s in the bb-templates directory. I recommend creating a new directory called my-templates (if it’s not there already) at the same level as bb-templates. So, in a directory listing, they’d be at the same level. Then, inside there, create a directory called mytheme or some other name that is descriptive for your forum. This directory name does not matter. (The
my-templatesone DOES matter.)Now that you have a my-templates directory, and inside that a new directory with a name you choose, copy everything from inside the bb-templates/kakumei/ directory to this new directory you created. Then, open up style.css and change the header to give this new template a unique name on line two. You will see this there:
Theme Name: KakumeiChange that to “Theme Name: My Cool New Theme” or whatever you want. Then refresh your admin panel, and you will see a new theme. You can change the rest of the lines in that header as well, to things that are meaningful to you. Be sure not to modify the text before the colon, just change the text after, to your values.
Now, modify the php and css files in this directory to change the look of your forum. You can switch back and forth between themes here. If you break something, just choose the default theme until you fix the one you were working on.
October 15, 2008 at 10:20 pm #68081In reply to: Deleting ‘Allowed Markup’ info below posting field
chrishajer
ParticipantIf you just want to delete the display of the information below the post form, don’t remove that from a core file. What you want to do does not require any modification of core files. Stay out of there.
You want to be in a template folder, by default bb-templates/kakumei/ but if you created a custom template, you may have a my-templates/yourtemplatename/. In that folder, there should be a file post-form.php and edit-form.php. In the 0.9.0.2 version, you want to look at
./edit-form.php line 19
/post-form.php line 31
Those lines contains the code to display “Allowed markup” below the post form. Remove that line completely and the text will no longer appear under your post form. Remove it in edit-form.php as well, and it won’t appear below that form either.
If you don’t have those files in your template, or those lines in your template files, then I don’t know what to say. That’s where the text comes from in a stock installation.
October 15, 2008 at 7:59 pm #68080In reply to: Deleting ‘Allowed Markup’ info below posting field
beernews
MemberGot around to trying this in version 0.9.0.2 / template: bbOrg
I didnt see those files you mentioned but searched a bunch of files and all I found was this strip of code in the includes/template-functions.php file:
function allowed_markup( $args = '' ) {
echo apply_filters( 'allowed_markup', get_allowed_markup( $args ) );
}
// format=list or array( 'format' => 'list' )
function get_allowed_markup( $args = '' ) {
$args = wp_parse_args( $args, array('format' => 'flat') );
extract($args, EXTR_SKIP);
$tags = bb_allowed_tags();
unset($tags['pre'], $tags['br']);
$tags = array_keys($tags);
switch ( $format ) :
case 'array' :
$r = $tags;
break;
case 'list' :
$r = "<ul class='allowed-markup'>nt<li>";
$r .= join("</li>nt<li>", $tags);
$r .= "</li>n</ul>n";
break;
default :
$r = join(' ', $tags);
break;
endswitch;
return apply_filters( 'get_allowed_markup', $r, $format );
}Would that get rid of the markup stuff underneath the posting area WITHOUT disrupting my BB Code Buttons functionality?
Thanks!
October 15, 2008 at 7:33 pm #55248In reply to: Check if a user is logged in?
chrishajer
ParticipantThe code above handles both cases, you’re logged in or you’re logged out. There is no in between. If one is true, the other is false.
<?php
if ( bb_is_user_logged_in() ) {
echo "No ads for you!n";
}
else {
echo "Here is an ad, buy now!n";
}
?>You could also just check to see if they’re not logged in like this:
<?php
if ( !bb_is_user_logged_in() ) {
echo "Here is an ad, buy now!n";
}
?>The exclamation in front of the function says “if this is NOT true, then the if statement is true; continue.)
October 15, 2008 at 6:51 am #60774In reply to: PHPBB3 Converstion
_ck_
Participantbbxf if the work in progress – it’s in it’s infancy however and you’ll have to look at previous work by others on the phpbb2 convertor. There is no 1 minute way, it’s going to take some time and effort.
http://code.google.com/p/web-forums-standard/
You are much better off following this tag:
October 15, 2008 at 1:44 am #4147Topic: Delete User and All User’s Posts
in forum Troubleshootingcitizenkeith
ParticipantI have a user that has requested I delete his account and all his posts. I have agreed to do this, but have no idea how to do it. Help is appreciated.
October 14, 2008 at 4:42 pm #68314Radium
MemberWell, the issue has not been resolved and it is a problem with Alpha 2. For now I myself am going to stick with Alpha 2 until an update (or plugin for wordpress as the keymaster mentioned in the linked topic above) is released. This problem would probably require some code modification, but I don’t have time to carouse the php at the moment. At least they forewarned us by calling it alpha
October 14, 2008 at 3:07 pm #68350In reply to: WordPress “logged in” cookie key ?
chrishajer
ParticipantDoes that mean you resolved it or you still need help? That logged in cookie key can be found in your wp-config.php, line 15:
define('LOGGED_IN_KEY',October 14, 2008 at 1:58 am #68159In reply to: Second Page Gone!
chrishajer
ParticipantInterestingly, I just checked the forum again, and it was inaccessible. So I tried the main website, and it came up. Then I tried the forum again, and it came up (so, it appears that the forum was down about 10 minutes this time.)
But I got this error on the forum page for:
http://harrismarine.co.nz/bbpress/topic.php?id=63
Fatal error: Call to undefined function: avatarupload_display() in /mnt/local/home/harrismarine/harrismarine.co.nz/bbpress/bb-templates/kakumei/post.php on line 7There were supposed to be 6 posts to that thread I think, but only the first one comes up, with this error, then there are no more replies.
Then, I refreshed the same page, and I got this error:
Fatal error: Call to undefined function: show_view_count() in /mnt/local/home/harrismarine/harrismarine.co.nz/bbpress/bb-templates/kakumei/topic.php on line 9That error kept coming up over and over when I refreshed the page.
It seems to me that right now you’re disabling plugins, but the call to the plugin function is still in the template, which is causing these errors. That points to a totally different problem, not the one that was causing the 503 before. This is something new and only because I think you disabled some plugins.
October 13, 2008 at 10:40 am #64336In reply to: bb_mail for user registration
myu
Memberhow silly I was…. trying to encode the whole header array….
here’s the working code, just in case somebody else is too tired to work it out …
(from around line542 down)
if ($from)
//$headers[] = 'From: "' . bb_get_option('name') . '" <' . $from . '>'; //orig
//
edit
$headers[] = 'From: "' . mb_encode_mimeheader(bb_get_option('name'), 'utf-8') . '" <' . $from . '>';
//
end edit
}
$headers = trim(join(defined('BB_MAIL_EOL') ? BB_MAIL_EOL : "n", $headers));
//
edit --added
$subject = mb_encode_mimeheader($subject, 'utf-8', 'B', defined('BB_MAIL_EOL') ? BB_MAIL_EOL : "n");
//
end edit
return @mail($to, $subject, $message, $headers);October 13, 2008 at 10:01 am #68305In reply to: 1.0 alpha 2: permalink none cannot be set back
nekita
MemberI think that’s just a glitch in the code because the permalinks remain in the “None” type (when saved as such) even so the dropdown in the general section of the admin menu will switch back to “Name based”.
For now, just make sure to reselect “None” when saving any other changes to General Settings I guess.
October 13, 2008 at 8:28 am #68304In reply to: 1.0 alpha 2: permalink none cannot be set back
Bharat Karavadra
ParticipantThanks for your help anyway Epiphone, it’s much appreciated.
Let’s see what the bbPress team come back with.
Thank you again
October 13, 2008 at 8:26 am #68309Bharat Karavadra
ParticipantYes…
I’ve mapped the roles.
I’ve set the wordpress and blog addresses which are the same.
I’ve put in “auth” cookie salt.
I have NOT put in “secure auth” as my WordPress admin options page did not have one
I have put in “logged in” cookie salt.
I’ve copied the foolowing to my wp-config.pgp file
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
and added the “Manual bbPress config file settings” to the bb-config.php file, however in this section it says “Afterwards, the settings in this form will reflect the hard coded values, but you will not be able to edit them here.”
What is hard coded where? I didn’t see any difference to this page after adding these speedup settings to the bb-config.php file.
October 13, 2008 at 8:10 am #68301In reply to: 1.0 alpha 2: permalink none cannot be set back
epiphone
MemberI think on the admin panel (bbPress) there’s a link in the description of the permalinks settings part, that when you click it will display the .htaccess code thats meant to be in your .htaccess.
Now I don’t quite know why your having problems but I have also come across problems with something called multi views.
Sometimes permalinks won’t work because of multiviews not being ables. Try adding this to the very top of your .htaccess:
Options +MultiViews
-
AuthorSearch Results