Jump to content

Recommended Posts

Posted

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 ....

  • Administrators
Posted

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.

Posted

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.

  • Moderators
Posted

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;
}
?>

Posted

<?php
include 'core/codon.config.php';
?>

It works. So far turning out really nice.. :D:P

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.

Posted

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.

  • Like 1
  • Moderators
Posted

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.

Posted

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??

  • Like 1
Posted

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.

  • Like 1
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...