MyBB Community Forums

Full Version: Article Management System
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Anyone know if anything like this exists or if it's even possible?

You can find it here:
http://www.vbarticles.com
its possible i don't know if there is a mod that will do the same thing
I put a request in at mybbmods. I hope someone can either put together a mod for this or point me in the direction to create such a mod.
Been modding the portal to try to get the appearance of an AMS, however, I'm stuck now. I'm trying to limit the characters instead of showing the entire post. It's a bit frustrating. I have no idea how to do it. Sad

Any suggestions?
use the tid and pid in the database
Not quite sure what you mean and how it relates to limiting the output in terms of characters. Undecided

But you obviously know myBB better than I do. How would I limit the characters shown in the posts that are shown on the portal?
n/m i read it wrong think you said thread

anyway i will have a look at it later
$custpage = $results['articalcontent'];
if(strlen($custpage) > 250)
{
$custpage = substr($custpage, 0, 250)."... <a href=\"./showthread.php?tid=".$results['tid']."\">(more)</a>";
}
echo $custpage;
Try that (you'll need to edit a tiny bit)
$custpage = substr($custpage, 0, 250)."..." 

This worked.

<a href="./showthread.php?tid=".$results['tid']."">(more)</a>"

This did not.

I also tried ..

"<a href=\"".$mybb->settings[bburl]."/showthread.php?tid=".$results['tid']."">(more)</a>"

But with no success.
What does the url point to when you click it?
Pages: 1 2