View Full Version : Adding templates
attroll
07-04-2004, 01:24 AM
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?
Brian
07-04-2004, 01:28 AM
I'm honestly not sure why the don't appear with the rest, but will be looking into it.
attroll
07-04-2004, 01:32 AM
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.
Brian
07-04-2004, 01:41 AM
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...
attroll
07-04-2004, 01:52 AM
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.
attroll
07-05-2004, 12:31 AM
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.
attroll
08-24-2004, 02:04 AM
Brian I guess you just gave up on this problem?
Brian
08-24-2004, 11:28 AM
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.
Popsicle Pete
01-13-2005, 01:30 PM
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?
Brian
01-13-2005, 01:32 PM
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.
Popsicle Pete
01-13-2005, 01:36 PM
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.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.