Editing $template_main_menu2 Editing $template_main_menu2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Editing $template_main_menu2

Started by rayc, January 09, 2005, 04:44:14 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

rayc

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

rayc

#1
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

Tranz

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.

legend_neo

Quote from: TranzNDance on January 09, 2005, 09:40:18 PM
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

Tranz

Edit / preferences / Code rewriting

add .php to the list of "Never rewrite code"