MyBB Community Forums

Full Version: Can I make a CMS with MyBB as it's forum?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Can I make a CMS with MyBB as it's forum?
Think "PHPNuke :: phpBB".
Can I?

Also, I Inserted a loooooooooooong entry into the database.
The CMS is displaying this, but stretching the table too much.

How Do I make it so that the table does not stretch?

I am using this code:
PHP Code:
<?php

require("vars.php");
require(
"inc/dbdetails.php");
mysql_connect("$DBHost""$DBUser""$DBPass") or die(mysql_error());
mysql_select_db($DBName) or die(mysql_error());

$result_maincontent mysql_query("SELECT * FROM ".$Prefix."maincontent ORDER BY id DESC");

echo 
"<table bgcolor='#FFFFFF' border='1' cellpadding='5' cellspacing='0' style='border-collapse: collapse' bordercolor='#C0C0C0' width='100%' id='AutoNumber5'>
��<tr>
����<td height='25' class='thead'>Main Content</td>
��</tr>
��<tr>
����<td>"
;
while(
$show_maincontent mysql_fetch_array($result_maincontent)){
echo 
"<font face='Trebuchet MS' size='5' color='#c0c0c0'><span style='font-weight: 400'>";
echo 
$show_maincontent['title'];
echo 
"</span></font><br>";
echo 
$show_maincontent['content'];
echo 
"<br />";
echo 
"---------------------------------------------------------------------------------------------------------------------------------------------------<br />";
}
echo 
"</td>
��</tr>
</table>"
;
?>
Marc O' Connor Wrote:>.<
One full day with no reply.
Bump.

More like half a day Toungue (You posted it at about 8am my time, and you bumped it at about 8pm)

Anyway, try replacing the long line of ------------------ with <hr />
Nope, doesn't work..
It's because the text is
Quote:asddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
with no BRs.
Hence, it stretches the table.
I want to like "wrap" the text?

Also, I still need Chris' permission...
If he replies positive...
Could he/you also tell me how to get my CMS and MyBB to both install through the CMS' installer?

Thanks. Smile

You can see the demo at http://80.231.185.80/CMS_Beta
Marc O' Connor Wrote:Nope, doesn't work..
It's because the text is
Quote:asddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
with no BRs.
Hence, it stretches the table.
I want to like "wrap" the text?

Also, I still need Chris' permission...
If he replies positive...
Could he/you also tell me how to get my CMS and MyBB to both install through the CMS' installer?

Thanks. Smile

You can see the demo at http://80.231.185.80/CMS_Beta

I don't see any problems with the demo...
Belloman Wrote:
Marc O' Connor Wrote:Nope, doesn't work..
It's because the text is
Quote:asddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
with no BRs.
Hence, it stretches the table.
I want to like "wrap" the text?

Also, I still need Chris' permission...
If he replies positive...
Could he/you also tell me how to get my CMS and MyBB to both install through the CMS' installer?

Thanks. Smile

You can see the demo at http://80.231.185.80/CMS_Beta

I don't see any problems with the demo...
Same here.
Marc, try using the php function wordwrap(): http://us3.php.net/wordwrap
wordwrap and this kind functions
also
using a DIV view of threads make show thread as usefull as it should.
even if some post wrapped by that function , may there was some posts that have images or php codes (that not wrapped unfortunately)
via DIV mode showing if one post has a widthly view other posts can save theire width as well.
i hope can determine my purpose:-s
Thanks...
But Chris, I still need your permission...
Ok, upon hearing from Maverick that I do not need permission, I have released it.
That's directly redistribution, and if Maverick had read the licence, he would have known that:
Quote:You may not reproduce or distribute the MyBB SOFTWARE for any reason with out express written consent from the entire MyBulletinBoard seat holding Admin Board.

As far as I know, Maverick does not constitute the "entire MyBulletinBoard seat holding Admin Board" and thus has no authority to allow you to redistribute MyBB.

If Chris has not already given you permission, please remove the download until he does.

Thanks.
Pages: 1 2 3 4 5