Search Results for 'code'
-
AuthorSearch Results
-
August 1, 2009 at 5:35 pm #77571
chrishajer
ParticipantJust add it to the template file. To make it show up after the first post only, you need a counter to see which post you’re looping through. I did something like this:
<ol id="thread" class="list:post">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</li>
<?php if ($adcounter == 0) {
$adcounter++;
// <div id="adcode">paste ad code here</div>
} ?>
<?php endforeach; ?>
</ol>Basically just add the adcounter check and ad code right after the closing
<li>
right after the post_template. You’ll have to adjust the particulars for your installation, but this is the basic process.August 1, 2009 at 5:36 am #77493In reply to: All RSS Feeds Broken?
chrishajer
ParticipantI have a 1.0.1 installation that works fine, but this 1.0.2 installation does not seem to work.
One difference I noticed in the 1.0.1 installation. When you click on a topic feed, the feed <description> looks like this:
$site_title Topic: $topic_title
– the » is missing.With the 1.0.2 feed, it looks like this:
$site_title ยป Topic: $topic_title
It’s the » that is creating problems in the feed, at least with Firefox and IE8.
July 31, 2009 at 4:06 pm #77538In reply to: User roles
chrishajer
ParticipantStart by looking at
bb-includes/capabilities.php
. It defines all the roles. If you want to modify permissions, there are plugins for that depending on the version of bbPress you are using:1.0
https://bbpress.org/plugins/topic/role-manager/
0.9
Maybe a plugin was never written? (can’t find it right now)
July 31, 2009 at 2:15 pm #77490In reply to: All RSS Feeds Broken?
Ipstenu (Mika Epstein)
ModeratorRSS feeds work here and on other sites, so I’m going to guess it’s deep integration or …
XML Parsing Error: undefined entity
Location: http://canadianrugby.ca/forums/rss/topic/canadian-players-overseas
Line Number 10, Column 38: <description>Canadian Rugby Forums » Topic: Canadian Players Overseas</description>
^Might that be related to https://bbpress.org/forums/topic/fix-to-rss-xml-parsing-error#post-8864
July 31, 2009 at 4:14 am #77472In reply to: I've found exactly the theme i would like…
orizine
Memberyep, I’m interresting by buddypress.org forum theme cause it is full tableless, and really fine
exactly what i’m looking for…
I’ve done one but i’m really not a good devellopper, and code is really not perfect…
July 30, 2009 at 8:31 pm #77466In reply to: Blank page in register.php when update
hpguru
MemberThank you, ck.
I update to 1.0.2. I use 13 plugin. 11 works fine, 2 no. I delete 2 and wait your update… Anonymous Posting and plugin, which add name field etc. to quest form. Download again, when you update, know that this may need more time to fix.
July 30, 2009 at 6:37 pm #77465In reply to: Blank page in register.php when update
_ck_
ParticipantIf you edited the kakumei files directly, simply rename that folder, ie.
kakumei
->my-kakumei
Then you can copy the original kakumei from the bbPress 0.9 zip.
July 30, 2009 at 5:37 pm #77456In reply to: Blank page in register.php when update
_ck_
ParticipantOne thing I see that changed in 0.9.0.5 is Sam put
exit;
after all the redirects.In my experience I have found some weird behavior where redirects don’t happen in some cases because the exit will happen before headers are sent for the page. It shouldn’t put it does in some PHP versions/apache configurations. Probably because of buffering.
So as an experiment, maybe try editing the core file
bb-login.php
(not the template)See this change:
Put a comment in front of that
exit;
bb_safe_redirect( $re );
// exit;and see if that makes it act any differently.
July 30, 2009 at 5:28 pm #77455In reply to: Blank page in register.php when update
_ck_
ParticipantIt’s possible I broke something in the new
bb_safe_redirect
however I have tested it working and I have not seen any other complaints (and there have been several registrations on my site).Actually I just noticed you said it doesn’t work with 0.9.0.5 which didn’t have my change.
Have you tried deactivating your plugins temporarily to see if any interfere?
Let’s look at what changed from 0.9.0.4 to 0.9.0.5
July 30, 2009 at 5:17 pm #77454In reply to: Blank page in register.php when update
hpguru
MemberPlease help!
July 30, 2009 at 2:31 pm #77433In reply to: Functions for generating a menu of WordPress pages
aprendedor
MemberHello chrishajer,
I am running WordPress 2.8.2 and BBPress 1.0. I have put it into a file called functions.php in the kakumei dir. because I am using the kakumei theme.
I noticed that the new functions file is address to wordpress mu. and I am not running wordpres mu. what should I do now. what code should I put in the header to call that functions to deliver the header. I know also that I neeed to change “wordpress_mu_primary_blog_id” to some that call the regular wordpress but what itis?
THANK U for sparing some time and help with me!
July 30, 2009 at 12:57 pm #77432In reply to: Functions for generating a menu of WordPress pages
chrishajer
ParticipantIf you are using 1.0, create a file called functions.php in your current theme directory, and put all that code into it.
If you’re using less than 1.0, you can create a plugin from that code. Just add a plugin header to the top of all that, like this:
<?php
/*
Plugin Name: WordPress pages for bbPress
*/
?>And put it into file called something like
wordpress-pages.php
and drop that into folder calledmy-plugins
at the same level asbb-plugins
. If the folder is not there, you can create it. After it’s in the folder, log into the admin, you should see it there, then activate it. And report back how it worked for you.Thanks
July 30, 2009 at 12:51 pm #70038In reply to: First pass at a fix for “deep” integration in trunk
chrishajer
ParticipantThat means you have the path to the file wrong and bb-config.php can’t find it. Try using the full
/home/jwrbloom/public_html/wpm/wp-load.php
path, from the root, not a relative path. Starting it with /wpm like that makes it SEEM like a full path.Or maybe you meant
../../wpm/wp-load.php
for the relative path (up two directories)?July 30, 2009 at 11:02 am #76167anandasama
Membernice to be able to help. Got any other question (like thread maker profile link) then I know the code for that too.
You should flag this topic as resolved.
July 30, 2009 at 5:39 am #77385In reply to: Best practices for adding a sidebar to bbPress
_ck_
ParticipantDoing it through
bb_get_template
simply fires an extra filter – but nothing else is aware of sidebars in bbPress yet so it’s pointless. Plus I wasn’t aware you could userequire
on a function. Thenbb_get_template
uses anotherinclude/require
so it’s massive overkill (or just wrong in the first place).July 30, 2009 at 4:51 am #76993chrishajer
ParticipantHow about the “Topics per page” plugin?
https://bbpress.org/plugins/topic/front-page-topics/
It lets you set the number of topics to be returned for many bbPress pages/views.
July 30, 2009 at 4:36 am #77384In reply to: Best practices for adding a sidebar to bbPress
Josh Leuze
MemberThanks for the info _ck_, glad to hear that I’m not way off track.
Yeah, I have been loading the sidebar after the content, but just above the footer include, rather than in the footer, so that I can use different sidebars easily.
I wouldn’t want to take credit for Ryan Imel’s work! Only linked to Theme Playground as an example, but you’re right, he did an awesome job on integrating the forums into the rest of his site.
Now that I scroll down and read the comments on his post a little closer, I see that Justin Tadlock mentioned another way to add a sidebar, but it looks to have the same end result as a regular include:
require_once( bb_get_template( 'sidebar.php' ) );
I’m not sure if I can match Ryan’s quality design, but I’m going to try to do a few fresh looking bbPress themes to share with the community.
July 30, 2009 at 4:36 am #77449In reply to: Where is #666 color of bbcrumb?!
chrishajer
Participant666 is also
rgb(102, 102, 102);
– it bites me every time I look for it. Find that 102, 102, 102 in style.css and you will see where to change it.There are 10 or 12 places where the CSS colors are in RGB notation like that. I wish it was either one way or the other (preferably 6 digit hex notation. That gets me sometimes too, looking for 666666 when it was coded as 666.)
July 30, 2009 at 1:46 am #31361Topic: bbPress 0.9.0.6 & 1.0.2 Simplified Chinese Translation
in forum InstallationDreamcolor
ParticipantbbPress 0.9.0.6 Simplified Chinese Translation.
You can download it with the URL below.
http://wpcn.googlecode.com/files/bbPress.0.9.0.6.Simp.Chinese.pack.only.v1-wpcng.zip
bbPress 1.0.2 Simplified Chinese Translation.
You can download it with the URL below.
http://wpcn.googlecode.com/files/bbPress.1.0.2.Simp.Chinese.pack.only.v1-wpcng.zip
There maybe still have some translation bugs. So please let me know and I will fix it.
You may use the bbPress Admin Fonts Beautifier plugin too…
http://bbpress.org/forums/topic/bbpress-admin-fonts-beautifier
July 29, 2009 at 11:44 pm #77422In reply to: Dashboard left bar menu not displaying in IE
woopstash
MemberThey forgot to put wrap it all in a div like they did all the other pages.
I think this works:
In bb-adminthemes.php:
add:
<div class="wrap">
on line 119 (above Manage Themes header)add:
</div>
on line 158 (after</table>
and</div>
)July 29, 2009 at 9:51 pm #77417In reply to: Dashboard left bar menu not displaying in IE
woopstash
MemberI’m having the exact same issue too, although I’m using bbpress 1.0.2. IE6 it’s missing, FF 3.x works.
From what I’ve gathered, its an issue with #bbAdminMenu negative margin in the bb-adminstyle.css file.
I can’t seem to figure anything out that fixes it (I can get it to show, but formatting is awful) and I really don’t want to have to dive into the actual markup.
Edit: Just found a solution/hack
Due to the IE6 double margin bug, you’ll need to do a little css hacking. In bb-adminstyle.css:
add:
_margin-left: -83px;
to ul#bbAdminMenu {…}add:
_margin-left: -25px;
to body.bb-menu-folded ul#bbAdminMenu{…}note the ‘_’ before the css. this is for IE6 to read it but no other browser as far as I know.
July 29, 2009 at 9:16 pm #77445In reply to: Markup buttons on post edit form
hpguru
MemberYes.
1. https://bbpress.org/plugins/topic/114 – bbCode Buttons Toolbar
2. https://bbpress.org/plugins/topic/93 – bbCode Lite
July 29, 2009 at 8:42 pm #31345Topic: Best practices for adding a sidebar to bbPress
in forum ThemesJosh Leuze
MemberI’m working on my first bbPress theme and I am going to have two columns on most pages. I will likely vary the content of this second column depend on which page you are on.
I’d like to use a separate sidebar just like WordPress so that I can create a few different files that I could load.
These sidebars need not draw any content from WordPress, I don’t need deep integration or anything. I’m just wondering what would be the best way to go about doing this.
Theme Playground’s bbPress forum has it’s sidebar added to the footer.php file, which sounds like a good idea, but seems a bit impractical for multiple sidebars.
I also found this simple sidebar plugin in the forums which adds the “bb_get_sidebar()” function to bbPress. A neat idea, but I hate to frivolously add extra plugins, especially when it is essential for the theme to work properly.
So what I have done in my theme is to simply use an include like this:
<?php include ('sidebar.php'); ?>
This has been working fine for me and I don’t see any reason not to do it like this.
But does anyone else have a different method that has some advantage? Or is there plans for, or already an official function like “bb_get_sidebar()” that I am unaware of?
July 29, 2009 at 7:05 pm #56568In reply to: limit forums included in latest discussions
anandasama
MemberSomehow both of your codes doesnt work.
July 29, 2009 at 4:26 pm #59838In reply to: How do you change the Freshness of post date format?
_ck_
ParticipantJust to be certain, you understand how titles work right? You mouse over it to see it.
Maybe try doing a “view source” to make sure it’s there.
You’ve already proved that the code will output the date, all we’ve done is just move it into the hidden, mouse-over title.
Show me the view source part just for what it outputs.
-
AuthorSearch Results