Help - Search - Members - Calendar
Full Version: 2.1 Skin problem
Invision Power Services > Community Forums > Community General Chat
Strabo
hi, I'm getting a skin problem on the default skin when attempting to access the UPC.


Parse error: parse error, unexpected '=', expecting '&' or T_VARIABLE in /home/strabo/public_html/forums/cache/skin_cache/cacheid_14/skin_ucp.php on line 540



Line 540 says:
CODE
function dynamicsignature(='',='',='') {


anybody know whats up???
IAIHMB
Can you provide is with the remainder of the function? For some reason or another, they are assigning values to non existant parameters.

QUOTE
function dynamicsignature(parameter='',parameter='',parameter='') {
Strabo
I would paste in the whole function, but when i try I get an invision message saying "Sorry, dynamic pages in the [IMG] tags are not allowed"...


what is line 540 meant to say??
IAIHMB
There is no way of telling without seing the rest of the function. Use the code tags.
Strabo
i did...well...I used codebox...
CODE
//===========================================================================
// <ips:dynamicsignature:desc:>
//===========================================================================
function dynamicsignature(='',='',='') {
$IPBHTML = "";
//--starthtml--//


$IPBHTML .= <<<EOF
<form action='{$this->ipsclass->base_url}' method='post' name='REPLIER'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='do_dynamicsignture_custom'>
<input type='hidden' name='key' value=''>

<div class='formsubtitle'>Dynamic Signature Phrase</div>

<table cellspacing='0'>
<tr>
<td class='pformleft' width='50%'><b>Custom Saying</b></td>
<td class='pformright' width='50%'>
<input type='hidden' name='bbmode' value='ezmode' onclick='setmode(this.value)'>
<input type='hidden' name='bbmode' value='normal' onclick='setmode(this.value)' checked='checked'>
<INPUT Type='text' size='75%' name='custom' id='custom'>
</td>
</tr>
<tr>
<td colspan='2' align='center' class='formbuttonrow'><input type='submit' value='Create Custom Signature Phrase' class='button'></td>
</tr>
</table>
</form>
<form action='{$this->ipsclass->base_url}' method='post' name='REPLIER'>
<input type='hidden' name='act' value='UserCP'>
<input type='hidden' name='CODE' value='do_dynamicsignature'>
<input type='hidden' name='key' value=''>

<div class='formsubtitle'>Preview</div>
<table cellspacing='0'>
<tr>
<td class='pformright' width='50%'>
<img src='{$this->ipsclass->base_url}dynamicsig={$this->ipsclass->member['id']}.jpg'></td>
</tr>
</table>

<div class='formsubtitle'>BBCode</div>
<table cellspacing='0'>
<tr>
<td class='pformright' width='50%'>

[IMG]{$this->ipsclass->base_url}dynamicsig={$this->ipsclass->member['id']}.jpg[/IMG]</td>
</tr>
</table>

<div class='formsubtitle'>Dynamic Signature</div>

<table cellspacing='0'>
<tr>
<td class='pformleft' width='50%'><b>Saying</b></td>
<td class='pformright' width='50%'>
<input type='hidden' name='bbmode' value='ezmode' onclick='setmode(this.value)'>
<input type='hidden' name='bbmode' value='normal' onclick='setmode(this.value)' checked='checked'>

</td>
</tr>
<tr>
<td class='pformleft'><b>Background</b></td>
<td class='pformright' width='50%'>

</td>
</tr>
<tr>
<td class='pformleft'><b>Color</b></td>
<td class='pformright' width='50%'>

</td>
</tr>
<tr>
<td colspan='2' align='center' class='formbuttonrow'><input type='submit' value='Update Dynamic Signature' class='button'></td>
</tr>
</table>
</form>
EOF;

//--endhtml--//
return $IPBHTML;
}




thats strange, codebox gave the error, code didnt...
IAIHMB
That's really odd, I don't see any parameters, though something like this should fix your problem:

CODE
function dynamicsignature($parameter1='',$parameter2='',$parameter3='') {
Strabo
thanks, that works now original.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.