Forum Replies Created
-
In reply to: Plugin: bbMenu 0.1 beta
Hmm 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)
In reply to: Plugin: bbMenu 0.1 betaWhere 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
In reply to: 8.01 ticket left, release it!!! :D:D:D:D:D:D
In reply to: Plugin: bbMenu 0.1 betaclass class class
In reply to: Plugin: bbMenu 0.1 betaps ow and ear1grey, thx for your help and patience
In reply to: Plugin: bbMenu 0.1 betaI FINALLY fixed it!! YESSSSSSSSSSSSS
What did I do? Well simply replace bb_get_location output with: front-page.
It even doesn’t chance the page id
Perhaps it’s a “dirty” fix, but it works:
function get_bb_menu() {
global $bbdb;
$pemal = get_bb_location();
$pemal = str_replace('topic-page', 'front-page', $pemal);
$pemal = str_replace('profile-page', 'front-page', $pemal);
-normal code goes here-
Going to do some more testing and then it’s ready for release!
In reply to: Repair: Empty PostAn auto-doublepost-remover hmmmm that would be nice indeed! I suggest you put this in the trac
In reply to: I added WYSIWYG to my bbpressHmm I was working on such a plugin too. Also looked at FCKeditor, but it is kinda big and doesn’t work with Opera. I haven’t had good experience with TinyMCE, so I’ve decided to use an opensource WYSIWYG.
It aint finished and if these other editors work good, there is no need for another one.
In reply to: My Template VictoryLooks good, fits the WP template very well. I would make the hot tags purple or dark blue though.
Good work!
In reply to: Plugin: bbMenu 0.1 betaThat 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…
In reply to: Plugin: bbMenu 0.1 betaWell 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
In reply to: Plugin: bbMenu 0.1 betaWell 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
In reply to: Plugin: bbMenu 0.1 betaOkay this IE fix works, but gives a little design problem. On mouseover the underline will appear, but this also effects the div it’s in. Just look at the | between Forums | Search. Move with you mouse over Search (or click it) and see the | grow. Would like to keep the bar where the links are in the same size as it is now (looks great).
Any ideas?
In reply to: Plugin: bbMenu 0.1 beta-double post-
In reply to: Plugin: bbMenu 0.1 beta…… i have to work on my google search words
In reply to: Plugin: bbMenu 0.1 betaEven without the cleaner div it’s still not working in IE
So it’s not the div…
In reply to: get_topic_author() but how to get it’s profile link?Sure, 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
In reply to: Plugin: bbMenu 0.1 betaHi,
Thanks for the suggestion. I will look into this and take out the cleaner div and look at the page in IE again. If it’s still not there, then it’s not the div. I’ll post my findings here as soon as I have tested this.
Thx
ps. I have no idea if there are any toolbars like FF, sorry.
In reply to: Plugin: bbMenu 0.1 betaSame problem in IE 7, no underline there either. It only effects IE as far as I know…
Got it running on my testsite:
In reply to: get_topic_author() but how to get it’s profile link?This topic is old, fixed it ages ago
In reply to: Plugin: bbMenu 0.1 betaQuote
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” ??
In reply to: Plugin: bbMenu 0.1 betaBut then I will have <li class= > and They wont conflict?
Btw the code you gave doesn’t work. They beta is the most stable I’ve got working correctly. So if you like to help me out, plz take a look at it. And yes the beta has the “wrong” id coding.
In reply to: Plugin: bbMenu 0.1 betaYeah I know about the id/class thingy, but even WP uses id instead of class. So why do they do that?. Are they wrong too? Perhaps I will change it in the official release, I just want to have it working first
In reply to: Plugin: bbMenu 0.1 betaGot the for each working:
<ul id="navlist">
<?php $pages = get_bb_menu();
if ($pages) {
foreach ($pages as $page) {
$page_id = $page->page;
$page_item = $page->item;
$page_location = $page->location;
echo "<li><a href="".($page_id)."">".($page_item)."</a></li>n";
}
}
?>
</ul>
The problem is, how can I let it spit:
<li><a <?php if (is_bb_search())
{
echo "id="current"";
}?> href="$page_id">$page_item</a></li>
And
is_bb_search()
is$page_location = $page->location;
In reply to: Why Key Masters?Now let’s call version 1.0 Gozer
http://www.imdb.com/title/tt0087332/trailers-screenplay-X31785-10-2 for who never seen the movie