Search Results for 'code'
-
Search Results
-
Is this thing on? Great.
I’m currently updating my forum to a newer bbPress version and a nicer looking theme. Everything was going fine until I bumped into a few plug-in issues. I have searched the forums and came across this topic, which seems to mark my problem but never gets resolved.
A recap: I have used the _ck_ plug-in Unread Posts on bbPress 0.9.0.2 and it worked well. I had a bug once in a while (with a topic staying unread, even though I have read it), but it did it’s work properly. When there was a new post, the title of that particular topic went bold. When I clicked on it, the link would lead me to the post which was my last read post. And when I got back to the frontpage, it stopped being bold.
Now I have downloaded the Unread Post plug-in again and installed it on bbPress Version 1.0.2 for my new forum. Result: the topics stay unread until I logout and the bold titles don’t take me to the last read post.
So I’ve tried the earlier version by fel64. Indicate New Post doesn’t do anything either. It mimics Unread Post’s bugs.
Unread topics on the other hand trashed my front-page and won’t take me anywhere since topics does not have an URL like this
http://www.domain.com/<div id=.I’m really lost here, since these are unresolved problems everywhere I look.
Could someone please help me out? Please?
I was poking around in the theme, and in profile.php and have not yet found a way to remove the “website link” in user profiles. Can someone shed some light on this? I am considering taking out the web site link, or adding rel=nofollow to it.. and maybe taking out the email addy off the user profile pages, but no clue where to find this code.
Help appreciated!
Steve
Topic: Get last page in bb_init
Hi there. I’m writing a small plugin and I need to check if the actual page is the last page of a topic. I’ve seen that this is the standard way:
if(bb_current_user_can('write_posts') && bb_is_topic())
{
global $topic, $page;
$add = topic_pages_add();
$last_page = get_page_number( $topic->topic_posts + $add );
if($last_page == $page) do whatever you want
}but I want to use this code during the bb_init callback. It doesn’t work and after some simple tests I’ve seen that $topic isn’t defined (yet). Is there a way to get last page during this callback?
Thanks in advance.

