View Full Version : create new modules
seems that forum was closed and I think I posted in the wrong spot there anyway. sorry, so here is my how to question
Ok, I see the admin option for adding a new module, but it asks ofr files and templates, ect.
I am afraid I do not know much about creatig new ones.
How woudl I go about making a new module to make links to the new pages I can make with the vbportal. (making a page is very easy. love it)
pretty much I am going to create my whole site using the vb because I am going to have many people posting news and the like and I will be making a lot of pages and I need a link menu.
Any ideas please.
gridirontalk
05-16-2004, 10:01 PM
I am also having a very hard time creating modules. I tried to create a new one and it erased my welcome block.
BoNfiRe
05-17-2004, 02:34 AM
I am also having a very hard time creating modules. I tried to create a new one and it erased my welcome block.
oooh got further than me ;) I just get nothing. I downloaded the updated arcade news block, and the instructions are a little thin so I followed it as best I could but no joy :(
Add the new templates, upload the arcadenews.php into your module directory and then set up a new module using the uploaded module and put the 2 templates in the template cache.
I uploaded the module, added the templates, then it says add the templates to the template cache. ( @ this point I got lost but tried lots of things and none worked :( )
BoNfiRe
05-17-2004, 03:23 AM
OK well this is a very simple way to do things I hope it helps.
Firstly create a new template called adv_portal_navigation ( you don't have to use navigation just as long as when you add the module you name it correctly there. )
add the following code: ( This is just an example you can use your own design, and/or add as much as you want. )
<!-- Navigation Block -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] $vbphrase[vba_navigation]</strong></span></td>
</tr>
<tr>
<td class="$getbgrow">
<p>$vba_options[portal_blockbullet] <a href="..index.php">Home</a><br>
$vba_options[portal_blockbullet] <a href="../forums/">forums</a></p>
</td>
</tr>
</table>
<br />
<!-- End Navigation Block -->
OK now got to adv hompage admin management, and add a new module .....
1./ Module Title ... Just put the name you wish the module to be named
2./ Module Identifier ..... Leave blank
3./ File to Include .... none
4./ OR Template to include ... This bit is important what ever you named the template when u added that needs to go here. eg mine is called vba_portal_navigation so I add navigation.
4./ Active .... yes
5./ Column ..... u decide ;)
6./ Display Order .. u decide again :)
I think thats it very simple but hopefully will give you the help to get you on the way to making your main menu.
* add a phrase *
Phrase Type: vBadvanced CMPS
Varname: vba_navigation
Text: Navigation
OK now I think thats it ;)
gridirontalk
05-17-2004, 11:04 AM
Thanks BoNfiRe I understand now but I am still having 1 problem.
I am trying to add a new template to my vbadvanced cmps template but it keep creating it under arcade. When I try creating a new templateunder any other template it works just not for the vbadvanced cmps template. Does anyone know what is wrong?
Brian
05-17-2004, 11:56 AM
Any new templates created will appear with your custom templates rather than being listed with your CMPS templates. I'm not quite sure why that works with other vBulletin templates, but I'll look into it. :)
gridirontalk
05-17-2004, 12:22 PM
Any new templates created will appear with your custom templates rather than being listed with your CMPS templates. I'm not quite sure why that works with other vBulletin templates, but I'll look into it. :)
SO is there any way to mov it over from your custom to your CMPS templates so I will be able to use it.
BoNfiRe
05-17-2004, 12:23 PM
Yes I was also a lil confused by that. I thought it was going wrong until I realised that is where they go ( all vb addon templates seem to go there vBadvanced is the first mod I installed that doesn't :s )
Brian
05-17-2004, 12:39 PM
Why does it have to be listed under the CMPS templates to be able to use it?
gridirontalk
05-17-2004, 01:02 PM
Why does it have to be listed under the CMPS templates to be able to use it?
Nw I am lost. I created one and try to use it but it didn't show up on my page. :(
Brian
05-17-2004, 01:18 PM
Are you sure that you created it in the right style? If so, double check that the module is active and enabled on that page.
gridirontalk
05-17-2004, 01:27 PM
Are you sure that you created it in the right style? If so, double check that the module is active and enabled on that page.
got it under template to include I was adding adv_portal_custom1 instead of custom1. Thank for all the help
griffin80
08-14-2004, 06:36 AM
so how do i move new templates from 'custom' to 'vbadvanced' templates?
Nothing i name it seems to work.
Brian
08-14-2004, 02:01 PM
Because of the way vBulletin's template system is set up, and the way the vBa templates are named (that's something I didn't realize until it was already released) custom templates are not going to appear with the others.
griffin80
08-14-2004, 08:23 PM
so how do i add a module so i can have links to others pages?
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.