Forum Replies Created
-
In reply to: LaTex support
No idea. My advice would be to find a wordpress plugin and just modify it – there probably won’t be much to do – into a bb plugin. It’s worth a try.
In reply to: tuzhak !== bozo; tuzhak === link-farmer;Yeah. The way I see it, bozo is anyone you don’t want posting – spammer, serial troll or bot – anyway, so I wouldn’t mind marking him that way.
Trent, do you have to lock the thread? Either the discussion is over, in which case no-one will post anyway, or it’s not and you just stopped it.
In reply to: Line return not workingIt does make sense. I just have no better advice than to suggest you re-upload all your files, or upgrade to a pre-release version, in the hope that that fixes it.
In reply to: Freshness LinkedForum 1 is private, and I can’t login using “test” and “test” Last time I checked, though, the latest post thing was screwed.
In reply to: PHP Fatal error in bb-settings.php on line 7If you’re installing it locally, it’s worth noting that a lot of people have had problems with it but had no problems on a live server. Or is it a live Windows server?
In reply to: Freshness LinkedThe forum you linked to is private (and incidentally that apostrophe in the error message is escaped once too many times). For the single non-private thread on your forum front page, though, the link works for me (as it does when you view forums individually). I can’t reproduce the error now? I could earlier, though – strange. Thanks for mentioning it.
In reply to: tuzhak == bozoHow does the report facility work in other forum software? It’s just a straighforward ‘send email with details to admin’ jobbie isn’t it? Could probably be plugin’ed pretty quick.
In reply to: bbPulp.org – developer wikiIt’s pretty cool. I like it a lot!
In reply to: tuzhak == bozoI’m not sure who did it, but thank you very much.
In reply to: bbpress / wordpress avatar?Why don’t you copy the code here or upload and link to it? If anyone’s interested they can modify it then.
In reply to: Hack: bb replies as wp comments; using bb API?Oh, bizarre. It must have edited it in somehow. Trent, could you take that out in case someone else comes along? My hour’s up.
Excellent!
In reply to: Anyone have Prev/Next Thread / Forum plugin?Ahh, that’ll teach me to remember the difference between get_bbpress_thing() and bbpress_thing(). >_< Sorry.
Replace the code in there now with this.
Set the last parameter to true if you want it to return an array of information. To use this you would use code like this:
<?php $mytopicnavarray = feltopicnav( '', '', ' ', true, true );
echo '<a href="' . $mytopicnavarray['next']['link'] . '">Click here to go to the next topic!</a>'; ?>Use
<?php felforumnav(); ?>
to get the forum navigation in a similar way to the topic navigation. It’s just a simple wrapper for what feltopicnav does, but it’s a bit easier to see what it’s supposed to do. Check the code for possible parameters.I won’t submit this as a proper plugin because the code is awkward. Maybe sometime I’ll recode it or someone else will.
<?php
/*
Plugin Name: Topic Navs;
Plugin URI:
Description: Put <?php feltopicnav(); ?> in a topic template to show links to the previous and next topics, and put in <?php felforumnav(); ?> to get basic next/previous forum navigation. More parameters such as $infoonly available.
Author: fel64
Version: 0.7
Author URI: http://www.loinhead.net/
*/
function feltopicnav( $nexttext = '', $prevtext = '', $betweentext = ' ', $lastpost = true, $infoonly = false, $forumnav = false; )
{
global $topic_id;
$nexttopic = $topic_id + 1;
$prevtopic = $topic_id - 1;
global $forum_id;
$nextforum = $forum_id + 1;
$prevforum = $forum_id - 1;
if( !$nexttext )
if( !$forumnav ) {
$nexttext = get_topic_title( $nexttopic );
} else {
$nexttext = get_forum_name( $nextforum );
}
if( !$prevtext )
if( !$forumnav ) {
$prevtext = get_topic_title( $prevtopic );
} else {
$prevtext = get_forum_name( $prevforum );
}
$prevtext = get_topic_title( $prevtopic );
if( $lastpost ) {
$nextlink = get_topic_last_post_link( $nexttopic );
$prevlink = get_topic_last_post_link( $prevtopic );
} else {
if( !$forumnav ) {
$nextlink = get_topic_link( $nexttopic );
$prevlink = get_topic_link( $prevtopic );
} else {
$nextlink = get_forum_link( $nextforum );
$prevlink = get_forum_link( $prevforum );
}
}
if( $infoonly ) {
$topicnavinfo['next']['title'] = $nexttext;
$topicnavinfo['next']['link'] = $nextlink;
$topicnavinfo['prev']['title'] = $prevtext;
$topicnavinfo['prev']['link'] = $prevlink;
return $topicnavinfo;
} else {
echo '<a href="' . $prevlink . '"> « ' . $prevtext . '</a>' . $betweentext . '<a href="' . $nextlink . '">' . $nexttext . ' » </a>';
}
}
function felforumnav( $nexttext = '', $prevtext = '', $betweentext = ' ', $infoonly = false )
{
$fni = feltopicnav( $nexttext, $prevtext, $betweentext, false, true, true );
if( $infoonly ) {
return $fni;
} else
echo '<a href="' . $fni['prev']['link'] . '"> « ' . $fni['prev']['title'] . '</a>' . $betweentext . '<a href="' . $fni['next']['link'] . '"> « ' . $fni['next']['title'] . '</a>';
}
}
?>In reply to: Show exact date of post? (not freshness)Paste in
<?php global $post;
$lalaposttime = date( 'D M Y', strtotime( $post->post_id ) );
echo $lalaposttime; ?>anywhere you like outside other
<?php ... ?>
tags. So you could put it next to the code snippet you quoted. If you use Notepad 2 or something it makes it a lot easier by colour-coding these things.The fact that it’s spread out over several lines doesn’t make a difference when it’s inside the
<?php ... ?>
tags.In reply to: Show exact date of post? (not freshness)I suspect that this will work. Replace
get_post_time()
or whatever it is withglobal $post;
echo $post->post_time;(Remember to have the
<?php
…?>
tags around it!) If you want different formatting on that, I think that$post->post_time
is a bit too much detail so you could instead haveglobal $post;
$lalaposttime = date( 'D M Y', strtotime( $post->post_id ) );
echo $lalaposttime;You can change the way the date will appear by changing the first parameter (currently it’s ‘D M Y’) of the
date()
function. A list of how you can format dates is here.In reply to: simple way to add TinyMCE to BBpressHow did you make it work?
In reply to: custom roles?No problem. Are you using the default theme? That should certainly show a changed user title. Have you checked the database to see if it’s there? You would use phpMyAdmin to look into the usermeta table (look for the ID of that particular user).
In reply to: custom roles?I don’t have that option. I can edit the titles, which is maybe what you mean? All titles are is a word or two under their name. You can change this. To change the user’s roles (ie. what he can do), you need to pick a new role from User Type.
In reply to: location, occupation and interestsHave you checked if that field’s name is set in the template?
I’m not sure what options/fields you mean, so I can’t help you with that, sorry.
In reply to: Freshness LinkedThe topic closed thing comes from the pagecount being too high. I think
get_topic_last_post_link()
must be screwing up – did the latest reply thing stop working immediately after recount? Not sure what the solution is, sorry. Perhaps get the latest version, see if the problem persists?I just recounted on my forum (running 1.0-alpha), but it seems to still work.
In reply to: Anyone have Prev/Next Thread / Forum plugin?There is now!
Save this in a file, call it
sumting.php
, and drop it into yourmy-plugins
folder. Then put<?php feltopicnav(); ?>
somewhere in a topic template. Not tested, so please tell me if it works.<?php
/*
Plugin Name: Topic Navs;
Plugin URI:
Description: Put <?php feltopicnav(); ?> in a topic template to show links to the previous and next topics. Optional parameters are $nexttext, $prevtext, $betweentext and $lastpost.
Author: fel64
Version: 0.7
Author URI: http://www.loinhead.net/
*/
function feltopicnav( $nexttext = '', $prevtext = '', $betweentext = ' ', $lastpost = true )
{
global $topic_id;
$nexttopic = $topic_id + 1;
$prevtopic = $topic_id - 1;
if( !$nexttext )
$nexttext = topic_title( $nexttopic );
if( !$prevtext )
$prevtext = topic_title( $prevtopic );
if( $lastpost ) {
$nextlink = topic_last_post_link( $nexttopic );
$prevlink = topic_last_post_link( $prevtopic );
} else {
$nextlink = topic_link( $nexttopic );
$prevlink = topic_link( $prevtopic );
}
echo '<a href="' . $prevlink . '">' . $prevtext . '</a>' . $betweentext . '<a href="' . $nextlink . '">' . $nexttext . '</a>';
}
?>In reply to: OutletIn MCE it always assumes the next paragraph to be b-quoted too, unless you specify otherwise. I think it’s default behaviour.
You could probably modify the Quote plugin so that instead of returning
<blockquote> quoted stuff </blockquote>
it attached a newline character or two. Something like<blockquote> quoted stuff </blockquote>nn
might be enough as a modification, I’m not sure. MCE should interpret the two new lines as a new paragraph, hopefully without blockquotage.In reply to: Hooks & Filters DocuIn reply to: custom roles?How/where are you giving him the custom role?
In reply to: My Forums: Temporada De PatosAhh thanks, I was looking in the wrong place.
Does the display: block property make a difference? Using Firebug to disable it I can’t see a change.
In reply to: Display Username<?php echo bb_get_current_user_info( 'name' ); ?>
Drop that into HTML wherever you want it.
The default theme puts a “Welcome, USER! View your profile (Log out)” at the top left of every page, right where the login box would be otherwise.
Edit: strange, is the overflow: hidden property gone again?