Customizing SMF > Graphics and Templates

DHTM into Index.template.php

(1/3) > >>

HRM:
Hello,

I wanted to pastes some little script into my forum to let people make it their homepage.

The script is the following:
<!----Set site as homepage script----------

for full source code, installation instructions,
100's more DHTML scripts, visit http://dynamicdrive.com

------------------------------------------->

<a class="chlnk" style="cursor:hand" HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.muziekforum.com');">klik hier om van Muziekforum.com je homepage te maken</a>

I did paste it on several places at index.template.php but where ever I pasteĀ  it, the forum is all gone with message:

Parse error: parse error, expecting `','' or `';'' in /home/sites/site92/web/forum/Themes/converted/index.template.php on line 122
Unable to load the 'main_above' template.

Anybody knows what i'm doing wrong?
Thanks in advance.

Ed

Ben_S:
Where did you paste it, you need to put it in an echo tag like

echo '

<!----Set site as homepage script----------

for full source code, installation instructions,
100's more DHTML scripts, visit http://dynamicdrive.com

------------------------------------------->

<a class="chlnk" style="cursor:hand" HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.muziekforum.com');">klik hier om van Muziekforum.com je homepage te maken</a>';

HRM:
I tried pasting it in the head and in body. Didn't knew about the echo thing.
Gonna try that.

My template is a conversion so its quit a mess for me.

Tnx,

Ed


HRM:
I tried and gives the same error.

SHould I try in the body tag?

Ed

HRM:
Now I tried at the bottom of the page after the last tag there already was and Now the error is far less.


It shows the following at the top of the page muziek4um.nl

Parse error: parse error, expecting `','' or `';'' in /home/sites/site92/web/forum/Themes/converted/index.template.php on line 342

Ed

Navigation

[0] Message Index

[#] Next page

Go to full version