Search Results for 'code'
-
AuthorSearch Results
-
January 12, 2007 at 10:40 am #53270
In reply to: POT file for bbPress 0.74
silkjaer
MemberWorks great, i got most of it translated to danish
January 12, 2007 at 10:30 am #53269In reply to: POT file for bbPress 0.74
Stefano Aglietti
MemberYes please add me for the it_IT translationon SVN so i will put there my translation files.
About the POT i checked a diff with the one i generated nd they looks the same then it’s all ok
January 12, 2007 at 9:52 am #50150In reply to: Adjust Size of Hot Tags
A1ex
MemberNot at all!
January 12, 2007 at 9:42 am #53267In reply to: POT file for bbPress 0.74
Michael Adams (mdawaffe)
MemberYup!
In fact, if anyone wants one now, I can set it up for you.
Also… that’s the first pot file I’ve ever made. Can you please let me know of any issues
January 12, 2007 at 9:41 am #53248In reply to: bbPress integration
silkjaer
MemberThanks
January 12, 2007 at 9:36 am #53216In reply to: Disallowing Registration
Michael Adams (mdawaffe)
MemberSadly, by the time you get to the registration template, the user has already been added.
You could write a plugin that, during the
bb_inithook, checks to see if $_SERVER matches the registration link and, if so, send a header(“Location: http://blah.blah/my-reg.php”).January 12, 2007 at 9:19 am #53238In reply to: tag.php access issue
Michael Adams (mdawaffe)
MemberI really want to know wy this works in PHP5 but not PHP4.
This needs to get fixed at the source.
startribe (or anyone who has seen this problem): Can you de me a favor? Unfix the problem, then add
$bb->debug = 1;on the first line of bbPress’config.phpfile.Go to the tags page, and you should see some ugly text at the top of the screen. Can you paste that text here?
Thanks!
January 12, 2007 at 9:12 am #53262In reply to: Time Format
ardentfrost
MemberBTW, that displays something like this:
01/05/07 at 10:21:21January 12, 2007 at 9:09 am #53261In reply to: Time Format
ardentfrost
MemberHere’s how I do it in my private messages plugin
strftime("%m/%d/%y at %r",strtotime($timevar)+($bb->gmt_offset * 60 * 60))Where $timevar is the time that I passed to the function.
January 12, 2007 at 8:57 am #50379In reply to: Slashes being added in front of apostrophes
Michael Adams (mdawaffe)
MemberDid you find the source of the problem? Even better, did you find a solution?
January 12, 2007 at 8:34 am #1219Topic: Time Format
in forum Themesseriouslydustin
MemberI’ve been scouring the whole code for bbPress and still couldn’t figure out how to set up the format just how I want it for Date and Time (for the post).
Can anyone tell me where to go for such edits?
Much thanks.
January 12, 2007 at 4:58 am #53303In reply to: bbpress user profile link on WP?
Ahni
Memberah! I went to trackdown what I added, and realized I was calling the author ID, which is evidently wrong… but this allowed me to get the profile of the logged in user:
<a href="<?php global $userdata;get_currentuserinfo();
echo('http://intercontinentalcry.mahost.org/discussions/profile.php?id=' . $userdata->ID . '');
?>">Your Profile</a></li>
Thanks trent! You may have only said five words, but they led me to the solution I was looking for – Ahni
January 12, 2007 at 4:26 am #53310In reply to: Using plugin tags on wordpress
ardentfrost
MemberHmm, I don’t think any bbpress functions are loaded when your WP is loaded is it? If not, then you’ll have to build the link from scratch. Link building in bbpress is one of those things you just gotta figure out from doing it a few times (and staring at core code).
Since you’re doing it specifically for your forums, it doesn’t necessarily have to be in plugin form (which is preferable for me since I never made WP plugins). So I would do something like this:
Look at the code used to get the logged in user’s name.
Get the ID of that user anyway you can (you can search the db for the username or use a wp function that I don’t know about).
Start the link formation like $link = “http://zenhelix.us.to/forums/profile/”
Then you can either add the user ID directly to the end using a regular expression ( add a .$userid to the end of the previous line) or just do $link += $userid;
Setup the link with the a href and all that junk.
I wish I could give you more specific code, but like I said, I’ve never done much WP coding.
January 12, 2007 at 3:50 am #53308In reply to: Using plugin tags on wordpress
ardentfrost
MemberI didn’t know jack about much of this stuff 2 months ago. I had programmed before, but nothing super special (I did an RSS parser for me and my friends’ main webpage, rayd.org). I just kinda got ambitious with this stuff.
Everything you need to know to do this stuff is in the core code (I’ve pulled so many stylistic and methodological things from preexisting code) and php.net. The only thing you need beyond that is ambition. Mine pretty much peeked when I did Private Messages. I can’t think of another project that will require that much work (though I’m sure there are, I just can’t think of any for now).
January 12, 2007 at 3:20 am #53306In reply to: Using plugin tags on wordpress
ardentfrost
MemberI never get annoyed

I’ve been so busy at work I haven’t had a chance to update my PM plugin yet. It’s still next on my docket. I’ll add your request to my list of things to do.
Last time I sat down to work on it, I was having trouble adding a user search feature… so there’s still that
January 12, 2007 at 3:10 am #53305In reply to: Using plugin tags on wordpress
vaelrith
MemberWill do, I check artentfrost’s forums about every day for a new plugin
I think he might get annoyed with my constant requesting and never posting anything else…BTW, good work on those plugins artentfrost
January 12, 2007 at 1:58 am #53304In reply to: Using plugin tags on wordpress
Trent Adams
MemberSince the paths of where to pull the information for the PM plugin are hardcoded for bbPress installs, I don’t know if it is possible. Maybe drop a line to Ardentfrost at:
http://www.rayd.org/forums/topic/44
Trent
January 11, 2007 at 3:38 pm #53136In reply to: 1st line of the first post in a topic?
ardentfrost
Member$first_post = $bbdb->get_results("SELECT * FROM $bbdb->posts WHERE topic_id = $topic->topic_id AND post_position = 1");That will give you the post OBJECT… from there you can pull out the text like this:
echo $first_post->post_text;Or since it seems you want to pull out just the first little bit, just use a php string function to make it look and act like you want it to.
It’s not the most eloquent method, but it’s certainly simple.
January 11, 2007 at 10:34 am #1221Topic: Registration spam & Akismet
in forum Requests & Feedbackear1grey
MemberMy bbpress forum is now averaging one registration spam per day – where a user registers, adds their pills or porn site details to the
websitefield, then never visits again.Check your registrations guys ‘n’ gals, you may find you have a lot of unwanted members (*cough*) linked from your sites.
I’m thinking it’s time registration requests went through Akismet – but for this to happen there would have to be a UI for spotting false positives.
See also: Links to bozos and blocked users.
January 11, 2007 at 8:56 am #53266In reply to: POT file for bbPress 0.74
Stefano Aglietti
MemberThis means that we translators will soon have a branch for our locale also as in wp ?
January 11, 2007 at 3:54 am #52422In reply to: Plugin Request: Forum Categories..
spencerp
MemberThanks pontus.
I might try this then. However, I’m not one for core edits really, but I might give it a go, unless of course Josh comes up with something soon!? 
*cough* I really would like to see this, maybe, implemented in the .80 version.. *cough* lol..
spencerp
January 10, 2007 at 4:54 pm #53215In reply to: Disallowing Registration
thomasklaiber
MemberMaybe add
<php header("Location: path/to/your/page"); ?>to the top of your bbpress registration template?
Just a thought.
January 10, 2007 at 2:38 pm #1216Topic: bbPress integration
in forum Themessilkjaer
MemberI am working on a danish Wii-portal site, and I have chosen to use bbPress/WP to do the job.
The site is not officially launched yet, but is available at wiinyt.dk/secret/. Check out the bbPress at wiinyt.dk/secret/forum/.
Browsing the site on the Wii scales everything up to fit the television perfectly
Null
MemberMajor changes like….. ?????? PLZZZ tell
January 9, 2007 at 7:16 pm #53229In reply to: tag.php access issue
chrishajer
ParticipantIs it possibly related to cookies and the domains they come from?
This problem can sometimes be caused bydisabling or refusing to accept cookies
My error was with Firefox 1.5.0.7 on Linux. Maybe it’s just coincidental it went away when the scripts were parsed by PHP5.
-
AuthorSearch Results