forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: rayc on January 09, 2005, 04:44:14 pm
-
Hi,
In $template_main_menu2 I want to change the "@" to "Register | Upload"
I have edited theme.php by simply changing:
<a href="javascript:;" onMouseOver="MM_showHideLayers('Menu1','','show')">@</a>
to
<a href="javascript:;" onMouseOver="MM_showHideLayers('Menu1','','show')">Register | Upload</a>
but this results in:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/..../....com/coppermine/cpg132/themes/mac_ox_x/theme.php on line 790
I have searched the FAQs and the forum - but couldn't find the exact way to make the change.
Thank You,
rayc
-
D'oh !
Solved it (well by searching the forums further). It was Dreamweaver - somehow it was inserting blank lines. Anyway I switched to a text editor and all is good.
Cheers,
rayc
-
It's possible to use Dreamweaver for PHP code. There is a setting where you tell DW not to touch ("beautify") files of certain extensions. Make sure php is included in the list. DW should then not make changes to the code, and you get the benefits of code color-coding and code-writing hints.
And thank you for reporting back on how you fixed the problem.
-
It's possible to use Dreamweaver for PHP code. There is a setting where you tell DW not to touch ("beautify") files of certain extensions. Make sure php is included in the list. DW should then not make changes to the code, and you get the benefits of code color-coding and code-writing hints.
hi... although ... i didnt get this error ... but could u be a little more specific ... and tell em what setting u r talking about ???? and how to tun it off ?? ....
i mostly use DW ... so i mught get error like this .......... i m on DW MX 2004 v7.0
thankxx
-
Edit / preferences / Code rewriting
add .php to the list of "Never rewrite code"