Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 07-25-2008, 06:38 PM   #1
zalka
Confirmed User
 
zalka's Avatar
 
Join Date: Nov 2006
Location: Perth Australia
Posts: 168
php help needed

Hi guys i need your help on some coding, on one of my sites the left side bar consists of several what they call boxes all written in php, i contacted the webmaster who wrote the script and asked him that i would like to add a extra box to my left column and he sent me the following code but i cant get it to work, he says it is correct but i would like a second opinion here it is:-

<tr> <td>
<?php $info_box_contents = array();
$info_box_contents[] = array('text' =>
'&nbsp;
Your Box Title Here
');
new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '
your box html here
') new infoBox($info_box_contents);?> </td> </tr>

Can you see any mistakes?
Thanks in advance.
zalka is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-26-2008, 12:07 PM   #2
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by zalka View Post
Hi guys i need your help on some coding, on one of my sites the left side bar consists of several what they call boxes all written in php, i contacted the webmaster who wrote the script and asked him that i would like to add a extra box to my left column and he sent me the following code but i cant get it to work, he says it is correct but i would like a second opinion here it is:-

<tr> <td>
<?php $info_box_contents = array();
$info_box_contents[] = array('text' =>
'&nbsp;
Your Box Title Here
');
new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '
your box html here
') new infoBox($info_box_contents);?> </td> </tr>

Can you see any mistakes?
Thanks in advance.
Well, the first "problem" I notice is there is no container for the "infoBoxHeading" class (I'm guessing it's a class by the use of the "new" keyword.) Big problem because there is no reference to the class or object itself. The second thing I notice which is pretty much just redundant coding is the first line reading "$info_box_contents = array()". You'll notice the line immediately after executes the same code...unless they were going for a multi-dimensional array. And finally, the last line has the same problem as my first tiff.
I can't help any more without seeing the full classes.

Last edited by Nookster; 07-26-2008 at 12:08 PM..
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.