Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 6,351 through 6,375 (of 6,788 total)
  • Author
    Search Results
  • #60733
    chrishajer
    Participant

    Sounds like permalinks are creating a problem. Turn them off in your config.php and see if you can view posts.

    Make this line in your config.php look like this:

    $bb->mod_rewrite = false;

    (maybe it says true or slugs now)

    I don’t believe an .htaccess files comes with a default install. You would need to create one, so there won’t be one anywhere unless you created it, and it goes in the root folder of your forum. You can take care of that later, once you can at least see your posts.

    #52551
    outchy
    Member

    I can’t figure out how to hack this :/ Does anyone feel like helping me? :)

    #2393
    dvdiveguy
    Member

    During installation when I go to step 2 I get the following access violation message

    PHP has encountered an Access Violation at 0AF7B927

    bbPress

    Second Step

    Now we’re going to create the database tables and fill them with some default data.

    1. Created table dvdgbb_forums

    2. Created table dvdgbb_posts

    3. Created table dvdgbb_topics

    4. Created table dvdgbb_topicmeta

    5. Created table dvdgbb_users

    6. Created table dvdgbb_usermeta

    7. Created table dvdgbb_tags

    8. Created table dvdgbb_tagged

    At this point the tables have actually been created in the database but I can’t go forward with the installation. So if I start again I get the following.

    First Step

    We found Steve who is already a “Key Master” on these forums. You may make others later.

    First Forum

    Forum Name:*

    Description:

    Double-check that username before continuing.

    From here everything goes fine and I get this

    Finished!

    Now you can log in with the username “Steve” and password “*Your WordPress password*”.

    Username

    Steve

    Password

    *Your WordPress password*

    Login address

    Diver Forums

    Were you expecting more steps? Sorry to disappoint. All done! :)

    Unfortunately, I never got a valid password in the process so I can’t login. So I tried the password reset and the send me the password features but to be able to email from my server I need to put 2 ini_set statements before the mail statement so it knows which smtp account to use (this is for server security). the problem is that I will have to search all the files looking for the mail function.

    Can you help me out here.

    Here is my System Info

    PHP Version 5.0.4

    mySQL Versions:

    Server: 4.1.12

    Client: 4.1.7

    Steve

    I’m adding to this because I have since found and edited the registriation_functions.php file so it would send emails. I used the reset password functions to get a new password via email. The first step had me go to a url with a key at the end. Once I got the password I tired to login and got a Key Not Found error. So I took the key part of the url from the first email and forced it into the user meta table in the database. After that, I could login successfully. However, now when I create a topic and post it and then try to view it or any other things like edit users or forums it always returns an unable to locate page error. Well that’s where I’m at now. Its 2am so I going to bed.

    #60650

    In reply to: Cookies

    Trent Adams
    Member

    Not sure which file actually ‘writes’ the cookie, but as you know you can play around quite a bit by changing things in config.php. For example:

    For default installs this effectively makes the cookie names:
    'bb_user_' . md5('bb_')
    'bb_pass_' . md5('bb_')

    You can override the name of the cookie by setting values for the following somewhere in config.php:
    $bb->usercookie = 'my_great_user_cookie_name'
    $bb->passcookie = 'my_great_pass_cookie_name'

    Other than that, another user might have to tell you what function creates the cookie and then check the code. function.php maybe?

    Trent

    #56760

    In reply to: Plugin: Avatar Upload

    LMD
    Participant

    Thumbnails are now an undocumented feature in version 0.8.3.

    It’s undocumented because I think it ought to be road tested first. To use thumbnails you have to enable the feature in the plugin file itself, it is not configurable in the admin options page.

    1. Open up bb-avatar-upload.php and in the configuration settings class, scroll down to the following section:

    // Use a thumbnail image (hidden feature for now). 1 = yes / 0 = no (default)
    $this->use_thumbnail = 0;
    $this->thumb_width = 25;
    $this->thumb_height = 25;

    Set $this->use_thumbnail to 1 to enable and change the dimensions if desired.

    When enabled, whenever a user uploads an avatar a smaller copy is created with the prefix ‘thumb.‘ So the avatar username.jpg will have a thumbnail called thumb.username.jpg (the file type changes with the avatar file type, so PNG avatars produce PNG thumbnails etc).

    2. You can access the thumbnail image with the following function call:

    echo avatarupload_displaythumb($user->ID);

    An image tag is returned with the class name avatar_thumb.

    <img src="thumb.username.jpg" width="25" height="25" alt="Username" class="avatar_thumb">

    I think that covers everything, let me know if you have any problems.

    #2362

    Topic: User ID bug

    in forum Troubleshooting
    amalinow
    Member

    Problem with inserting users.

    Now, I am having a problem where my last insert id on the bb_users table is 10,000,000,430 and the user registration is broken.

    So I have looked at the code in bb-includes/registration-functions.php

    and I’ve found that this line in the bb_send_pass() function is causing trouble:

    $user = (int) $user;

    After this line $user is set to zero, where it was 10,000,000,430 before.

    After examining further, I found numerous places where you had $user = (int) $user;

    It seems like PHP cannot handle the type cast of 10,000,000,430…

    Btw… I do not know why the last_insert_id is 10,000,000,430, seems like something done by the previous website owner. However, looking at the bb_users.ID column it looks like it is BIGINT by default – which is too large for php integers which is only 32 bit signed…

    #60527
    fel64
    Member

    Actually the function works just fine, you’re just expecting it to work differently. Try using different flow control or rewriting your logic.

    if( blah_is_true() ) {

    } elseif( foo_is_true() ) {

    } elseif( third_thing_is_true() ) {

    } else {
    // default
    }

    The elseifs mean that if a previous if statement was true, none of the successive ones will be tried. That way, if it is bb, it won’t even check if it’s single or a page.

    Alternatively,

    if( ( is_single() || is_page() ) && !is_bbpress() ) {

    }

    will work just fine.

    If you’ve integrated bb into wp that way, of course some of the WP template tags will work that way. If you wanted everything else to return false when you loaded bb, you’d have to do this:

    function adjust_flags_to_bb() {
    global $wp_query;
    $wp_query->init_query_flags();
    }
    add_action('bb_init', 'adjust_flags_to_bb', 999);
    //not sure if that's the right action, but meh

    but that’s really quite unnecessary.

    #60455

    In reply to: Advanced Search

    fel64
    Member

    It’s pre-1.0. What did you expect?

    > so you can not search by poster name, or a date range?

    Yes, you can. That is only the default.

    > Your search page may need a template change: https://trac.bbpress.org/ticket/694#comment:1

    #2360
    Jaithn
    Member

    hello guys,

    i have succesfully integrated bbpress and wordpress…i’m still working on the template integration, but is in progress…

    but i also have some little problems…

    1. i can only logout through the script i login…wordpress login -> only wordpress logout works

    2. the side doesnt let me download files…wenn i click on a link to a pdf the following error occurs:

    Fatal error: Call to undefined function load_default_textdomain() in /home/www/kunden/fsj-community.de/wordpress/forum/bb-settings.php on line 182

    direkt link: http://zuhause-weltweit.de/files/2007/09/zwev-satzung-beitrittsformular.pdf

    side: http://zuhause-weltweit.de

    can you guys help me out?

    jaithn

    #60507

    In reply to: tr td .num font size?

    chrishajer
    Participant

    In your theme’s style.css (or the default theme style.css) you want to find this at around line 255:

    .num, #forumlist small {
    font: 11px Verdana,Arial,Helvetica,sans-serif;
    text-align: center;
    }

    That controls the styling of <td class=”num”>.

    I also recommend you use the Firefox web browser with the Web Developer add-on by Chris Pederick for finding things like this.

    #60492

    In reply to: Unread Topics

    fel64
    Member

    Err, no. :P I read your description here. I thought about that approach before but I like the time-based implementation, especially as my hosting is a bit creaky (and edit: having come to the finish of this post, I realise that it’s actually not that bad at all! Maybe it is a good idea, especially as it’s a lot more convenient). It’s good that you’ve done it though, and cool that you’re sharing it (in the face of adversity :P). I hope you don’t mind; here’s some suggested changes that could speed things up a lot.

    For installing the table, you may want to use bb_dbDelta() (should work exactly as wp’s implementation: https://codex.wordpress.org/Creating_Tables_with_Plugins ).

    There are also a lot of queries made that you could probably avoid. For example, in the topic listing the current topic will be in the global $topic, and you can get its last_post_id by this:

    $last_post_in_topic = $topic->topic_last_post;

    You can do the same for the number of posts.

    Every column in the table will be available as a member variable (don’t know how familiar you are with PHP? Member variables are just like above, $member->!!!member_variable!!!) – that’s true for users, posts, topics and forums alike. (Meta entries are too, if there’s an entry topic_colour in the topicmeta table you can call it by $topic->topic_colour.)

    Right now you’re making at least three additional queries per topic:

    if ( utplugin_is_topic_unread($topic, $user) || utplugin_is_topic_new($topic, $user) )

    utplugin_is_topic_unread() makes three queries. If it’s not unread, it’ll check if it’s new, too, which is another two. For the default 30 topics, that’s 90 – 150 additional database queries per single view of a page. Since db queries are usually the bottlenecks in website speed that could be a problem. (_ck_ would probably blow an artery.)

    By using the already-queried stuff from global $topic you can cut that down to one or two topics per query. Also, in utplugin_is_topic_new() you’re using exactly the same value again, but making a new query for it, if I see that right. You could either move the check to utplugin_is_topic_unread() (which would return true for unread and for new) or make that a global itself.

    That would make it at most one query per topic.

    Finally, IIRC data for all topics on the page is being called in a single query. If you can find the right filter or hook, you may find that you can get all the relevant topic_ids at once, at the start, then do a _single_ query on your table that gets data for all of them, make that a static (so it’s preserved every time the function is called) and use that data every time. Then the overhead generated by your plugin wouldn’t even be so bad.

    #60188
    neyoung
    Member

    ok. I’ve figured out whats causing the problem. It comes down to the Default Role Plugin. There is nothing wrong with the plugin itself other than the fact that it relies on wordpress functions. Thus you need to load wp along with bbpress. To do so I have the following added to the top of my config.php file.

    require_once('../wp-blog-header.php');
    define('WP_BB', true);

    With the two lines in the config.php file the allow images plugin does no work. I even tried disabling the Default Roles plugin and leaving the 2 lines in config.php to make sure the plugin wasn’t the culprit. If I remove the two lines the Allow Images plugin works as expected.

    I don’t know much, but I could take a stab at whats happening. Is it possible that when a reply/topic is made, bbpress is calling wordpress functions instead of bbpress functions?

    #60091

    In reply to: top 100 bbPress sites

    henrybb
    Member

    _ck_: have you considered hacking up a plugin that gathers information about the forum upon activation and once per month after that and submits it to you in some way? Would automate the process way more for you and admins instead of having to post the link to you, and then you having to review all the sites.

    I’m thinking it would fill out an HTML form and submit it to a site you had. Then people could log in and see updated information about the most active bbPress boards and what their functionality was. And you could compile a static list regularly.

    If it was well written, I’d be interested in seeing it in bbPress by default so new admins who wouldn’t find the plugin here could activate it and submit statistics.

    Ofcourse, there’d be some bozos trying to inflate their numbers sometime down the line..

    #60409
    fel64
    Member

    To delete a topic, you have to open the topic, scroll to the bottom and click [Delete Entire Topic]. You can’t rename the theme as it’s a default, but you can make your own theme (and name it whatever) by creating a my-themes folder in root and creating a style.css file (you can just copy the one from bb-templates/kakumei to start with, as a reference).

    #59876
    _ck_
    Participant

    Oh sorry, I’ve created a new main theme so this one isn’t visible anymore by default.

    However thanks to a theme switcher I pieced together you can now see it this way:

    http://bbpress.dreamhosters.com/forums/?bbtheme=kakumei-too

    (I’m calling it “Kakumei Too” for lack of a more creative name right now)

    You can switch to other themes using the toggle in the bottom right.

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

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