vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2007, 12:44 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default New pages making copies of index.

I'm stuck....
Ive read as much of the forum as I could before my eyes started to cross.

OK I figured out how to make a module. Done.

I figured out how to make a new template. Easy. Tested and it works in the preview.

MY PROBLEM

Ive tried everything. All page types and nothing works.
Every time I try to make a new page all I get is a copy of the index page.

This page should have a Car Dictionary on it. But all it has is the index copy.
http://www.scalemotorcars.com/cmps_i...age=dictionary

I tried to make the HTML page and link using the file page.
Heres the original HTML page still active on the site.

http://www.scalemotorcars.com/page76.html

And this page was actually deleted off my page list but its still on the net. And yep its another copy of the index.

http://www.scalemotorcars.com/cmps_i...d_20dictionary

No matter what I do the new page is always a copy of the index. Even if I go and edit the new page and remove all modules or move them around all I get is the same index page copy.

HELP!!!!

Last edited by scalemotorcars; 07-27-2007 at 12:48 PM.
Reply With Quote
  #2  
Old 07-27-2007, 01:02 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: New pages making copies of index.

Hopefully I can help. The cmps_index.php is a hierarchy (sp?). Meaning the page designated "home" for it is always the first page you see.

Unless you code a copy of the cmps_index.php to call a certain page it will always pull the "home" when you navigate to it.

I hope I got the problem right. I am helping out someone else and will post the code bit you use to modify a copy of cmps_index.php so it always calls a certain identifer as soon as I get a break again.
Reply With Quote
  #3  
Old 07-27-2007, 01:06 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default Re: New pages making copies of index.

Please I really need to be able to create separate pages that I can link to without going through the cmps index first. Thanks Ill be here waiting.
Reply With Quote
  #4  
Old 07-27-2007, 01:09 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: New pages making copies of index.

Should be just a bit, I volunteer to help out and for some reason, my job still wants me to work some. <_<

put remember, make a COPY of the cmps_index.php and put the code in it or it will only pull the page you put in there.

coming up

Last edited by towermatt; 07-27-2007 at 01:10 PM. Reason: clarification
Reply With Quote
  #5  
Old 07-27-2007, 01:27 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default Re: New pages making copies of index.

You know what, you actually fixed my problem. THANK YOU!!!

I see it adds an ID# or letter to the end of the URL path and I can link to it from outside the index page.

Its always the little thinks that get me.
Reply With Quote
  #6  
Old 07-27-2007, 01:29 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: New pages making copies of index.

Oh yeah, if you want to simply have a link that opens it, that is totally he way to go.

If you want to have it as an index.php on a page, that is where the coded identifer comes into play. http://www.thedarktower.com/news

that is a cmps page with coded identifier.

I am so glad I could help. It makes me feel good after all the wonderful support I received here after getting started.
Reply With Quote
  #7  
Old 07-27-2007, 01:47 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: New pages making copies of index.

I figured I would throw this out here for anyone else reading up.

I had wanted people to be able to click on a simple link (www.thedarktower.com/news) to see my CMPS news page. To do that, follow the steps below.

-Make a folder on your server to house the index file (news in my example)
-make a copy of the cmps_index.php and put it in there
-open it up and find this:

Code:
define('VBA_PORTAL', true);
add the following line underneath it.

Code:
define('VBA_PAGE', 'yourpageidentifer');
(in my case "news" is the identifier)

-to make it active, rename it "index.php" and it will be called whenever anyone navigates to the folder.

PLEASE! Use a copy of the cmps_index.php to do this or it will call the coded page first on everything you do.
Reply With Quote
  #8  
Old 07-27-2007, 01:49 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default Re: New pages making copies of index.

Still seems to be working but maybe you can answer this. I noticed when I first added the madual then went to the page it had the /?pageid=#z

Now it just has ?pageid=dictionary

