Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Handyman wrote:
I've heard the hooks system mentioned before… but what does it do? does it make it possible to install a mod without modding files?
I would like to know as well. I would guess it is something like the permissions where you can simply upload a file and it will automatically be included and display what it needs.
I believe there is no need for code modification with a plugin/hooks system.
Can someone help me with how to add gifs to the imageset? I have a couple of gifs I want to include in a mod. They have text on them, so I did the following:
- placed the gifs in the styles/subSilver/imageset/en folder
- edited imageset.cfg to include the following two entreis:
For example. with Drupal, when the page loads that lists the permissions for user levels it checks to see if {module}_permission{} exists in each {module}.module files and process it in its little way and loads it in... No editting required, it just recognizes and loads certain hooks. It allows for the creation of mod(ule)s without touching any core files and without complex instructions and most importantly without patching every single theme.
jimmygoon wrote:
For example. with Drupal, when the page loads that lists the permissions for user levels it checks to see if {module}_permission{} exists in each {module}.module files and process it in its little way and loads it in... No editting required, it just recognizes and loads certain hooks. It allows for the creation of mod(ule)s without touching any core files and without complex instructions and most importantly without patching every single theme.
Wow! cool!
I think phpBB3 tried to do that to some degree, but I'm not sure if it functions yet… but for the most part, I don't see how you could get around making code additions here and there… though it is possible to keep the code out of the core for the most part… and coding like that is very desirable.
My phpBB3 Mods || My Mod Queue Search Engine Friendly (SEO) URLs || Profile link on Avatar and/or Username || AJAX Chat
Display Posts Anywhere || CashMod || AJAX Quick Edit || AJAX Quick Reply
jimmygoon wrote:
For example. with Drupal, when the page loads that lists the permissions for user levels it checks to see if {module}_permission{} exists in each {module}.module files and process it in its little way and loads it in... No editting required, it just recognizes and loads certain hooks. It allows for the creation of mod(ule)s without touching any core files and without complex instructions and most importantly without patching every single theme.
Wow! cool!
I think phpBB3 tried to do that to some degree, but I'm not sure if it functions yet… but for the most part, I don't see how you could get around making code additions here and there… though it is possible to keep the code out of the core for the most part… and coding like that is very desirable.
My dream would be a something completely modular like Drupal with a REALLY powerful control panel to allow you to one-click-install - it would load the module file and save it for you (if chmod was right) from the phpbb approved "repository" -- think about it... It would be like package management in Linux - it could autoupdate!!! If only I had infinite time on my hands... I would build such a system... oh well...
if you want custom images define your own is my recommendation.
SQL required...
ALTER TABLE phpbb_styles_imageset ADD `your_image` text NOT NULL;
UPDATE phpbb_styles_imageset SET your_image = '{LANG}/your_image.gif*x*x'
if you want custom images define your own is my recommendation.
SQL required...
ALTER TABLE phpbb_styles_imageset ADD `your_image` text NOT NULL;
UPDATE phpbb_styles_imageset SET your_image = '{LANG}/your_image.gif*x*x'
Then upload the image to correct location and refresh the imageset..
Thanks! But back to your observation about how people will actually install this, that's a lot of room for error. How would you use the user defined icons (which you can add to the database via the acp)?
To me user defined images are for styles and not MODs.
What would happen if your could is written to use user image 1 but the admin has to install it to user image 2 as 1 is already taken. They would need to change your code...so best to create your own.