Search Results for 'code'
-
AuthorSearch Results
-
May 18, 2011 at 7:01 am #105699
In reply to: BB Plugin – Link and theme issues
John James Jacoby
Keymaster1. Change the forums base to something else. I am running it perfectly fine over at testbp.org by changing the base to ‘discussion’
2. The reason for the double ‘forum’ is because your root slug is ‘forum’ and the forum slug is ‘forum’ and you’re choosing to include the root slug.
3. Don’t remove the forum slug.

Widgets should work anywhere you have a widgetable area. Since your theme is mostly custom, you’ll want to research how widgets work, insert your sidebar, etc…
May 18, 2011 at 3:46 am #100598In reply to: Plugin css and database
John James Jacoby
KeymasterDon’t use “add_theme_support()” unless your theme actually supports it.

add_theme_support() doesn’t automatically add bbPress support to your theme, but the opposite – it tells WordPress and bbPress that your theme already supports bbPress. If you don’t have a /bbpress folder in your theme full of bbPress template files, then your theme does not support bbPress.
There isn’t a core updater yet, but there will be soon. These questions are all answered numerous times in the sticky topic at the front of these forums.
May 18, 2011 at 3:46 am #105698In reply to: Plugin css and database
John James Jacoby
KeymasterDon’t use “add_theme_support()” unless your theme actually supports it.

add_theme_support() doesn’t automatically add bbPress support to your theme, but the opposite – it tells WordPress and bbPress that your theme already supports bbPress. If you don’t have a /bbpress folder in your theme full of bbPress template files, then your theme does not support bbPress.
There isn’t a core updater yet, but there will be soon. These questions are all answered numerous times in the sticky topic at the front of these forums.
May 18, 2011 at 2:46 am #38501Topic: BB Plugin – Link and theme issues
in forum TroubleshootingRick Lewis
MemberI am posting here some info from the plug in topic per the request.
First, you can not have group forums activated and use this at the same time. Atleast I couldn’t. The base for the group forums is FORUMS. Note the S so if you try and use Forums for your page and/or forum base you are not going to get the BBP forum.
I had to turn the global group forum directory off and use forum as the base in order to get the links pasted the forum index page to work. Otherwise all links redirected to my homepage.
Currently though I have this structure —
index page – using shortcode
http://crosseyedgaming.com/forum/
the other links have a double forum/forum
http://crosseyedgaming.com/forum/forum/welcome-committee/
If I remove the forum slug it changes those links to
http://crosseyedgaming.com/forum//welcome-committee/
Outside that things seem to be working ok. Probably need to clean up the look a little.
How do I get the widgets working on these pages so I can list recent posts and so on?
One last question, is using the alternated page template and theme support a better option?
I appreciate the help.
May 18, 2011 at 12:21 am #95376In reply to: bbPress 2.0 – Updates
John James Jacoby
Keymaster@Rick – Can you create a new topic with these questions please? They are starting to pertain specifically to helping you with your site, and not with bbPress. Thanks
May 17, 2011 at 11:24 pm #95375In reply to: bbPress 2.0 – Updates
Rick Lewis
MemberI just wanted to give some feedback on what I have experienced while trying to figure out the issues with links not working.
first, you can not have group forums activated and use this at the same time. Atleast I couldn’t. The base for the group forums is FORUMS. Note the S so if you try and use Forums for your page and/or forum base you are not going to get the BBP forum.
I had to turn the global group forum directory off and use forum as the base in order to get the links pasted the forum index page to work. Otherwise all links redirected to my homepage.
Currently though I have this structure —
index page – using shortcode
http://crosseyedgaming.com/forum/
the other links have a double forum/forum
http://crosseyedgaming.com/forum/forum/welcome-committee/
If I remove the forum slug it changes those links to
http://crosseyedgaming.com/forum//welcome-committee/
Outside that things seem to be working ok. Probably need to clean up the look a little.
How do I get the widgets working on these pages so I can list recent posts and so on?
One last question, is using the alternated page template and theme support a better option?
I appreciate the help.
May 17, 2011 at 8:59 pm #98170In reply to: Just a Community
Snat
MemberMany thanks, it took a lot of time to get the layout right. A friend of mine helped with the physical design work, I just coded the layout.
Ps, your avatar reminds me of Allie’s drawings from somewhere I can’t remember nowadays sadly.
May 17, 2011 at 8:59 pm #103270In reply to: Just a Community
Snat
MemberMany thanks, it took a lot of time to get the layout right. A friend of mine helped with the physical design work, I just coded the layout.
Ps, your avatar reminds me of Allie’s drawings from somewhere I can’t remember nowadays sadly.
May 17, 2011 at 3:43 pm #95374In reply to: bbPress 2.0 – Updates
Mr.bishop
Member@jjj – I must say I’m incredibly impressed with bbPress, and what you have here. I eagerly want to use the bbPress / BuddyPress plugin combo in conjunction with a few wordpress sites that I work on.
Do you have any idea what a rough timeframe on launching the plugin would be?
Also, what could I do to help move the process along? I don’t code myself but I do work with guys that do. We figure its a waste of time to get a bbPress standalone working only to have the plugin released soon after.
May 17, 2011 at 6:48 am #95370In reply to: bbPress 2.0 – Updates
Daily Anarchist
MemberThe header that I am using is a modified version of the default theme header file that came with wordpress. It should be in the same location and called by the same name as the default header file. I am sort of a noob at code but I thought because my header file appears at on the index/home page when the website loads that things were working. By “appropriate call to” do you mean the “get_header” php command?
Secondly, the entire theme is located in the wp-content folder within a default theme sub folder. That is why there is no reference. Again, I am probably really confused by what you mean so it is probably something I am doing wrong.
The entire site may be a hack job, because it is my first, but up to this point everything has worked flawlessly, including all of my plugins.
I suspect there is a simple solution to preventing the WP css from overriding bbP css but I haven’t figured it out yet.
May 17, 2011 at 5:42 am #95369In reply to: bbPress 2.0 – Updates
John James Jacoby
Keymaster@Daily Anarchist – Your theme doesn’t use a conventional WordPress header, and it’s missing the appropriate call to
wp_head();
which is how WordPress themes load dynamic content in the
<head>
of the page.
There is also no reference anywhere in your source to a wp-content folder, which is where your theme and any related plugins should be loading from. With something that’s this outside of the norm, you’re going to run into lots of incompatibilities with many plugins as you go. I’m actually pretty happy that bbPress looks as good as it does considering there’s no CSS applied to it at all.

