1
sarahmx
how do i load a script in top page only ?
  • 2010/4/22 23:07

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


how do i load a script in top page only ?

what do i need to put in my theme....?

i try this and its not working

<{if  $xoops_dirname =="system"}>

my script
<{else}>
<{/if}>

2
ghia
Re: how do i load a script in top page only ?
  • 2010/4/23 1:28

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You may not have a default module (News?) appointed in the preferences for that.

3
kris_fr
Re: how do i load a script in top page only ?
  • 2010/4/23 12:02

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


hi,

<{if $smarty.server.PHP_SELF=='/index.php'}>
your script
<{else}> 
other ...
<{/if}>


4
sarahmx
Re: how do i load a script in top page only ?
  • 2010/4/27 11:02

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


thanks kris

Login

Who's Online

313 user(s) are online (189 user(s) are browsing Support Forums)


Members: 0


Guests: 313


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits