Then i’m Jerry.
Fel, i think you misunderstood me with the new-post class. I wanted it away from the title, as a new variable of some sort. I guess this plugin is only for the topic text, and can not be modified to my wishes.
That’s the maxlength property of input fields.
You can still edit the HTML, though, and submit your crazy username. A serverside check is best.
Like so? http://192.168.1.29/blogs/bb-admin
I think $bb_path should be /blogs/test/forums/ and $bb_domain should be http://192.168.1.29
Oh, amazing … i feel like Tom from Tom & Jerry :p
I don’t know who you have to sleep with to get _that_ plugin. It’s not me. I’m shying away from implementing it because I’m not sure what a good method is.
Do you know if it would be possible to modify the plugin to differentiate between a .no_new_topic and a .new_topic class, for use in CSS instead?
Yeah. Change the function fel_indicatenew() to this (note that I’m using classes ‘no-new-topic’ and ‘new-topic’ here):
function fel_indicatenew($title)
{
global $topic, $bb_current_user;
if ( bb_is_user_logged_in() )
{
$feluser = bb_get_user($bb_current_user->ID);
if( ($topic->topic_time > $feluser->last_visit) && ( $topic->topic_last_poster != $feluser->ID ) )
{
$title = '<span class="new-topic">' . $title . '</span>';
} else {
$title = '<span class="no-new-topic">' . $title . '</span>';
}
}
return($title);
}
Not sure if you have found the solution, but if you put the absolute path to your wp-blog-header.php, it should work fine.
Example: /home/yourusername/public_html/wp-blog-header.php.
i did that and did a diff on all the files and they’re all the same. where do i get the code for avatar.php?
I have never coded sql, but i agree for some unknown reason that i don’t think it’s difficult to code. I’m just curious as to why noone ever did so before. In my opinion, this is the only obstacle in bbPress.
If anyone should decide to give this a go and try to make the plugin, i just have one (more?) request.. and that is that the plugin also indicates a new topic in the forums part, and not only in the latest discussions. The Indicate New Posts plugin fails to do this.
Who do i have to sleep with to get this plugin?
I think it should not be hard to code such a plugin. It would have to create a new database table, like bb_read, with the following fields:
– bb_user
– bb_post
– bb_last_comment_read
This way you could modify the posts query, left joining it with this table. If the join is NULL (please correct me if i’m wrong, i haven’t done these things in a lot of time), then the user has never read the post. If bb_last_comment_read is less than the actual number of comments or replies, then he hasn’t read the last post.
Another interesting alternative is what the folks at wordpress.org are doing … for non-visited links they have a font with a font-weight: bold style. So you can see which topics are new.
Hi fel.
I already modified the -strong- part, to some <span style=”color: #123456;”>, but i have to admit that i have never heard of the content-before tag for CSS.
I looked at google, i guess the tag looks like :before (or :after), but i also found this page:
http://www.quirksmode.org/css/contents.html
.. which states that it doesn’t work in IE browsers. FreekinĀ“ Microsoft..
Good idea though, but unfortunately IE is too popular.
In my theme i have a table, with two columns. First column is the one i would like to be able to modify (even if only with a CSS tag), second column holds the title of the topic.
Do you know if it would be possible to modify the plugin to differentiate between a .no_new_topic and a .new_topic class, for use in CSS instead?
I’m sorry, that was maybe a little bit strong.
(But I see _iframes_ and things just go red …
)
Do you want it CSS-driven? It’s trivial to modify the Indicate New plugin. Just look for where it says <strong> and </strong> (near the bottom) and change that to <span class="new"> and </span>. You can then use content-before to add the NEW or do whatever else.
What’s new and what isn’t isn’t yet implemented.
What would bb be looking up? It knows the link type and it already has $topic->topic_last_poster_name as well as $topic->topic_last_poster.
awesome, just what i was looking for! thanks
> update: actually this is not directly your fault, though you are trying to use a bb-admin function that was meant for local file access to do remote file access?
If you check the short “to do” list at the top of the plugin you’ll see that I plan to address that issue in the future. I might just copy and paste the code from that internal function and then hack in my own curl/fopen alternative function.
> If I am not mistaken, you just found a bbpress security loophole.
Explain your concerns, how do you think this would be exploited? If it can be we should patch it up.
> ps. any concerns about eventually 2,000-20,000 bbpress users hammering the svn with so many file downloads to examine all the plugin headers?
36 downloads so far, let’s start worrying at 1,000
Never mind, I found the variable in config.php. Pretty obvious.
'// The number of topics that show on each page.
$bb->page_topics = 15;
Is there a way to either modify the “Indicate New Posts” plugin, or inspire someone to make a plugin, so that i can add something like this in my theme:
<?php if ($newpost) : ?>
NEW
<?php else : ?>
OLD
<?php endif; ?>
I have looked all over google – and on this site – for a plugin that allowed me to see new posts/topics when i visit my forum, but so far the only one i could find is the “Indicate…”. In all honesty, i can’t use bold marked topics for much.. i need something more CSS like, something not only affecting the topic.
I’ve coded themes for phpBB for years, but i recently found bbPress and i just love how simple and easy it is to code themes here. With a plugin to display new posts/topics (which in my own humble opinion SHOULD be standard in bbPress), i could gladly help spreading the word of a (relatively) new BB, by making some new themes.
If i could decide the function entirely, it should work in such way that both new topics as well as new posts would be affected, and they would continue to show as unread until i actually read them. Also, it should be database driven, so that i could log in to my account on another computer, and still see the posts/topics that would be new for me.
Please don’t make me go back to phpBB…
Actually, I just realized there is a cheat way to do zero extra mysql queries and link to the profile.
<td class="num"><a href="/forums/profile.php?id=<? echo $topic->topic_last_poster; ?>"><?php topic_last_poster(); ?></a></td>
untested but should work in theory
This will just use the stored last posted id # instead of forcing bbpress to lookup all their meta data and profile link in the database.
If your forum uses permalinks, it will just rewrite the url on display.
i feel like i should send you a check, fel.
thanks
That’s because you have these seriously weird rules:
* > .box p {style.css (line 683)
margin-top:-100px;
}
You have them twice, too. Looks like you copied the same code from somewhere twice. Right at the end of the file.
I recommend that you make a _single_ change, test, repeat. Then you know what’s responsible when stuff breaks.
[Edit] Yeah. Get rid of the hack. That will fix it.
Ardentfrost recommended this alternative hack a while back. http://ardentfrost.rayd.org/?p=136
Mistainu, by “breadcrumb structure” do you mean that the family tree of a sub-forum should be displayed? That’s high on my wishlist.
In other words, right now a subforum’s breadcrumbs look like:
Food Forums – winesaps
When I wish they looked like:
Food Forums – fruit – apples – winesaps
I’m reluctant to use subforums at all if I can’t give the user good feedback about where they are in the forum structure.
So: does your breadcrumb code address this problem? And if so, is it coherent enough that I can glue it into place myself without being an expert about bbPress internals? (I do know enough PHP to be dangerous.)
Cheers fel 
Regarding the plugin, there’s a slight niggle. At the moment the plugin builds the profile URL from scratch. So it’s an extra (and I believe unessecary) option that you define if you have pretty permalinks or not.
Is there like a hook (similar to user_profile_link) that grabs the profile URL?
Sorry Crowspeak, I’m not immediately sure what the problem could be. I’ll mull it over and go through the code again sometime. Hopefully it’s not too much of a problem for you.