Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,901 through 20,925 (of 32,517 total)
  • Author
    Search Results
  • #89916
    pagal
    Participant

    @kevinjohngallagher but I still need it… no need of plugin but code..

    if you force all your members to kick off toward wordpress then its your choice not mine and not other members…think beyond

    #89877

    In reply to: If Admin

    No CSS identifier on it.

    No way, that I can see of adding a CSS identifier on it.

    The issue with that function, and alot of bbP stuff, is that the output is hardcoded HTML from the core.

    With this type of link it’s not really a big deal, but it’s symptomatic of asking the core for one thing (the actual URL) and getting something else in return (a HREF string with text added).

    #89915

    Generic plugins are actually quite good for this, at least the WordPress one is quite ideal. I generally force all my members to register and login via WordPress and that gives me way more options in terms of Plugins and Database :)

    #89899

    should I waste my time and effort in this forum software

    You should never waste your time on anything.

    Is it going to stay alive and healthy?

    It’s open source software.

    It can be anything you want it to be. If at any time it’s not what you want, you can change it :)

    Cos, respectfully, none of us can see into the future.

    #89914
    pagal
    Participant

    @ Rich Pedley…

    I’m waiting for zaerl’s answer…I think he must have smart solution :-)

    #89929

    In reply to: Topic / Post count

    Yeah, bbPress doesn’t actually have any parent child functionality, so this isn’t really possible. You could write some custom code to keep a counter somewhere, but it’s more than a pain really.

    I’m workingon a plugin that deals with this, but it uses part of the bbProgress framework, and there are some issues to work around before separating it entirely.

    master5o1
    Participant

    http://tartarus.co.nz/community/topic/welcome

    Just look at this post and you will see what I mean. Not sure what’s the problem here. Wasn’t like this on my test server but since it’s gone live this has been the major problem :(

    Quick help is desired.

    #89913
    Rich Pedley
    Member

    It possibly isn’t the sort of thing that a generic plugin is best for. Far better to code for the exact requirements.

    Form Builder type plugins are difficult to code, and cover the multittude of things that people may want.

    So you may be better off employing someone to code what you are after.

    #89912
    pagal
    Participant

    But it can be easily achieved.

    Then what you waiting for…bbPress need this plugin..it will be great

    contribution.

    But I think someone achieved it without any plugin…

    see this

    http://boards.weddingbee.com/register.php

    If you have no time for making this kind of plugin right now….then can you please tell me the code which he use?

    Thanks zaerl

    #89876

    In reply to: If Admin

    zaerl
    Participant

    Ok. Keep in mind that building your own URL in that way isn’t a good idea. This:

    profile_tab_link(bb_get_current_user_info('id'), 'edit');

    hide all the weidness you see in the pastebin (which is actually the code of profile_tab_link with the domain name stripped away. That template function call bb_uri that takes in consideration all the settings specified in the admin panel.

    Is there a valid reason for building your own URL? I can’t find one.

    #89875

    In reply to: If Admin

    driz
    Member

    @zaerl

    Just making sure you were aware that the code posted above was what I needed. Thanks.

    #89872

    In reply to: If Admin

    zaerl
    Participant

    I am not a native english speaker nor english is my second language of choice (italian, french, english in descending order of level of fluency reached.) I don’t know what you mean with “that spits out the anchor tag as well.”

    An anchor tag is #something at the end of an URL. That piece of code echo this:

    http://the-forum/profile/profile-name/edit

    which actually is the URL. Did you mean the path? http://pastebin.com/H8r50q4W

    #89871

    In reply to: If Admin

    driz
    Member

    Thanks. Weird code though. Wish bbPress was more like WordPress…

    #89869

    In reply to: If Admin

    driz
    Member

    I mean just the url, so like:

    [a title=Edit Forum Profile href=ENTER PHP CODE HERE]Edit Profile Link[/a]

    #89855

    Hi Dudd,

    _ck_ has her own great forum, http://bbshowcase.com , and that would be the best place to contact her directly.

    Also, to the best of my knowledge the bb-anonymous plugin doesn’t store the person’s email to be able to email them. Cos, and i may be wrong (i usually am about bbPress), but if we had their email address saved forever – that wouldn’t be anonymous ;-)

    They can follow their thread via RSS though.

    Kev

    #34510

    Topic: If Admin

    in forum Troubleshooting
    driz
    Member

    How can I determine if the user is an admin or not?

    I have the following code so far (based on a WordPress one I use):

    <?php global $bb_current_user; bb_get_current_user_info(); if ($bb_current_user->bb_user_level == 10 ) { ?><li><a title="Admin" href="http://www.paperviewmagazine.com/forums/bb-admin/">Admin</a></li><?php } ?>

    But it doesn’t quite work, I’m guessing the user level is the problem. I know I could use bb_admin_link but I want to write the url myself.

    Also how can I get the url for the profile edit page for a logged in user? so for example:

    /forums/profile/cameron/edit/

    Thanks.

    #89775

    :)

    #89534

    In reply to: Working Member List?

    _ck_
    Participant

    I’ve now cleaned up the plugin design a little and made the view and output functions separate so it’s easier to understand the flow.

    All anyone has to do now is just change the output to their desire near the very the bottom of the code.

    #89532

    In reply to: Working Member List?

    _ck_
    Participant

    Kevin, bbPress has a function to include a template.

    ie. bb_load_template( 'tags.php' );

    You can see it at the end of many of the files in the root

    But you may find the behavior unpredictable and may want to just use an include instead, in which case you’d have to calculate the current template folder yourself, which is difficult.

    #89607
    zaerl
    Participant

    Beware. I’m a bit O.T. cause I will speak regarding my situation as a “plugin developer”. Keep in mind that usually I don’t write these kind of posts.

    I really don’t like what’s going on in this site. I mean: everybody are fighting each other regarding the near future of this software. It must be name 1.0.3, no it’s 1.1, no it will be a plugin et cetera. It’s just a number and nobody care about numbers. If Linux jumped from 0.12 to 0.95 then we can call the new version of bbPress 1.0.3, 1.1 or what we want.

    Now what is the real problem? The real problem is this site. After the releasing of the new template and the corresponding “Whoa!” thread everything stopped working. 404 pages, SVN broken, search broken, stupid HTML entities, trac substitution tag. Also the “Downloads This Week” statistics aren’t updated, “Highest Rated Plugins” too and I can continue on.

    I really love this piece of code but we must provide a good experience for users now for the 1.0.2. We can’t provide the new version if there isn’t a solid base first. Few hints? Documentation or API documentation? I was forced to look at the code of the core in order to understand how to write my extensions.

    I am demotivated. I have built a lot of plugins but I don’t want to hit the “submit” button cause why should I share my work if nobody can search for it in the plugin section or access it in several situations? As you can see I have stopped uploading big plugins after Editor and Visibility. Random Desc, Simple Registration, URL Preview and Post Permalink are like toys for me and I can share my toys with other people.

    Have a nice day and long live bbPress.

    #89529

    In reply to: Working Member List?

    _ck_
    Participant

    Now we need a proper function to process/display the view output.

    Because we are essentially tricking bbPress into doing this view for us, we have to make sure we do all the output ourselves, like this mini-example

    function member_list($view='') {
    if (!empty($view) && $view!='member-list') {return;}
    bb_send_headers();
    bb_get_header();
    // do view stuff here
    bb_get_footer();
    exit;
    }

    first we make sure the view is for us, if so we send any http headers, then we send any bbPress html headers like in a normal page (meta, css, etc.) then we do our view, then we send the bbPress footer and we force PHP to stop afterwards.

    #89527

    In reply to: Working Member List?

    _ck_
    Participant

    First we need to gather the list of users who are not inactive or blocked.

    This unfortunately requires a much more complicated query because of how wordpress/bbpress stores the user status in the meta, and in a way that cannot be quickly queried.

    ie. this simple query is not good enough:

    $query=”SELECT ID FROM $bbdb->users WHERE user_status=0 ORDER BY user_registered DESC”;

    So the following will work up to mid-sized forums, if you have over 100k users, it’s probably a bad approach because it’s non-indexed in mysql and the query will require a complete table-scan.

    global $bbdb;
    $query="SELECT ID FROM $bbdb->users as t1 LEFT JOIN $bbdb->usermeta as t2 on t1.ID=t2.user_id WHERE user_status=0 AND (meta_key='$bbdb->prefix"."capabilities' AND NOT (meta_value LIKE '%inactive%' OR meta_value LIKE '%blocked%')) ORDER BY user_registered DESC";
    $results=$bbdb->get_col($query);

    (we’re going to deal with pagination later)

    $results will now contain all the active user IDs, newest members first (or false if the query failed for some reason).

    Since bbpress.org is screwing up code now, I’m putting it also here:

    http://pastebin.com/embed_iframe.php?i=t3BX3i10

    #89605
    mr_pelle
    Participant

    For one thing, a bunch of plugin coders have repeatedly requested access to updating their old plugin files and better access to maintaining their plugin’s “page” or information.

    Any plugin author can update his/her plugin. That problem didn’t arise.. where did you hear/read that from?

    Probably he was referring to the weeks (months?) when Plugins section was not synchronized with SVN. I wrote about it here, Zaerl did here and I don’t remember if any other plugin dev did it somewhere else.

    In an IRC meetup, Matt said that bbPress will start becoming a WP plugin near 1.2 or so.

    That milestone does not even exist! Anyhow it means they have to release 1.1 first, which unfortunately still has a load of open tickets…

    b) fork bbPress July 2010

    There is absolutely nothing legally or physically preventing you from forking bbPress right now or in July. You literally don’t need anyone’s permission, so go right ahead.

    If he could do that on his own, I think we would already heard about it. That kind of project definitely needs a team of more than just 1 dev!

    #89789
    mr_pelle
    Participant

    Swirl Unknowns, a plugin of mine, does the job too. :) I will release version 1.0 next week, probably on thursday or friday: it will feature a renewed configuration page and a bunch of other updates.

    #89081

    Nah, you’re way off base mate.

    Your code wasn’t able to be read or validated by a parser, and had 2 Document declarations in it, so instantly it would have affected it’s SEO.

    Also a container DIV called Title outside of the HTML acts against your SEO rather than for it, as it’s considered word overloading – something frowned upon by Search Engines for the last 10 years (thats if any search engine read it, given that it was outwith the HTML).

    Just stick within the rules of web development and you’ll be fine :)

Viewing 25 results - 20,901 through 20,925 (of 32,517 total)
Skip to toolbar