Search Results for 'code'
-
AuthorSearch Results
-
February 8, 2007 at 3:47 am #53010
In reply to: Template: bbPress Forum Theme
Trent Adams
MemberI changed this up a little bit and made it work for the up and coming 0.8 theme. It would be nice to have someone test it again on 0.75 as I don’t have an install anymore, but I think my directions should work. Download is in the first post of this thread or check out the entry on my blog or over at the complete template and plugin blog, Pro Forum
Trent
*EDIT*
Null I am using the original logo again.
February 7, 2007 at 9:14 pm #54146In reply to: 404 upon innstall
Trent Adams
MemberChange over to this as well:
$bb->akismet_key = false;
Trent
February 7, 2007 at 9:02 pm #54145In reply to: 404 upon innstall
dozer1
MemberThanks, but removing the slash had no effect
February 7, 2007 at 8:25 pm #54143In reply to: 404 upon innstall
Trent Adams
MemberFirst off, take the slash off the domain part:
$bb->domain = 'http://aagymruss.net';
That might get it going.
Trent
flaerpen
Membertwo tickets now!
February 7, 2007 at 7:48 pm #49893In reply to: loading wordpress with bbpress
Trent Adams
MemberI have never tried what you are doing (in terms of this type of integration), but maybe this article by So10 might be something that can help in the meantime? If not, disregard
Trent
February 7, 2007 at 5:47 pm #54093In reply to: Changing what memberlist plugin displays.
ardentfrost
MemberJust ask if you have anymore questions. Feel free to post up code that isn’t working also
There are a few of us who can help you with it.
February 7, 2007 at 2:21 pm #54121In reply to: How do I delete a forum
Null
MemberI understand, nothing to be ashamed about, we all do it
February 7, 2007 at 2:17 pm #54091In reply to: Changing what memberlist plugin displays.
ardentfrost
MemberThanks Trent
I just wish I had more time to upgrade the existing plugins and make new ones. At least my 5 are ready for .80
February 7, 2007 at 11:44 am #54120In reply to: How do I delete a forum
spencerp
MemberLmao!! Hell yeah!! Replying a little late now though, being that I busted a nut a few hours back.. but, ya know.. I just couldn’t help it!!
spencerp
February 7, 2007 at 11:32 am #52177In reply to: get_topic_author() but how to get it’s profile link?
Null
MemberYeah hmm was afraid of that. It’s part of a function I’ve made with a foreach etc etc
There are 3 options:
1) Request this as a new function/option in the next release of bbPress
2) Make a new function
3) I/ someone else makes the function when I/he/she has the time
I will take a look at it tonight
February 7, 2007 at 11:17 am #54119In reply to: How do I delete a forum
Null
Member-fap- -fap- -fap- for spencerp
Null
MemberPlz let the release be today plz plz plz
February 7, 2007 at 11:11 am #54003In reply to: Plugin: bbMenu 0.1 beta
Null
MemberOk, I am at work now, so when I get home (tonight) I will cook up some correct SQL code for you. The problem is that the table isn’t filled so thats why it said: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource because the table is empty.
The thing that borthers me is why it doesn’t fill the table when it is created :S (any1 has any ideas about this?)
So your original error is easily fixed, but you will have to wait till I get home.
Greetz
February 7, 2007 at 11:00 am #1354Topic: Unique Style Sheet?
in forum Themesmacwise
MemberHi all,
I am currently configuring BBPress for my site at http://www.babyquestions101.com’s forum, and by the looks of it it’s very promising.
I am trying to figure out if I can call a specific stylesheet for a specific page by making that call in the body page.
For instance, I know how to call multiple stylesheets through header.php. However, I would like to be able to specify a stylesheet through a page like forum.php, so that it dynamically tells header.php to call the stylesheet specific (or unique) to that page. I want this so that I can lean up my code, instead of calling everything in one css file.
February 7, 2007 at 10:12 am #54118In reply to: How do I delete a forum
spencerp
MemberAnd another Amen for the fact that the Forum Categories enhancement can do the same thing!! Oh God I love it.. OK! I gotta get out of this thread now, just all this awesome talk is getting me, well, you know.. hahaha.
spencerp
February 7, 2007 at 4:25 am #54089In reply to: Changing what memberlist plugin displays.
ardentfrost
MemberOne day I plan to add options such as these to an admin interface, but for the time being, you just gotta do it by hand.
Of course, the trick to that is pulling out the information. get_profile_info_keys seems like it should pass you back an array of those values and you can just get them out of there, except I haven’t attempted to use that function and since it doesn’t ask for any information about the user you’re interested in, I don’t know how to tell you to get the information from that seemingly useful function.
Which takes us to my personal favorite method: SQL commands. You’d be searching through the table
bbprefix_usermeta
(mine isbbpress_usermeta
). Setup a SQL call like this:$result = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE user_id = $id");
where $id is the id of the person you’re interested in and $result is the object that the person’s data will be loaded into.
Then to access the information, you’d simply call it like this (like, for the example of where the user is from):
$result->from
You can echo that to have it printed or whatever you want done with that information. A quick glance at the database tells me that you can call this information (and what it means):
“from” = location
“occ” = occupation
“interest” = interests
“bbpress_title” = the title, custom or default
You’d have to make a subroutine in bb-memberlist.php in the my-plugins directory to get $result, then use the information in memberlist.php.
Sorry I can’t do more for you than this, but I used information from the table I had already gotten results from for ease in my current release. I could have added more stuff, but then some people might not have wanted them plus it’s easy to add or subtract from information users put in when they sign up and blah blah blah…. one day I’ll make it nice via the admin panel, but for now, good luck
spencerp
MemberYeah, release her already.. I’ve been running the .80 alpha for how long now.. and never had any problems with it.. Release the beast!! Now gerd damn its, now!!!!!!!!!!
spencerp
February 7, 2007 at 2:15 am #54114In reply to: How do I delete a forum
master5o1
Participantok, i’ve just done it through the DB
February 6, 2007 at 11:44 pm #52176In reply to: get_topic_author() but how to get it’s profile link?
kineda
Memberget_user_profile_link($topic->topic_poster) doesn’t work.
February 6, 2007 at 11:17 pm #54002In reply to: Plugin: bbMenu 0.1 beta
suleiman
MemberI couldn’t create the table using the code you posted, it throwed a MySQL error in phpMyAdmin.
So I used the plugin to create the table, but had the same problem where it was empty.
I tried running hte second SQL query on the table, but got the following error:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘INSERT INTO bb_menu VALUES (‘active’, ‘Search’, ‘search.php’, ‘search-page’, 1)
‘ at line 2
February 6, 2007 at 10:39 pm #54001In reply to: Plugin: bbMenu 0.1 beta
Null
MemberHmm it should have entries, something went wrong there.
If you can, delete the bb_menu table.
Then in phpMyAdmin:
CREATE TABLE
bb_menu(
set
varchar(50) NOT NULL default '',
item
varchar(50) NOT NULL default '',
page
varchar(50) NOT NULL default '',
location
varchar(50) NOT NULL default '',
order
int(9) NOT NULL default '0',
PRIMARY KEY (set
,
item)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
If your current bb_menu already has these values, you wont have to recreate it. But better save then sorry…
Now fill the table:
INSERT INTO
bb_menuVALUES ('active', 'Forums', 'index.php', 'front-page', 0)
INSERT INTO bb_menu
VALUES ('active', 'Search', 'search.php', 'search-page', 1)
INSERT INTO bb_menu
VALUES ('available', 'Statistics', 'statistics.php', 'stats-page', 0)
Now refresh the admin page. This should fix it. Not sure if I gave the right syntaces to use in phpMyAdmin, but you get the idea
ps. If you didn’t use the bb_ prefix, you should change this…
ps2. And leave out the @
ps3. This is the beta so it has some errors that are fixed in the final release (after bbPress 0.8 is out)
February 6, 2007 at 9:50 pm #53999In reply to: Plugin: bbMenu 0.1 beta
Null
MemberWhere did you install it? Did you install more plugins? Which version of bbPress are you running? Is the bb_menu table created? Did you refresh the page and still get the error? What MySQL/ php version do you use?
I need more info
February 6, 2007 at 8:38 pm #49890In reply to: loading wordpress with bbpress
macwise
MemberI seem to be having a similar problem here, but when I add:
require_once('/wp-content/themes/BabyQuestions101/header.php');
in my bb config.php file, I get this error:
Warning: main(/wp-content/themes/BabyQuestions101/header.php) [function.main]: failed to open stream: No such file or directory in path/to/babyquestions101.com/forum/config.php on line 3
Fatal error: main() [function.require]: Failed opening required ‘/wp-content/themes/BabyQuestions101/header.php’ (include_path=’.:/usr/local/lib/php’) in /path/to/babyquestions101.com/forum/config.php on line 3
(the require_once code is just below the php tag, like this:
<?php
require_once('/wp-content/themes/BabyQuestions101/header.php');
// ** MySQL settings ** //
define('BBDB_NAME', '////'); // The name of the database...
I can’t seem to make this error go away.
Also, is it true that with bbpress .75 I now DO NOT need to add the following line to my config.php file?:
define('WP_BB',true);
Any help here would be appreciated.
flaerpen
Memberheheh, we should do this for all releases on THIS thread!.
until we comes up to 8.0
???
-
AuthorSearch Results