Non Standard Custom Blocks

Current Version: 2.0.2
Released: 2013-10-27
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.
Locked

Topic author
Teksonic
Portal Enthusiast
Posts: 142
Joined: 4. June 2009 21:50
phpBB.com User: Teksonic
Contact:

Non Standard Custom Blocks

Post by Teksonic »

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
Cylithina - Undead Warlock (Retired)
Guild - Iron Circle
Server - Llane

My mods are available at http://www.teksonicmods.com

Topic author
Teksonic
Portal Enthusiast
Posts: 142
Joined: 4. June 2009 21:50
phpBB.com User: Teksonic
Contact:

Re: Non Standard Custom Blocks

Post by Teksonic »

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
User avatar

Marc
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

Post by Marc »

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.

Topic author
Teksonic
Portal Enthusiast
Posts: 142
Joined: 4. June 2009 21:50
phpBB.com User: Teksonic
Contact:

Re: Non Standard Custom Blocks

Post by Teksonic »

That is what I have done. Created a file portal/modules/portal_test.php that includes the

Code: Select all

$name $columns $image_src & get_template_side
(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/.
Cylithina - Undead Warlock (Retired)
Guild - Iron Circle
Server - Llane

My mods are available at http://www.teksonicmods.com

eqsanctum
Active Member
Posts: 4
Joined: 11. January 2010 13:52
phpBB.de User: eqsanctum
phpBB.com User: eqsanctum

Re: Non Standard Custom Blocks

Post by eqsanctum »

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 :D

eqsanctum
Active Member
Posts: 4
Joined: 11. January 2010 13:52
phpBB.de User: eqsanctum
phpBB.com User: eqsanctum

Re: Non Standard Custom Blocks

Post by eqsanctum »

So it's been 4 months. Any change to all this Tek?
User avatar

talonos
Portal Specialist
Posts: 242
Joined: 7. June 2009 15:12
phpBB.com User: talonos

Re: Non Standard Custom Blocks

Post by talonos »

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!
Locked

Return to “Board3 Portal 2.0.x - English Support”