Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > PHP > Block phpMyBorder Class


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: Block phpMyBorder Class

Newbie





Posts: 5
Registered: 2/17/2005
Status: Offline

  posted on 12/15/2005 at 06:54 PM
This class is really cool. I've tried incorporating it into Autotheme, but haven't been successful. http://www.phpmyborder.com/

My Block looks like this-

<? include_once('phpmyborder.class.php');
$pmb = new PhpMyBorder();

echo $pmb -> begin_round("179px","ffffff","808080"); // (width, fillcolor, edgecolor)
echo"<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
. "<tr> "
. "<td><h2><!-- [block-title] --></h2></td>"
. "</tr>"
. "<tr> "
. "<td><!-- [block-content] --></td>"
. "</tr>"
. "</table>"
."";
echo $pmb -> end_round();
?>

The block does not show. Any suggestions?

 
Reply With Quote

Administrator




Posts: 4608
Registered: 10/7/2002
Status: Online

  posted on 12/19/2005 at 03:57 PM
1. You don't want to echo out AutoTheme commands like <!-- [block-title] -->. Use straight HTML for those.

2. What template is this in? Does any block that is active use it?

3. Where is 'phpmyborder.class.php'? To use it like that it must be in your root CMS dir. If it is in iincludes for example, it would be 'includes/phpmyborder.class.php'.

-Shawn

 
Reply With Quote

Newbie




Posts: 5
Registered: 2/17/2005
Status: Offline

  posted on 12/28/2005 at 07:25 PM
Note 1. did the trick.
Blocks are working perfectly. Tables don't yet, but I'll figure it out.

Thanks, Again.

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 175

Powered by the AutoTheme HTML Theme System
Page created in 0.120425 Seconds