vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-25-2004, 06:57 AM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Cool Basic Module

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 />
Save the template!

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  
Old 05-25-2004, 12:29 PM
joeychgo joeychgo is offline
Senior Member
 
Join Date: Mar 2004
Posts: 227
Default Re: Basic Module

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  
Old 05-25-2004, 01:09 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Basic Module

http://www.vbadvanced.com/membersare...=5#generictemp
  #4  
Old 05-25-2004, 10:49 PM
Lurk Lurk is offline
Junior Member
 
Join Date: Feb 2004
Posts: 17
Default Re: Basic Module

i think his is easier
  #5  
Old 05-25-2004, 11:19 PM
joeychgo joeychgo is offline
Senior Member
 
Join Date: Mar 2004
Posts: 227
Default Re: Basic Module

whos?
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners!

Lincoln vs Cadillac : Mopar Forum : Car Audio Talk
  #6  
Old 05-26-2004, 10:45 AM
Lurk Lurk is offline
Junior Member
 
Join Date: Feb 2004
Posts: 17
Default Re: Basic Module

cLord's
  #7  
Old 05-26-2004, 11:43 PM
joeychgo joeychgo is offline
Senior Member
 
Join Date: Mar 2004
Posts: 227
Default Re: Basic Module

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  
Old 05-27-2004, 10:48 AM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Default Re: Basic Module

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') . '";');

?>
Save & upload the PHP file to your modules dir.

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 />
Save the template!

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  
Old 05-28-2004, 04:50 PM
PixelFX's Avatar
PixelFX PixelFX is offline
Senior Member
 
Join Date: Jan 2004
Posts: 187
Default Re: Basic Module

very nice gotta love vba cmps & vb3.01
  #10  
Old 05-29-2004, 09:36 PM
Lurk Lurk is offline
Junior Member
 
Join Date: Feb 2004
Posts: 17
Default Re: Basic Module

yeah
  #11  
Old 05-30-2004, 02:46 AM
TheSauceMaster TheSauceMaster is offline
Junior Member
 
Join Date: May 2004
Posts: 19
Default Re: Basic Module

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  
Old 05-30-2004, 08:09 AM
TheSauceMaster TheSauceMaster is offline
Junior Member
 
Join Date: May 2004
Posts: 19
Default Re: Basic Module

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  
Old 09-01-2004, 03:47 PM
Webber Webber is offline
Member
 
Join Date: Aug 2004
Posts: 53
Default Re: Basic Module

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  
Old 09-02-2004, 07:42 PM
Samir Samir is offline
Huntsville Car Scene.com
 
Join Date: Sep 2004
Location: HSV
Posts: 276
Default Re: Basic Module

Have you tried using the html or php include functions?
  #15  
Old 09-06-2004, 11:53 AM
Webber Webber is offline
Member
 
Join Date: Aug 2004
Posts: 53
Default Re: Basic Module

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  
Old 09-06-2004, 06:37 PM
Samir Samir is offline
Huntsville Car Scene.com
 
Join Date: Sep 2004
Location: HSV
Posts: 276
Default Re: Basic Module

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  
Old 09-16-2004, 11:42 PM
DoKOK DoKOK is offline
Junior Member
 
Join Date: Sep 2004
Posts: 14
Default Re: Basic Module

How can I make a module NOT show on register & login pages.

That would be for google ads.
  #18  
Old 09-17-2004, 03:38 AM
Samir Samir is offline
Huntsville Car Scene.com
 
Join Date: Sep 2004
Location: HSV
Posts: 276
Default Re: Basic Module

How are you getting it to show in the first place? Did you modify templates?
  #19  
Old 10-29-2004, 04:59 PM
bonnmac bonnmac is offline
Junior Member
 
Join Date: Jun 2004
Posts: 2
Default Re: Basic Module

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 />
http://ptrsupport.com

Any Ideas?
  #20  
Old 11-08-2004, 11:07 PM
Viks Viks is offline
Member
 
Join Date: Oct 2004
Posts: 54
Default Re: Basic Module

Quote:
Originally Posted by cLord
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".
cLord

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 11:30 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.