![]() |
|
#1
|
||||
|
||||
|
This will add a basic module to your CMPS in witch you can put images, text, etc...
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_custom_1". Insert this code into the template (replace the blue code with your text/code): Code:
<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 /> Still in your Admincp - vBa CMPS - Add Module - Module Title - Custom 1 - Module Identifier - Leave blank - OR Template to Include - custom_1 - Activate and select the column you want it in. - Save and you are done. Have Fun, cLord
Last edited by cLord; 05-25-2004 at 01:37 PM. Reason: Code error |
|
#2
|
|||
|
|||
|
Hey -- Your handy to have around LOL
THANKS ALOT!!!!!!!!!!!!!!!!!!!
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#3
|
||||
|
||||
|
|
|
#4
|
|||
|
|||
|
i think his is easier
|
|
#5
|
|||
|
|||
|
whos?
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#6
|
|||
|
|||
|
cLord's
|
|
#7
|
|||
|
|||
|
I used cLord's --- looks fine to me......... THanks cLord!
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#8
|
||||
|
||||
|
This will add a collapsible basic module to your CMPS in witch you can put images, text, etc...
Create a new module called custom_1.php (this can be done with notepad) Insert this code into the PHP file: Code:
<?php
$collapseobj_custom_1 = $vbcollapse['collapseobj_custom_1'];
$collapseimg_custom_1 = $vbcollapse['collapseimg_custom_1'];
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_custom_1') . '";');
?>
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_custom_1". Insert this code into the template: Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('custom_1')"><img id="collapseimg_custom_1" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_custom_1.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_options[portal_blockbullet] Custom Module 1</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_custom_1" style="$collapseobj_custom_1">
<tr>
<td class="$getbgrow">
<!-- Begin custom code -->
Your custom code comes here.
<!-- End custom code -->
</td>
</tr>
</tbody>
</table>
<br />
Still in your Admincp - vBa CMPS - Add Module - Module Title - Custom 1 - Module Identifier - Leave blank - File to include - Select custom_1.php - OR Template to Include - Leave blank - Activate and select the column you want it in. - Save and you are done. Based upon Richard's Collapsible Modules Hack Have Fun, cLord
|
|
#9
|
||||
|
||||
|
very nice
gotta love vba cmps & vb3.01
|
|
#10
|
|||
|
|||
|
yeah
|
|
#11
|
|||
|
|||
|
Okay maybe I am tired or just dumb ..I haven't figured it out ...I got the
basic module installed fine , but it will only show up on the page I want it too if I have it check marked for the main index , soon as I uncheck it for the main page it disappears on all pages. http://www.pacertalk.com am I just trying to do something impossiable ? I have the navigation linking to http://www.pacertalk.com/index.php?page=roster I have nothing but my custom_1 checkmarked and the news still shows on the roster page I have made a adv_portal_custom_1 <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] Pacers Roster</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 /> I added a Page Page Title - Pacer Roster Page Identifier - http://www.pacertalk.com/index.php?page=roster Page Template - adv_portal_custom_1 I have in the Center , custom_1 ..Only checkmarked. Module Module Title - Custom 1 Module Identifier - blank Template to Include - custom_1 About ready to pull my hair out ..lol Last edited by TheSauceMaster; 05-30-2004 at 12:06 PM. |
|
#12
|
|||
|
|||
|
problem solved , I was using the full url when I created the page unstead of just using "roster" as the indentifer.
Last edited by TheSauceMaster; 06-12-2004 at 04:07 PM. |
|
#13
|
|||
|
|||
|
Noob here I have a cgi/perl script that I want to put in a module.... but the only way I can pull it in on ylpnews template is via an IFrame... I'm pulling my hair out .....I even tried a JS converter but I got errors.
Any ideas on how I can do this? |
|
#14
|
|||
|
|||
|
Have you tried using the html or php include functions?
|
|
#15
|
|||
|
|||
|
Hi Samir, ok real noob here.... how would I use those functions? Do you mean the php include in the templates? I wouldn't know where to begin on this.... any help is greatly appeciated.
|
|
#16
|
|||
|
|||
|
In HTML there is something call Server Side Includes (SSI). I'm not sure if you can use that or not. In php, there are all sorts of ways to include something in the php code. Here's a link to something I've been using:
http://www.vbadvanced.com/forum/showthread.php?t=1082 I just noticed you posted in there too, lol. Did you try the hack from vb.org? What exactly is this cgi and how does it work? I'm no programmer, but I may be able to help you. |
|
#17
|
|||
|
|||
|
How can I make a module NOT show on register & login pages.
That would be for google ads. |
|
#18
|
|||
|
|||
|
How are you getting it to show in the first place? Did you modify templates?
|
|
#19
|
|||
|
|||
|
I don't consider myself an idiot, and I've followed your instructions to the T. But module won't show up. It's activated, and I have it as #1 on the left side. Code in template is:
Code:
<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 Ad Here! 4 Lines 1 URL $2.00/wk <!-- End custom code --> </td> </tr> </table> <br /> Any Ideas? |
|
#20
|
|||
|
|||
|
Quote:
This is a very useful hack. I've installed it too. however, my question is - - If i have a large content on this custom module page but i want to show only some part of it... in my main (portal) index page and then when users click on it.. i want the users to goto the this custom page... How can i go about achieving that??? just like show new threads... |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quote It Module | Acido | Add-On Modules & Modifications | 33 | 01-28-2006 12:54 PM |
| Top (10) Posters Module | Acido | Add-On Modules & Modifications | 69 | 10-08-2005 09:20 AM |
| PayPal Module | cLord | Add-On Modules & Modifications | 36 | 09-21-2005 01:08 AM |
| Google Module | cLord | Add-On Modules & Modifications | 22 | 05-03-2005 04:49 PM |
| Page or Module? | poseidon | Troubleshooting / "How do I..." Questions | 2 | 05-20-2004 11:43 AM |