programming help

samcurry

Screwing with the code...
Staff member
ok, I need to change the RED around the paypal to yellow.
I have searched but cannot find exactly where it should be placed.
This is the header info for the site...HELP.......


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="background:url('images/47_decipher.gif');">
<tr>
<td align="$stylevar
"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar
">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="display:inline;border:2px solid $donationborder"><input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="<A href="mailto:[email protected]"><input">[email protected]"><input type="hidden" name="item_name" value="OTC"><input type="hidden" name="no_note" value="1" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="tax" value="0" /><input type="hidden" name="lc" value="US" /><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" align="absmiddle" border="0" name="submit" /></form>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output​
 

catocom

Well-Known Member
samcurry said:
ok, I need to change the RED around the paypal to yellow.
I have searched but cannot find exactly where it should be placed.
This is the header info for the site...HELP.......


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="background:url('images/47_decipher.gif');">
<tr>
<td align="$stylevar
"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar
">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="display:inline;border:2px solid $donationborder"><input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="<A href="mailto:[email protected]"><input">[email protected]"><input type="hidden" name="item_name" value="OTC"><input type="hidden" name="no_note" value="1" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="tax" value="0" /><input type="hidden" name="lc" value="US" /><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" align="absmiddle" border="0" name="submit" /></form>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output​


background:url('images/47_decipher.gif'

is there a graphic in that images dir, like 48_decipher.gif...?​
 

catocom

Well-Known Member
samcurry said:
ok, I need to change the RED around the paypal to yellow.
I have searched but cannot find exactly where it should be placed.
This is the header info for the site...HELP.......


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="background:url('images/47_decipher.gif');">
<tr>
<td align="$stylevar
"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar
">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="display:inline;border:2px solid $donationborder"><input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="<A href="mailto:[email protected]"><input">[email protected]"><input type="hidden" name="item_name" value="OTC"><input type="hidden" name="no_note" value="1" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="tax" value="0" /><input type="hidden" name="lc" value="US" /><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" align="absmiddle" border="0" name="submit" /></form>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output​

Oh...
oh yeah, the was just the first thing that jumped at me.:p

There is a "$donationborder" vaiable, so it must be defined somewhere else.
Was this coded as a pluging?​
 

samcurry

Screwing with the code...
Staff member
im not sure, I have looked all over for the $donationborder but have yet to find anywhere else that it is mentioned but there.
 

samcurry

Screwing with the code...
Staff member
its also here

phpinclude_start

// Example of how to include a seperate file:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
if ($vboptions['donations'] < 100)
{
$donationborder = 'red';
}
else if ($vboptions['donations'] >= 100 AND $vboptions['donations'] < 500)
{
$donationborder = 'yellow';
}
else
{
$donationborder = 'green';
}


but fury couldnt get that to work correctly with the last upgrade so he did something else but i cant find it.
 

catocom

Well-Known Member
samcurry said:
its also here

phpinclude_start

// Example of how to include a seperate file:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
if ($vboptions['donations'] < 100)
{
$donationborder = 'red';
}
else if ($vboptions['donations'] >= 100 AND $vboptions['donations'] < 500)
{
$donationborder = 'yellow';
}
else
{
$donationborder = 'green';
}


but fury couldnt get that to work correctly with the last upgrade so he did something else but i cant find it.
hmm, that might need hex numbers.
I'd have to do some trial, and error, to figure that one out.
might have time tomorrow, I'm not sure yet.
 

samcurry

Screwing with the code...
Staff member
who me? i havent made any changes, just looking.

BUT.... i will when we figure it out.
 

Luis G

<i><b>Problemator</b></i>
Staff member
Viewing the HTML source code it looks like:
method="post" style="display:inline;border:2px solid red">

instead of the PHP code:
method="post" style="display:inline;border:2px solid $donationborder"

Just add the final line in the code below and it should work.
if ($vboptions['donations'] < 100)
{
$donationborder = 'red';
}
else if ($vboptions['donations'] >= 100 AND $vboptions['donations'] < 500)
{
$donationborder = 'yellow';
}
else
{
$donationborder = 'green';
}
$donationborder = 'yellow'; /* Add this line */

That's the easy way, a more appropiate approach would be to store the proper data on $vboptions['donations'], but that would be far trickier.
 

catocom

Well-Known Member
Sam, where/when what code... does it have where it gets the value for "$vboptions['donations'" ?
 

Luis G

<i><b>Problemator</b></i>
Staff member
sam, is it a *nix server? If so you can use the grep command
grep -r donationborder *

And it will tell you the files and lines in which donationborder appears.
 
Top