View Full Version : Need help making module.
MickeyD
07-24-2004, 04:34 PM
Okay so I've looked at the user manual and am still really confused.
I know html really well and have a basic understanding of php.
(enough to mess around with it and a little more)
I've tried creating a module but it didn't have the same look as the forums with the header table and stuff around the module and it appeared at the top of the page outside of the main page table instead of in it. Can someone explain step by step in detail or just in more detail than the user manual on how to create a custom module OR can you just get me a basic module code where I can just put inside it some html and then be set to go? Thanks in advance. ANY help would be appreciated thanks!
DarknessDivine
07-24-2004, 07:31 PM
First create a new template..inside the template put this code this is for a basic template put your html or whatever into where it says "Your custom code comes here":
(Credit to cLord) ;)
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Custom Module 1</b></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<!-- Begin custom code -->
Your custom code comes here.
<!-- End custom code -->
</td>
</tr>
</table>
<br />
make sure you title the templae "adv_portal_whatever you wanna call it"
Then create a new module add
Module Title:
Module Identifier:Blank usually
File to Include:none
OR Template to Include:the name of the template you just created
Active:yes
Column:where u want it
Templates Used:I usually leave blank
Update All Pages? up to you
And then you save...it should work fine then...if not give a link to the problem..;)
MickeyD
07-25-2004, 01:22 AM
thanks a ton for the help. I'm about to try it.
DarknessDivine
07-25-2004, 08:01 PM
Hope it works out for ya..;)
dateles
07-25-2004, 10:55 PM
where do you put the template?
KW802
07-25-2004, 11:35 PM
where do you put the template?
VB Admin Control Panel --> Styles & Templates --> Style Manager --> (from the drop down of the skin you want to modify) Add New Template
Tony F
09-01-2004, 02:06 PM
First create a new template..inside the template put this code this is for a basic template put your html or whatever into where it says "Your custom code comes here":
(Credit to cLord) ;)
make sure you title the templae "adv_portal_whatever you wanna call it"
Then create a new module add
Module Title:
Module Identifier:Blank usually
File to Include:none
OR Template to Include:the name of the template you just created
Active:yes
Column:where u want it
Templates Used:I usually leave blank
Update All Pages? up to you
And then you save...it should work fine then...if not give a link to the problem..;)
Thanks so much, that solved my problem
Mellow
09-02-2004, 09:42 AM
First create a new template..inside the template put this code this is for a basic template put your html or whatever into where it says "Your custom code comes here":
(Credit to cLord) ;)
make sure you title the templae "adv_portal_whatever you wanna call it"
Then create a new module add
Module Title:
Module Identifier:Blank usually
File to Include:none
OR Template to Include:the name of the template you just created
Active:yes
Column:where u want it
Templates Used:I usually leave blank
Update All Pages? up to you
And then you save...it should work fine then...if not give a link to the problem..;)
I just followed these procedures and made sure the module was active as well as enabled on my only page. Nothing shows up. I didn't even put any custom code in, just the exact cut/paste from the basic module contents above.
Any Ideas?
Mellow
09-02-2004, 10:44 AM
I just followed these procedures and made sure the module was active as well as enabled on my only page. Nothing shows up. I didn't even put any custom code in, just the exact cut/paste from the basic module contents above.
Any Ideas?
The only way I could get a module to show up is by having a .php file w/eval statement and using that.
Just having a template with basic html in it did not work for me, is it supposed to?
Thanks,
Joe
DarknessDivine
09-02-2004, 11:56 AM
Just having a template with basic html in it did not work for me, is it supposed to?
Yes it is...
I just followed these procedures and made sure the module was active as well as enabled on my only page. Nothing shows up. I didn't even put any custom code in, just the exact cut/paste from the basic module contents above.
Don't quote me on this but I'm pretty sure there has to be some content in order for the module to show up. Try place just some regular text in it and see what happens..
misticjeff
09-02-2004, 03:33 PM
I just tried the above with no luck either. The module does not show up. any suggestions? :confused:
I just tried the above with no luck either. The module does not show up. any suggestions? :confused:
I just followed this guide myself and it worked fine. :)
When you specified the Template to Include, did you remove the "adv_portal_" prefix?
The template has to have that prefix when saved in your styles manager, but you have to remove it when you reference it in the module settings.
........ this is the only thing that you could've missed I think.
hope this helps
JoeWho
12-02-2005, 09:06 AM
What did I do wrong?
I made 2 modules, the first one works fine the second one spans the full page, it is only supposed to be in the left column, I have tried this three different times and it still does the same thing what did I do wrong, did I miss something, how do I fix this problem? Both new modules are supposed to be in the right column.
I have searched the board and did not see any other posts with this problem, so I have too soon that it is something I am doing or not doing that's causing this.
I really need to figure out what is wrong, I would like to add several more modules but at this rate they will all be full with and at the bottom of the page, not exactly what I wanted. There must be a way to have the module stay put in the right column as to the instructions in this thread.
I appreciate any and all help, thank you.
http://www.glassline.net/testing/cmps-module.jpg
Brian
12-02-2005, 03:07 PM
My guess would be that you have an extra </table> tag in your first google module.
JoeWho
12-02-2005, 06:11 PM
My guess would be that you have an extra </table> tag in your first google module.
Thanks!
I removed the </table> tag and it works fine, but it is strange that it works without the table-tag!
<tr><td class="$getbgrow" width="100%">
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-7086766551467935";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQ3bWazgEaCIDpU7OcSSWsKJ_D93M";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</td></tr>
Or do I have a problem some where else... also?
Thanks.
Brian
12-03-2005, 05:06 PM
The <table> and </table> tags are in the adv_portal_module_shell template, so if you have the 'Use Module Shell Template' option turned on for that module there is no need to use them. ;)
gregsbaby64
12-12-2005, 09:03 AM
I'm glad I saw this thread! I put this in my adv_portal_welcomemessage template and it finally worked.
<tr>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<!-- Begin custom message -->
Welcome to Sis-2-Sis, ladies!! We're glad you're here! Please visit the <a href="http://sis-2-sis.com/forum/faq.php">FAQ's</a> for more information about the board before you register. We hope to see you around the boards a lot! Welcome again!
<!-- End custom message -->
</td>
</tr>
I was having a problem with the block title being underneath the message. I'm glad I found this thread, thank you! :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.