Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,626 through 31,650 (of 32,467 total)
  • Author
    Search Results
  • #52937
    spencerp
    Member

    And I’m trying to get someone to make up a plugin, or what-not for “forum categories” .. lol

    https://bbpress.org/forums/topic/410?replies=7

    Josh said he’ll probably get on “this” then, just with the Holidays here, and his busy life.. there is no rush. ;):) I trust his awesome plugin’s and work..

    Also, as time goes on, and more plugins start coming around, the DEVS will most likely implement them into the core then.. We just need some patience.. ;) :) As it is though, I still can’t fathom how much is already available (plugin wise) for bbPress.. geesh!

    spencerp

    #52936
    Nicki Faulk
    Member

    There’s a PM plugin available. Check the Plugins tag. :)

    Keep in mind also that bbPress is still in its infantile stages. We all know this and that’s why we’re here — to help improve upon it and watch it grow up into a fuller forum software. :D

    #52892
    spencerp
    Member

    Nevermind! Here’s what I ended up doing..

    1) Edited the MediaWiki:Sidebar by adding in my own custom Register link, pointing to the Blog’s register page.

    2) Edited some of the MediaWiki: (Logouttext, Createaccount, some Login”whatever files”, Nologin, Notloggedin, and maybe a few others) files – Removing all the “create account” references. So the “Login / Create Account” link was chopped down to just “Login”.. same goes for the one found on the actual login page.. (Well.. as far as I know I got all them “Create Account” references lmao!

    3) Replaced those “create account” words/calls with custom text saying “Please click on the register link in the sidebar. Once you’ve created an account through my blog’s register page, you’ll get an email with the details. Once registered, your username and password will allow you to login on the Codex.”

    4) Also, had added that little “hack” to hide the [Edit] link on the pages and stuff, if not logged in.. I had done this before even doing the above.. so.. as far as I know, I’m good to go for the Codex.. :)

    I’ll just have customize the email that comes from the blog after they register there, and the same for the forums.. ;) I guess this is all I need, right people? If there’s more.. please tell me.. whee!

    spencerp

    /Next on the “To-Do” list is implementing my blog’s theme around the Codex.. Wish me luck! …whee!

    #1169
    mistainu
    Member

    my bbpress is integrated with my wordpress. the 2 required plugins, and adding

    <require_once('../wp-blog-header.php');

    in my config file so i could use my wordpress theme as my bbpress template. ok, so everything was file. now i tested it’s functions.

    i tried to make a test topic as sticky. apparently i can’t use sticky as long as the above code (require once etc) was in the config. i removed it and i could do as normal.

    so now i ask: i wnat to keep my wordpress theme as the bbpress template, unless i use that line i can’t… that line is not allowing me to sticky/unsticky. anyway this was the error msg i got.

    Warning: main(../wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/gray/domains/unlimitedinfinity.com/public_html/forums/config.php on line 57

    Fatal error: main() [function.require]: Failed opening required '../wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/gray/domains/unlimitedinfinity.com/public_html/forums/config.php on line 57

    Edit: another error, seems i can’t access my ./bb-admin/ when the above integration is active.

    #52927
    chrishajer
    Participant

    Trent, I created a my-templates/profile.php and changed line 52 of that file from:

    if ( strtotime(get_topic_start_time()) < strtotime(get_topic_time()) )

    to this:

    if ( get_topic_start_timestamp() < strtotime(get_topic_time()) )

    and now it works as expected and returns the correct date for the topic_start_time. I don’t know if that’s the correct way to fix it, but it works over here.

    I also edited a couple of places where sentences end with “ago” and made them consistent with a period, or not, for all of them.

    #52926
    chrishajer
    Participant

    Trent, I am looking into bb-templates/profile.php around line 52. It seems like this test always fails and thus prints ‘No replies.’ Seems like the wrong two values are being compared or something. Also, it seems like strtotime(get_topic_start_time()) returns a really weird date, in the future too, and it’s changing too, every time I run the query. That should not happen for the topic start time (it is what it is, right?) Here are some of the time stamps I’ve received in the past couple minutes.

    1169441052 Sun, 21 Jan 2007 22:44:12 -0600

    1169441231 Sun, 21 Jan 2007 22:47:11 -0600

    1169441457 Sun, 21 Jan 2007 22:50:57 -0600

    The topic_start_time from MySQL:

    2006-12-07 21:43:24

    The topic_time from MySQL:

    2006-12-17 15:58:30

    The topic_time is accurate in the profile page (1166389110) but it fails because get_topic_start_time() is returning some date in the future…

    Weird.

    (Also, the date on my server is accurate, and my post freshness is working properly. The only issue I have with time is that the server is GMT -0500 and my customers are GMT -0600, so the post times are off an hour, but no one minds that.)

    #1168
    chrishajer
    Participant

    Sometimes, when I search my forum, I get search results with a title and post meta (date, poster name, etc.) but the context of the search term is not shown. It appears this piece of code is returning nothing (in bb-templates/search.php):

    <?php echo show_context($q, $bb_post->post_text); ?>

    Here’s the function from bb-includes/formatting-functions.php, which I don’t understand:

    function show_context( $term, $text ) {

    $text = strip_tags($text);

    $term = preg_quote($term);

    $text = preg_replace("|.*?(.{0,80})$term(.{0,80}).*|is", "... $1<strong>$term</strong>$2 ...", $text, 1);

    $text = substr($text, 0, 210);

    return $text;

    }

    The source of the search results page just shows

    where that context would be shown.

    Is it possible that only the first (however many) characters/words are searched and used for context? It seems like when the results are missing, it’s because the search term appears late in a lengthy post.

    In one instance I checked, the search term is word 674, around 3796 characters into the post. Total length of that post is 1360 words, 7546 characters.

    In another instance, the search term is word 1423, starting around character 8487. Total length on this post is 2661 words, 15604 characters.

    It has happened in other instances, but I never looked into where the term appears in the post to see if that’s related at all. Maybe it’s not related at all to where the search term is in the post, but just how long the post is?

    Also: I have edited the search.php file (should have put a copy in my-templates/search.php, but I didn’t know then what I know now) BUT the same results happen with the stock bb-templates/search.php.

    Any ideas?

    Thanks

    chrishajer
    Participant

    When viewing a user profile http://www.example.org/forum/profile.php?id=10 there is “Recent Replies” and a “Thread Started” section. There is one thread started (which is accurate) says started 3 weeks ago (accurate) but it says “No replies” which is inaccurate. There are 6 replies to the thread, and the thread starter was not the last one to reply (this user only started the thread.) If you hover over the title of the thread, it says http://www.example.org/forum/topic.php?id=12&replies=6 which indicates to me that there are 6 threads too, which is accurate. You can see an edited screenshot here. I am hovering the mouse over the “What’s Next” thread title, and you can see that status bar says &replies=6

    http://www.chrishajer.com/bike/XLF/noreplies.png

    Bottom line: the info under “thread started” is inaccurate, but the link is accurate.

    Any ideas?

    Thanks.

    #52882
    Nicki Faulk
    Member

    IMO, post them here first to confirm whether or not the behavior is normal or not. (and/or if a plugin can alter the behavior to something more acceptable :))

    Let’s save the real bugs for Trac. :D

    #51685
    Nicki Faulk
    Member

    You’re most welcome. :)

    #52291
    Nicki Faulk
    Member

    hehe, thanks. :)

    #52290
    spencerp
    Member

    Hahahaha.. Yeah, that wouldn’t be good! “We” wouldn’t want that now, lol. =P Fiancee? Congrats on that! ;) :)

    spencerp

    #52289
    Nicki Faulk
    Member

    LOL, probably not. He’d be thinking “Who is this guy, and why is he hugging my fiancee?”

    :)

    #52288
    spencerp
    Member

    [blushing].. Hehe.. I guess I could always come over there then.. LOL Hahaha.. Nah, just kidding, I don’t think your man would like that too much lol! =P Anyway, I’m glad to hear that fixed it.. :) ;)

    spencerp

    #52287
    Nicki Faulk
    Member

    Spencer, if I could reach you, I’d hug you! :)

    That fixed it, thanks so much! :D

    #52286
    spencerp
    Member

    Here, try this once..

    http://spencerp.net/downloads/message.php.txt

    Copy/Paste into the original one of course.. into the forum’s root directory.. like normal. :);) That *should* work lol.. And it’s no problem.. I love helping people.. ;) :)

    spencerp

    /If that don’t work either.. I’m going to scream lmao. I’m trying to get Josh on GoogleTalk, but he must be busy or something.. sigh. Hopefully he comes in here soon lol..

    #52284
    Nicki Faulk
    Member

    Hey, no dice. I compared your version to mine and it looks like it had a couple of mod_rewrite fixes, but didn’t see anything else. Error still occurs.

    I’ll take it back out of my template and watch this thread. Thanks for your help! :)

    #51684
    spencerp
    Member

    Hahaha.. you’re welcome. ;) :) Come to think of it, I might even go back to just using the original plugin lmao.. I dunno though.. I kinda liked the idea of that though.. to help remind people that my forum’s are there LOL!

    Being that my forums are so small, it’s kind of a nice thing, however.. if and when it gets a little bigger, it might not be a good thing.. I’ll think about it though… I just got tons of other things to do sigh..

    spencerp

    /Thanks for registering on my forums by the way.. ;) :)

    #51683
    Nicki Faulk
    Member

    Ok, that explains it. LOL

    Mine didn’t do that and I had wondered if mine didn’t do that for me because I’m the KeyMaster, or what…. :)

    Thanks for clearing that up. :D

    #52283
    spencerp
    Member

    Try this version of the “main plugin” file once..

    http://spencerp.net/downloads/bb-privatemessage.php.txt

    Just copy the codes from that one, and place it in the original bb-privatemessage.php and reupload it into the my-plugins directory again..

    That *should* work.. If not, Josh(ardentfrost) and I will look into what we’ve done before, to get rid of that error. ;):)

    spencerp

    /I think we had to “hard-code” the calls to the users table for the database..? If I’m not mistaken.. Josh?

    #51682
    spencerp
    Member

    Nicki, I’m using another version of this plugin.. I had asked Thomas earlier in the thread, for one that sends one out no matter what, or who’s thread gets replied too. ;):)

    https://bbpress.org/forums/topic/313?replies=34#post-1766

    So, by default.. his original plugin won’t do that. ;) :)

    https://bbpress.org/forums/topic/313?replies=35#post-1528

    spencerp

    #52282
    Nicki Faulk
    Member

    Revisiting this: I’m still getting this error:

    bbPress database error: [Table 'DBNAME.bb_users' doesn't exist]

    SELECT * FROM bb_users WHERE ID = 4

    I’ve re-read all the replies to this thread and it looks like spencerp had the same problem I am right now, but I didn’t see a solution posted. Spencer, could you lend me a hand? Or ardentfrost, is there a new version coming? (in other words, should I wait? :))

    #51483
    Nicki Faulk
    Member

    Very handy! Thanks! :D

    #51030

    In reply to: Topic views

    spencerp
    Member

    Sixthed. – I’d also like to see this plugin made possible.. ;) :)

    spencerp

    #52891
    spencerp
    Member

    Oh ok, thanks a million Trent. ;) :) By the way, I also dropped a thread off over here on the MWUSERS forum.. 15 views, no replies there lol.

    Oh well, maybe someone will then. :) Also, Trent.. how would I go about changing the “Create New” account link in the MediaWiki .. to point to either my Forum’s or Blog’s registration page?

    Shoot, which one should I use though? I’m guessing the Blog’s registration page right? And even point my forum’s register link to the blog? Might be the best way of doing it.. What you all think?

    spencerp

    /*cough* I wish ya were on GTalk again lmao, would be a helleva a lot easier to talk me through this crap LoL!!.. :P

Viewing 25 results - 31,626 through 31,650 (of 32,467 total)
Skip to toolbar