Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,476 through 27,500 (of 32,457 total)
  • Author
    Search Results
  • #65363

    In reply to: bbPress Database Error

    bramruiter
    Member

    Sorry, I don’t check this forum daily, so here’s a late answer:

    1. From what I know, it has always been like this. It’s only when I perform a search.

    2. The version is bbPress 0.9.0.2 and it was installed somewhere between june 26 and june 31.

    3. I didn’t. I only screwed around with the template files.

    4. No, they did no update or change whatsoever.

    5. Like I said, it was there before the plug-ins, but here’s the list.

    Private Forums, BBPress Private Messaging (not working), Post Count Plus – Dynamic.Titles & More!, Akismet, Avatar, Last-Post, Limit Latest Discussion, Bozo Users, BBcode Lite, Move It, Quote, Simple Onlinelist, Allow Images, Human Test for bbPress & Front Page Topics.

    6. The second error appears only when someone perform a search. The first error is only noted in the admin area, in the first tab, beneath ‘User Registrations’.

    7. Yes. It does happen.

    The MySQL version is 3.23.58.

    I’m not a big guy when it comes to coding/scripting, so I have no idea what these errors mean. I’m glad somebody wants to help.

    Okay, the footer was no problem as mine is just some simple links. I’m having difficulty with the nav bar. In my WP theme (Mimbo) I found this code which I think corresponds to the nav bar…

    <ul id=”nav” class=”clearfloat”>

  • /” class=”on”>Home
  • <?php wp_list_pages(‘title_li=’); ?>

    When I add it to the header.php file in the template I’m building I get a blank page! I read somewhere about adding code to bb-config to get it to accept WordPress functions but that’s what we are trying to avoid right? So what am I missing?

    Thanks by the way!

#65263
Billy Wilcosky
Participant

I am having similar issues. I have followed the steps from kineda.com, and it’s not working for me personally. Well, everything is working. I have fully integrated my wordpress blog and bbpress forum. So, users can sign up and use one username and password for both, works great, BUT, first of all… sometimes I guess the cookie part isn’t working, because I can log in at my wordpress blog, then go to my forum and I won’t be logged in. But, when I first did the integration, it worked. I’d log in at one, then go to the other and already be logged in. So there is that issue, then I am also having an issue every now and then with logging out. If I log out from my bbpress it gives me some kind of header already sent error… But, again, that only happens periodically. So, my issues are odd and they don’t happen all the time :)

I’m thinking that most of my issues have to do with the cookies. Has anyone discovered any hints or tips to make sure that my cookie code is correct? The cookie part of my code in my bb-config file looks like this:

$bb->authcookie = ‘wordpress_354420af36a7c3b4f6ad07a79c17612a’;

$bb->cookiedomain = ”;

$bb->cookiepath = ‘/’;

$bb->sitecookiepath = ”;

does all that look correct?

#65408
John Conners
Participant

If you want people to stay logged in after the end of the session, just add the following within the form element in the login-form.php template file:

<input name="remember" type="hidden" value="1" />

Just make sure it’s before the closing </form> tag.

#65419

I’ve already got the database and cookies working correctly and all of that. I was talking about getting the look of it, etc. Those instructions referr to adding code to your bb-config.php file to do the include of the header from your WordPress installation, etc.

If I linked to the wrong instructions, oops. I’ve read and read many posts on integrating the look and they say to add things to your bb-config file, etc. But I don’t know WHERE.

So I’d like to see a completed, working bb-config.php file for someone who was able to do that successfully so that you can include the php get header in bbpress. If that makes sense.

Thanks!

-Sherry

#3496

Hello;

I’m semi-new to (though not totally new) to PHP and I don’t always know how things should fit together. I’ve been trying to follow the instructions here: http://www.adityanaik.com/integratepress-part-i/

But I’m not exactly sure where to put the code that is suggested. I know white space matters in php and probably where in the files you place the particular code.

I was wondering if I could see an example of a bb-config.php file that had all of this done correctly so I would know where to put things so they would work.

Thank you very much!

-Sherry

#65407
chrishajer
Participant

> Yes, but you can see it does not survive on my forum.

Right you are :-)

Name	bbpress_[snipped]
Value chrishajer%7C[snipped]
Host www.dvdvideosoft.com
Path /forums/
Secure No
Expires At End Of Session

 

I just noticed there is no box at this forum either.

#65415
bobbyh
Member

The problem is this:

td background="/images/bg/rotate.php"

Try this instead:

td style="background: url(/images/bg/rotate.php) no-repeat;"

#65385
chrishajer
Participant

1. Cool (thank you), 2. Good, 3. Awesome.

I forgot two other things which may or may not apply with current versions of bbPress. Include the my-plugins and my-templates folders, empty if necessary. Then it sort of makes sense when people are looking and thinking “where do I put this plugin?”

Not sure if the my-* folders are still necessary or if everything goes into bb-* folders now.

There was one more item, but I have lost the thought. Maybe it will come back to me later.

EDIT: oh yeah. Why not include the code for search in the template, just commented out? I know there is one camp for tags and one for search, but people asking how to add search is a fairly common thing too. It’s built in, so why not just put it in the template, and comment it out if you don’t want to default to having it turned on?

Why not something like:

<?php
/* uncomment this to show the search box
search_form( $q );
*/ ?>

#65413
lazy79
Member

Hi chrishajer,

yes youre right but im using the wordpress trunk and bbpress – and there are changes to the cookie handling again in wp. bbpress will follow soon, i think.

thank you very much for taking care of it, sambauers ;)

have both a nice day ;)

Chris

#62612

In reply to: TalkPress

Sam Bauers
Participant

@geld_lenen

That’s a fairly serious accusation and warrants an investigation if true. Can you be more specific please?

bbPress does a lot of filtering of user input to avoid these things. What part of bbPress was exploited? A topic, a profile?

Code injection in bbPress installs is usually a symptom of insecure shared hosting, not bbPress itself.

#65417
Sam Bauers
Participant

I’m pretty sure that’s not a problem security wise as far as bbPress is concerned.

That code you refer to is being rewritten for another reason at the moment.

#63271
Göran
Member

Thanks for answering but I do not understand how to use it. Should I save a php-file with this code and name it Laxusernames.php? Where shall I place it and how does it start?

Please advice me!

#62611

In reply to: TalkPress

geld_lenen
Member

BBpres is extremely hackable for Iframe attacks and code injection. My BB was hacked 3 times, always used last version.

Looking for another now….

#3495
teayudoes
Member

Hi and thanks for bbpress and the plugins.

I integrated wordpress and bbpress in my site with some plugins.

In the log of my host I find this error:

