Search Results for 'code'
-
AuthorSearch Results
-
August 8, 2008 at 2:37 pm #66669
In reply to: Ability to “save draft”
steveg190
MemberI’m interested in this too. Mostly I’m interested because my current forum that I’m converting from (phpbb) allows you to preview your post, and that feature will be sorely missed. Bring able to save a draft of it would fit right along side a preview, pretty much just like the way WordPress allows authors to save/preview drafts. Now, I’m not a php person in any way (although I wish I was) but I can see it could easily work to make a plug-in or mod that would allow you the option to save your post draft for later with a different post status and pull it or all your saved/unpublished drafts into a single page by pulling them based on the status and your user id. From there you could edit those posts and “publish” them by saving and changing the status code to so that bbPress “sees” it as a valid post rather than a “deleted” or “saved draft”.
I tinkered with this idea a little while ago but with my php knowledge limited to hacking peices here and there to suit my needs it’s just too much of a task. I can’t imagine it would be too complicated to implement. Let us know if this pans out Vili or anyone else who has an urge to work on something like this.
August 8, 2008 at 8:40 am #3763Topic: Logging into bbpress account from external script
in forum Pluginscine
MemberI’m installing bbPress on a website that is mainly flashbased, and I need the users to be able to login via a form placed inside the frontpage.swf file. This is usually easy: all that’s necessary is a .php file that communicates with the flash, that basically looks like this:
if($_POST == $correct_username && $_POST == $correct_password){
echo(“loggedin=true”);
} else {
echo(“loggedin=false”);
}
Flash will then read the variable returned and work from there.
The issue is that I can’t figure out how to verify the data against the users table. I’ve studied bb-login.php and login.php, but I still can’t find the code that does the actual logging in – the code that checks the password against the encrypted one in the database, sets the cookie, etcetera.
Could someone point me in the right direction?
August 8, 2008 at 5:48 am #66671In reply to: bb_is_ functions to call
_ck_
ParticipantbbPress has similar functions to detect what page you are on, ie. is_front() is_forum() is_topic() is_view() etc.
do a search of the code for “function is_”
August 7, 2008 at 2:10 pm #66653In reply to: Switching from another forum software (MyBB)
jimmie65
MemberI think I can transfer to phpBB. So there is a plugin to transfer from phpBB to BBpress? I’ll look for it.
If not, I’ll grab my database admin friend and see if he’ll help me.
(All moot till Yahoo gets mySQL working again; I can’t even access phpmyadmin.
)
August 7, 2008 at 8:35 am #66031In reply to: WordPress + bbPress Integration 101
grifter
Memberoops! Just spent ages upgrading my blog today to 2.6 which broke an afternoon’s work I spent a while back integrating with BB press 0.9. Thankfully the 1.0 Alpha release isn’t too far away
August 7, 2008 at 5:45 am #66657In reply to: Language Instalation
_ck_
ParticipantI’ve never done it myself but I believe you first have to put the translation
es_ES.mofile intobb-includes/languagesdirectory.Then you go into bb-config.php` and change the BBLANG setting:
define('BBLANG', 'es_ES');Here is more info:
http://www.degabriel.es/2008/04/24/traduccion-de-bbpress-09-al-castellano/
and the file:
_ck_
ParticipantUnfortunately by some oversight, there is no directly link to the search feature on the default bbPress 0.9 templates (this is fixed in the next version – perhaps too prominently given how weak the built-in search is in bbPress).
You can make a link to search.php yourself in the header.php or footer.php to have it on all pages.
<a href="<?php bb_option('uri'); ?>search.php">Search</a>Or you can make a mini-form that passes the field “search”
<form action="<?php bb_option('uri'); ?>search.php" method="get">
<input name="search" id="search"></form>August 7, 2008 at 2:57 am #3758Topic: Search???
in forum Troubleshootingsempervideo
MemberHi,
usually i am not that stupid, but here you got me.

Can someone please tell me where i can find the search to search my forum?
Do I have to activate it? According to some posts it should be build-in.
I have a search.php and search-form.php in my template folder. So it should be somewhere.
please help me out, will you.
Thanks a ton.
Greetings
Andy
August 6, 2008 at 8:00 pm #66655In reply to: Remove/block this spammer plz
Null
MemberHis name (and the link) is the spam! Translated it is: get a loan cheap and: let us calculate your morgage (don’t know if this is spelled correctly).
It is spam it isn’t a normal name. Spam in my mail have the same name
The sites are identical too.Also his replies aren’t sound either. He just posted stuf so his name and link are seen and (hopefully) clicked.
August 6, 2008 at 6:44 pm #66652In reply to: Switching from another forum software (MyBB)
_ck_
ParticipantUnfortunately that software is so new I don’t think anyone has done a conversion yet.
If you can get it into phpBB format it might be possible to convert from there.
If you are comfortable with phpmyadmin and some php code you can always attempt to do it yourself too.
August 6, 2008 at 3:37 pm #66621In reply to: www.mastercleanse.co.za/forum
djp
MemberOk Chris, it should be fixed.
Thanks again for the heads up.
August 6, 2008 at 10:17 am #66620In reply to: www.mastercleanse.co.za/forum
djp
MemberThanks for the feedback Chris. Looks like the footer is inheriting a parent CSS style or something.
It looks fine on my mac in FF & safari, and it looks fine in IE6 & 7 on a pc.
Will look into it & repost the url for you to have a squizz.
Cheers, and thanks again
August 6, 2008 at 2:29 am #66569In reply to: Help! I renamed my bbpress file directory name…
dpeeples
Memberi followed your instructions as well as i could but got a messed up page after inserting the
$bb->uri = ‘http://your-domain-name.com/forum-path/’
portion in the config code.
Where exactly should it go?
thanks much for the help.
August 5, 2008 at 9:06 pm #66618In reply to: my-plugins and bb-plugins, why do we have 2?
Null
MemberOw okay, it just makes it confusion for some people having 2 folders having (almost) the same name.
Putting my stuff back into my-plugins then
August 5, 2008 at 6:49 pm #66606In reply to: Do we know where our members are?
_ck_
ParticipantIf you look at the instructions, you can get a list of names by using
<?php mini_track(2); ?>instead of (1)I’ve updated the code to link to profiles.
That’s all I’m doing on that plugin, if you want more, you need to learn PHP.
August 5, 2008 at 4:03 pm #66612In reply to: Pilates Digest Forums
thion
Member@_ck_ – you of all people should know that you can do amazing things with bbPress
.@gio500000 – nice and clean design – I like it.
August 5, 2008 at 3:54 pm #3746Topic: www.mastercleanse.co.za/forum
in forum Showcasedjp
MemberHi all
After much tweaking & relatively extensive style changes, I finally went live with my website.
I needed to make bbpress fit in with the clean, simple style of the rest of the site & to be completely honest, I think I did a great job. Please have a look at the forum as well as the rest of the site to get a feel of what I mean by ‘fitting in’.
Comments are most certainly welcome, good & bad
August 5, 2008 at 2:39 pm #66594In reply to: htaccess muwordpress +bbpress
810798
Inactivethanks _ck_,
It seems to be a problem with when you include the wp-config… There must be a check somewhere in one of the files included in it that checks if that has been registered or is a banned blog, and wp-admin must be hardcoded in somewhere to be a safe directory.. i just havent had time to go through and look for where that happens.. been making a bunch of other customizations instead, as this problem can be solved by just using sub-domains..
James
August 5, 2008 at 2:38 pm #66605In reply to: Do we know where our members are?
Null
MemberOkay, I’ve tested the new one. I see there is a hyperlink now and when you click it, I see this (statuspage?):
There are 1 total users online. 1 of them are members: Admin. 1 of them are on this page.
Admin (1) - 1 minutes ago - /mssp/?mini_track_displayThe last part /mssp/etc is a link too? I think this is a bug.
Sec:
Is this also possible?
These members are currently on this page: jhon, kim, jack, etc
Third: It would be cool if the names are clickable and you go to their profile while clicking them.
August 5, 2008 at 1:43 pm #66609In reply to: Pilates Digest Forums
_ck_
ParticipantVery nice! For a moment I was almost going to accuse you of advertising a non-bbpress forum here, LOL. It fooled me
August 5, 2008 at 11:04 am #66600In reply to: Do we know where our members are?
_ck_
ParticipantWell I started to write some code but I then remembered why I did it completely on my own. There are many problems you encounter with trying to do this efficiently with as few DB queries as possible. Using the built in bbpress functions when there’s only a couple people online are fine, but when it gets to many times that, it’s too inefficient.
There’s also the issue of tracking NON members. Much more tricky than authenticated users.
I recommend you modify simple online list to track position. Much easier.
If you know PHP, here’s the process:
1. take the IP of the current user, change it into ip2long and make that the index of an array or object
2. store the request_url for that index
3. store the time() for that index
4. if they have a user id# (a member) store that
5. save the array via bb_update_option (not usermeta)
6. on every bbpress load, do a bb_get_option for the usertracking, which is the array of all the above
7. comb through the time() for timestamps older than 30 minutes and discard them
8. count the remaining items to see how many online in past 30 minutes
9. comb the request_url to see if it == your bbpress front page and count
August 5, 2008 at 10:49 am #66599In reply to: Do we know where our members are?
_ck_
ParticipantIf you know some basic PHP this is a very easy thing to store/track but you’ll need some more extensive code to print it out.
Essentially what you’d want to do is store in the usermeta the bb_location and timestamp on every load of bbpress via a simple plugin.
Then to count the number of users in the front page you’d do a mysql query to limit by time and count the number of “front-page” that appear.
I’ll give you some rough code in a minute, it’s fairly straightforward.
August 5, 2008 at 10:17 am #66598In reply to: Do we know where our members are?
Null
MemberYeah about that plugin of yours, hurry up with it, many people want that one


I can also test it if you like on my board
But back on topic: lets say I want to use bb_location since I ONLY want to track users on the frontpage. Is this possible without extending the users table?
If a user goes to another page or leaves the bb_location will change. Thats not a problem since I only want the people from the frontpage.
And how would you update this? At page load or something? Perhaps I should request this in the plugin section since I have no idea how to make a clean plugin of this…
August 5, 2008 at 5:44 am #66416In reply to: Possible way to upload image to post
_ck_
ParticipantOh shoot, you are correct, I allowed them in the end by default. I might remove that.
update: oh wait, BMP is only allowed for admin, no one else has that allowance – so it’s not an issue, I forgot I did that. The reason you got “denied mime” is because it’s a bug where I didn’t add “image/bmp” to the allowed mime types for admin. I’ve reposted 0.1.9 with that fixed.
But that’s a strange error I need to explore on the png. Apparently “Error Occurred While Processing Request” is a mysql error? Interesting.
Did the filename have any strange characters? Quotes? Apostrophies? Unicode?
August 5, 2008 at 5:13 am #66595In reply to: Install error
chrishajer
ParticipantI’m not really sure why, but I can guess. Do you have a file in bb-includes called compat.php?
/bb-includes/compat.phpIn that file, line 10 says “if this function does not exist, create it.” That PHP function is available in newer PHP versions only (greater than or equal to 5.1.2). So, for compatibility, if the function is not available on your server, bbPress creates it in compat.php.
Do you have that file, and does line 10 look like this?
if ( ! function_exists('hash_hmac') ):What bbPress version did you install, if it’s not the latest 0.9.0.2 release? Are you certain all the files were uploaded properly?
-
AuthorSearch Results