Search Results for 'code'
-
AuthorSearch Results
-
July 21, 2008 at 5:55 am #65957
In reply to: Hiding Subforums’ Subforums from Subforum Pages
755628
InactiveHi,
Now the subforums’ subforums show, but along with the subforums. It displays just like the original forum.php now.
July 21, 2008 at 5:12 am #66230In reply to: Can only post in Firefox
guyleech
Memberchrishajer, _ck_,
I’ll take a look at the templates. I’ve only just inherited the system, so I have no idea how it was setup.
Thanks for the help
Guy
EDIT: Yep, removing the nested form does the trick. I should have checked out the source code before bothering you, sorry. Thanks again for the help.
July 21, 2008 at 4:46 am #65956In reply to: Hiding Subforums’ Subforums from Subforum Pages
_ck_
ParticipantHang on while I double check the code, apparently I guessed wrong somewhere or missed something.
update: perhaps it’s because $forum is not declared as a global in the template when when it loops through the forums it doesn’t see the changed parent.
Try this update:
July 21, 2008 at 4:00 am #66226In reply to: Can only post in Firefox
chrishajer
ParticipantTake a look at this source.
<form id='tag-form' method='post' action='http://support.westciv.com/tag-add.php'><fieldset>
<form method="post" action="http://support.westciv.com/tag-add.php">
<input name="tag" type="text" id="tag" size="10" maxlength="30" />
<input type="hidden" name="id" value="354" />
<input type="submit" name="Submit" id="tagformsub" value="Add" />
</form>
<input type="hidden" name="_wpnonce" value="907a29b341" /><input type="hidden" name="_wp_http_referer" value="/topic.php?id=354" /></fieldset></form>I don’t think bbPress normally has a form within a form for adding a tag. Not sure if that’s a problem or not, but the hidden fields for
_wpnonceand_wp_http_refererare outside the first form tag: maybe FF can handle it but other browsers cannot?July 21, 2008 at 3:54 am #66225In reply to: Can only post in Firefox
chrishajer
ParticipantMore data. Here is the request to add a tag when using FF3:
cookie=bbpress_a2763cd41fe17b461fa952334e00e45c%3Dchrishajer%257C1216783299%257Cb630b90e0e5d52cf8499cfbe58629223&action=add-tag&tag=style.css&id=350&Submit=Add&_wpnonce=bd6cc486c3&_wp_http_referer=%2Ftopic.php%3Fid%3D350&topic_id=350&_=Here is the same request when using IE7:
tag=style.css&id=354&Submit=AddFF3 works, IE7 does not.
July 21, 2008 at 3:35 am #66224In reply to: Can only post in Firefox
chrishajer
ParticipantAnother data point: I was able to remove and add tags in FF3 but not with IE7. This is the failure message:
Your attempt to add this tag to this topic has failed.The error messages are all found in bb-includes/functions.php starting at line 2320 (just so you can see what should fail and what message should be shown.)
July 21, 2008 at 3:30 am #66223In reply to: Can only post in Firefox
chrishajer
ParticipantIn both IE7 and FF3, I get this error when trying to edit my profile:
Your attempt to edit this user's profile has failedNo difference between the two browsers, both fail.
July 21, 2008 at 3:25 am #65955In reply to: Hiding Subforums’ Subforums from Subforum Pages
755628
InactiveThe code that was on my original forum.php is
_ck_’s version that I tried using (it didn’t pop up any forums at all when I tried it) is
July 21, 2008 at 3:24 am #64540In reply to: How to Add custom Nav Bar to Theme?
chrishajer
ParticipantCan you post a link to your forum so we can modify the actual code?
July 21, 2008 at 3:15 am #65954In reply to: Hiding Subforums’ Subforums from Subforum Pages
chrishajer
ParticipantCan you post the code you’re using at pastebin so we can take a look at what’s happening?
July 21, 2008 at 3:03 am #64539In reply to: How to Add custom Nav Bar to Theme?
RossB
MemberCould someone please post an example line of code that could be added to the appropriate php page to add a navigation button to the header, or just under the header, of a bbPress forum?
I have added a bbPress forum to a website, and just need a nav button on the bbPress forum that can take a user stright back to the home page of the website. I have no idea about php, though, so would be great if someone could add an example link showing the part I should customise in bold, or something like that.
Also, could someon please explain how I position the nav button on bbPress so that it is left-aligned to the header, or just below the header?
Apologies for this demonstration of coding ignorance!
Cheers
Ross
July 21, 2008 at 1:51 am #66222In reply to: Can only post in Firefox
_ck_
ParticipantI have another idea why it might only work in firefox.
It’s possible you are somehow sending malformed HTML with a damaged or buggy template and only Firefox is able to interpret it correctly while the other browsers munge the bad code and therefore leave out the missing hidden input fields.
Look carefully at your
post-form.phptemplate and see if there is any incorrect HTML. Also try doing a direct download of that?new=1page instead of looking at it in a browser and study the source for malformed HTML, for example an<inputfield without the closing>.(you could even temporarily replace
post-form.phptemplate from the original kakumei theme just to see if it works)July 21, 2008 at 1:37 am #66221In reply to: Can only post in Firefox
_ck_
ParticipantHmm, this is going to require some thought…
That error occurs when bbPress thinks the source of the post is not coming from bbPress (ie. a spammer trying to do a direct post without first visiting the topic)
The way that’s done is there’s something called a “nonce” which is vaguely like a hidden captcha code that is automatically sent along with the post (via POST data) to tell bbPress it’s genuine.
So for some reason it’s not getting that “nonce” other than Firefox, which is incredibly strange. Do you happen to have a personal firewall or some kind of add-on that’s blocking certain data like that?
I would do a “view source” in both firefox and IE on a page with a textarea (http://support.westciv.com/?new=1) and look at the fields inbetween
<form> </form>. See if anything is different.July 21, 2008 at 1:21 am #65926In reply to: bbpress update soon?
_ck_
ParticipantAgain, I’m not an official voice for bbPress, but I don’t see how any of the points listed above are incompatible with the idea that bbPress isn’t a finished program. All of the points are true, it’s a useful and usable program, but it’s not done yet.
Over time, based on feedback and user code contributions I am very confident that integration will become virtually painless and almost instantaneous.
bbPress is only a year old in code development. I’m not sure if you realize that. Polished products like vbulletin are EIGHT years old (and $85 a year plus support plus most plugins and themes are commercially sold)
If you are curious about future features you can always browse the TRAC which will give you a rough idea (ignore the date schedule, they’re just vague estimates). Remember, it’s a community project, you can suggest features and contribute bug fixes too via TRAC.
July 21, 2008 at 1:13 am #3650Topic: Can only post in Firefox
in forum Troubleshootingguyleech
MemberAs of fairly recently, other users and I have only been able to post in Firefox. In all other browsers the error message of “Your attempt to create this topic has failed.” comes up.
The bbPress is not hooked up to a WordPress install, and is running no plugins. I haven’t touched the core code, only the template files (and I’m aware they’re slightly out in IE).
I’ve tried with both a newly registered account, and using my Admin account – both work in FF, but not in anything else.
If anyone could offer some guidance as to why this may be, it would be greatly appreciated.
The URL is: http://support.westciv.com
Cheers
Guy
July 21, 2008 at 12:14 am #66206hyperhookup
Memberanonymous posting – I did see that plugin but it doesn’t say it works with bbpress 9.0.xxx Does it work with the newest version?
Ck’s attchment plugin- Where do I get it?
banning option- yes by ip maybe a custom ban page or something
no registration- meant hide or disable registration
moderation – What do you mean to some extent? Any plugin to extend it more?
Accept tos- Any idea how I would modify it. I am not much of a coder.
Video would it have to be resized?
Thanks
July 20, 2008 at 8:22 pm #65953In reply to: Hiding Subforums’ Subforums from Subforum Pages
755628
InactiveHi,
Okay, so I tried using the code. And it just makes every subforum and its subforums disappear. So everything is there, but with no links to any forums.
July 20, 2008 at 5:06 pm #65134In reply to: Private Messaging Extended
Detective
MemberI don’t know how to do it on the same, but you could easily make a
$bbdb->querycall with your own query.July 20, 2008 at 4:52 pm #3645Topic: Flickr on sidebar
in forum Troubleshootingthion
MemberUntil now, I never had problems with Flickr rss (I mean these cool latest 75×75 images) because I was using WordPress plugins. But now, I have no idea how to put latest images from Flickr group in my bbPress. I was reading API docs for two days now, and I don’t understand it completely
.Can anybody help? Or more, anyone have proper plugin?
.
July 19, 2008 at 3:49 pm #65889In reply to: Show (gr)avatar on frontpage
thion
MemberLong or short, still you should write about it here so:
1. People won’t spam your mailbox;
2. People won’t post another topics like this thing will be here
.I could use something like this for my new project.
July 19, 2008 at 3:20 pm #65948In reply to: Hiding Subforums’ Subforums from Subforum Pages
_ck_
ParticipantThe way I hide sub-forums on the front-page is to wrap the code that lists the forums in this simple code:
<?php if (!$forum->forum_parent) { ?><– this<tr<?php bb_forum_class(); ?>>blah blah
</tr><?php } ?><– and thisIt essentially just checks if the forum has a parent and doesn’t show it. Now on the forum page that’s a problem because any forum listed would have a parent. Gotta think about that one for a minute…
Oh wait, I know what to do, we just have to check if the forum_parent is equal to the current forum id. This is untested but in theory should work:
<?php $forum_parent=$forum_id; ?>
<?php while ( bb_forum() ) : ?>
<?php if ($GLOBALS['forum']->forum_parent==$forum_parent) { ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php } ?>
<?php endwhile; ?>July 19, 2008 at 3:10 pm #65924In reply to: bbpress update soon?
_ck_
ParticipantNote that bbPress is not a finished final product. It’s pre-release and therefore in a state of flux. bbPress has always been a bit behind WordPress changes. If you are using bbPress, you are considered an “early adopter” and therefore you have to accept that things aren’t going to be perfect.
No one but maybe Sam or MDA can say when bbPress will have a release that’s 2.6 compatible. There is code in the trunk that supposedly will work but I wouldn’t recommend using the trunk. It has to be ported to the 0.9 branch and then tested. I suspect they may even wait for the 1.0 beta release and I don’t know if that’s two weeks away or two months away.
Again, there is nothing special about the WP 2.6 release – it only has a handful of extra features and no security bug fixes over 2.5.1 – in fact people are having a bunch of little problem with 2.6 still so why rush to upgrade? I was able to easily downgrade back to 2.5.1 with no problems.
July 19, 2008 at 3:40 am #66201In reply to: Administrator Recount
_ck_
ParticipantIt’s kinda (good) crazy but there’s actually a role key for “recount”.
update: you can make a plugin to give recount access – it will only work for those that can access admin panel
make this into a plugin:
<?php
/*
Plugin Name: Add Extra Caps
*/
function add_extra_caps($caps) {
$caps['recount'] =__('Access the recount administration panel');
return $caps;
}
add_filter( 'get_assignable_caps', 'add_extra_caps');
?>Install and activate it, edit their profile and check the ability for them. Then they should be able to access it.
You don’t even need to keep the plugin running after that, it can be deactivated/deleted until you want to take away the ability.
July 19, 2008 at 2:20 am #3643Topic: check out this very nice R-t-L Arabic bbPress
in forum Showcase_ck_
ParticipantI don’t know who set this up but they did a fantastic job:
Apparently they also shared their R-t-L/Arabic modification so others can get online with bbPress more easily:
http://code.google.com/p/bbpressar/
It’s a shame we don’t do unicode support for usernames.
Wasn’t someone looking at making a patch for that?
July 18, 2008 at 10:32 pm #66006In reply to: WordPress + bbPress Integration 101
_ck_
ParticipantSecurity considerations and table of contents added.
A bit more later.
Ragekage, to make a plugin, just copy all of the code for the function from pluggable.php inbetween the IF statemate and then edit as desired. Add the simple plugin comment header and save to your desired filename.
-
AuthorSearch Results