As a general note going forward to everyone, if you have site specific questions please post up new topics and tag them ‘plugin’ so that we keep this sticky focused on the bbPress plugin, and not supporting your sites. Thanks
May 17, 2011 at 12:52 am #95357In reply to: bbPress 2.0 – Updates
Daily Anarchist
MemberIt’s a fresh install with the 3167 changeset. I’m not quite sure what you mean by “check out the child theme functions.php to grab the code.”
I’m kind of a perpetual noob so bare with me.

Also, if I do already have the function.php code installed, could it be that my site’s css is overpowering the plugin’s css?
May 17, 2011 at 12:45 am #95356In reply to: bbPress 2.0 – Updates
christopher jon
MemberDA,
Looks like your missing the CSS. Check out the child theme functions.php to grab the code.
bbpress uses gravatars for forum icons. No additional plugin is needed.
May 16, 2011 at 11:17 pm #100556In reply to: New bbP plugin install, users cannot create topics
John James Jacoby
KeymasterI’ll do my best to keep things error free going forward.

Feeds are coming soon too, so be on the look-out.
May 16, 2011 at 11:17 pm #105656In reply to: New bbP plugin install, users cannot create topics
John James Jacoby
KeymasterI’ll do my best to keep things error free going forward.

Feeds are coming soon too, so be on the look-out.
May 16, 2011 at 9:51 pm #100555In reply to: New bbP plugin install, users cannot create topics
tooltrainer
MemberYep working great, no errors, no issues, it “just works”.

