I am hoping someone can point mine in the right direction ...
I have created a number of different small modules and other some other stuff with jQuery UI etc. How do I go about adding this into dolphin pages ??
I have tried things like require_once(); in php blocks to call up the stuff I have done but I seem to have issues making my scripts and stuff work the way it does before trying to add to actual dolphin pages...
Any advise here is more than welcomed please ;)
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
an example of what I have done .... I have created a very neat 'drag and drop' menu/navigation where users drag a square into areas that trigger and allow access to other pages... It is very different and I have not seen anything like this on any other site before and it's unlike the traditional 'click' page link / tab...
For above ^^^ I created its own index.php page, script page and CSS page ..
I am trying to add this to whatever pages I require OR even as main navigation for the entire site ...
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
Usually you add to the template files, including the pages templates like page_1.html. Other than that I am not sure. Geeks, making the world a better place |
I am trying to better understand how I should add modules I create to dolphin (and fully integrate with dolphin) .... for example if I want things to show / run in page blocks etc.
I have read Boonex docs over and over but keep getting lost in information's..
I am trying to get a better idea of steps developers would take when implementing their modules to dolphin and ALSO how this is called up into blocks
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
Wait for some of the developers to come in. Geeks, making the world a better place |
I am trying to better understand how I should add modules I create to dolphin (and fully integrate with dolphin) .... for example if I want things to show / run in page blocks etc.
I have read Boonex docs over and over but keep getting lost in information's..
I am trying to get a better idea of steps developers would take when implementing their modules to dolphin and ALSO how this is called up into blocks
When i first stated, i used the quotes module to create my first mod, and some of the other mods as a guide.
Now there is a tutorial that shows you how to create a module complete with a page and a page block. You need to start there to lean how things integrate with dolphin. http://www.boonex.com/trac/dolphin/wiki/DolphinTutorialMyFirstModule
Also read this page http://www.boonex.com/trac/dolphin/wiki/DolModDev all of the class there contain information in them that tells you how they are used.
If you still need assistance, be more specific as to what your trying to do that you can't do.
https://www.deanbassett.com |
Thanks Deano ... I have read the 'first module' docs but am finding it hard to digest ...
One issue I have and am trying to work out is I have this cool navigation as described above that I created and it takes 3 files to work it ----> I cannot seem to get it in a page block / php block on dolphin working ?!
everything works great without adding to dolphin but the moment I add to blocks it all breaks ...
files are following: index.php, script.js, style.css
How would I go about pulling all this and have it working in a block ?
trying require_once('PATHTOFILES/index.php'); is not working.
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
And it wouldn't.
You normally cannot pass an entire php file into a block.
A full page would normally have <head>, <html> and <body tags that can't be put into a page block. What your forgetting is a page block is just a piece of a page that has already been started. You have to treat it as such.
So start with one of dolphins existing pages and add a php block to it from the page builders and come up with some code that works there. Your trying to convert code that was written for a standalone page. Not going to work. And if your page also includes the jquery library then that to will cause more problems because dolphin already includes it.
Start by working with a block to develop the code your going to use in a block.
https://www.deanbassett.com |
I am having issues putting a code together that will pull up the navigation I created ... can you give an example of what I should be kinda doing ?
also, how do I access the dolphin jquery library, I think its in plugins folder I'll have to look ... I take it I would just add <script>path to library</script> in the index.php page for my module ? IDK if the one already included with dolphin is the most recent version.
So start with one of dolphins existing pages and add a php block to it from the page builders and come up with some code that works there. Your trying to convert code that was written for a standalone page. Not going to work. And if your page also includes the jquery library then that to will cause more problems because dolphin already includes it.
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
You do not include jquery. Dolphin does it for you. It exists on all pages dolphin creates.
How you add the code depends on how it is written.
In the example i attached i took this Mac style jquery dock menu and put it in a php block. http://ndesign-studio.com/blog/css-dock-menu
Now what i did was a hack. It's not written to dolphin standards and i don't have time to convert everything so it is.
Dolphin includes functions to add js and css files to the generated page. My example uses those functions.
Normally your js files are suppose to be in your modules js folder and the css files in the modules css folder. But i hacked the includes to use a full url so i could leave them all in a single folder that is not normally in one of the folders dolphin checks for these files. Also how i called them is not normally how it is done in dolphin modules. This is something you learn over time as you spend years in the dolphin code.
Example is running on my site. http://www.deanbassett.com just to show my hack works.
Every script will be different, so this example may not help you.
https://www.deanbassett.com |
Thanks for this thread.. as soon as I get caught up on some other things.. I have some mod ideas I may create...
P.
Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970 |
I am having issues putting a code together that will pull up the navigation I created ... can you give an example of what I should be kinda doing ?
also, how do I access the dolphin jquery library, I think its in plugins folder I'll have to look ... I take it I would just add <script>path to library</script> in the index.php page for my module ? IDK if the one already included with dolphin is the most recent version.
So start with one of dolphins existing pages and add a php block to it from the page builders and come up with some code that works there. Your trying to convert code that was written for a standalone page. Not going to work. And if your page also includes the jquery library then that to will cause more problems because dolphin already includes it.
For the necessary jquery library, you can use the js add function; which will add it on the fly and all templates will have it. Or you can add it to the _header.html of the template. To add it to a specific page, Deano's Head Injection will allow you to do that. That gets the jquery library you need added so it can then be accessed by the script you are adding to the page.
If you want to PM me more details about what you are doing, I will try to help.
Geeks, making the world a better place |
Have sent message!
If you want to PM me more details about what you are doing, I will try to help.
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
Did you see the dock sample i posted? https://www.deanbassett.com |
Yes I am looking now .... I have also messaged you Deano!
Did you see the dock sample i posted?
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |
Sent you my answer. You don't want to use a php block.
Sorry for the delay in answering, I got busy working on something else.
Geeks, making the world a better place |
Based on what i have seen, it can be done in a php block. The css will have to be altered tho. It was written for a page, needs to be changed to target a div for the background color.
I sent you some test code. But i can't check it myself without admin access to your site to do tests. But should be quite easy to put in a block.
https://www.deanbassett.com |
Thank you geek_girl and deano ... Mission accomplished!
Deano managed to put code together that I am now using to pull up the script I created ... Taking a look at how the code is called etc has also opened my eyes a little as to how I should be implementing my own modules in future ;)
Thanks again, Josh D
DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price! |