Search Results for 'code'
-
AuthorSearch Results
-
February 4, 2007 at 5:29 pm #53992
In reply to: Plugin: bbMenu 0.1 beta
Null
MemberThat is about right. I suggest you install the beta plugin and take a look, cause I am a noob and perhaps we are talking about the same, but in other words

I am also looking for alternitive solutions like:
Isn’t there a simpler way? Like always underline Forum unless $rw == get_bb_location()
So if current isn’t present in the li list, uinderline Forums. If this is possible, it would solve all problems

And:
replacing/filtering bb_get_location so when it says: topic-page it will be filter to: front-page (and the forum link will be underlined.
Well in theory…
February 4, 2007 at 5:20 pm #53991In reply to: Plugin: bbMenu 0.1 beta
ear1grey
MemberCan you confirm what I asked earlier about the content of $rw[“location”]?
If that is what you’re doing then modify this example:
<?phpfunction exampleOne() {return "bb";}function exampleTwo() {return "press";}$rw["one"] = "exampleOne";$rw["two"] = "exampleTwo";$switchOne = call_user_func($rw["one"]);$switchTwo = call_user_func($rw["two"]);echo($switchOne);echo($switchTwo);?>Obviously you don’t need the example methods, but just use call_user_func on the name of the method you’re pulling from the DB.
February 4, 2007 at 3:45 pm #53611In reply to: can’t access Admin page
Trent Adams
MemberCouple of things. I would try the first line with an absolute server path. Something like:
require_once('www/blog/wp-blog-header.php'); ?>
As well, I am sure you have an Akismet number, but if not, best to put it as:
$bb->akismet_key = false;Trent
February 4, 2007 at 11:25 am #53990In reply to: Plugin: bbMenu 0.1 beta
Null
MemberWell the switch gives this error:
Parse error: parse error, unexpected $ in /xxx/bbpress/my-plugins/bbmenu.php(123) : eval()’d code on line 1
Isn’t there a simpler way? Like always underline Forum unless $rw == get_bb_location()
So if current isn’t present in the li list, uinderline Forums. If this is possible, it would solve all problems
February 4, 2007 at 8:56 am #53610In reply to: can’t access Admin page
ateale
MemberHey Ardentfrost,
Sorry for taking so long to get back to your reply – i really appreciate it!
Cheers!
Here’s the config file:
<?php
require_once('../wp-blog-header.php');
define('WP_BB', true);
// ** MySQL settings ** //
define('BBDB_NAME', '*******'); // The name of the database
define('BBDB_USER', '*******'); // Your MySQL username
define('BBDB_PASSWORD', '*********'); // ...and password
define('BBDB_HOST', '**********'); // 99% chance you won't need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = 'http://blog.lumanation.com'; // Example: 'http://bbpress.example.com'
// There should be both a leading and trailing slash here. '/' is fine if the site is in root.
$bb->path = '/bbpress/'; // Example: '/forums/'
// What are you going to call me?
$bb->name = 'Lumanation bbPress';
// This must be set before running the install script.
$bb->admin_email = '********com';
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = false;
// The number of topics that show on each page.
$bb->page_topics = 30;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = 60;
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = 8;
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
// to enable German language support.
define('BBLANG', '');
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet's powerful spam blocking, you'll need one. You can get an Akismet key at
// http://wordpress.com/api-keys/
$bb->akismet_key = ''; // Example: '0123456789ab'
// The rest is only useful if you are integrating bbPress with WordPress.
// If you're not, just leave the rest as it is.
$bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
$bb->wp_home = 'http://blog.lumanation.com'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'
$bb->wp_siteurl = 'http://blog.lumanation.com'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'
/* Stop editing */
define('BBPATH', dirname(__FILE__) . '/' );
require_once( BBPATH . 'bb-settings.php' );
?>
mozey
Member
ofcourse, i ment 8.0 * .1
February 4, 2007 at 12:10 am #53989In reply to: Plugin: bbMenu 0.1 beta
ear1grey
MemberI think I answered this earlier …
$switch = eval("return ".$rw["location"]);… because $rw[“location”] is, I think, the name of a function which you’re pulling from the DB.
February 3, 2007 at 9:47 pm #53988In reply to: Plugin: bbMenu 0.1 beta
Null
MemberWell the IE bug is solved, now I have the other one left.
Tried this:
$current = ('topic-page' == get_bb_location() || $rw['location'] == get_bb_location()) ? ' id="current"' : '';I’ve added
'topic-page' == get_bb_location() ||to it. It works partialy. If topic-page isn’t get_bb_location then it wil use$rw['location'] == get_bb_location(), but if topic-page IS get_bb_location then it will underline ALL links. I think cause it doesn’t know that it only needs to underline the Forums link. So how to fix this so when topic-page IS get_bb_location -> is current -> highlight ForumsThx
drmike
MemberShuldn’t have to change anything. That’s all bbpress code.
February 3, 2007 at 7:39 pm #52434In reply to: Plugin Request: Forum Categories..
spencerp
MemberJust to update everyone on this.. I’ve upgraded the forums to the very Latest SVN files for .80alpha, and the latest file changes for the Forum Categories enhancement by SamBauers..

I plan to tweak some more things though, and also release the “Gathering” theme for bbPress then. It’s still on my To-Do list, and it will get done then folks!

spencerp
February 3, 2007 at 1:53 pm #1337Topic: Plugin: Graphic Display Ranks — Error
in forum TroubleshootingGeezerjim
ParticipantI’m using this code in my Graphic Display Ranks plugin:
$path_to_subdirectory= bb_get_option('uri') . "my-plugins/ranks/";$get_config = $path_to_subdirectory . "gdr_config.php";
include($get_config);
The plugin works just fine on the forum, but on the admin pages I’m getting these warnings:
Warning: main(my-plugins/ranks/gdr_config.php): failed to open stream: No such file or directory in /home/brightan/public_html/bbPress/my-plugins/display-rank-images.php on line 43
Warning: main(my-plugins/ranks/gdr_config.php): failed to open stream: No such file or directory in /home/brightan/public_html/bbPress/my-plugins/display-rank-images.php on line 43
Warning: main(): Failed opening ‘my-plugins/ranks/gdr_config.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in /home/brightan/public_html/bbPress/my-plugins/display-rank-images.php on line 43
I’m pretty sure it’s something to do with the path, but what am I not seeing?
February 2, 2007 at 9:51 pm #50386In reply to: Slashes being added in front of apostrophes
baptiste
Memberreturn stripslashes(apply_filters( 'get_topic_title', $topic->topic_title, $id ));February 2, 2007 at 9:32 pm #53985In reply to: Plugin: bbMenu 0.1 beta
ear1grey
MemberThat comes with bitter experience
Once it’s working, it’s then a good time start thinking about integration. Since this is a plugin it will have to work with many themes, so for maximum flexibility you might want to switch from pixel based sizing to either percentages or ems so that everything is sized relative to the default font.
February 2, 2007 at 7:30 pm #53983In reply to: Plugin: bbMenu 0.1 beta
Null
Member…… i have to work on my google search words
February 2, 2007 at 6:58 pm #53982In reply to: Plugin: bbMenu 0.1 beta
ear1grey
MemberThe first google result for “IE7 border-bottom” gives the answer to this.
I got it to work in IE7 by…
- changing all references from
id="current"toclass="current"(because I refuse to write semantically wrong css
) - replacing
#currentwith.current { display: block; BORDER-BOTTOM: #2e6e15 3px solid; }
February 2, 2007 at 6:18 pm #53981In reply to: Plugin: bbMenu 0.1 beta
Null
MemberEven without the cleaner div it’s still not working in IE

So it’s not the div…
February 2, 2007 at 4:37 pm #52175In reply to: get_topic_author() but how to get it’s profile link?
Null
MemberSure, I needed this for my bbPortal plugin (www.bbportal.org). The code for this is for the profilelink:
get_user_profile_link($topic->topic_poster), for the poster name:get_topic_author().To be honest, I am not sure if this will work OUTSIDE the bbPortal plugin. If not, just check the plugin and perhaps you can strip it…
Let em know
Null
February 2, 2007 at 3:19 am #53979In reply to: Plugin: bbMenu 0.1 beta
chrishajer
ParticipantNull, I looked at your site. No underlines appear for me with IE7 either, whether hovering or not. So, I don’t think it’s the :hover pseudo class problem (and especially since the :hover is applied to
<a>elements.It looks like the underline might be behind the #cleaner div in IE, where it’s on top of it in FF. Can you try making the #wrapper-menu taller and see if you can see underlines then? I am guessing they are there, just not visible since they’re behind the #cleaner div.
Is there a tool comparable to the web developer extension for FF, on IE? I installed the IE Developer toolbar, but it does not give you the ability to modify the CSS and see the changes.
February 2, 2007 at 2:14 am #52078In reply to: Simply doesn’t work
Tim Bowen
MemberI had a similar problem and found that putting this one line of code (and nothing else) in the .htaccess file did the trick:
Options +MultiViews
February 1, 2007 at 11:44 pm #52173In reply to: get_topic_author() but how to get it’s profile link?
Null
MemberThis topic is old, fixed it ages ago
February 1, 2007 at 7:55 pm #53004In reply to: Request: Posts since last visit
thomasklaiber
MemberHmm… I think I’m an egoistic programmer
I just set my $wherewith = instead of .= … I’ll change it.Do you think this will fix it?
February 1, 2007 at 7:47 pm #54042In reply to: Can’t get WordPress and bbPress to integrate
kineda
Memberthanks… I’ll go ahead and do that.
February 1, 2007 at 7:19 pm #53977In reply to: Plugin: bbMenu 0.1 beta
chrishajer
ParticipantIs there a demo of it somewhere? I have no need to install it, so I can’t see the IE underline problem.
Does it have anything to do with the :hover pseudo class? That can only be applied to
<a>elements in IE before version 7. Not sure if that’s what the problem is. A demo would be helpful for me to see it without installing it, if possible.February 1, 2007 at 3:46 pm #53976In reply to: Plugin: bbMenu 0.1 beta
Null
MemberQuote
I think your post may be corrupted: did you mean to say<li class= >
?
Yes it got corrupted,
<a class=>is what I ment.Btw to solve my ‘problem’ I am indeed going to use the switch thingy (read some more about it), so it will check some hardcoded “location” first and then check the db list. It’s kinda an ugly workaround, but normal users wont be bothered with this code anyway…
Anyone has any ideas about the IE “bug” ??
February 1, 2007 at 3:22 pm #54012In reply to: Send Post takes 45 seconds
chrishajer
ParticipantI had a similar problem on bbpress.org/forums/, which resulted in a
408 timeout. I posted about that problem here.Thanks for the bump.
- changing all references from
-
AuthorSearch Results