Search Results for 'code'
-
AuthorSearch Results
-
February 18, 2008 at 10:30 pm #63024
In reply to: what did I do now? Login form
chrishajer
ParticipantI guess you’re working on it now because there are syntax errors and no site visible.
Hopefully you’re working with your own template, not the default one. If that’s the case, just use the default template until you figure out what change caused the problem.
If you are working on the default template, then I would just install a new copy of it and start over with your modifications, this time in a template of your own name.
The create your own template, create a
my-templatesfolder at the same level asbb-templates, then in there create a folder that will be for your template (call it dogs or something.) Then copy over all the files from thekakumeitemplate into this newdogfolder, and then open the style.css file in this folder and make the appropriate changes there to give this theme a new name. Then, select it in your admin panel. Right now, it will look just like the stock theme, but you can make changes here instead of in the stock theme, and if something goes wrong, you can just select the stock theme and fix the problems in the new theme.February 18, 2008 at 7:50 pm #2915Topic: what did I do now? Login form
in forum Troubleshootingdeesdogcare
MemberOK ~~~ This is one of the many issues I have going on because I don’t understand php. I THINK it happened when I was trying to align my blog name to the right and the rest of my page to the left, but I’m not sure ~~ I’ve also done a lot of copying and pasting of code snippets, so I may have done it then.
My login form one the header is leading from right to left instead of left to right as you can see on this page ( http://deesdogcare.com/DogBlog/dogdays/topic.php?id=3 ). It’s definitely a global setting because it’s that way on every page.
Any bright ideas?
February 18, 2008 at 7:36 pm #63012In reply to: hide subforums on main page
deesdogcare
MemberI’m not surprised . . . I know so little about php that trying to use code snippets and paste them into my pages, the deleting them if it didn’t work is creating havoc for me. The code you left in the paste bin fixed my problem!

This is whyI made the offer I did last night ~~~ I feel bad always having to have you do more than you would have to for someone who is well-versed in the language and design of the forums ~~~ and there are a lot of issues that I don’t know how to resolve. If I post them all, I’m going to bust the boards! LOL
Thanks for the code, _ck_!!!! Now my subforums are showing when I click the main forum from my front page

D
February 18, 2008 at 7:10 pm #63011In reply to: hide subforums on main page
_ck_
ParticipantSomehow you removed the sub-forum code from your theme.
Here’s a guess at the correctly inserted code:
February 18, 2008 at 5:51 pm #63010In reply to: hide subforums on main page
deesdogcare
MemberI don’t know whether I did it or if it was in the template I modified, but posting a topic in the main Dog Breed Forum didn’t correct the issue. I posted my forum.php code in the pastebin:
Thanks,_ck_ ~ I only hope that I understand php and bbpress forums as well as you do one day!
D
February 18, 2008 at 3:33 pm #54862In reply to: wordpress integrate problem when enable BBLANG
helpy
ParticipantQuoto from simpler integration with wordpress:
Do so by defining WP_BB as true in either config.php or wp-config.php. Also, WordPress will have to be loaded first.
I use WP and BB with german language! If I include wp-blog-header.php in the configuration file (config.php) of bbpress, the following error occurs:
Fatal error: Cannot redeclare class streamreader in /homepages/.../www/forum/bb-includes/streams.php on line 26If I uncomment the lines 122 + 123 in bb-settings.php:
// include_once(BBPATH . BBINC . ‘streams.php’);
// include_once(BBPATH . BBINC . ‘gettext.php’);
No error occurs … but the forum is in english!
I use WP 2.3.3 and bbpress 0.8.3.1 … WP is installed in web root and bbpress in the subfolder “forum”.
Is there a documented way to fix this … or a workaround?
cu, helpy
February 18, 2008 at 3:19 pm #63008In reply to: hide subforums on main page
deesdogcare
MemberOH ~ and I had actually tried a copy & paste of the code that you changed through finding it in another thread, but there was some kind of error in his syntax, cause it just gave me error messages.
February 18, 2008 at 3:14 pm #63007In reply to: hide subforums on main page
deesdogcare
MemberThat did exactly what I was wanting on the front page, but now you can’t find the subforums at all. I had thought that when I clicked the parent forum it would automatically show the subforums ~ either on the front page or on a new page. Instead, it just goes to an “Add a topic” page. Any ideas?
Please forgive my bad spacing at times. When I’m in firefox, this doesn’t happen because of auto-spellcheck, but in IE, I miss fixing some of it. I messed up the spacebar on this keyboard and it doesn’t alway space like it should

Thanks _ck_!
D
February 18, 2008 at 12:29 pm #63006In reply to: hide subforums on main page
_ck_
ParticipantIf you are asking what I think you are asking, I think I have made the subtle change you need. The sub-forums will no longer be shown on the front-page.
Line 53 is really all that’s needed.
if (!$forum->forum_parent) {This is untested however.
Topics from within the sub-forums will still showup in the latest discussions however.
February 17, 2008 at 11:04 pm #2912Topic: hide subforums on main page
in forum Installationdeesdogcare
MemberI have tried a variety of codes that have been offered up in these forums in an attempt to hide subforums on my main page because one of my parent forums is dog breeds~~~ can you imagine how HUGE my front page will beonce I add in all of my subforums?
All of my attempts to utilize code offered in the forums has failed. One piece looked likeit MIGHT do what I wanted, but I could never figure out where to paste it!
Please forgive me for my lack of knowledge ~~~ I am learning as I go.
I have pasted my code for my front-page.php into the paste bin. If you could look at it and give me a clue, I’d appreciate it!!!
Thanks!
D
February 17, 2008 at 10:03 pm #63004In reply to: New bbPress Theme: Black-Letterhead
_ck_
ParticipantAdded to the theme switcher here:
http://bbshowcase.org/forums/?bbtheme=blackletterhead
Looks suitable for Halloween
February 17, 2008 at 1:13 pm #60242In reply to: Statistics module for “My Views” in testing
thierryyyyyyy
ParticipantCan we have this page without installing the “big plugin” My_views ?
Perhaps I can download this “module” and look at the code, and make a small plugin. Or just make a link that shows this page.
I forgot to say : wow ! nice plugin

exactly what I want to see.
February 16, 2008 at 10:13 am #55042_ck_
Participanthttp://pravin.insanitybegins.com/articles/running-bbpress-on-sourceforge
I also believe there is code on the WordPress side that uses 3rd party mailers like gmail or yahoo to send passwords. This could be easily adapted to bbPress as a plugin.
February 16, 2008 at 4:55 am #62974In reply to: translate this piece of code, please?
t3ch33
Membernm. i just reinstalled it.
February 16, 2008 at 4:25 am #62973In reply to: translate this piece of code, please?
t3ch33
Memberanyone? please?
February 16, 2008 at 4:24 am #62930In reply to: 404 Error ~ New installation.
deesdogcare
MemberOK ~ mark it as resolved ~~~ I’m just an idiot. I didn’t notice (even as many times as I’ve seen copies of the mod line) that there were NO QUOTES when you mark it FALSE. Saw that tip in another thread just a few minutes ago and tried it . … .
I don’t get 404 error pages anymore!
I can edit my users, read threads, EVERYTHING!

Sorry I am so slow at this!
Thanks for the help!
D
February 15, 2008 at 7:20 pm #57816In reply to: Theme: Misty for bbPress
_ck_
ParticipantOmegacool has a wp.com site too, there are download links there as well:
http://mundoarroba.wordpress.com/2007/05/24/theme-misty-para-bbpress/
(ps. it’s bbShowcase.org I decided bbpressshowcase was just too long and too many sss’s
February 15, 2008 at 11:17 am #62926In reply to: 404 Error ~ New installation.
_ck_
ParticipantIf you cannot get into admin panel it’s one of two reasons:
1. cookie hashes & paths don’t match
2. you do not have the proper role set under bbpress as administrator
The 404’s may be caused by turning on slugs without multiviews or proper mod_rewrite rules. If you have slugs turned on, turn them off temporarily (in your config.php) until you solve the other problem. ie.
$bb->mod_rewrite = false;I am betting on the role not being set in bbPress that’s preventing you from getting to the admin panel. This can be inspected/fixed via phpmyadmin. I’ve been meaning to write an auto-load plugin to fix this issue automagically.
UPDATE:
I’ve whipped up a little plugin to restore proper admin access roles for both bbPress and WordPress without having to tinker in phpmyadmin:
http://bbshowcase.org/plugins/fix_admin_access.zip
Copy this to your plugins directory in bbPress OR WordPress (not both). Then access bbPress or WordPress (whichever you used). Then test you can access admin panel. Then DELETE the plugin off your server. There is no reason to leave it there.
(you MUST leave the leading underscore “_” on the plugin name which makes it auto-load without having to activate it first. I have not tested it from the WP side but in theory should be fine.)
February 15, 2008 at 5:41 am #2900Topic: translate this piece of code, please?
in forum Pluginst3ch33
MemberThis code is supposed to go in bb-admin/install.php for the plugin that allows users to post anonymously. My bbpress was already active when I discovered the plugin, so, of course, i didn’t want to run the install file again. So, can you translate this for me so that I can possibly make the changes manually? Thanks. The code is as follows:
bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );February 15, 2008 at 5:36 am #62963In reply to: where do you place plugins in bbpress?
t3ch33
Memberhans3, thank you. that worked.
February 15, 2008 at 3:39 am #55749In reply to: Anonymous posting
t3ch33
MemberThis is almost working for me. My bbpress was already active, so i didn’t want to run the modified install file. Here is the code that’s in the bb-admin/install.php file:
// Anonymous User
$now = bb_current_time('mysql');
$bbdb->query("INSERT INTO $bbdb->users (user_login, user_registered)
VALUES ('anonymous', '$now')");
$bbdb->query("UPDATE $bbdb->users SET ID = '0' WHERE user_login = 'anonymous'");
bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );Since my bbpress is already active, I have manually updated my users table by following the guideline in the above code. But, I have no idea what the last line of code means:
bb_update_usermeta( '0', $bb_table_prefix . 'capabilities', array('anonymous' => true) );Can you modify it so that I can manually update the db or do whatever needs to be done to make it work? Thanks.
February 14, 2008 at 8:07 pm #50219In reply to: Change Post Order Question
3ring
MemberHey Mods;
(Tried to install plugin, got fatal error, so tried code file edit…)
I just want one post to have reverse order, so I tried:
if ( !$bb_db_override ) :
if ($topicid == '54') {
$posts = get_thread( $topic_id, $page, true );
} else {
$posts = get_thread( $topic_id, $page );
}
$forum = get_forum ( $topic->forum_id );
$tags = bb_get_topic_tags ( $topic_id );
But it doesn’t seem to recognize the topic id – it displays all posts normally? Am I assuming wrongly that the topic_id is the number after “/topic/##” in the thread url?
Can you see anything I’m doing wrong? How do I isolate a single post to be reverse order?
Thanks!
February 14, 2008 at 7:50 pm #62955t3ch33
Memberlooks like i had a bad install. sorry for the panic.
February 14, 2008 at 7:33 pm #62880In reply to: Conditional tag for a particular user
rosebud
MemberI figured it out. Thanks anyhow.
<php if ( $user_id == 1 ) : // User number one ?>February 14, 2008 at 2:39 pm #62952chrishajer
ParticipantbbPress does not create the .htaccess file. You have to manually create it with a text editor either on the server, on locally, then upload it. The file can contain one of two things:
1. Options +MultiViews
or
2. visit http://website.com/dir/bb-admin/rewrite-rules.php
That script will generate the rules you need to put in your .htaccess file. Use this if the first option does not work.
If you cannot get permalinks working, just change the mod_rewrite line to false in your config, so you can at least use your forum until you get permalinks working.
$bb->mod_rewrite = false; -
AuthorSearch Results