Is there a way to use phpvms without the traditional “skinning” process? I want to use a normal html site without the restrictions of skinning…I want to know if it will work first. Skinning has too many hurdles …
Not quite sure which direction you are going but, I use html templates often and just cut them up and work them into a phpVMS skin, which I think you do as well. You could build a normal html page (php) and call the module you want in the center using the action.php method (which is skinless). You would have to include the codon.config.php file right at the start in order to gain access to the functions of phpvms.
Thanks simpilot. sounds possible then. I have a really great template I purchased and skinning just makes it unusable..Sick of having all the constraints of skinning.
Could I see an example??
Roger i have started building external pages to interact with phpVMS, all i do is create what ever page i like so test.php, at the top of that i can include the codonconfig, header tpl and footer tpl or just do anything with it, the key is to access the functions just include the codon config file at the top as Dave mentioned above.
So for example to make a page for logged in members only you could use,
<?php
//path to your codon config file
include '/srv/path to your/core/codon.config.php';
//path to a header template
include '/srv/path to your/lib/skins/ObsessBlue/small_header.tpl';
//see if they are logged in if not show then the loginpage
if(Auth::LoggedIn() == false)
{
echo '<div id="error">Please login to view this page.';
echo '</div>';
Template::Show('loginexternal_pages.tpl');
echo '</div>';
Template::show('footer.tpl');
return;
}
?>
So far no luck. Can’t get any code to work…arghhh
If it’s the skin you showed me before it’s possible using the normal skinning process. It just requires a little work…
I am gonna melt down…LOL
<?php
include 'core/codon.config.php';
?>
It works. So far turning out really nice..
I put this code at the beginning of the index.php file. I replaced the default index.php code with the code from my web template. When I try to run any of the templates or modules its saying they don’t exist.
Ok, I got the front page working. I am having problems getting the templates to render…I am missing some crucial code I take it.
Instead of include try,
<?php
Template::Show(‘yourtemplate.tpl’);
?>
The front page only works when I rename it index.php. I had to eliminate the phpvms index file…Is that ok?
The biggest hurdle I have now is that my front page and all the other content pages are totally different…I can’t seem to find a way to make a totally different front page and content pages.
Roger what do you need to do on your frontpage? if its just html then create a page with the extension htm / html.
You can create a blank page just dont include the headers / footers, all you need is that include to your core codon config to use the functions that are in vms.
My front page has a flash entro that only appears on the front page or index.htm. Its a generation 8 template that is very complex.
Wait mark I think I know what you mean. But. How can I overide the index.php on my site??
Could I do some sort of redirect for the index.htm to temporarily override the index.php??
I went in to my cpanel and created a redirect to index.htm and that works…We shall see if the phpvms code will work on that page.
How do we change the logout redirect?
LOL…Ok I’ll figure it out.
Is there a way to use phpvms without the traditional “skinning” process? I want to use a normal html site without the restrictions of skinning…I want to know if it will work first. Skinning has too many hurdles …
Well, I dunno if this will fully staisfy your question, but I stripped my current template of all “eye candy” and just used the individual pages in the Joomla 1.5 CMS. Joomla affords some flexibility and security hat phpvms lacks (although Joomla can be hacked as well). I just renamed my eye_candy template “bare2dabones” and used the data portions I wanted to use.
Very stable, check it out here if u like>
I got it to work. All files must be named .php, thats the only way I got the functions of phpvms to work..So far its working well.