Customizing SMF > SMF Coding Discussion
Adding a sidebar without template edits
Doctor Deejay:
G'day!
Yesterday I released v2.0 Final of my software and I think it's time to take a break and do something else instead.
I came up with the idea of a sidebar mod for SMF, so I started thinking. How would I do that? I know I can edit
templates and css, but that's what I want to avoid. Does anyone know how I can add a sidebar without theme edits
on every page? Just a sidebar, I don't care how big it is. I used Google, but they said I need to use layers, but
I still don't really understand. Perhaps there is a better way. Any ideas?
Bugo:
http://wiki.simplemachines.org/smf/Integration_hooks
Hooks that may be useful for you:
integrate_pre_include
integrate_load_theme
integrate_buffer
Doctor Deejay:
Thanks for your reply Bugo :D Still not sure how hooks work and how I can add a sidebar without theme edits though :P
SoLoGHoST:
You can create your own theme (template.php) file and use that instead. use the pre_include hook to include your source file, load_theme hook for your own template, and integrate_buffer could be used for placement of the template onto the page for where you want it to be placed (left, right, top, bottom). Just my 2 cents on that. I'm not an SMF Expert, but that's where I would start.
Doctor Deejay:
Thanks for your reply SoLoGHoST :) Going to check 'em out asap
Navigation
[0] Message Index
[#] Next page
Go to full version