Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,576 through 31,600 (of 32,432 total)
  • Author
    Search Results
  • #50137

    In reply to: UTW Error

    spencerp
    Member

    Nice! Travel, thanks for this! Do you suppose anything in the database will need updated for this “fix”, or .. ? Just wondering.. =P

    spencerp

    #52869

    In reply to: Plugin – bbPortal

    Null
    Member

    Thx spenc and 1.1 is dl 22 times and 1.0 over 50. There is just something wrong with the plugin when loading the admin page, its uploading then, but i don’t understand why the hell it does that :)

    #52868

    In reply to: Plugin – bbPortal

    spencerp
    Member

    Null, I’m not sure what to say, I haven’t downloaded this, and tested this yet.. (I’m not sure how many others did either lol, because there are no replies in here, but your own.. =/ )

    How many downloads have you had for this bbPortal so far? Maybe after some time here (after Holiday deal is over), and people get back into swing of things.. they’d start helping you figure this out..

    I could download it, and try it locally once.. but, I myself is just swamped with stuff too.. :( I’ll see what I can do though. ;) :)

    spencerp

    #52896
    spencerp
    Member

    UPDATE: I just wanted to fill everyone in on what I have just done..

    1) I downloaded and installed the Themed Login and Registration plugin for WordPress.

    2) Upload it, then activate it as normal.

    OR, If you are running WordPress version 2.1-alpha3.. Before uploading and installing this plugin, open the themed-logreg.php file..

    Find this line:

    require_once( ABSPATH . WPINC . ‘/registration-functions.php’);

    Change it to this:

    require_once( ABSPATH . WPINC . ‘/registration.php’);

    This is because in the 2.1-apha3 version, they just renamed some of the files in the wp-includes/ directory..

    3) I made a page called: Where To

    Since I have pretty permalinks on, the page’s location is here for example: domain.net/where-to/

    In the Where To page’s Write Window, I added the following text/urls for example:

    “If you are seeing this page, you now have the ability to access the following places with your username and password.

    The <a href="wiki.yourdomain.net/">Codex</a>.

    The <a href="yourdomain.net/forums/">Forums</a>.

    The <a href="yourdomain.net/wp-admin/">Site Admin</a>. “

    4) Under Plugins => Login Register Options =>

    A) Under the: Uninstallation Options => I put check in box for: Toggle Complete Uninstall:

    B) Under the: Redirect After Login: => I changed wp-admin/ to where-to/

    If you have the normal setup for the permalinks, (for me on localhost this worked): /?page_id=11

    Of course, change the actual number to your own..

    C) Under the: Redirect After Logout: => I left this one at: wp-login.php

    D) If you are using any other theme, then the “Gathering” theme, you might want to skip this section. And follow the directions for it, according to your theme’s layout!

    Unless your sidebar call is like this.. in the index.php file:

    <?php get_header(); ?>

    <?php get_sidebar(); ?>

    Still in the Login Register Options, I left everything alone from there down TILL the part for the “Template Header Files: section..

    D-1) Since I’m using the “Gathering” theme, the call for the sidebar, in the theme files is right after the header call.

    <?php get_header(); ?>

    <?php get_sidebar(); ?>

    D-2) In the Template Header Files: window, I made it like this:

    header.php

    sidebar.php

    D-3) In the Template After Header HTML: window, I made it like this:

    <?php get_header(); ?>

    <?php get_sidebar(); ?>

    <div id="maincontent">

    D-4) In the Template Before Footer HTML: window, I made it like this:

    <?php endif; ?>

    </div>

    <!--index.php end-->

    <!--include footer-->

    <?php get_footer(); ?>

    D-5) In the Template Footer Files: window, I made it like this: footer.php

    E) Scroll down to the User Email Template: window. Since he uses variables for his stuff.. here is what I used for mine, and it works because I got the email after doing a test sign up. :D

    Username: ##username##

    Password: ##password##

    You now have the ability to access any of the following locations with your username and password.

    The Site Admin

    ##siteurl##/wp-admin/

    The Forums

    ##siteurl##/forums/

    The Codex

    http://yourwiki.yourdomain.net

    Please note: Of course… change the The Codex and Forums urls to whatever your’s is.. example: ##siteurl##/my-forums-folder-name/

    And for Codex/Wiki: http://yourdomain.net/yourwiki or whatever..

    Then I click the Update Options button.. :D ;)

    F) In my Theme’s CSS File, I added the following CSS Style references:

    #login {margin:0 auto 0 auto;width:250px;}

    #login ul {margin:0;padding:0;}

    #login ul li {display:inline;margin-left:10px;}

    Everything seems to be working just fine! I hope this helps others..

    http://spencerp.net/wp-login.php

    http://spencerp.net/wp-register.php

    After logging in, you should be taken to this page then:

    http://spencerp.net/where-to/

    Which of course.. can still be seen by everyone, either way. (But it’s not really made public either, because I don’t have the page itself, listed in the header nav bar, and sidebar nav section.)

    However.. it’s not going to do much good to them, because if they aren’t registered and stuff.. they can’t access my blog’s wp-admin, forums or codex.. lmao!

    Anyway, I just did TWO test signups.. and was able to login to my Codex, Forums, and the Blog’s wp-admin control panel.. whee!!

    spencerp

    #1174
    mistainu
    Member

    (scroll down to find bold part of code, please explain what is that?)

    <form id="postform" class="postform" action="/forums/bb-post.php" method="post" name="postform">

    <p>

    <label for="topic">

    Topic title: (be brief and descriptive)

    <input id="topic" type="text" tabindex="1" maxlength="80" size="50" name="topic"/>

    </label>

    </p>

    <p>

    <label for="post_content">

    Post:

    <textarea id="post_content" tabindex="3" rows="8" cols="50" name="post_content"/>

    </label>

    </p>

    <p>

    <label for="tags">

    Enter a few words (called

    <a href="/forums/tags.php">tags</a>

    ) separated by spaces to help someone find your topic:

    <input type="text" tabindex="4" value=" " maxlength="100" size="50" name="tags"/>

    </label>

    </p>

    <p>

    <label for="forum_id">

    Pick a section:

    <select id="forum_id" tabindex="5" name="forum_id">

    </select>

    </label>

    </p>

    <p class="submit">

    <input id="postformsub" type="submit" tabindex="4" value="Send Post ยป" name="Submit"/>

    </p>

    <p>

    Allowed markup:

    <code>a em strong code ul ol li blockquote</code>

    .

    <br/>

    Put code in between

    <code>backticks</code>

    .

    </p>

    <strong><input type="hidden" value="XXXXXX" name="_wpnonce"/></strong>

    <input type="hidden" value="/forums/" name="_wp_http_referer"/>

    </form>

    #52957
    vaelrith
    Member

    Very nice. Good idea to have everything available in one place :)

    #52971
    ear1grey
    Member

    Indeed, though I’ve only seen once instance so far where the spammers have bothered to leave a comment. My guess is that it’s too difficult to write a robot that can leave intelligent spam, so they’re hedging their bets and hoping not to be spotted lurking in the profile pages – if you can achieve that on several thousand instances you’ve suddenly got a whole lot of pagerank coming your way.

    Perhaps another useful tool would be to list the lurkers (similar to how bozos & blocked users can be listed in the Users admin tab) where a lurker is someone who’s registered but not commented.

    #52970

    The next thing is, every Username links to the Website, too.

    But as i looked quickly throuh the functions I think this is something for a core change. The users website is passed from get_profile_info_keys() in an array to bb_profile_data(). This function generates the data-List and makes the Link clickable .. but there is no point where you can add a Plugin.

    The array from get_profile_info_keys() is passed trough a filter, maybe something like a if (in_array(...)) in the filter …?

    Just a thought…

    #52554
    Laset
    Member

    firetheweb, that works for cyrillic, i can Add tags BUT i cannot search topics by that tags :(

    Any suggestions???

    #52895
    spencerp
    Member

    You’re welcome Nate. ;):) And hopefully soon here.. I’ll have my wiki ready, and going the way I want it lol. Then, once I’m done, or as I go along.. I’ll write up what I did ..

    Hopefully someone else in need of same thing, latter down the road.. finds this post useful and I hope it helps them.. ;):)

    spencerp

    #51060

    It’s a really good idea!! Never thought about it.

    Maybe this is something for a plugin? :)

    #52930
    spencerp
    Member

    Nice! I’ll apply this then, once done eating my burger here.. ;):) If I remember right, someone did post about that over in the WP.org mailing list(s) can’t remember which one though.. Or, maybe it was the bbdev list.. I better check ..

    But I think Michael Adams seen it, and was going to apply a “Fix” after holidays.. when the next release of bbPress comes out.. (after holidays) I’m assuming.. either way.. thanks for the “fix”.. :) :D

    spencerp

    /Here’s the thread I meant to post it in lmao..

    #52886
    Trent Adams
    Member

    I will have a post to devlist, but I am pretty sure that only Micheal changes the core code, but will get around to it after the holidays! I tested them both earlier and they did work for me! It has been 3 weeks since a core change and there is about a dozen or so tickets since then!

    Trent

    #52885
    chrishajer
    Participant

    Trent, I would PM you but there’s no PM here yet… :D

    Can you check trac tickets 507 and 508? Those appear to be two other inconsistencies I found and reported. Maybe they can be bumped for 0.74 if you find the same issue with your install?

    Thanks.

    #52938
    Nicki Faulk
    Member

    “As it is though, I still can’t fathom how much is already available (plugin wise) for bbPress…”

    Ditto that. When I first came over here, I honestly wasn’t expecting much considering how new bbPress is. I was pleasantly surprised. :)

    #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. :)

Viewing 25 results - 31,576 through 31,600 (of 32,432 total)
Skip to toolbar