Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,976 through 26,000 (of 32,516 total)
  • Author
    Search Results
  • #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

    #71053
    bamosk
    Member

    Hallo and thank you so much, it works!

    For all who know even less than me about php, there is one little change to do:

    Just start the code with: <?php

    And it will work great.

    Thanks to all!

    #4622
    geekjon
    Member

    I created this plugin for personal use, but others of you might find it useful too.

    The Amazon Quick Linker plugin allows you to wrap keywords in bbcode style markup [amazon][/amazon] and it will then turn that into a search results link.

    Example: [amazon]programming php[/amazon] would become programming php

    Amazon Quick Linker plugin page

    #71051
    chrishajer
    Participant

    You could use the bb_is_user_logged_in() function like this:

    <?php if ( bb_is_user_logged_in() ) { ?>
    <div id="hottags">
    <h2><?php _e('Hot Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?>
    </div>
    <?php } ?>

    You were very close with your guess as to the function name.

    #4598
    bamosk
    Member

    Hallo,

    Please excuse my english!

    I’using “private forums” and “approve user registration” to keep my forum privat. I don’t want to show the tags to users who are not logged in.

    So I just did this <!– –> with the tags part in front-page.php.

    But is there any way to show the tags to users who are loggend in?

    For example change the front-page.php to something like:

    if (user_is_logged_in)

    {

    <div id=”hottags”>

    <h2><?php _e(‘Hot Tags’); ?></h2>

    <p class=”frontpageheatmap”><?php bb_tag_heat_map(); ?></p>

    </div>–>

    }

    This would be very nice :)

    Benjamin

Viewing 25 results - 25,976 through 26,000 (of 32,516 total)
Skip to toolbar