1
rabideau
redirect to a non-standard HomePage url
  • 2004/3/2 23:42

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Is there any way for me to change the address of the Home button (in the main menu and elsewhere) such that it points to a url of my choice? I have both an index.html and index.php page in my root XOOPS directory and everything defaults to the index.html page (when I want it to go to the index.php).

Thanks!

2
tripmon
Re: redirect to a non-standard HomePage url
  • 2004/3/3 11:24

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


Not easy to find is it? I traced it to the tpl_source table.

The tpl_id for the record is 19.
if you do not see the code block below (which is what you need to alter), then look in the tpl_file table for system_block_mainmenu.html and use the corresponding tpl_id to find the code in the tpl_source table.

^read it again, it will make sense eventually.

Dont waste your time looking for system_block_mainmenu.html you won't find it, it is not a file.

Once you find the code block in the dB put your URL in between all my pretty stars.

<table cellspacing="0">
<tr>
<td id="mainmenu">
<a class="menuTop" href="******<{$xoops_url}>/"><{$block.lang_home}********></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
<{foreach item=sublink from=$module.sublinks}>
<a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
<{/foreach}>
<{/foreach}>
<!-- end module menu loop -->
</td>
</tr>
</table>

I don't think there should be any implications, but I make no warranty...I did NOT test it.

.....Personally I would change the 'default page' for the directory on the Web server, you can give a pagename and extension in order, syntax varies by webserver.


VIVA XOOPS,
Trip

3
ackbarr
Re: redirect to a non-standard HomePage url

or you could go to "System" -> "Templates" and modify the system_block_mainmenu.html template in the system module.

4
tripmon
Re: redirect to a non-standard HomePage url
  • 2004/3/3 14:45

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


ackbarr,

you make it so easy...
just started and finished in the dB, missed that there was a real file.

Tx, now I know..

5
rabideau
Re: redirect to a non-standard HomePage url
  • 2004/3/3 16:15

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Thank you everyone,

I made the change to my system_block_mainmenu.html (hard coded the entire html link) and everything works wonderfully!

Watch soon for my announcement on this site re-write.

Login

Who's Online

214 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

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

Latest GitHub Commits