Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,501 through 27,525 (of 32,495 total)
  • Author
    Search Results
  • #65439
    chrishajer
    Participant

    I think that is a case of mixing an array ($title[]) with a string ($title). Somewhere, $title is being used as a string, and this piece of code wants to use it as the array $title[].

    Glad you got it working. Hack away.

    #65332
    Detective
    Member

    Currently the search results don’t work. To fix them, please add the following line in the function gs_search_result_loop:

    function gs_search_results_loop($results) {
    global $bb_post; // <-- add this line

    #65437
    chrishajer
    Participant

    I don’t think you can do a case without a switch first. Something like this:

    <?php
    /*
    Plugin Name: Title Modifier
    Author: Matt George
    */
    add_filter('bb_title', 'titlemodify');

    function titlemodify( $title ) {
    //your code that does something to $title;

    switch ( bb_get_location() ) {
    case 'topic-page':
    $title[] = get_topic_title();
    break;
    }
    return $title;
    }
    ?>

    #65436
    photolord
    Member

    Do you know what I did wrong? When I try to activate the plugin I get:

    Plugin could not be activated; it produced a Fatal Error.

    I want to get rid of the site title that comes after the topic title on topic pages. That way I’ll only have the <title>Topic Title</title> in the browser. I need some expert coder help. :o) This is what I have that did not work:

    <?php

    /*

    Plugin Name: Title Modifier

    Author: Matt George

    */

    add_filter(‘bb_title’, ‘titlemodify’);

    function titlemodify( $title ) {

    //your code that does something to $title;

    case ‘topic-page’:

    $title[] = get_topic_title();

    return $title;

    }

    ?>

    #3506
    aiitee
    Member

    hey,

    i was thinking about a plug with that hides, cloak, the links to those visitors who are not registered or logged in the website. Its a great idea i think for those who need to get emails or more registered people.

    the script needs to detect the <a href=""… etc etc code to “cloak” the links

    whatcha say?

    #60292

    In reply to: Akismet key id

    chrishajer
    Participant

    WordPress.com says this about the keys:

    “Please use your own API Key and don’t ever share your API it is like a password for you =)

    I don’t know about advantages or disadvantages for using the same key. I used to use the same key for all sites, but now I get a new key for each site (which is a big pain). I haven’t noticed a performance difference one way or the other.

    #65435
    chrishajer
    Participant

    This is an old post, but the concept still applies:

    https://bbpress.org/forums/topic/title-tags#post-9045

    bb_title is the function you need to override with a plugin, such as this one. To see what bb_title and bb_get_title do, take a look at bb-includes/template-functions.php starting around line 305 (in version 0.9.0.2).

    #3501

    Topic: Retro Garden Forum

    in forum Showcase
    Rhys Wynne
    Participant

    Hi everybody :)

    I have created a new forum for my site, Retro Garden.

    Retro Garden Forum

    Integration is almost seamless in FF, and pretty close in IE, so let me know what you think! And any suggestions to improve it.

    #65421

    In reply to: Two small questions

    Rhys Wynne
    Participant

    Figured it out by looking at the documentation. Silly me :(

    https://bbpress.org/documentation/themes/

    #3498

    Topic: Two small questions

    in forum Themes
    #64819
    psychoo
    Member

    Pokerlover:

    Slug means URL, but I’m not sure :).

    You have to change the settings/premalinks option to day and name. After that you can change the “Slug” in the Page management to whatever URL you want, for example http://www.site.com/bbpress/.

    After that your page links to bbpress, OK. But how you make it recognized as a “current page item” when you’re in the forums?

    #65422
    chrishajer
    Participant

    I doubt it has anything to do with subversion.

    What revision did you check out? I think the trunk release is probably broken (I could be wrong, but I still wouldn’t use it in production) so I would check out tags/0.9.0.2/instead of trunk:

    svn co http://svn.automattic.com/bbpress/tags/0.9.0.2/

    #65416
    norvu
    Member

    Perfection. I owe you #1 beer. =P

    #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.

Viewing 25 results - 27,501 through 27,525 (of 32,495 total)
Skip to toolbar