[Thu Jun 12 13:57:36 2008] [error] PHP Warning: parse_url(/2008/06/urlofpostofwordpress//appserv/main.php?appserv_root=http://www.cdpm3.com/id.txt???) [<a href='function.parse-url'>function.parse-url</a>]: Unable to parse url in /home/teayudoe/public_html/foros/bb-includes/functions.php on line 1794

I have the same errors with anothers urls/scripts

http://www.iglesialcs.cl/newweb/cache/id2.txt

And the last week I saw other similar errors

I investigated the urls and I think are script to attack servers

I’m not worried about the safety of my site, I believe that these script can not do anything, what I am wrong?

It is possible to fix the error by putting @ forward parse_url functions.php on line 1794 (http://derekgendron.com/blog/?p=33)

I have to worry?

Thanks

Pd. Sorry for my english. The English is not my mother tongue

#65349
davidbaldwin
Member

I added

<?php get_header(); ?>
<?php bb_get_header(); ?>

to the beginning, and

<?php bb_get_footer(); ?>
<?php get_footer(); ?>

to the end.

obviously, this calls both the wordpress and bbpress headers.

that makes everything work, except for the wordpress search engine.

any ideas?

thanks!

#58898

Unfortunately, Detective’s solution doesn’t work with the latest versions. I’m experiencing the same issues (integrated scenario):

User registers on bbpress and logs in there

User can acces the WP Site Admin section, but it says: Welcome, . (a space instead of the user name)

User comments are registered as ‘Anonymous’

I noticed the only way to fix this is to go to WP user management panel, editing and saving the user.

So the user has to be actively (and manually : ) updated to have his name listed under his comments.

I haven’t found any way to avoid this, but if anyone can I’d be much abliged!

#3492
lazy79
Member

Since the latest Trunk changes (Changeset 8069) in WordPress Core, the bbPress Login (if shared with WordPress) is not working anymore.

I think its because of the logged_in cookie, isn`t it?

I know, trunk.. but 2.5.x will sure come soon ;)

Have a nice day

Chris

#65236

In reply to: A bit of advice needed

alexleonard
Member

Again, thanks for the advice. Looking forward to playing with the new version :)

#65379

I just found it under the original skin. I switched to “blue,” but it’s strange how front-page.php stays. Thanks anyway, though. Let me know if there’s more about front-page.php other than the code inside it, like the option to move it to my template folder.

#65372
bobbyh
Member

thousande, you have to create a new theme (under /my-templates/) and then edit the header.php file in your new theme so that it doesn’t have the stuff inside this loop starting with <?php if ( is_topic() && bb_is_user_logged_in() ) : ?>

Actually, I think that bbPress doesn’t even currently support AJAX posting, so all those files are unneeded.

Good luck!

#65381
chrishajer
Participant

To be able to call your WordPress header and footer, you will need access to the WordPress functions get_header() and get_footer(). To have access to WordPress functions, you need to include WordPress:

https://bbpress.org/documentation/integration-with-wordpress/#func

You can skip the stuff about user integration and cookies if all you want to do it include your WordPress header and footer.

#3480
erewok
Member

Hello,

I’m new to WordPress and BBpress but I like the simplicity involved in using them. Currently, I have a wordpress site and a bbpress site that share a database. The wordpress site uses the Event Calendar plugin+widget to display its calendar and in the readme for Event Calendar I found the following:

Add the
following code to your sidebar.php:

Event Calendar:
<li>
<?php ec3_get_calendar(); ?>
</li>

Upcoming Events:
<li>Events
<?php ec3_get_events(5); ?>
</li>

If you are using an older template, then you should check that your HTML
header contains the following tag: <?php wp_head(); ?>

I’d like to add the Event Calendar to my BBpress sidebar; however, this solution doesn’t appear to work. Any ideas what I’m doing wrong?

#56644

In reply to: Plugin: BB-Ads

bubblebla
Member

the ads shows up something like this —>

GIF87a�����������f��f��0�����p������pp������� �����������fff��f��3������� @���@f����0��P������f3�����p���@�0�� ����p�����P�p��P�� �̙�p@�������ffp�33f��pp���f3p������f��00����33�@@

#65361

In reply to: bbPress Database Error

chrishajer
Participant

Interestingly, I copied and pasted your SQL query from above, and used it on my installation unchanged, and it did not error out, it just return the expected results.

SELECT t.*, MIN(p.post_id) as post_id, p.post_text, 0 AS search_score FROM bb_topics AS t JOIN bb_posts as p ON ( t.topic_id = p.topic_id ) WHERE t.topic_status = '0' AND p.post_status = '0' AND ( (t.topic_title LIKE '%ja%') OR p.post_text LIKE '%ja%' ) GROUP BY t.topic_id ORDER BY t.topic_time DESC LIMIT 20

See the results here.

This is an old bbPress installation as well, 1.0-alpha from over a year ago.

Viewing 25 results - 27,476 through 27,500 (of 32,457 total)
Skip to toolbar