But as others have said, it might make it too easy to rip off commercial themes. And nobody rips off WP themes... no never

Above quote is taken from An Interview With OpenCart Founder Daniel KerrI‘m planning on adding my own type of vqmod system to the next release so hopefully template designers will use this instead of modifying core files.
Not sure how I feel about that...vQmod is so prevalent at this point that developers will continue to use it, and if the core modification system is not as good as vQmod, it probably won't be used. It seems like it would have been better to just include vQmod in the download.Qphoria wrote:Creating your own theme is really quite easy.. you CAN just make css changes for much of the cart and there are lots of css tags already in the default theme. I'd actually like to see authors start pushing the limits of what can be done as CSS only and challenging themselves to making CSS only themes. There are many CSS only themes out there, though most are quite simple and do nothing more than change some colors. CSS is more power than that.
But as others have said, it might make it too easy to rip off commercial themes. And nobody rips off WP themes... no never
Code: Select all
<search position="replace"></search>
<add></add>
One of the biggest challenges for theme development still is to find a more elegant way of allowing multiple addons to modify the same core template file. While it is easy to have 3rd party addons extend core classes and override their methods, or even to change entries in the language files, I have yet to see any good solution when it comes to templates. VQmod does it for the latter to a degree, but I still think there could be a better solution.There are goals of multiline search/replace so the offset attribute is gone.
it is still early I'm guessing but when its all said and done, it won't likely be vQmod compatible out of the box.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Code: Select all
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
<?php echo $content_top; ?>
<?php echo $breadcrumbs; ?>
<?php echo $heading_title; ?>
<?php echo $category_info; ?>
<?php echo $category_list; ?>
<?php echo $category_products; ?>
<?php echo $pagination; ?>
</div>
<?php echo $javascript; ?>
<?php echo $footer; ?>
-Ryan
It definitely won't and to me it's pointless making two versions of mods for different systems that are similar but not quite the same. vQmod works... and has been widely accepted as the standard simple way to get mods working without breaking the core. It takes 2 minutes if that to install and can save hours in custom editing. I've been watching the modification system's evolution in github closely, and it seems to me it becomes more and more like vQmod every day. As Ryan's said, it seems pointless to reinvent the wheel at this pointQphoria wrote:it won't likely be vQmod compatible out of the box.
I don't know if you have already tried to build a theme with a different structure from the default's theme but it can be really laborious and time consuming. I know that you can do a lot of things with just CSS, and believe me when I say that I always try it to the max, but there's a lot of things that CSS can't solve.JNeuhoff wrote: When it comes to changing the look & feel only, nothing beats proper CSS and graphics, as demonstrated by the CSS ZenGarden example.
That would have my vote if only the html output (templates) was better and the class hierarchy made actual sense, and (despite of an earlier promise) it still uses inline styles. I know the possibilities and limits of css, and I find it frustating that so much more would be possible, with some minor adjustments. The html of OC is developed not for theme flexibility, but rather to support the default theme, at some points almost in an amateurish way. This is also a problem for lots of extensions, where the html output is of course based on the OC output.Qphoria wrote:Creating your own theme is really quite easy.. you CAN just make css changes for much of the cart and there are lots of css tags already in the default theme. I'd actually like to see authors start pushing the limits of what can be done as CSS only and challenging themselves to making CSS only themes. There are many CSS only themes out there, though most are quite simple and do nothing more than change some colors. CSS is more power than that.
But as others have said, it might make it too easy to rip off commercial themes. And nobody rips off WP themes... no never
Actually, the template system could use a lot of improvement...Shark wrote:That would have my vote if only the html output (templates) was better and the class hierarchy made actual sense, and (despite of an earlier promise) it still uses inline styles. I know the possibilities and limits of css, and I find it frustating that so much more would be possible, with some minor adjustments. The html of OC is developed not for theme flexibility, but rather to support the default theme, at some points almost in an amateurish way. This is also a problem for lots of extensions, where the html output is of course based on the OC output.Qphoria wrote:Creating your own theme is really quite easy.. you CAN just make css changes for much of the cart and there are lots of css tags already in the default theme. I'd actually like to see authors start pushing the limits of what can be done as CSS only and challenging themselves to making CSS only themes. There are many CSS only themes out there, though most are quite simple and do nothing more than change some colors. CSS is more power than that.
But as others have said, it might make it too easy to rip off commercial themes. And nobody rips off WP themes... no never
There is an "Extension" plugin system in OpenCart... and Extensions are typically not vQmods.intersect wrote: and at this point you gotta ask yourself: "Why is there a module system in OC? Why should I use it? Why should I build anything using this
-Ryan
Agreed, hooks have limited capabilities, according to where they are triggered.Qphoria wrote: Wordpress mod system uses hooks ... hooks are great as they offer more dynamic triggered abilities on state changes but are still limited to where the actual hooks area placed... You can do a lot more with hooks and you can add more and more hooks to different places.. but you still can't place hooks on every single line of code... and you can't change a single line of code in wordpress with hooks ... So mods are limited and controlled by existing functionality. So themes do not break wordpress mods because they are kept in a sandbox of limited
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
To be honest, I think vQmod is really a awesome tool, don't get me wrongQphoria wrote:The fact is, the extreme granular modding abilities that vQmod allows is a double-edged sword. vQmod is the ONLY modification system in the entire world on any platform in any language that allows character-by-character file modding. And because it allows such a granular level of changing, this causes more problems. The whole "with great power comes great responsibility" talk... Other platforms don't have this problem because other platforms don't have this level power.
So perhaps I am at fault... If I didn't make vQmod, and left modding at a less detailed level, we wouldn't be having this conversation and opencart modding would be much more limited and require hardcoding.
I do recommend he remove the position="all" attribute type... as that was a bad idea to add.. its just too dangerous and dopes use it to replace entire files. We should really remove it from vQmod to avoid the abuse of that power.JAY6390 wrote:FYI the mod system Daniel is adding is practically identical in function to VQMod. It will have little if any less power when it comes to the mods you can achieve
With the added benefit of not being compatible with vqmod.JAY6390 wrote:FYI the mod system Daniel is adding is practically identical in function to VQMod. It will have little if any less power when it comes to the mods you can achieve
I think if the user is careful to control load position through script naming it could theoretically be useful (I haven't seen one in the wild in ages and haven't ever used it myself though).Qphoria wrote:I do recommend he remove the position="all" attribute type... as that was a bad idea to add.. its just too dangerous and dopes use it to replace entire files. We should really remove it from vQmod to avoid the abuse of that power.
-Ryan
Users browsing this forum: No registered users and 14 guests