Search Results for 'code'
-
AuthorSearch Results
-
February 21, 2008 at 2:09 pm #62463
In reply to: Apostrophe not showing by itself but with before
hitec7
MemberI have exactly the same problem the wp plugin “bbPress Integration” causing it somehow when i disable it wp editing works as normal when i enable it i get slashes “” everywhere when i edit post / comment / theme from wp administration all plugins / bbpress / wp are the latests versions…
also my server php.ini config are:
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
can anyone help?
February 21, 2008 at 1:11 pm #63101In reply to: Whats my best course of action?
Alex
MemberAlso, when I install any plugin I get this and a blank page:
Warning: Invalid argument supplied for foreach() in /path/to/forum/bb-settings.php on line 294
Warning: Invalid argument supplied for foreach() in /path/to/forum/bb-admin/plugins.php on line 7February 21, 2008 at 1:05 pm #63100In reply to: Whats my best course of action?
Alex
MemberWell I used the current trunk version of WP, and 1075 of BB, installation went fine (nice new installer helped integration along nicely). Thanks for the help!
But, I am getting an error at the top of each page in bbPress:
Warning: Invalid argument supplied for foreach() in /home/path/to/forum/bb-settings.php on line 294(Path to bb-settings.php removed)
Is this a known issue? What could I do to resolve it?
February 20, 2008 at 8:02 pm #57726In reply to: One profile page to rule them all
hans3
MemberThat may have come across wrong…. The posts don’t matter because I am using your plugin, and that feature is already working for me.
However I feel two profile pages is a bit confusing for users. Do you think a link in the wp profile page would suffice since its rather difficult to have only one profile page?
February 20, 2008 at 6:06 pm #63028_ck_
ParticipantThe throttle is right in each user’s profile page.
It’s based on username.
If you want to tinker with increasing it, try this plugin I whipped up to avoid core hacks:
function post_regulation($text) {
global $bb_current_user;
$wait=45; // seconds between posts
if (isset($bb_current_user->data->last_posted) && time() < ($bb_current_user->data->last_posted + $wait) && !bb_current_user_can('throttle'))
bb_die(__('Slow down; you are posting too often.'));
if (strlen(trim($text))<10)
bb_die(__('Your post is too short, please say something meaningful!'));
if (strlen($text)>2500)
bb_die(__('Your post is too long!'));
return $text;
}
add_filter('pre_post', 'post_regulation');In theory it would be possible to hack that further to regulate based on IP by doing a mysql query for the last post time that has the current user’s IP.
February 20, 2008 at 3:29 pm #63039In reply to: I’m ready to give up
deesdogcare
MemberYes, thanks. vbulletin is actually who I found. Their base forums and blog with a month of phone support was what I quoted above ~~~ the blog is an add-on. However, I found that one of their members created a hack that SEEMS TO BE a ‘click to install’ type thing andwill integrate with wordpress ~~~ so I may only have to rework my forums template. Also, their base template has everything I want for now, except a blog. I never was trying to build any massive forum structure ~ just good working forums that people could upload their pics to and PM each other and that gave each user a title based on number of posts

I was just surprised, given that several people here don’tmind taking very small donations that no one wanted to make a couple of hundred to help. No issues though. I’ll do as you suggested and go buy the vBulletin.
February 19, 2008 at 7:00 pm #62788In reply to: auto-installer (completely automated) coming soon
kernow
MemberIf you make it too easy then everyone will have one, and what will happen then?

Before long it will be possible to talk to bbpress instead of type….
February 19, 2008 at 6:39 pm #2870Topic: auto-installer (completely automated) coming soon
in forum Installation_ck_
ParticipantI am beginning to test some code I have written to pre-configure a CPANEL based website to auto-install bbPress. Barring any extreme problems (or unforseen events in my life) I should have an early beta to test by the weekend.
It will only require a few simple inputs such as your username and password (same as you’d use on FTP or cpanel access) and from there it will do everything – create the database and tables, download bbPress, install it and take you to it’s configuration options.
It may be possible to eventually get it working with other types of hosts. I plan to investigate doing it on dreamhost and perhaps a couple of the other most popular hosts.
lenen
MemberLooks like a lot of trouble to fix in the future. I never had any problems with bbPress, but that’s probably because there aren’t a lot of users active
February 18, 2008 at 10:30 pm #63024In 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
-
AuthorSearch Results