Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: cann - helmikuu 17, 2006, 11:35:47 AP

Otsikko: global function to disply linktree?
Kirjoitti: cann - helmikuu 17, 2006, 11:35:47 AP
i have modified the linktree inline menu-- gave it some extra td cells and some bg images via css. now, i am noticing that i need to modify many pages for it to be consistence.

i would like to write a function so, that i can go through the pages and replace the current code with a simple call to this function.

i would like to place this function in its own file but am not sure on how to go about doing this. where would i add code to make this file accessable throughout the whole form?

thanks
Otsikko: Re: global function to disply linktree?
Kirjoitti: Compuart - helmikuu 17, 2006, 11:57:21 AP
As far as I know the linktree is standardized. Each linktree is drawn by a function theme_linktree() that's in index.template.php. Adjusting that function adjusts all linktrees in the theme.