Was able to open my site’s doors to my first members today and the forum is seeing activity. No turning back now! LOL
Thanks again J3

Jonathan
May 16, 2011 at 9:51 pm #105655In reply to: New bbP plugin install, users cannot create topics
tooltrainer
MemberYep working great, no errors, no issues, it “just works”.

Was able to open my site’s doors to my first members today and the forum is seeing activity. No turning back now! LOL
Thanks again J3

Jonathan
May 16, 2011 at 6:46 pm #100589In reply to: X-Forwarded-For to show as IP address
zaerl
ParticipantLocate the function
bb_insert_postin file functions.bb-posts.php, then find the line:$ip_address = $_SERVER['REMOTE_ADDR'];The real (*cough*) IP of the user can be retrieved with this function:
function get_real_ip()
{
$ip = '';
$u = 'unknown';
if(($ip = getenv('HTTP_CLIENT_IP')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('REMOTE_ADDR')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('HTTP_X_FORWARDED_FOR')) && strcasecmp($ip, $u)) {}
elseif(isset($_SERVER['REMOTE_ADDR']) && ($ip = $_SERVER['REMOTE_ADDR']) && strcasecmp($ip, $u)) {}
else return $u;
return $ip;
}May 16, 2011 at 6:46 pm #105689In reply to: X-Forwarded-For to show as IP address
zaerl
ParticipantLocate the function
bb_insert_postin file functions.bb-posts.php, then find the line:$ip_address = $_SERVER['REMOTE_ADDR'];The real (*cough*) IP of the user can be retrieved with this function:
function get_real_ip()
{
$ip = '';
$u = 'unknown';
if(($ip = getenv('HTTP_CLIENT_IP')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('REMOTE_ADDR')) && strcasecmp($ip, $u)) {}
elseif(($ip = getenv('HTTP_X_FORWARDED_FOR')) && strcasecmp($ip, $u)) {}
elseif(isset($_SERVER['REMOTE_ADDR']) && ($ip = $_SERVER['REMOTE_ADDR']) && strcasecmp($ip, $u)) {}
else return $u;
return $ip;
}May 16, 2011 at 2:43 pm #95353In reply to: bbPress 2.0 – Updates
Rick Lewis
MemberThe instructions r-a-y mentioned above worked.
I had at one point removed the Forum Base blug altogether. Putting it back as forum and creating a forum page using the shortcode created the page for the index.
Would like to know what other shortcode options there are??
thanks for the help. Good to have a forum index now to start building on.
May 16, 2011 at 2:35 pm #95352In reply to: bbPress 2.0 – Updates
Rick Lewis
Member” Don’t move anything, don’t add anything, and use shortcodes and adjust your CSS as needed. “
This is where I am at right now.
I thought I would try [bbp-forum-index]. I created a page Forum and used that code. I still got the same page as I did all other ways. Goes directly to one of the forums and then list the other forums below it. Says Blog archive across the top.
Now when I create /forums (note the s) that page goes to my home page and not a page at all.
I did a re-save of the permalinks and so on but still not seeing a forum homepage of any kind.
I can only guess that I have something crossed up somewhere beings others have this working.
EDITING __ I did not see the above posts prior to posting this. Going to review and make a change on my site and see how it goes. Thank you for the help.
May 16, 2011 at 8:49 am #100371In reply to: Custom topic Fields
whitehats
MemberNo one has tried anything like that before?
May 16, 2011 at 8:49 am #105471In reply to: Custom topic Fields
whitehats
MemberNo one has tried anything like that before?
May 16, 2011 at 8:07 am #100553In reply to: New bbP plugin install, users cannot create topics
tooltrainer
MemberRockstar!
Uploading new build now…Jonathan
May 16, 2011 at 8:07 am #105653In reply to: New bbP plugin install, users cannot create topics
tooltrainer
MemberRockstar!
Uploading new build now…Jonathan
-
AuthorSearch Results