Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,376 through 30,400 (of 32,467 total)
  • Author
    Search Results
  • #56230
    yujin
    Member

    Hi, same problem here in Japan (no wonder;-p)

    The error is caused by a function bb_repermalink() in bb-includes/functions.php, which redirects the request to the correct permalink. You will see what is happening by setting the debug flag in your config file and access the tag page which causes the error

    config.php

    $bb->debug = 1;

    Must be lacking utf8_uri_encode() somewher. I tried adding this right before the evaluation part at the bottom of the function and it seems to be working so far.

    $domain = bb_get_option('domain');
    $domain = preg_replace('/^https?/', '', $domain);
    $check = preg_replace( '|^.*' . trim($domain, ' /' ) . '|', '', $permalink, 1 );
    $check = utf8_uri_encode($check); // add this line

    Well, I don’t really understand the structure of the bbPress source code so the solution here is something very opportunistic and may cause a side-effect.

    #52907
    citizenkeith
    Participant

    Hi spencerp! :)

    I am not using WP, so the integration is taking place between MW and BB only. BB was already installed, and I have 26 users. Integration took place *after* I installed MW in the same database as BB.

    #52905
    citizenkeith
    Participant

    Here’s what I’ve done so far:

    Installed Mediawiki. Put Authpress in the extensions folder. Added code to LocalSettings.php. In that file, I tried both with and without these lines, uncommented and with my database information:

    # Only include the following if you aren't using the same db as MediaWiki
    $wgAuth->setAuthPressDBServer ('FIXME');
    $wgAuth->setAuthPressDBName('FIXME');
    $wgAuth->setAuthPressUser('FIXME');
    $wgAuth->setAuthPressPassword('FIXME');

    I added false, 0, as described here:

    http://comox.textdrive.com/pipermail/wiki-tech/2005-August/000028.html

    I’ve tried every combination, but MediaWiki still looks for the table mw_bb_users instead of bb_users.

    My only option is to re-install MediaWiki without the table prefix, but I’d prefer to avoid that.

    #57120

    In reply to: How I change theme?

    fel64
    Member

    Themes have to be put in /forum/my-templates/theme-name/, not in bb-templates. So you would put the Crystal files in /forum/my-templates/crystal/ (make the my-templates folder if you don’t have one). Then go to the “admin” area, click on “Presentation” then click on the theme you want. :)

    #55550

    In reply to: Hooks & Filters Docu

    Null
    Member

    quote: How about bbpulp.org ?

    I love it :D

    #55549

    In reply to: Hooks & Filters Docu

    Sam Bauers
    Participant

    We should assume that codex.bbpress.org is out of the question for now, even though the content that we generate may end up there.

    How about bbpulp.org ?

    #57109
    fel64
    Member

    Hello Individual,

    are you using the Latest Discussions plugin? There is no simple switch to flick that I know of.

    The way to do it I think is to find all stickies – perhaps there’s an API function, perhaps you need a quick database query – output them, count them and output the remaining number of threads the way it’s done now. You could work that into the current plugin. If you don’t want to get your hands dirty, perhaps someone will do it for you. :)

    No problem,

    fel

    #55548

    In reply to: Hooks & Filters Docu

    fel64
    Member

    Didn’t you say there will be no Automattic documentation before 1.0 release? Obviously codex.bbpress.org is the best, but that would be official … and we haven’t got official.

    #55546

    In reply to: Hooks & Filters Docu

    Trent Adams
    Member

    I still think that codex.bbpress.org is still the best though to avoid confusion and keep the same design. Someone send something in the developer list again for some ‘more pointed’ discussion on this.

    Trent

    #55544

    In reply to: Hooks & Filters Docu

    fel64
    Member

    bbwiki.com is taken, but http://www.bbreference.com is not. If it’s understandable it doesn’t matter that much anyway. :)

    #57086
    talgalili
    Member

    Trent – I see you have fixed the problem. Thank you very much !

    I will now go to build the forum, and will share with all of you once I made it work (and also, will share my Hebrew translation to the rest of the community)

    Again, Trent, thank you very much :)

    p.s: one small correction I made to the stylesheet, was to the header.

    In the current configuration, The first letter of the name of the forums, is cut off.

    So to fix it, I erased the line:

    font-style: italic;

    from the file style.css, in the “#header h1 { ” section, as seen here:

    In style.css:

    #header h1 {

    font-family: Georgia;

    /*font-style: italic;*/ <– this line

    position: absolute;

    display: block;

    color: #444;

    text-align: right;

    letter-spacing: -1px;

    right: 59px;

    bottom: 31px;

    }

    I don’t know how to incorporate it into the trunk or to post a ticket, but I hope what I write will help…

    Another small issue (which matters little to me, but is worth noting) :

    When the mouse hovers around a header of (for example a forum name): in Firefox, you get the whole line to change color(as it should). in IE you deon’t get that effect.

    Tal.

    Sjon
    Member

    Hope this is the right place. I just installed the latest svn version on my local pc, and got the forementioned error twice (also with topic_slug field). Running mysql 5.0.

    Patch:

    Index: upgrade-schema.php
    ===================================================================
    --- upgrade-schema.php (revision 805)
    +++ upgrade-schema.php (working copy)
    @@ -4,7 +4,7 @@
    $bb_queries = "CREATE TABLE $bbdb->forums (
    forum_id int(10) NOT NULL auto_increment,
    forum_name varchar(150) NOT NULL default '',
    - forum_slug text NOT NULL default '',
    + forum_slug text NOT NULL,
    forum_desc text NOT NULL,
    forum_parent int(10) NOT NULL default '0',
    forum_order int(10) NOT NULL default '0',
    @@ -31,7 +31,7 @@
    CREATE TABLE $bbdb->topics (
    topic_id bigint(20) NOT NULL auto_increment,
    topic_title varchar(100) NOT NULL default '',
    - topic_slug text NOT NULL default '',
    + topic_slug text NOT NULL,
    topic_poster bigint(20) NOT NULL default '0',
    topic_poster_name varchar(40) NOT NULL default 'Anonymous',
    topic_last_poster bigint(20) NOT NULL default '0',

    Regards,

    #57060

    In reply to: Plugin: bbPortal 1.2

    citizenkeith
    Participant

    keith:

    you mean like a read more?

    Yes, that’s what I mean. :)

    #57057

    In reply to: Plugin: bbPortal 1.2

    citizenkeith
    Participant

    Thanks Null. :)

    One additional thought… is it possible to limit the length of the post on the portal page, then have a link at the bottom that will take you to the full post in the forum?

    #57055

    In reply to: Plugin: bbPortal 1.2

    citizenkeith
    Participant

    Thanks Null! We’re using bbPortal at our forum now. :) Any chance that you can add Sticky support for topics? I have a topic stickied in my designated portal forum, but it doesn’t appear stickied on the portal page.

    #57052

    In reply to: Plugin: bbPortal 1.2

    Null
    Member

    Do you also run php 5? and/or mysql 4?

    and can you check if the bb_menu table is created in your db and if there is stuff in it?

    To be honest, I have realy NO idea why you guys have these errors or why they occurs. Since you both have the same problem with the same lines of code, I am guessing that OR i programmed something wrong (that can be, cause I really am a programming noob) or it is a php/msql version problem.

    Do you see the menu tabs in the admin area?

    If you dont realy need the menu part, but want to play/use the portal only, you can create a clean php file naming it bbmenu.php and put in a function called: get_bbmenu(). Just make sure this function does nothing at all. Upload it to your plugin directory and you can use the portal plugin. The portal plugin checks if this functions excist in order to continue, but in this stage it doesn’t realy need the bbmenu plugin yet (it is usable without it). Only thing is you won’t have a nice menu on your portal page then…

    #57049

    In reply to: Plugin: bbPortal 1.2

    Null
    Member

    Perhaps cause it’s php 5? I dunno it seems to have problems with:

    $r = mysql_query("SELECT * FROM$bbdb->menuWHEREset= 'active' ORDER BYorder` ASC”);

    while($rw = mysql_fetch_array($r))`

    You can see the tabs in the admin erea? (is your bb_menu table filled?)

    edit:

    perhaps add:

    global $bbdb; right above the code (above the $r) I showed… what happens then?

    #55537

    In reply to: Hooks & Filters Docu

    Sam Bauers
    Participant

    Yes, we could set up a wiki – but to avoid (most of) the stated problem it would have to be a technical/developers wiki for now. We should also agree to move it’s contents to any official wiki when it comes along. I assume that an official wiki would use the same software as codex.wordpress.org which appears to be mediawiki, so to be compatible when the time comes we would have to use that too. My personal thought is that it is about time for this, and as the development community grows it is becoming necessary. I could set one up in half an hour (I’d be happy to host it – ad free). And we could work out the taxonomy of it here.

    To be slightly democratic, I say if ten people who we recognise as regulars/developers vote for it here, then we should go ahead. I’m also willing to hear arguments against the idea too.

    Should we vote on it?

    #55075
    fel64
    Member

    To make the fix work, thierry, you have to change the field to 0 and save with the plugin applied. It doesn’t automatically unmark them I think.

    #55074
    thierryyyyyyy
    Participant

    Actually, I said something wrong. New posts I wrote are now considered as bozo. I feel that as soon as a user is considered as bozo, all his posts (and also pasts posts) should be marked as bozo, no ?

    It seems that mdawaffe has lot to do on other projects. No correction after 1 mounth of bug submission, we feel abandonned.

    I used this SQL query to mark all my bozoed posts (from the poster who have id=1, which is usualy the keymaster) to “normal” post :

    UPDATE bb_posts
    SET post_status=0
    WHERE post_status=2 and poster_id=1

    my posts after this “update” has not been bozoed. My profile page still shows a “1”.

    #1769
    smurfdude
    Member

    When i was using author.php for my wordpress profile i used the following code to show the latest blog posts i had made

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

  • ” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>

    <?php the_title(); ?> Posted @ <?php the_time(‘d M Y’); ?>

  • <?php endwhile; else: ?>

    <?php _e(‘Well well, it looks as if this user has no posts. Nevermind!’); ?>

    <?php endif; ?>

    This doesn’t work in my bbpress profile, even though i have the 2 integrated. Any ideas of how i could get it to work?

#55535

In reply to: Hooks & Filters Docu

Null
Member

It’s out of our hands, come sit with us, silent demonstration :D

#56690

In reply to: Plugin: Avatar Upload

Sam Bauers
Participant

I have found that there are many more mime-types out there. Heres a list of extension to mime-type associations that you might want to add. I have built up this list over the last few years of real world use of applications.

'png' => 'image/png'
'png' => 'image/x-png'
'png' => 'application/png'
'png' => 'application/x-png'

'jpg' => 'image/jpeg'
'jpg' => 'image/jpg'
'jpg' => 'image/jp_'
'jpg' => 'image/pjpeg'
'jpg' => 'image/pjpg'
'jpg' => 'image/pipeg'
'jpg' => 'application/jpg'
'jpg' => 'application/x-jpg'

'jpeg' => 'image/jpeg'
'jpeg' => 'image/jpg'
'jpeg' => 'image/jp_'
'jpeg' => 'image/pjpeg'
'jpeg' => 'image/pjpg'
'jpeg' => 'image/pipeg'
'jpeg' => 'application/jpg'
'jpeg' => 'application/x-jpg'

'gif' => 'image/gif'
'gif' => 'image/gi_'

.

Of course, you would have to adapt your code to handle multiple mime types for each extension like so (or similar)…

Line 31:

$allowed_types = array(
'gif' => array(
'gif' => 'image/gif',
'gif' => 'image/gi_'
),
'jpg' => array(
'image/jpeg',
'image/jpg',
'image/jp_',
'image/pjpeg',
'image/pjpg',
'image/pipeg',
'application/jpg',
'application/x-jpg'
),
'png' => array(
'image/png',
'image/x-png',
'application/png',
'application/x-png'
)
);

$allowed_types['jpeg'] = $allowed_types['jpg'];

.

Line 124:

if ($error == 0 && (!in_array($img_type, $allowed_types[$img_ext]) || !in_array($img_ext, $allowed_extns)) ) {

.

Then remove the next conditional block from line 130 to line 134 because that check is now covered in the previous conditional block.

#56689

In reply to: Plugin: Avatar Upload

fel64
Member

Now if only there was a way to display a default image if the user hasn’t uploaded one.

That’s the point of the identicon jobbie, it assigns everyone a unique and easily distinguishable image when they sign up. :)

Louisedade, bb_init is called before bb_head I think. In your avatar.php template file it should also be class="bbcrumb" rather than id="breadcrumb", at least if you want the same styling as everything else.

Viewing 25 results - 30,376 through 30,400 (of 32,467 total)
Skip to toolbar