Will I still be able to link from an outside page using (pageid=dictionary) or will I have to add the (#z) to the end?

Thanks
Reply With Quote
  #9  
Old 07-27-2007, 01:50 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default Re: New pages making copies of index.

Heres a little 80's flash back.

You Rock Dude!!!

Answered it before I asked.
Reply With Quote
  #10  
Old 07-27-2007, 01:51 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: New pages making copies of index.

If you put the identifier as "dictionary" then the page id should = dictionary.

You should not have to but the #z and to be honest, I haven't seen that before in my limited experience.

The identifier for the page in the CMPS is the key to that. Should be exactly the same

EDIT--NICE!!

I'm an 80's kid so that worked for me.

Last edited by towermatt; 07-27-2007 at 01:52 PM. Reason: updated
Reply With Quote
  #11  
Old 07-27-2007, 02:00 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default Re: New pages making copies of index.

While were at it.

In the CMPS file theres a forum path. That stays the same correct.?

And if I make a new folder in my root directory, example, lets call it (pages)
and then add the copy of the cmps index renamed to lets say (dictionary)

I would add this to your code above.

PHP Code:
define('VBA_PAGE''pages/pageid=dictionary'); 
Or would it be just
PHP Code:
define('VBA_PAGE''=dictionary'); 
And just to be clear. Would I add the new folder (pages) then in that folder the modified cmps_index.php

The link then being
PHP Code:
/examplesite.com/pages/cmps_index.php?pageid=dictionary 
And since the cmps_index.php file name is always the same an new folder for each new page would be required.

Last edited by scalemotorcars; 07-27-2007 at 02:16 PM.
Reply With Quote
  #12  
Old 07-27-2007, 02:15 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: New pages making copies of index.

The VBA_page is the identifier for your page, not the name of the php file

the copy of your cmps_index page should stay that name and the coded identifier just calls the actual identifier for your page.

The only reason you rename the cmps_index.php file to "index.php" is if you want that page to open automatically when that spot is visited.

so...I have a copy of my cmps_index.php file in my /news folder on the server.

I have created a page in my CMPS that I want to open when that is visited.

The page identifier is "news"

put in the code above and rename the cmps_index.php to "index.php" and it will automatically open to the page identified in the cmps.

Remember: CMPS is a hierarchy so the identifier code just tells the cmps_index.php (copy) to call that specific page in your cmps (identifier)

so you have it completley right except do not rename your cmps_index to "test_page"--the only reason to rename it is to make it "index.php"

which is set to display automatically when they visit (in my example)

http://www.thedarktower.com/news
Reply With Quote
  #13  
Old 07-27-2007, 02:19 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default Re: New pages making copies of index.

Oops I edited my post while I thought you logged off. Fairly sure I got it. Thanks again.
Reply With Quote
  #14  
Old 07-27-2007, 02:22 PM
towermatt's Avatar
towermatt towermatt is offline
Senior Member
 
Join Date: Jun 2007
Posts: 516
Default Re: New pages making copies of index.

Great to hear, remember to stop back by and help others out if you get a chance.

Its a nice thing all of us can do to help out this great product.
Reply With Quote
  #15  
Old 07-27-2007, 02:39 PM
scalemotorcars's Avatar
scalemotorcars scalemotorcars is offline
Member
 
Join Date: Jul 2007
Posts: 91
Default Re: New pages making copies of index.

You got it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple copies (installs) of vBa on one domain? trgreen "How Do I..." Questions 2 02-13-2007 11:06 AM
Making Modules Appear in "forum" pages Kyosuked "How Do I..." Questions 3 08-16-2006 08:40 PM
Running multiple copies of CMPS precharge "How Do I..." Questions 1 08-15-2006 07:33 AM
Making forum index as cmps the homepage Tee "How Do I..." Questions 2 06-29-2005 05:03 PM
making cmps index Milk Man Troubleshooting / "How do I..." Questions 14 04-08-2005 03:02 AM


All times are GMT -4. The time now is 08:10 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.