vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 07-04-2004, 01:24 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Adding templates

I have added some modules to my front page. In orvder to do so I created some templates. I named the templates like the directions told me to but they will not fall under the subcategory in the templates called "'vBadvanced CMPS Templates". They stand alone by themselves. I titled them as follows: adv_portal_paid, adv_portal_sponsor. I also put the proper command in the includes/adminfunctions_template.php. The command is: 'adv_portal' => 'vBadvanced CMPS',

Why won't they work and foll under the 'vBadvanced CMPS Templates?
  #2  
Old 07-04-2004, 01:28 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Adding templates

I'm honestly not sure why the don't appear with the rest, but will be looking into it.
  #3  
Old 07-04-2004, 01:32 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Adding templates

Yes it blows my mind because I have group other templates like this and it works. I look at the spelling and it seems to be correct. So I am baffeled. It is really bugging me.
  #4  
Old 07-04-2004, 01:41 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Adding templates

I know it groups 'index_' templates with the homepage, and I don't think there's anything different with the way the templates and such are handled with the two, so I'm not quite sure why the CMPS templates aren't grouped with the others. I'll take a look at the functions real quick to see if I see anything obvious...
  #5  
Old 07-04-2004, 01:52 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Adding templates

I have created one myself and put it in the includes/adminfunctions_template.php. It is: 'articles' => 'Articles', and I have titled all my templates articles_name1, articles_name1, and so on. They all work when ever I add a new template. So what is freaking me is that this is no differenet. Unless it has something to do with the way they were installed when we ran the install for CMPS and it installed the origanol ones.

I will shut up and wait patiently for your findings. LOL.
  #6  
Old 07-05-2004, 12:31 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Adding templates

I am assuming that you have had no luck with this yet Brian? I have a couple friends that are running CMPS who have the same problem. So I know it is not just me.
  #7  
Old 08-24-2004, 02:04 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Adding templates

Brian I guess you just gave up on this problem?
  #8  
Old 08-24-2004, 11:28 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Adding templates

Not really... I figured out that the problem is in the way the vBa templates are named. Since they have two '_' marks in their names, that's what's causing them not to be able to be grouped with the rest. I'll probably change the naming structure in a future version though.
  #9  
Old 01-13-2005, 01:30 PM
Popsicle Pete Popsicle Pete is offline
Junior Member
 
Join Date: Feb 2004
Posts: 15
Default Re: Adding templates

Quote:
Originally Posted by Brian
Not really... I figured out that the problem is in the way the vBa templates are named. Since they have two '_' marks in their names, that's what's causing them not to be able to be grouped with the rest. I'll probably change the naming structure in a future version though.
brian, if it is because of the two underscores, why do my article templates which (have two underscores) group together properly?

also, why do the stock templates fall into the proper category?

Last edited by Popsicle Pete; 01-13-2005 at 01:35 PM.
  #10  
Old 01-13-2005, 01:32 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Adding templates

Because of the way they're named. Your articles templates will be named something like 'article_whatever_somethingelse', and it will group all templates that start with 'article' together. Since vBa products start with 'adv_productname', the only way to group custom templates would be to group all templates that start with 'adv' together.
  #11  
Old 01-13-2005, 01:36 PM
Popsicle Pete Popsicle Pete is offline
Junior Member
 
Join Date: Feb 2004
Posts: 15
Default Re: Adding templates

Quote:
Originally Posted by Brian
Because of the way they're named. Your articles templates will be named something like 'article_whatever_somethingelse', and it will group all templates that start with 'article' together. Since vBa products start with 'adv_productname', the only way to group custom templates would be to group all templates that start with 'adv' together.

why do the stock templates group properly then?

it uses this: 'adv_portal' => 'vBadvanced CMPS', to add the category to the array.

it groups appropriately named templates. for instance, adv_portal_news_archive or adv_portal_polloption_multiple


edit-i also noticed it goups all my adv_links templates properly as well.

Last edited by Popsicle Pete; 01-13-2005 at 01:45 PM.
 


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
Adding Module: Templates Used blocked Edric Troubleshooting / "How do I..." Questions 4 07-08-2004 01:30 PM
Adding new pages, modules, templates for dummies. Pro Troubleshooting / "How do I..." Questions 1 05-21-2004 09:44 PM
How do I move templates into a folder? joeychgo Troubleshooting / "How do I..." Questions 3 05-18-2004 06:12 AM


All times are GMT -4. The time now is 03:49 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.