Search Results for 'code'
-
AuthorSearch Results
-
July 25, 2008 at 9:04 pm #66387
In reply to: bbPM admin menu not working at all
_ck_
ParticipantI am not sure about the loading order of your plugin but keep in mind that stuff like
bb_is_user_logged_in()is only available when bbPress is fully initialized.Essentially you cannot execute anything but the most basic independent code until
do_action('bb_init'happens.So you have to hook bb_init, ie:
add_action('bb_init','your_function_name);`and THEN your function can check bb_is_user_logged_in.
BB_IS_ADMIN is a constant so be sure to use DEFINED to test it and not directly or you’ll get an error
if (defined('BB_IS_ADMIN')) {(also, BB_IS_ADMIN means if you are in the admin menu, not if the user is an administrator – not sure if you knew that)
July 25, 2008 at 8:31 pm #66011In reply to: WordPress + bbPress Integration 101
_ck_
ParticipantFor those that know what they are doing and have subversion, you can checkout or switch to the alpha trunk of bbPress which will give you compatibility with WordPress 2.6
svn switch http://svn.automattic.com/bbpress/trunk/Unfortunately an automated download zip cannot be created because this is the first version of bbPress that uses BackPress which is automatically added by svn, but can’t be zipped by TRAC.
Here’s a ZIP’ed snapshot from yesterday:
http://www.mediafire.com/?alvvslgmh22
Keep in mind that you should NOT use the bbPress trunk for live websites – it’s bound to have bugs and some might affect security. You are on your own if you chose to use this version – plugins may have some compatibility issues.
1.0 requires the 3 new WP matching keys inserted into
bb-config.php(see thebb-config-sample.phpfor more info)July 25, 2008 at 8:29 pm #66277In reply to: bbPress 1.0 alpha looks interesting
_ck_
ParticipantFor those that know what they are doing and have subversion, you can checkout or switch to the trunk of bbPress (which will give you compatibility with WordPress 2.6)
svn switch http://svn.automattic.com/bbpress/tags/1.0-alpha-1/Unfortunately an automated download zip cannot be created because this is the first version of bbPress that uses BackPress which is automatically added by svn, but can’t be zipped by TRAC.
Here’s a ZIP’ed snapshot from yesterday:
http://www.mediafire.com/?y33rsdhxeld
Keep in mind that you should NOT use the bbPress trunk for live websites – it’s bound to have bugs and some might affect security. You are on your own if you chose to use this version – plugins may have some compatibility issues.
1.0 requires the 3 new WP matching keys inserted into
bb-config.php(see thebb-config-sample.phpfor more info)Sam could use your bug reports via TRAC if you find problems.
July 25, 2008 at 5:40 pm #66373In reply to: Cannot change Secret Field
_ck_
ParticipantGlad to hear it worked – remember to not keep using
$bb->secretthough in your config and update the db properly as it lowers the security of your setup somewhat.(The idea being an attacker might gain access to bb-config.php and not your db to gain the second half of the key – not my design and not sure I agree with the logic but I guess it’s still better than keep both in an obvious place)
July 25, 2008 at 4:26 pm #66274In reply to: bbPress 1.0 alpha looks interesting
alexleonard
MemberIs there any estimate on when this will be coming out?
Very much looking forward to it
July 25, 2008 at 4:24 pm #66381In reply to: Rewrite url Problem
chrishajer
ParticipantThe syntax of that file is OK (I tried it on my forum), so if it is giving you a 500 error, your host does not allow the directives you’re trying to use in .htaccess. Check with your host to see if .htaccess is allowed and what directives are allowed in it.
If the 500 error was with
Options +MultiViewsthen the host just does not allow that. If this .htaccess file with all the rules does not work, please explain what happens or post a link to your forum.Also, be sure you save the file as .htaccess beginning with a period (hidden file on *nix.)
July 25, 2008 at 9:00 am #66372In reply to: Cannot change Secret Field
783210
Inactive_ck_ That worked!!!! Thank you so much!!!
chrishajer
I don’t have access to my client’s hosting plus I’m not very familiar with Plesk to guide him without looking at it myself.
Anyhow, the problem has been solved
)On a sidenote: This forum keeps telling me my username does not exist when I try going to my profile or favourites 😮
July 25, 2008 at 7:02 am #66371In reply to: Cannot change Secret Field
_ck_
ParticipantIt might be possible to do this inside bb-config.php
$bb->secret=”blah blah your key”;
and override the internal db.
I have to lookup if “secret” is the real name though.
(that’s in addition to define(‘BB_SECRET_KEY’ )
Yeah, apparently it really is
$bb->secretgive that a try.July 25, 2008 at 7:00 am #66307chrishajer
ParticipantHere is a screenshot of my iGoogle page with the bbPress.org Recent Posts feed right at the top/center. Your post is visible there
All the items on this page are RSS feeds.July 25, 2008 at 6:55 am #66368In reply to: Cannot change Secret Field
chrishajer
ParticipantHow about just putting the correct value in bb-config.php?
define('BB_SECRET_KEY',Just make that the same as the value in wp-config.php
There’s no way in Plesk to manage the database? That seems odd. Do you have shell access where you could use mysql from the command line?
July 25, 2008 at 6:52 am #66306chrishajer
ParticipantYou need a feed reader, that’s all. With FireFox, when you click on the RSS icon, while viewing a topic page, I think it asks “subscribe to topic” and if you want to use “live bookmarks” which are RSS feeds built in to Firefox (this is probably different between FF2 and FF3.)
If you are seeing code, then the browser you are using is not equipped to handle RSS feeds.
Google Reader is one RSS feed reader:
The Google Personalize Home Page allows you to add RSS feeds right there too. I follow a lot of support forums that way. Just click “Add Stuff” then skip all the pretty icons and find the text “Add feed or gadget” which used to be called “Add by url” or something.
You just need a feed reader and I think everything will be fine.
July 25, 2008 at 6:21 am #66009In reply to: WordPress + bbPress Integration 101
_ck_
Participantenergymv, there’s no real answer right now – I know it won’t happen in July and my educated guess is it’s not likely to be August. So for those that insist on a date, think September.
Sam has indicated he’s not inclined to release another version of 0.9 that changes to the 2.6 cookies, so maybe by late August there will be an early version of 1.0 beta that will be usable.
ps. sometimes Sam and MDA have been known to suddenly set a deadline and get cranking on code/bugfixes so don’t be surprised if they prove me wrong and magically churn out a new version in a few weeks – I’m just saying they have quite a bit of things to do before it’s ready…
July 25, 2008 at 6:08 am #3663RossB
MemberGuys, be gentle – I am fully aware that this is a question as technically ignorant as it gets.
I have registered for a few RSS feeds on blogs etc without problem, but I have never been able to figure out how the RSS feeds work with the bbPress and WordPress support forums.
Whenever I have decided I’d like a feed of a particular thread I’ve posted on, for example, I click on the RSS button and get a page full of code I have no idea what to do with.
Could any of you kind informed folk explain in lay language how I can turn this page of code into a way of registering for a feed, please?
July 24, 2008 at 9:06 pm #3680Topic: Conditional Meta Tags per Page Type, and More?
in forum ThemesMr. Grim Reaper
MemberI was wondering, while designing my new theme, could you implement conditional meta tags? Specifically, robots control. I’d like to add
noindexandnofollowto log-in pages, registration pages, user profiles, et cetera.I wish there was a “Codex” for bbPress…
July 24, 2008 at 7:16 pm #3678Topic: XaniForums
in forum ShowcaseBen L.
MemberI’ve been working on this for about a week now, and I think it’s just about done.
http://www.xanimyle.co.cc/xaniforums
Plugins used:
- Bozo Users 1.0
- Akismet 1.0
- Post Count Plus – Dynamic.Titles & More! 1.1.5
- bbPress Web Compression (bb-gzip) 0.02
- Unread Posts 0.9.0
- Allow Images 0.7.1
- BBPress Private Messaging 0.80
- bbPress signatures 0.1.9
- Censor 0.1 (modified to change slugs and titles)
- Report Post 0.1.4
- BBcode Buttons Toolbar 0.0.4 (with an edit to use input type=”button” instead of div)
- BBcode Lite 1.0.1
- Avatar Upload 0.8.3
- Admin Can Post Anything 0.05
- Forum is category 1.2
- Temporary ban 1.0
July 24, 2008 at 6:37 pm #66346In reply to: Text color for Add new topic and translate Register
Ben L.
MemberFor #1, you can add the following to your style.css file as near to the bottom as possible:
#latest th a, #forumlist th a, #favorites th a {
color: #eee;
}
#latest th a:hover, #forumlist th a:hover, #favorites th a:hover {
color: #eee;
}For #2, I downloaded sv_SE.mo, and it does not have the words “Register or log in:”, “Log in »”, or “Remember me”. I don’t know how to edit MO files, so you’ll need to wait for someone who does.
July 24, 2008 at 4:54 pm #66345781521
Inactivewow..im an idiot. i searched for everything but the word anonymous. thanks for not verbally abusing me!
July 24, 2008 at 12:20 pm #66339In reply to: (Weird) Open Cafe
thion
MemberThank you for kind comments
.As for these statistics, I guess it was _ck_ who posted this originally somewhere here, but I will repost it:
<?php include_once("bb-includes/statistics-functions.php"); // This need to be included ?>
Our <?php echo get_total_users(); ?> users have made a total of <?php echo get_total_posts(); ?> posts in <?php echo get_total_topics(); ?> topicsJuly 24, 2008 at 6:39 am #64543In reply to: How to Add custom Nav Bar to Theme?
chrishajer
ParticipantSorry, lost this topic.
Looks like you have a button already, it’s just in the wrong spot.
1. Make sure your HTML tags are lowercase. This is what you have now:
<FORM METHOD="LINK" ACTION="http://ashb.proofreadercentral.com/">
<INPUT TYPE="submit" VALUE="ASHB Home">
</FORM>Should be more like:
<form method="link" action="http://ashb.proofreadercentral.com/">
<input type="submit" value="ASHB Home" />
</form>2. To have control over that, I would put it in a div, and give it a CSS id or class. Something like this:
<div id="navbar">
<form method="link" action="http://ashb.proofreadercentral.com/">
<input type="submit" value="ASHB Home" />
</form>
</div>3. Now, with an id, you can make some modifications to your style.css. Something like this (add it right around the lines for the #header, since you’re still in the #header div):
#navbar {
position: relative;
/* top: {number of pixels from the top of the header}; */
/* left: {number of pixels from the left edge of the header}; */
top: 100px;
left: 0px;
}Try different numbers in your style.css for the #navbar top and left positions you just added, and see where the button ends up. I’m not sure where you want it, but that will allow you to move it.
If you want it beneath what is inside the header div, with the background image, you will have to move the code out of the #header div in header.php.
Does that help point you in the right direction?
July 23, 2008 at 9:06 pm #49655In reply to: Emoticons For bbPress?
csseur3
Memberhello,
where i can download the latest version of this plugin?

bye
July 23, 2008 at 8:46 pm #66318In reply to: Adapt the “remove max width in admin” for bbPress
csseur3
MemberI speak about that:
div.updated,div.error,
div.wrap {
margin: 0 1.5em;
max-width: 98em;
}
so, i want to add in my plugin the function for put:
div.updated,div.error,
div.wrap {
max-width: none !important;
}
it’s a little modification but i want to make a plugin for that, and not manually editing the files in bb-admin
July 23, 2008 at 8:22 pm #66298In reply to: How do I change my forum’s path / URL?
chrishajer
Participant1. Please post a link to your forum so we can take a look.
2. No styling usually means the path to the stylesheet is wrong. You can look in the source of the HTML to see that.
3. Redirecting is probably because you have
trueorslugsfor your permalinks setting, but you haven’t set up permalinks yet. You can set the permalinks tofalseto get the forum working right now, then take the next step and make permalinks work.https://bbpress.org/documentation/faq/#pretty-permalinks
Either that, or the stylesheet is really not there at the URL you tried, and WordPress is intercepting that and sending you to 404 page.
July 23, 2008 at 8:17 pm #66302In reply to: email notification to admin of every new post
chrishajer
ParticipantOh yeah, RSS feeds are built in

Good idea.
July 23, 2008 at 8:16 pm #66317In reply to: Adapt the “remove max width in admin” for bbPress
chrishajer
ParticipantYou want to remove the max width of the whole admin section? In my installation, the admin section appears to be at max width already (my monitor is at 1280px wide right now.) It doesn’t look like there’s any restriction, unless it shows up at wider than 1280px. Did you look at the css for the admin section?
~/bbpress/bb-admin/style.cssJuly 23, 2008 at 5:59 pm #66338In reply to: (Weird) Open Cafe
csseur3
Membervery very original and beautiful

so, what is the code for show “Our 13 users have made a total of 160 posts in 39 topics ” please?

Very nice forum, with beautiful colors: good job!

bye
-
AuthorSearch Results