View Full Version : "Custom Page Content" -- OK, call me an idiot but....
KW802
07-09-2004, 08:56 AM
... where do I modify the contents of it? :confused:
I see it in Edit Modules and in Edit Pages but how do I modify the actual contents of it to put my own stuff in? :o
mholtum
07-09-2004, 09:46 AM
... where do I modify the contents of it? :confused:
I see it in Edit Modules and in Edit Pages but how do I modify the actual contents of it to put my own stuff in? :o
Did you create a template for this custom page yet?
KW802
07-09-2004, 09:56 AM
Did you create a template for this custom page yet?
HHHmm..... maybe I'm not getting the concept on something. I understand the whole thing about adding new modules and putting my own code in them but was is the deal with the pre-defined one called "Custom Page Content"?
attroll
07-09-2004, 11:41 AM
You have to create a Template for it top work.
Here are the basics of creating a module. In all the places you see the name "yourname" replace it with the name you want to use.
1) In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_yourname". Replace your name with the name you want tyo use but you still have to have the "adv_portal_" in front of it.
Insert this code into the template: (this is just a sample you put what you want in here.)
<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] This is a Test</b></span></td>
</tr>
</table>
<br/>
Save the template!
2) Still in your Admincp - vBa CMPS - Add Module
- Module Title - yourname
- Module Identifier - Leave blank (this is the name that you replaced "yourname" with. The name that follows "adv_portal_")
- OR Template to Include - yourname
- Activate and select the column you want it in.
- Save and you are done.
Brian
07-09-2004, 11:43 AM
If you have a look at the User's Manual available in the Members Area it is explained in there. ;)
KW802
07-09-2004, 12:35 PM
If you have a look at the User's Manual available in the Members Area it is explained in there. ;)
I actually did read it first but am still not grasping a concept somewhere.
For reference I'm attaching a pic. I created a new module and just gave it a quick name of "Quote of the Moment" and I have it configured to be in the center column.
What I'm not following is what is the relationship of that new module I added to the pre-existing entry called "Custom Page Content"?
I think I'll go get some more caffiene, the brain just isn't firing on all cylinders today or something.
Brian
07-09-2004, 12:59 PM
When you add a page, you are given an option for the 'Page Template'. Whatever template you enter here will replace the content of your 'Custom Page Content' module. ;)
KW802
07-09-2004, 01:08 PM
When you add a page, you are given an option for the 'Page Template'. Whatever template you enter here will replace the content of your 'Custom Page Content' module. ;)
Ah, I see now. :D (Edit Pages / Default Home Page / Edit)
I also see that something I was asking about in the old vba Homepage threads is also taken care; I can force a style for use with that page. :cool:
Thanks for the help everybody! Just to show my appreciation I'm not going to start my "how do I execute a .cgi script" thread until the weekend. :p
Edit: I won't have to bug you guys about executing CGI scripts in a module after all, I just got it working! :D :D :D
Wayne Luke
07-09-2004, 04:00 PM
Replace your name with the name you want tyo use but you still have to have the "adv_portal_" in front of it.
Is this really a requirement? I just named mine "custom_pagename" where pagename is the name of the page I want to creat. Seems to work just fine.
Brian
07-09-2004, 04:01 PM
Nope... The custom page can be pulled from any template with any name. It's only necessary to add the 'adv_portal' prefix when adding modules that will get a template. ;)
KW802
07-09-2004, 04:35 PM
Nope... The custom page can be pulled from any template with any name. It's only necessary to add the 'adv_portal' prefix when adding modules that will get a template. ;)
By any chance is the module title a variable that I could place inside of a template? I'm going to end up with several modules that execute CGI scripts and the only difference between the templates would be the module name that is displayed on the output.
Or did I miss the concept again somewhere? :o
Brian
07-09-2004, 05:17 PM
$mods['title'] will give you the title of the module, or if you enter an identifier for the modlue, $mods['name'] will give you that. ;)
KW802
07-09-2004, 05:29 PM
$mods['title'] will give you the title of the module, or if you enter an identifier for the modlue, $mods['name'] will give you that. ;)
http://www.farpointstation.org/images/temp/bowdown.gif
Very cool, thank you. I have at least 3 CGI scripts that are currently being executed on a SHTML page; now I'll be able to create three modules (and a generic PHP shell for each of the scripts) but all referencing the same template.
vissa
07-17-2004, 10:10 AM
This isn't working for me (I believe I know what I'm doing here!). I'm using vb 3.03. It simply doesn't add the template contents to the page. HELP!
-Victor
Brian
07-17-2004, 01:04 PM
Check that the value you entered for 'Page Template' on that page and the name of the template are the same, and that your 'Custom Page Content' module is enabled on that page.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.