Search Results for 'code'
-
AuthorSearch Results
-
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
June 16, 2010 at 6:45 am #89601In reply to: What. The. Heck. Is. Going. On!
Gautam Gupta
ParticipantAny email response from Matt yet?
He didn’t reply to me, but you can also check here – https://bbpress.org/forums/topic/bbpress09-support-finishing-early#post-69893
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?
the point of an open source community is that everyone is communicating and sharing developments regularly and publicly
That is what Trac is about, anyone can see the developments, communicate and contribute.
Also, if bbpress is 90% becoming a WP plugin, why hasn’t this process been decided on or initiated yet? Will it be initiated after the 1.0.3 release?
In an IRC meetup, Matt said that bbPress will start becoming a WP plugin near 1.2 or so. (and that IRC meetup is also posted on the blog)
@citizenkeith, thanks for providing another example of bored whiny bbpress trolls. If only we could get rid of users like you, we might have more progress around here.
citizenkeith is a valuable member to the community and has been here for long, so please.
June 16, 2010 at 6:33 am #89732In reply to: bbPress0.9 support finishing early
Gautam Gupta
ParticipantThe code has not been deleted and it wont be deleted, only the milestone is deleted. You can still download the 0.9 branch from Trac which contains a few bug fixes from 0.9.0.6.
Also, 1.0.3 is same as 1.1 (except that it wont contain new features if it is released), nor there are any database changes in it till now. If any user upgrades to 1.1, he/she can easily downgrade to 1.0.2 any time.
June 16, 2010 at 6:31 am #89080In reply to: Internet Explorer problem
sureshdrim
ParticipantThanks a lot Kevin and Chris..
As mentioned by Kevin above,if I remove the top and bottom code it works fine.But the problem lies with the SEO.By removing these lines,the title mentioned in header.php file will be applied to front-page.php which will be common for all pages.For better SEO title and description of each page needs to be different.
I tried to put title tag value in header.php as <?php forum_name()?> – <?php bb_title()?> which works really great for topic pages but not the front-page.For front page,title tag value will have just the name of website,this will definitely affect Search Engine Ranking (I think so) as compared to title mentioned above.
I hope you are getting what I am trying to say.
Anyways without changing code,pages are properly displayed in IE just by refreshing it.
June 16, 2010 at 6:04 am #89600In reply to: What. The. Heck. Is. Going. On!
wtfmatt
MemberYour response is appreciated. Maybe a mod can copy paste your answers into a sticky thread. Any email response from Matt yet?
So mdawaffe is the only confirmed webmaster for bbpress.org, and he doesn’t seem to pay attention to any feedback or bugs. I guess that has been confirmed at least… Chris, do you have access or not? This really ain’t the biggest concern right now, but it would help the community to know who deals with this site, as Matt does not actively. 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. This is whay I mean by “higher ups” – its great that 3-4 devs are having private IRC chats together and exchanging emails, but last time I checked, the point of an open source community is that everyone is communicating and sharing developments regularly and publicly. Hell, this forum itself barely has any staff or moderators to speak of. And even the forum regulars have no way to get in touch with “higher ups” even if they wanted to, so bbpress is 99% hearsay at this point. BIG PROBLEM.
Also, if bbpress is 90% becoming a WP plugin, why hasn’t this process been decided on or initiated yet? Will it be initiated after the 1.0.3 release?
Coders and designers want and need to know these answers guys. I’m only speaking up for the silent majority and dozens of unanswered threads, this is not just my personal rant.
@citizenkeith, thanks for providing another example of bored whiny bbpress trolls. If only we could get rid of users like you, we might have more progress around here.
June 16, 2010 at 4:37 am #89812In reply to: Anonymous Users
chrishajer
Participantlogin-less posting is a feature present in the latest trunk release. It’s not packaged for release yet, and there are some dependencies (notably BackPress). If you can download via subversion to your intranet server, that would be the best way to get it.
svn co -r2434 http://svn.automattic.com/bbpress/trunk ./forumsThat will check out revision 2434 which is very stable, into a directory called forums on your server.
The revisions after that revision got a little weird with a couple problems that I am not sure are fixed yet.
June 16, 2010 at 2:16 am #86402In reply to: Using subversion to update
copperblade
ParticipantI’ve been on trunk now with few problems. But I don’t see this great facelift on my site
I guess this isn’t available yet? I really like the bigger gravatars.
June 16, 2010 at 2:00 am #89797In reply to: Support for Private Forum
chrishajer
ParticipantWhy not use Apache Basic Auth to require people to log in before getting anywhere near your forum?
Or you can use a plugin like hidden forums or zaerl visibility. You could also wrap parts of your forum output in code that checks to see if the user is logged in.
I don’t think it would be difficult.
June 15, 2010 at 9:26 pm #89395In reply to: changing topic display order (in php code or db)
KentonMr
MemberI’m still struggling with this one – and it seems everyone is flummoxed as well.
The problem has evolved a bit.
I’m looking to change the default topic list view not only as described above but also to give the user the option by clicking a image button in each header to change the display order. Also taking the view count out and into a column. So a user can view the most viewed as well as most posted as well as the freshest – all sub listed by ascending alphabetical order.
Although i can change the image buttons and the raw sql for ordering the data – I still cannot get my head round how it is currently working (or should that be not working)
June 15, 2010 at 9:15 pm #89499In reply to: Tapatalk Support
zaerl
ParticipantAh. It would have been funny (for me) to make that plugin but Tapatalk is a paid closed-source application. Ah. And I’m not a bbPress developer
June 15, 2010 at 9:00 pm #34499Topic: Seamless integration WP+BBPress: Severus Online Club
in forum Showcaseseverus
MemberHi,
I just wanted to present the result of an integration of BBpress to an stablished WPress site.
BBpress: 1.0.2
Wp: 2.9.2
WP site: http://www.severus.es
BBpress site: http://www.severus.es/foro
We are very happy with the results!

Thanks
Severus
June 15, 2010 at 6:42 pm #87484In reply to: Inserting ads between posts.
kevinjohngallagher
Member<blockequote>
you are genius
Ha, thanks alot, but i can’t tell you how wrong that is

I’ve no idea about Google Ad’s i’m afraid.
Initially, I’d output a div with a border on it to make sure your code is working spot on, and then take it from there
-
AuthorSearch Results