Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 6,351 through 6,375 (of 6,773 total)
  • Author
    Search Results
  • #58896
    kboan23
    Member

    I just discovered something and wanted to run it by the forum. I agree…when I registered in bbPress and then logged into WordPress as the administrator, that new registrant was not given a role.

    However, after I actually logged on as the new person and then logged BACK on as the administrator to see what was what…the person’s role was actually changed to “Subscriber” – my default role in WordPress.

    So, if this is true, and I’m not missing something that could catch me up…it seems that this whole issue might be mute. Once the user actually logs in, their role is set as the default role so their rights are restricted by that role.

    Has anyone else experienced this? Am I perhaps missing something that I’m really going to regret if I don’t fix this?

    Thanks,

    K

    #58892
    kboan23
    Member

    I’m trying to create this plugin. When I try to register using bbPress, I get this error message…

    Fatal error: Class ‘WP_User’ not found in /home/sbisdedt/public_html/web20/forum/my-plugins/default-role.php on line 11

    The registration actually takes place; the person receives the email with the password; their registration shows up in both WordPress and bbPress.

    But how do I stop that error message from appearing. What could I have possibly done wrong.

    Thanks for your help.

    K

    #2323

    Topic: bbPress Theme Showcase

    in forum Themes
    _ck_
    Participant

    Please let me know if I missed any decent themes available?

    http://bbshowcase.org/forums/view/available-themes

    You can click on them to get a general idea what they look like in action. Themes reset back to default in three minutes (or use the theme switcher in the bottom right hand corner on any page).

    Still needs a bug fix or two but I’ll release that as a “My Views” module along with the theme switcher probably this coming weekend.

    Whew. That was a project and a half.

    #2319
    _ck_
    Participant

    I couldn’t find anyone who made a bbPress theme switcher (not a style switch, but the entire template) so I modified (somewhat deeply) one from WordPress last night. Took some research and testing!

    I’ve added it here, you can see the dropdown at the very bottom right:

    http://bbshowcase.org/forums/

    (if you are willing to edit all your themes you can put the dropdown anywhere, otherwise it will default to that location on each theme automagically – a new feature!)

    So give me your themes and I’ll add them to the list to see if I can find the bbPress breaking point…

    #60338
    _ck_
    Participant

    Yup this is a bug and there is a fix that I can’t remember for the life of me. It might be already fixed by default in the alpha.

    Let me google away and see if I can find it… I know it’s very annoying.

    I vaguely remember it has something to do with the forum pointer not being reset after the sub-forums are displayed.

    #60299
    chrishajer
    Participant

    I guess after re-reading, you are not sure what files to modify. Each of the php files in the template folder are used to display SOMETHING. When I first started out, I had no idea what file was used to display each page, or view, or whatever. So, I usually found a page I didn’t like the look of, just by looking at it in the browser, then I found a word on that page that seemed distinct enough that I could grep through all the template files for that word. In a lot of cases, I would find one file or maybe 3 files where that word occurred. That’s how I knew what page to modify. I’m sure someone with more knowledge could tell you that forum.php is used to display a single forum, or that topic.php is used to display a single topic.

    One thing I did right off the bat to see which php pages were actually displayed and not called from other php files was to look in the template folder for something called header.php. There’s always a header.php and a footer.php, it seems. So, there is indeed a header.php. Now, since that is the header for each page, that has to be called from any page that is displayed in the browser. So, I grepped through all the php files in the template folder for header.php and found there are no files called header.php. I know they have to call header.php somehow, maybe it’s a function. So, I grepped through all the files for header without the php, and it returned a ton of files with header in them.

    shell:~/forum/my-templates/mytheme > grep -i header *php
    edit-post.php:<?php bb_get_header(); ?>
    favorites.php:<?php bb_get_header(); ?>
    forum.php:<?php bb_get_header(); ?>
    front-page.php:<?php bb_get_header(); ?>
    header.php: <div id="header">
    login.php:<?php bb_get_header(); ?>
    memberlist.php:<?php bb_get_header(); ?>
    password-reset.php:<?php bb_get_header(); ?>
    profile-base.php:<?php bb_get_header(); ?>
    profile-edit.php:<?php bb_get_header(); ?>
    profile.php:<?php bb_get_header(); ?>
    register-success.php:<?php bb_get_header(); ?>
    register.php:<?php bb_get_header(); ?>
    rss2.php:<?php header('Content-type: text/xml'); ?>
    search-stock.php:<?php bb_get_header(); ?>
    search.php:<?php bb_get_header(); ?>
    stats.php:<?php bb_get_header(); ?>
    tag-single.php:<?php bb_get_header(); ?>
    tags.php:<?php bb_get_header(); ?>
    topic.php:<?php bb_get_header(); ?>
    view.php:<?php bb_get_header(); ?>

    OK, so they call the header with a function called bb_get_header. I grepped again for that, to eliminate the other places the word header appears (div id=”header” for example.)

    Now, I have a list of every page, I think, that’s used to display some content to the user in a browser. If you are trying to change the structure of a certain page, it’s going to be one of those php files listed there.

    If you’re just trying to modify the look (not the actual structure) you might just be able to make a change to the style.css. Find the id or class of the element you want to change (view source in your browser to see what’s being used currently) then change that element in the style.css.

    One thing I did right off the bat was styled the blockquote. By default (when I installed a year ago) there were no styling rules for blockquote. No indent, no different font, no border, no color change, nothing. So, I added a definition to the style.css for blockquote.

    In some cases you’ll be modifying existing rules, in others you’ll be created new ones for things that might be unstyled.

    I find Chris Pederick’s Web Developer Toolbar add on for Firefox invaluable for modifying CSS.

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

    You can make a change while viewing the page and see the effect right away. Then, you can make the change permanent by modifying the style.css. The changes made in with the web developer toolbar are local only, they’re not saved. Play all you want there, you won’t break anything. Make a change you like, then make it permanent in the style.css.

    #60298
    chrishajer
    Participant

    > A few silly questions:

    > Changing or adding hot tags. Whats the procedure?

    When a topic is added, the user can add tags upon creation. I think each user can also delete tags they have added themselves. As admin, you can add or delete tags on any topic when viewing the topic. So, you can delete or add a tag. Was there something else you needed to do?

    > Looked through dashboard and can’t seem to find how

    > to change or add new topics. Forums can be added but

    > don’t know about topics.

    To create a new topic, just create one as a user or as the admin user. There’s no specific place in the admin panel to do it. It’s just done in the forum.

    > Last query: Again I ask about the changes made to

    > structure in the html. I looked through all files and found

    > nothing. Many scripts I have used in the past have one

    > file called index or something that can be access to the

    > html. Just creating or changing the style sheet does not

    > allow for the changes I want to make. I like the default

    > but some changes to reflect my website is key.

    I guess it depends what you are looking to do. I know from other posts you have seen what other people have done to change the look of their forum. So, anything is possible. You want to avoid changing core bbPress files so that when you upgrade those changes aren’t lost.

    You start by changing the template files. Default template files are found in bb-templates/kakumei/. To create your own template, create a directory called /my-templates/ (on the same level in the filesystem as bb-templates). Then, in there, create a folder which will be the name for your template, so maybe something like ronjroy. Your directory structure would look like /my-templates/ronjroy/ .

    In that folder, put a copy of whatever file you want to modify, or put a copy of all the files from the default theme. I think at a minimum you need to have a style.css in this folder. IMPORTANT: modify the name of the theme by changing it at the top of the style.css file. Maybe you want to call it “Ron J Roy”. Change this line (at least) at the top of style.css:

    Theme Name: Ron J Roy

    (I copied all the files over from the default theme, but I know now that’s redundant. If you are not making a change to a file, you don’t need a copy of it. You need style.css and then any file you want to modified. The file present in my-templates/{whatever} override the stock files. If a file is not present in your theme, the stock one is used.)

    Now, select your new theme in your admin panel (Presentation > Themes, or navigate to bb-admin/themes.php). If it’s not showing up in the admin panel, then something is wrong in the files you copied over. Maybe you made a mistake in editing the style.css.

    Now, you should see your new theme there by name anyway. Select it. Now, because your theme is just a copy of the stock theme with a new name, the screenshot is identical (you just copied over screenshot.png), and when you use your new theme, the forum will look exactly the same as the stock theme. That’s OK. The files in the my-templates/ronjroy/ are being used to display the template, but they’re unchanged from stock, so they look the same. At least you’re using your new theme. Now the fun begins.

    Pick a file, any file, in my-template/ronjroy. Make a change to the HTML in a PHP file or to the CSS in style.css. Save it. Now refresh your forum. It should look different. If you broke something, fix it in your theme, or just change the theme back to stock and go back to stock, then figure out what you broke.

    These are not official docs by any means. It’s stuff I figured out from using the software in the past year. Some of it may have changed in new versions since I started. One thing I have learned about installing forum software though: if you find that you can’t understand the software enough to modify it, move on to another project. I don’t mean that in a bad way. I mean, if you’re not able to do the things you want, the way you want them, then why bang your head against the wall? Just install something else. It’s not worth the hassle. The hassles I was having with other software is why I ended up with bbPress. I grok it, I like it, and we get along fine.

    (haha – longer reply to a long question)

    #2306
    ronjroy
    Member

    Hello,

    A few silly questions:

    Changing or adding hot tags. Whats the procedure?

    Looked through dashboard and can’t seem to find how to change or add new topics. Forums can be added but don’t know about topics.

    Last query: Again I ask about the changes made to structure in the html. I looked through all files and found nothing. Many scripts I have used in the past have one file called index or something that can be access to the html. Just creating or changing the style sheet does not allow for the changes I want to make. I like the default but some changes to reflect my website is key.

    Excuse the lengthy text, but I find looking through the documentation much like chasing my own tail. Thanks to those who have replied to earlier queries. I have made some changes and it looks good so far.

    #60265

    In reply to: UTF-8 / ISO-8859-1

    _ck_
    Participant

    In your .htaccess file put

    AddDefaultCharset iso-8859-1

    Actually, I’m seeing in the header.php template

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    Which would have to be edited directly.

    #2300
    _ck_
    Participant

    I’ve tried hacking a couple wp plugins to bbpress to get better code preservation. But it’s not working.

    What is used here? It seems to actually work somehow and that’s not the default technique in the core…

    #59507
    _ck_
    Participant

    All these problem are both cookie path

    and forbidden character problems.

    Both are poorly documented (or not mentioned at all)

    but the good news is that fixes exist for both issues.

    I have to find my previous instructions on this but

    because bbpress search is so poor, this may take awhile.

    Could someone please get this into a wiki or faq at some point:

    Steps required for more complete and problem-free bbPress+WordPress integration:

    1. cookies paths need to be changed to the same path in both WordPress and bbPress (change to domain root recommended)

    https://bbpress.org/forums/topic/wordpressbbpress-single-sign-on?replies=22#post-9010

    2. the integration plugin should be installed

    https://bbpress.org/plugins/topic/4?replies=26&more=1

    3. the allow spaces in usernames plugin should be installed (also add my underscore hack for characters bbPress by default forbids but WordPress allows – see my message later in same thread)

    https://bbpress.org/forums/topic/usernames-with-spaces-do-not-work?replies=28#post-7904

    4. add the ” set default role when registering new user though forum” mini plugin should be installed:

    https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=10#post-8768

    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. ie:

    <?php $request_uri=$GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"]; ?>
    <a href="/wordpress/wp-login.php?redirect_to=<?php echo $request_uri; ?>"><?php _e('Login'); ?></a>
    <a href="/wordpress/wp-register.php?redirect_to=<?php echo $request_uri; ?>"><?php _e('Register'); ?></a>

    6. optional but highly recommended, install the “use display name” plugin for mods+admin:

    https://bbpress.org/plugins/topic/2?replies=6&more=1

    #60208
    benbeltran
    Member

    SamBauers is right, text/html is right and “application/xhtml+xml” + IE6 = headaches. And it’s really not that important.

    On the other hand, the inline styling parts are more of a problem for people who want to design a theme. To edit the tag cloud I had to edit the code so it could support changing colors. If you could make a class for each step, it would be easier to customize the cloud.

    point 4 .. .well I wouldn’t know about it since I don’t have a colour deficiency, but I can barely notice the change of color. Still, because of the structure of the forum, I am able to differentiate between topics easily, might be something to think about.

    Why not help the project out by editing the default theme so it validates properly and is more accessible (I wouldn’t change the text/html part though) without changing the current looks, if it’s properly executed and it doesn’t make things harder for developers, it might become the official one. Collaborate :)

    #2278
    mazdakam
    Member

    hi again :))

    al of you know that notification email is very important for tracing a post

    i am using post – notification plug in

    but it need to be better:

    don’t send any email until you visit the post from your email link

    i got crazy this month because for every new post i will give notification email and the trafficked of my forum is high

    many other forum systems have this feature

    so i recommend this:

    an option for users to select didgist summary or per post or until he/she visit(default!)

    bobbyh
    Member

    I had a user write a post with this title:

    =)

    This creates a post like this:

    * http://www.kosmosity.com/forums/topic/?replies=1#post-2

    I’m using the “slug” option on this test forum which uses the default theme and bbPress 0.8.2.1. It looks like the =) is being sanitized to “” (an empty string), which confuses bbPress and leads to that topic resolving to an error page. On the test forum to which I just linked, I have no plugins except WordPress Integration.

    Has anybody else run into this bug? Is there an existing workaround? If other people can replicate this bug, I’ll create a ticket in Trac. Also, if there’s no existing workaround, I’ll try to create a plugin workaround.

    Thanks,

    Bob

    #60137

    In reply to: help with new install!

    mikeinspain
    Member

    Never mind, had to default back to a Vanilla Forum..

    #60160

    In reply to: Wrong user count

    Elias
    Member

    Arrgh! Horrors!

    The problem is caused by the bb_append_meta invocation in line 2075 of functions.php. The query destroys the last SQL_CALC_FOUND_ROWS and so the count is wrong. A quick and dirty workaround is to change 'append_meta' => false to 'append_meta' => false in the $defaults array in line 2021 of functions.php. But this only works if the append_meta argument is not given in the bb_user_search call.

    Now the problem is more complicated as I suspected earlier. It is a problem for the hackers that make bbPress. No further searching for bugs from me, the problem should be clear. (It is clear enough to me after reading lots of code from other people.) I expect it to be fixed in the next release.

    #2266
    dennylin93
    Member

    I installed bbPress version 0.8.2.1 on Windows XP Pro SP2 with Apache 2.2.4 and PHP 5.2.3. I installed a few plugins, and everything worked fine. However, when I tried to register a new user for testing, I couldn’t receive the e-mail with the password.

    I checked the error log and found this:

    [Sat Aug 18 21:18:09 2007] [error] [client 127.0.0.1] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\forums\bb-includes\registration-functions.php on line 105, referer: http://127.0.0.1/forums/register.php

    Most things on Apache and PHP are set to default, so I’m not sure if I skipped any processes. I’ve been having trouble with SMTP for a long time now.

    #59827
    Inquirer
    Member

    The following code is in the front-page.php file

    <th><?php _e(‘Freshness’); ?></th>

    What file contains the code to change the Freshness of post format from the default of Days to the Date – Hours – Minutes ?

    #52550
    Sam Bauers
    Participant

    Ummm, I probably won’t add that sort of functionality to the plugin. Perhaps you should try to hack together a plugin yourself?

    #52549
    outchy
    Member

    Thank you for doing this, it’s a great update.

    One more humble request. Is there a way to add a view link that shows all open topics from both “support-forum-no” and “support-forum-mu”?

    (Reason being, I changed the “Not a support question” title to “Important” so I could have two severity levels of open cases instead of just one.)

    #52548
    Sam Bauers
    Participant

    I’ve added the option to create views for all support status types in the plugin

    The new version is 2.2, should be available here soon:

    https://bbpress.org/plugins/topic/16

    #52547
    Sam Bauers
    Participant

    I assume you are using the plugin now and not a really old version of bbPress…

    Although you can now change the default status, the view still only shows the unresolved topics.

    It shouldn’t be too hard to add this as an option to the plugin.

    I’ll see what I can do.

    #59992
    _ck_
    Participant

    Ah, here’s SMF’s secret against bbPress – sheer number of files + size.

    This definitely makes me want to go ahead with making a “quick loader” that will concat all the includes and then all the plugins as two blobs that can be either loaded from disk or mysql at user discretion based on the weakness of their shared server:

    Front pages compared:

    (keep in mind SMF actually has even more features than the dozen plugins loaded with bbPress, online user tracker, etc)

    SMF 1.1.3
    files for front page: 8 files, 338.45 Kb

    index.php : 14.31 Kb
    Settings.php : 3.71 Kb
    Sources/QueryString.php : 18.84 Kb
    Sources/Subs.php : 132.37 Kb
    Sources/Errors.php : 15.94 Kb
    Sources/Load.php : 92.47 Kb
    Sources/Security.php : 29.88 Kb
    Sources/MessageIndex.php : 30.93 Kb
    =====================================================

    `

    bbPress 0.8.3 alpha

    files for front page: 40 files, 437.15 Kb

    index.php : 0.44 Kb

    bb-load.php : 0.46 Kb

    config.php : 2.28 Kb

    bb-settings.php : 7.14 Kb

    bb-includes/db-mysqli.php : 12.77 Kb

    bb-includes/functions.php : 71.73 Kb

    bb-includes/wp-classes.php : 3.37 Kb

    bb-includes/classes.php : 37.98 Kb

    bb-includes/formatting-functions.php : 8.73 Kb

    bb-includes/template-functions.php : 59.12 Kb

    bb-includes/capabilities.php : 13.15 Kb

    bb-includes/cache.php : 8.52 Kb

    bb-includes/deprecated.php : 8.17 Kb

    bb-includes/wp-functions.php : 36.06 Kb

    bb-includes/kses.php : 17.65 Kb

    bb-includes/l10n.php : 1.76 Kb

    bb-includes/bozo.php : 10.1 Kb

    bb-includes/akismet.php : 8.14 Kb

    bb-includes/default-filters.php : 4.45 Kb

    bb-includes/script-loader.php : 9.2 Kb

    bb-includes/compat.php : 0.57 Kb

    my-plugins/_bb-benchmark.php : 4.79 Kb

    my-plugins/_cookie-year.php : 0.92 Kb

    my-plugins/bb-polls.php : 21.04 Kb

    my-plugins/bb-signatures.php : 11.52 Kb

    my-plugins/report-post.php : 3.92 Kb

    my-plugins/user-topics-to-favorites.php : 0.59 Kb

    my-plugins/bb-topic-views.php : 5.91 Kb

    my-plugins/my-views.php : 10.13 Kb

    my-plugins/notification.php : 2.26 Kb

    my-plugins/my-views-started-participated-topics.php : 1.52 Kb

    my-plugins/my-views-most-least-views.php : 2.7 Kb

    my-plugins/plugin-browser.php : 21.72 Kb

    my-plugins/my-views-installed-available-plugins.php : 6.61 Kb

    bb-includes/pluggable.php : 8.86 Kb

    bb-includes/locale.php : 6.91 Kb

    bb-templates/kakumei/front-page.php : 3.03 Kb

    bb-templates/kakumei/header.php : 1.6 Kb

    bb-templates/kakumei/logged-in.php : 0.21 Kb

    bb-templates/kakumei/footer.php : 1.13 Kb

    =====================================================

    #58887
    neyoung
    Member

    I’m learning slowly :) Figured it out.

    #60017
    neyoung
    Member

    Well, it turns out I shouldn’t play with bbpress/wpmu when I’m tired at 2am. I never ended up activating the plugin o.O . Anyways, I got the code that Detective wrote to work once I pulled my head outta my butt!

    Here’s for anyone else that has this problem…

    toss this into a file called default-role.php and put it in your my-plugins directory within your bbpress install folder.

    <?php

    /*

    Plugin Name: bbpress wpmu default role

    Plugin URI: https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=5

    Description: Sets a default WPMU role for all new bbpress users.

    Author: Detective

    Author URI: http://www.ryuuko.cl/

    */

    function wpbb_add_user_role_rk($user_id) {

    $user = new WP_User($user_id);

    $user->set_role(get_option(‘default_role’));

    }

    add_action( ‘bb_new_user’, ‘wpbb_add_user_role_rk’);

    ?>

Viewing 25 results - 6,351 through 6,375 (of 6,773 total)
Skip to toolbar