Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: doctorjz - huhtikuu 14, 2007, 01:09:08 IP

Otsikko: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: doctorjz - huhtikuu 14, 2007, 01:09:08 IP
I work alot with Joomla and were able to make the "mods" or "components" seperate in the DB rather than tying them to one particular theme. So the directory path might make more sense to come out of www.YOUR_SITE.com/SMF/modifications or something similar. This way, if you change themes it should have no barring on what mods you have installed vs. what theme you are running. Just a thought.

Other than that I have actually been a big fan of phpBB and vbulletin in the past and once I started using this product I was down right impressed with all of your hard and dedication. This includes all the forums moderators that spend their free time to help everyone out. I really think that people should thank them more often instead of complaining about software thats FREE. Anyways I am a developer myself (http://expose.modus.ie , thats one of my projects) and I always like to hear thanks in my forums.


Thanks for listening and keep up the good work fellas.

-Josh
Otsikko: Re: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: niko - huhtikuu 14, 2007, 03:22:58 IP
It isn't simply possible to do changes to all themes since they differ and need to to enabled making unique themes.

SMF 2.0 will try to make changes to all themes and some changes are made to mods require less edits to themes.
Otsikko: Re: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: doctorjz - huhtikuu 16, 2007, 12:12:47 AP
I understand that. But when you call something in Joomla for example in a template it looks something like this:


<?php include ("mainbody.php"); ?>

or

<?php mosLoadModules 'left' ); ?>


I believe this is a better way to call data into a "template". This help help eliminate any static items in a template. I feel that this would also make template design easier. By making that easier this would open a whole new door up to faster framework, ease of newer and more complex mods.

This is just a thought for a possible road map in the future. I understand that work like this can take years in the making. Trust me I have been working on Joomla (formerly Mambo) for about 4 years in 3PD (3rd party development). I would love to help more with this code here but I have already to many commitments to them.

I am always here to help out with suggestions.

Thanks,

Josh
Otsikko: Re: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: brine - toukokuu 04, 2007, 07:14:53 AP
I hope they add a feature to easily make mods work with all themes without manually editing each individual theme. 

This is a pain and has kept me from adding using more than the default theme on most of my sites. 
Otsikko: Re: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: Gary - toukokuu 04, 2007, 09:22:54 AP
Lainaus käyttäjältä: brine - toukokuu 04, 2007, 07:14:53 AP
I hope they add a feature to easily make mods work with all themes without manually editing each individual theme. 

As stated, 2.0 will ATTEMPT to make the changes to all themes, but some will still fail because the themes are just that different compared to the default, it is impossible to make all mods install on all themes flawlessly.

-ALM
Otsikko: Re: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: doctorjz - toukokuu 04, 2007, 12:29:24 IP
I understand that, I was thinking what if the framework for mods was changed so they can be installed outside of the template. this way there are less static entries. So the scripts from the mods would pull from the mods directory. So in the template you would say something like <? php loadModule;Top ?> That would then call mods from the outside directory. Its just a thought and I dont expect it.

You guys are doing some amazing work!! Thanks for the great program!  :D
Otsikko: Re: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: 青山 素子 - toukokuu 05, 2007, 05:15:17 IP
Doing things that way would really limit what themes could do. Look at the Wiki theme for an example of how themes can really change things around (The Online Manual (http://docs.simplemachines.org/) uses the Wiki theme).
Otsikko: Re: Making Mods Available to all theme (i.e. non default themes)
Kirjoitti: doctorjz - toukokuu 05, 2007, 07:02:55 IP
I do lots development for 3rd components for Joomla and that framework appears to work great with there templates.  I understand this is a completely different setup. It was just a thought. Thanks for the input.