RogerB Posted March 14, 2011 Report Share Posted March 14, 2011 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 .... Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted March 14, 2011 Administrators Report Share Posted March 14, 2011 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. Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 15, 2011 Author Report Share Posted March 15, 2011 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. Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 15, 2011 Author Report Share Posted March 15, 2011 Could I see an example?? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 15, 2011 Moderators Report Share Posted March 15, 2011 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; } ?> Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 15, 2011 Author Report Share Posted March 15, 2011 So far no luck. Can't get any code to work...arghhh Quote Link to comment Share on other sites More sharing options...
Tom Posted March 15, 2011 Report Share Posted March 15, 2011 If it's the skin you showed me before it's possible using the normal skinning process. It just requires a little work... Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 15, 2011 Author Report Share Posted March 15, 2011 I am gonna melt down.....LOL Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 16, 2011 Author Report Share Posted March 16, 2011 <?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. Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 17, 2011 Author Report Share Posted March 17, 2011 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. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 17, 2011 Moderators Report Share Posted March 17, 2011 Instead of include try, <?php Template::Show('yourtemplate.tpl'); ?> Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 17, 2011 Author Report Share Posted March 17, 2011 The front page only works when I rename it index.php. I had to eliminate the phpvms index file...Is that ok? Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 23, 2011 Author Report Share Posted March 23, 2011 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. 1 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted March 23, 2011 Moderators Report Share Posted March 23, 2011 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. Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 24, 2011 Author Report Share Posted March 24, 2011 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?? 1 Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 24, 2011 Author Report Share Posted March 24, 2011 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. 1 Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 29, 2011 Author Report Share Posted March 29, 2011 How do we change the logout redirect? 1 Quote Link to comment Share on other sites More sharing options...
RogerB Posted April 1, 2011 Author Report Share Posted April 1, 2011 LOL...Ok I'll figure it out. 1 Quote Link to comment Share on other sites More sharing options...
greertr Posted April 9, 2011 Report Share Posted April 9, 2011 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> http://vsxva.net Quote Link to comment Share on other sites More sharing options...
RogerB Posted April 10, 2011 Author Report Share Posted April 10, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.