Search Results for 'code'
-
AuthorSearch Results
-
June 17, 2010 at 3:14 pm #89916
In reply to: Extra dropdown field in registration page
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
kevinjohngallagher
MemberNo 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).
June 17, 2010 at 3:07 pm #89915In reply to: Extra dropdown field in registration page
kevinjohngallagher
MemberGeneric 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
June 17, 2010 at 3:06 pm #89899In reply to: WordPress/bbpress and some tweaks.
kevinjohngallagher
Membershould 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.
June 17, 2010 at 3:04 pm #89914In reply to: Extra dropdown field in registration page
pagal
Participant@ Rich Pedley…
I’m waiting for zaerl’s answer…I think he must have smart solution
June 17, 2010 at 3:02 pm #89929In reply to: Topic / Post count
kevinjohngallagher
MemberYeah, 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.
June 17, 2010 at 2:39 pm #34517Topic: Urgent! Posts have slashes (ie: ' instead of ')
in forum Troubleshootingmaster5o1
Participanthttp://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.
June 17, 2010 at 12:54 pm #89913In reply to: Extra dropdown field in registration page
Rich Pedley
MemberIt 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.
June 17, 2010 at 12:29 pm #89912In reply to: Extra dropdown field in registration page
pagal
ParticipantBut 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
zaerl
ParticipantOk. 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_linkwith the domain name stripped away. That template function callbb_urithat 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.
driz
MemberJust making sure you were aware that the code posted above was what I needed. Thanks.
zaerl
ParticipantI 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
driz
MemberThanks. Weird code though. Wish bbPress was more like WordPress…
driz
MemberI mean just the url, so like:
[a title=Edit Forum Profile href=ENTER PHP CODE HERE]Edit Profile Link[/a]June 16, 2010 at 9:26 pm #89855kevinjohngallagher
MemberHi 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
June 16, 2010 at 9:06 pm #34510Topic: If Admin
in forum Troubleshootingdriz
MemberHow 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.
June 16, 2010 at 1:35 pm #89775In reply to: Seamless integration WP+BBPress: Severus Online Club
Ashish Kumar (Ashfame)
Participant
June 16, 2010 at 11:37 am #89534In reply to: Working Member List?
_ck_
ParticipantI’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.
June 16, 2010 at 10:58 am #89532In reply to: Working Member List?
_ck_
ParticipantKevin, 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.
June 16, 2010 at 10:39 am #89607In reply to: What. The. Heck. Is. Going. On!
zaerl
ParticipantBeware. 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.
June 16, 2010 at 10:08 am #89529In reply to: Working Member List?
_ck_
ParticipantNow 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.
June 16, 2010 at 9:44 am #89527In reply to: Working Member List?
_ck_
ParticipantFirst 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:
June 16, 2010 at 9:36 am #89605In reply to: What. The. Heck. Is. Going. On!
mr_pelle
ParticipantFor 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!
June 16, 2010 at 9:26 am #89789In reply to: Prevent unregistered users from viewing the fourm
mr_pelle
ParticipantSwirl 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.
June 16, 2010 at 7:10 am #89081In reply to: Internet Explorer problem
kevinjohngallagher
MemberNah, 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
-
AuthorSearch Results