Jump to content

[Minor] Add A Table/Box


Guest

Recommended Posts

Guest cybermidi

I cant' find subheader.inc.php or subfooter.inc.php,

but I noticed the lines referenced in index.php

When I added the code, the front page dissapeared.

Link to comment
Share on other sites

I cant' find subheader.inc.php or subfooter.inc.php,

but I noticed the lines referenced in index.php

When I added the code, the front page dissapeared.

They're in your root directory. I just installed this hack and it works very well. The "Newest Product" box is new.

Link to comment
Share on other sites

  • 4 weeks later...

I got this error when installing this mod:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/wandas-p/public_html/store/box1.php on line 38

Link to comment
Share on other sites

if(!function_exists("sb")){

exit;

}

// start border

sb("140","Test",$colour_1,$bg_colour);

echo"

<a href="http://wandas-ps.com/chat/" target="Live Chat" name="Live Chat" onMouseOver="window.status='Live Chat'; return true;" onMouseOut="window.status=''; return true;">Live Chat</a>

";

// end border

eb($bg_colour,$colour_1);

?>

Link to comment
Share on other sites

if(!function_exists('sb')){



exit;



}

// start border

sb('140','Test',$colour_1,$bg_colour);



echo"



<a href='http://wandas-ps.com/chat/' target='_blank' name='Live Chat' onMouseOver='window.status='Live Chat'; return true;' onMouseOut='window.status='; return true;'>Live Chat</a>



";



// end border

eb($bg_colour,$colour_1);

?>

Try replacing it with that

Link to comment
Share on other sites

I have an error now with adding a live help image in a new box.

Error message is: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/wandas-p/public_html/store/box3.php on line 40

The coding in this box is:

if(!function_exists('sb')){

exit;

}

// start border

sb('140','Live Help!',$colour_1,$bg_colour);

echo"

<!-- Powered by: Crafty Syntax Live Help http://www.craftysyntax.com/ -->

<script type="text/javascript" src="http://wandas-ps.com/livehelp/livehelp_js.php?department=1&amp;pingtimes=30"></script>

<!-- copyright 2003 - 2005 by Eric Gerdes -->

";

// end border

eb($bg_colour,$colour_1);

?>

Can anyone help me fix this?

Thanks Russell

Link to comment
Share on other sites

Remember with any code in php files (especially HTML), you MUST always place a backslash (\) before any inverted-commas (")

e.g.

<a href="yourdomain.com">

would become

<a href=\"yourdomain.com\">

So, your code would be:

if(!function_exists('sb')){



exit;



}

// start border

sb('140','Live Help!',$colour_1,$bg_colour);



echo"



<!-- Powered by: Crafty Syntax Live Help http://www.craftysyntax.com/ -->

<script type=\"text/javascript\" src=\"http://wandas-ps.com/livehelp/livehelp_js.php?department=1&amp;pingtimes=30\"></script>

<!-- copyright 2003 - 2005 by Eric Gerdes -->



";



// end border

eb($bg_colour,$colour_1);

?>

Link to comment
Share on other sites

×
×
  • Create New...