Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,951 through 25,975 (of 32,495 total)
  • Author
    Search Results
  • #71177
    mpttt
    Member

    Update:

    (Nevermind this stuff below. WP does this even without bbpress, it may be the template.)

    Removed the cookie code from wp-config above.

    Checked “must be logged in to post comment” option in WP Discussion options.

    Logged in with a Subscriber account. Posted comment. Tried to click “Logout” on comments page. Continue to get error:

    “You are attempting to log out of The Site

    Please try again.”

    Difference between the URLs in admin vs comments page.

    Admin “logout” url: ****/wp-login.php?action=logout&_wpnonce=stringofcharacters

    Comments “logout” url: ****/wp-login.php?action=logout

    #4645
    mpttt
    Member

    Hello.

    Installed wp2.7 in root dir, and bbpress alpha 6 in sub-dir. Enabled permalinks, added code to htaccess in sub-dir.

    Test 1. Logging in to wordpress admin.

    Navigate to comments: shows logged in as admin user

    Navigate to forum: not logged in

    Navigate to forum admin: not logged in

    Test 2. Logging in to bbpress admin.

    Navigate to comments: does not show as logged in as admin user

    Navigate to wp admin: logged in as admin

    Is this how it’s supposed to work?

    More info:

    After adding the following lines of code to the wp-config file:

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    This does not change anything except, if I am logged in to the WP Admin, I can not log out. Clicking Log Out presents:

    “You are attempting to log out of The Site

    Please try again.”

    Am I missing something with the code above? Should I be adding the domain name somewhere?

    I appreciate your help.

    #4644
    Ben L.
    Member

    $warnings = $bbdb->get_results("SELECT user_id, meta_value FROM $bbdb->usermeta WHERE meta_key='bbmodsuite_warnings'");

    Okay, so now I have all of the warnings from every user with them. That was easy, just one query. However, I don’t know any good way to go back to the database, once I loop through them all, since I will need to delete some of the usermeta entries, update the others, and update a second set of usermeta keys designed to lower database traffic. Thank goodness this is only on cron.

    How do I update hundreds (or even thousands) of database entries all at once?

    #71161
    chrishajer
    Participant

    If there is none there, then yes, you need to create one. Be sure it starts with a period:

    .htaccess

    That indicates a hidden file on Linux/Unix.

    #71160

    No, it would go in the public_html folder.

    And it would be something like…

    Redirect 301 /forum/register.php http://mysite.com/blog/wp-register.php

    #71155
    mzimmers
    Member

    Hmm…is this what you’re talking about?

    bb_get_uri(‘register.php’, null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS),

    Replacing the third parameter with the URL of the WP registration page?

    Sorry if this is a lame question, but the code in this page is rather obscure to me.

    Edit: or is it the first parameter that gets replaced?

    #71153
    mzimmers
    Member

    Hey, circuit – where in the code did you make that change? There appears to be a variable called “register-page” but I can’t find its definition.

    #71151
    mzimmers
    Member

    Oh, I’m sure it works just fine. The “yuk” was elicited by this:

    5. search your bbpress templates and force all registrations/logins through wordpress from the several places they are buried on the forum (the WP login interfaces are far more developed) – unfortunately at least one bbPress login location is hard coded in the core which will require a direct hack everytime you upgrade.

    I was hoping for something more one-time, but…I think I can live with this.

    #50422

    In reply to: Importing from vanilla

    circuit
    Member

    update: the queries above worked fine with a bit of manipulation (i guess the table layouts on both systems have changed a bit since the above were written, so the number of fields didn’t match in some cases). i didn’t need to update the slugs or use the second bit of code for post freshness – it just worked.

    #4641
    deadlyhifi
    Participant

    Specifically regarding the Approve User Rrgistration plugin.

    Fatal error: Class ‘BB_User’ not found in …/bb-plugins/approve-user-registration/approve-user-registration.php on line 58

    I’ve seen in some other plugins compatible with 1.0 the use of ‘WP_User’ and ‘BP_User’. I’ve tried using these and there is no error, but the plugin doesn’t work…

    Anyone know how to fix this? I really need the features of this plugin – it would be really good if it was a standard option in bbPress.

    #4640

    In my WordPress functions.php file, I am queuing up jQuery for some interface objects I’m using.

    wp_enqueue_script('jquery');

    It seems this messes with bbPress’s javascript inclusion, causing none of the JS from bbPress ever to get loaded.

    Because I am using jQuery also in bbPress, is there a way around this that anyone can think of?

    #71142
    chrishajer
    Participant

    > #header div.search input.submit {

    > style stuff here;

    > }

    Well, the cascading part of Cascading Style Sheets means that higher level stuff pertains to lower level stuff, and so on, and so on.

    So from the right, an input element, with a class of submit, but only if it’s in a div with a class of search and then only if it’s in an element with an id of header.

    So, based on that, the markup in the php file should look something like this:

    <div id="header">
    <div class="search">
    <input class="submit" foo="bar" blah="blarg">

    Does that make sense?

    > I’ve never seen the “div” used like this, and I’m not sure what the “input.submit” is.

    The div.search just ties the search class to the div element (man I hope I’m not mixing up my terminology here…) So, if you had another element on the page, maybe a <p> with a class of search, like so

    <p class="search">

    This div.search would not apply to this element, because the .search was tied to the div element. Same exact thing applies to the input.submit: only an input element with a class of submit will be affected by that specific CSS.

    > Also, it’s not clear to me how the “return” button code comes last in the

    > php file, but the button displays above/before the login stuff.

    I’m afraid I don’t know enough about it to figure that one out. Sometimes, when it works, it’s best not to question why :-)

    One thing that helps immensely with the CSS, for me anyway, is to use Firefox with the Web Developer add-on from Chris Pederick. You can hover over an element on the page and display the CSS classes and ids that apply to it, then click and see the actual CSS. You can also make changes to the CSS in the browser and see them immediately, then once you’ve sorted them out, just paste those local changes into the CSS for your template.

    http://www.mozilla.com/en-US/firefox/

    https://addons.mozilla.org/en-US/firefox/addon/60

    Also, be sure to validate the XHTML and CSS both, to ensure the things you’ve done are in order:

    http://validator.w3.org/

    http://jigsaw.w3.org/css-validator/

    Those two tools are linked from the Web Developer Toolbar.

    You will find with CSS there are a lot of invalid things in the stylesheet that don’t hurt anything: they make things look better in some browsers, but don’t do anything and don’t harm anything in other browsers. When adding things to your templates, I would at least validate the XHTML.

    HTH.

    #55967

    In reply to: Show off your Forum !!

    Fernando Tellado
    Participant

    You’re wellcome ericharison ;)

    #71139
    mzimmers
    Member

    No, I’m happy with the result; I just wish I had a better understanding of exactly what I did!

    Specifically, I’m not sure what this means:

    #header div.search input.submit {

    style stuff here;

    }

    I’ve never seen the “div” used like this, and I’m not sure what the “input.submit” is.

    Also, it’s not clear to me how the “return” button code comes last in the php file, but the button displays above/before the login stuff.

    Any enlightenment would be appreciated.

    #55966

    In reply to: Show off your Forum !!

    rjeevan
    Member

    :D..

    Here is one I’m Working on… Waiting for a Stable Version of V1 to be launched…

    Still working on Modifying Theme and Creating (& Searching) for plug-in’s to make it into a Full Working Forum…

    WARNING: This site is to be an Adult Site…

    http://forum.tnalist.com/

    —-

    Best thing about bbPress = It’s Light Weight! and Extreme Flexibility!

    #71136
    chrishajer
    Participant

    I think you’d be better off just copying all the styles, and creating a new style called .return or whatever you want. Right now, it’s #header div.search which applied only to div.search in the header. I think I would just copy the styles you like, paste them at the end of your stylesheet, then rename them to whatever class you want to use for your button.

    #55965

    In reply to: Show off your Forum !!

    adam613
    Member

    Tiago S, I signed up for your forum because I really like your design, want to know how it works, and am a little new at CSS…hope you don’t mind :)

    #55964

    In reply to: Show off your Forum !!

    Malice
    Member

    http://www.holysh1t.net/forum/

    Spent nearly a half day trying to get the same look as my main blog template. I’m nearly there, just some minor tweaks to get it exactly the same :)

    Besides that I several other plugins.

    #4633
    Seans0n
    Member

    I’ve started coding my first bbPress plugin and I’m now pretty familiar with most of the actions and filters and some of the inner workings of bbPress but I’m stuck.

    The idea of my plugin is to insert AdSense code block in every topic at post X where X is either random or defined by the admin. I’ve been messing around with the post_text filter which allows me to change the text of any given post and insert an AdSense block. I can mess around with the author name and stuff too. The problem is that by doing this I replace the current post with the AdSense block instead of simply inserting it before or after the post, thus the post I replace isn’t visible.

    To get around this I tried to first display the AdSense post then include the post.php file in the currently selected theme. But this crashes, I think due to an infinite loop. I then noticed the pre_post filter which looked promising but I couldn’t find where it’s defined or how it’s used.

    In short, I need an alternative approach or solution to create a custom (and theme-independent) post.

    My code, so far, is visible here: http://pastebin.com/m1cbf6b24

    Cheers

    chrishajer
    Participant

    Do you have access to .htaccess on an Apache server? You could just put this in your .htaccess file:

    Redirect 301 /forums/index.php http://www.example.com/forums/forum-1/

    Without knowing your two URLs, it’s hard to guess, but it can be done fairly easily like this.

    #70760

    In reply to: List of Hooks/Actions?

    Seans0n
    Member

    I just wanted to say thanks to everyone. It took a bit of playing around with grep for Windows but I managed to compile a relatively complete list of filters and actions. Thanks for that.

    Using this method it should be pretty easy to generate a complete list with arguments for the codex, why doesn’t someone who has access to bbpress.org add one? It wouldn’t include descriptions but it’d be a good starting point.

    circuit
    Member

    I only have one forum, so there is no point in BBPress giving me a seperate front page and Latest Disussions list. Is there an elegant way for me to integrate the sidebar into the forum listings page? I tried chopping up the templates but I can’t seem to get the code right.

    rohan_shenoy
    Member

    If you have a config.php file in an directory above it, temporarily rename that config.php to x_config.php or some other name. Now complete the bbPress installation and then again rename x_config.php to config.php.

    That solved my issue.

    #71119
    A1ex
    Member

    See https://bbpress.org/forums/topic/php_e-issue#post-16264

    But there instead of wp-blog-header.php and wp-wp-blog-header-bb.php must be used wp-load.php and wp-load-bb.php files.

    #4623

    I’ve tried to install bbPress in a several different locations, but i always get an errormessage at Step4:


    Installation failed! The database failed to install. You may need to replace bbPress with a fresh copy and start again. Referrer is OK, beginning installation…

    Step 1 – Creating database tables

    >>> Database installation failed!!!

    >>>>>> Halting installation!


    I cleared the database tables also and retried to install. But with no success. We use PHP 5+ and MySQL 4.1 on Suse Linux. I also tried to chmod some directories. No success.

    As i took a closer look at the code, i can report that the errors is thrown from class-install.php on line 1513: $alterations = bb_install(); after doing a print_r on the alterations array, i can see it has now values.

    EDIT:

    further debugging shows the following errors:

    Key master could not be created!

    Forum could not be created!

    So it seems, that the forum couldn be created. If i create it manually. The frontend works. but when i try to login to the admin panel, i always get redirected to the frontend without an error.

    maybe this could help…

    kind regrads from germany

    michael

Viewing 25 results - 25,951 through 25,975 (of 32,495 total)
Skip to toolbar