Hey guys
I have an issue with the new portal version. Basically I have some phpbb mods (some are only blocks, some use a block to display info on the front page) the thing is they are designed to be used on any portal or anywhere people want to place them on their sites. The new version of the portal has a great block manipulation section in it. The issue I have is that I don't want to have two different version of mods, one designed to work with just board3 and one for everyone else. So is there anyway that we can get a section added that will allow us to hook other blocks into the portal without using the "upload zip" functionality, and still allow them to be moved around through the portal ACP.
I've started to work on something myself already as I've had some of my users wonder what direction we would be taking in regards to portal v2. Any thoughts or ideas would be great.
Thanks
Non Standard Custom Blocks
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
-
Topic author - Portal Enthusiast
- Posts: 142
- Joined: 4. June 2009 21:50
- phpBB.com User: Teksonic
- Contact:
Non Standard Custom Blocks
Cylithina - Undead Warlock (Retired)
Guild - Iron Circle
Server - Llane
My mods are available at http://www.teksonicmods.com
Guild - Iron Circle
Server - Llane
My mods are available at http://www.teksonicmods.com
-
Topic author - Portal Enthusiast
- Posts: 142
- Joined: 4. June 2009 21:50
- phpBB.com User: Teksonic
- Contact:
Re: Non Standard Custom Blocks
So I have been able to add new blocks into the ACP, modified the 'EDIT' to search and find the module the new block uses. now I'm just in the process of figuring out the templating portion of it, which is giving me issues.
Cylithina - Undead Warlock (Retired)
Guild - Iron Circle
Server - Llane
My mods are available at http://www.teksonicmods.com
Guild - Iron Circle
Server - Llane
My mods are available at http://www.teksonicmods.com
-
- Dev
- Posts: 2504
- Joined: 17. July 2008 21:08
- phpBB.de User: marc1706
- phpBB.com User: Marc
- Location: Clausthal-Zellerfeld / München
- Contact:
Re: Non Standard Custom Blocks
What kind of issues do you have with the templates?
The problem with older "blocks" is that they usually just run their PHP code and then you would include a HTML file in your portal.
If you want to able to move blocks in the ACP you have to be able to move the HTML. If you want to disable it you have to able to prevent the php code from executing or you will have more queries to your database and your portal will need more resources than it needs.
With the new portal module system, you basically just need to create a new module file for your block.
If I get it right, you implemented a different way by selecting the php file that needs to be executed in the ACP and then including it in the custom block module file?
If yes, then you will just need to add another select or input field in which you choose the template file that needs to be included. Then just return the filename of the template file in the custom block module and you should be able to see your block on your portal.
The problem with older "blocks" is that they usually just run their PHP code and then you would include a HTML file in your portal.
If you want to able to move blocks in the ACP you have to be able to move the HTML. If you want to disable it you have to able to prevent the php code from executing or you will have more queries to your database and your portal will need more resources than it needs.
With the new portal module system, you basically just need to create a new module file for your block.
If I get it right, you implemented a different way by selecting the php file that needs to be executed in the ACP and then including it in the custom block module file?
If yes, then you will just need to add another select or input field in which you choose the template file that needs to be included. Then just return the filename of the template file in the custom block module and you should be able to see your block on your portal.
-
Topic author - Portal Enthusiast
- Posts: 142
- Joined: 4. June 2009 21:50
- phpBB.com User: Teksonic
- Contact:
Re: Non Standard Custom Blocks
That is what I have done. Created a file portal/modules/portal_test.php that includes the (and a few other things of course) now i just need to make it see the template info but the html files aren't located in the portal/modules template folder. so everything i've done so far has tried to prefix the location with portals/modules/.
Code: Select all
$name $columns $image_src & get_template_side
Cylithina - Undead Warlock (Retired)
Guild - Iron Circle
Server - Llane
My mods are available at http://www.teksonicmods.com
Guild - Iron Circle
Server - Llane
My mods are available at http://www.teksonicmods.com
-
- Active Member
- Posts: 4
- Joined: 11. January 2010 13:52
- phpBB.de User: eqsanctum
- phpBB.com User: eqsanctum
Re: Non Standard Custom Blocks
Waiting eagerly to see how this plays out. I had already started and installation and was hoping to include some things of the past but can't hopefully you get it worked out
-
- Active Member
- Posts: 4
- Joined: 11. January 2010 13:52
- phpBB.de User: eqsanctum
- phpBB.com User: eqsanctum
Re: Non Standard Custom Blocks
So it's been 4 months. Any change to all this Tek?
Re: Non Standard Custom Blocks
Teksonic hasn't been online for quite a while now. he's in the armed forces so could be posted at the moment.
Creating board3 website? check the sites out below for board3 compatible extensions
Talonos: Pretereo stormrage EU OFFLINE!
Talonos: Pretereo stormrage EU OFFLINE!