Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 63

Thread: How to create your own custom modules (CMPS 2.0 RC2)

  1. #21
    Join Date
    Jul 2006
    Location
    Florida
    Posts
    99

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    What about for cmps 2.2.1/vb3.6.4?

  2. #22
    Join Date
    Oct 2005
    Location
    Manassas, Virginia
    Posts
    139

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Quote Originally Posted by chkdg8 View Post
    What about for cmps 2.2.1/vb3.6.4?

    Yep, Works the same in 3.6.4/ vba 2.2.1

    It did for me.

    Jim

  3. #23
    Join Date
    Jan 2005
    Posts
    17

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Using 3.64 / VBA 2.2.1, I found a simpler way to make custom TEMPLATE modules using the Module Shell Template set to yes.

    Since the shell already dictates the look and layout of the module (collapsible too) you just have to use this as your template;

    Code:
    <tr>
    		<td class="$getbgrow">
    <!-- Custom Code Start -->
    YOUR CODE HERE
    
    <!-- Custom Code End -->
    		</td>
    	</tr>
    The shell template does the rest.

    Doing it this way, you don't have to make new php files for each instance, and you can create as many as you want (just renaming to new template).

  4. #24
    Join Date
    Jan 2007
    Location
    Virginia Beach
    Posts
    39

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    I don't get it. It says you have to choose a php file to use.

  5. #25
    Join Date
    Jul 2006
    Location
    Florida
    Posts
    99

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Gary, can you make a tutorial for or cmps 2.2.1/vb3.6.4 users? I know it's been answered above in post #22 and #23 but I would rather have a new tutorial if you're up to it.
    Last edited by chkdg8; 02-18-2007 at 09:34 PM.

  6. #26

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    this post should be a sticky

  7. #27
    Join Date
    Jul 2006
    Location
    Florida
    Posts
    99

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    I agree.

  8. #28
    Join Date
    Mar 2005
    Posts
    10

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    what if you dont wanna use an external php file ?

  9. #29
    Join Date
    Mar 2007
    Posts
    3

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Ok, I'm trying to make a Word Cloud - buy a word mod. I have a script I'm basically trying to hack to work as a block in CMPS.

    basically I have two files..


    index.php
    and claim.php

    when someone clicks on a word that's not already taken they'll go to
    claim.php?keyword=

    I want claim.php to take the place of index.php in the block.

    I've already got the word cloud part working,
    Now I want to implement the rest of the pages.

    I'm a little new to coding myself, but I've done a lot of moding and installing.

    here's my whole mod.

    Code:
    <?php
    if ($keyword !== NULL)
     {
     include "wcm/claim.php";
     }
    else {
    include "wcm/index.php";
    }
    
    $collapseobj_wcm_mod = $vbcollapse['collapseobj_wcm_mod'];
    $collapseimg_wcm_mod = $vbcollapse['collapseimg_wcm_mod'];
    
    eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_wcm_mod') . '";');
    
    
    
    
    ?>
    What should happen, is instead of clicking on
    Code:
    http://www.mysite.com/cms_index.php?page=home&?keyword=Acupressure
    Then claim.php the other page in the mod, will show a "Claim the keyword Acupressure" Now! And the order form, for it below.

    and the word cloud won't be visible, as long as ?keyword is declared.

    any help w/ regards to this would be great.

    Thanks,
    Last edited by pcurl; 03-09-2007 at 06:08 PM. Reason: url showing wrong, needed full url to show

  10. #30
    Join Date
    Mar 2007
    Posts
    3

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    One more thing, would anyone know if maybe there would be a neater / easier way of possibly implementing that via ajax?

  11. #31
    Join Date
    May 2006
    Posts
    4

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Works great but now my the CMPS module title shows up as "Custom Template 1" and I can't figure out how to change it!

  12. #32
    Join Date
    Oct 2005
    Location
    Manassas, Virginia
    Posts
    139

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Anyone thought about updating this tutorial for CMPS 3.x or does it still work?

    Jim

  13. #33
    Join Date
    Apr 2008
    Location
    Camp Casey, Korea
    Posts
    12

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    I don't know... it doesn't seem to be working for me with the latest verson of CMPS. It creates modules but they will NOT sit the way they are supposed to on the page. I used the User's Manual to try to figure it out.... it showed screen shots different than what I have on my screen. Am I missing something or is all this stuff outdated?

  14. #34
    Join Date
    Oct 2005
    Location
    Manassas, Virginia
    Posts
    139

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    I tried it over the last few days and it all seems to work fine with v3.7.0 RC4 and vba 3.0.

  15. #35
    Join Date
    Apr 2008
    Location
    Camp Casey, Korea
    Posts
    12

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Hm.... I wish I knew what the problem was. My modules get added but they change the entire layout of the page. For instance, if I make a module and try to add it to the left column, it will stack the entire left column on top of the center column on top of the right column. I don't understand why.

  16. #36
    Join Date
    Apr 2008
    Location
    Camp Casey, Korea
    Posts
    12

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Nevermind I had to slow it down on the directions and take my sweet time. Works like a charm Thanks a lot!

  17. #37
    Join Date
    Oct 2005
    Location
    Manassas, Virginia
    Posts
    139

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Quote Originally Posted by sdavis2702 View Post
    Nevermind I had to slow it down on the directions and take my sweet time. Works like a charm Thanks a lot!
    Not a problem I was going to suggest that if you could post a sample of the code you had so far, we could take a look and see where the issue was. I'm glad to hear you got it working. I know how frustrating it is when things don't work the way you want them to or expect.

    Jim

  18. #38

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    So far, so good. Now, how do I find the code to put in the "code goes here" space.

    I'm a newbie, so I need help with this.

  19. #39
    Join Date
    Oct 2005
    Location
    Manassas, Virginia
    Posts
    139

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Quote Originally Posted by ArnyVee View Post
    So far, so good. Now, how do I find the code to put in the "code goes here" space.

    I'm a newbie, so I need help with this.
    Generally you would need to write it yourself or have someone do it that is familar with coding in PHP. What is it that you would like your custom module to do?

    Jim

  20. #40
    Join Date
    Jun 2008
    Posts
    8

    Default Re: How to create your own custom modules (CMPS 2.0 RC2)

    Hello,

    i just want to make a box with the following content:


    <script language="JavaScript" src="http://www.wetter.net/cgi-bin/wetter-net/websitebox.pl?TYP=102&NAME=Hannover" type="text/javascript"></script>


    I create a new .php file an create a PHP file module.
    But see what happen on the picture ...

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 09-11-2005, 04:37 PM
  2. Replies: 2
    Last Post: 07-10-2005, 05:37 PM
  3. Custom Layout Including CMPS Modules
    By gilbert in forum Add-On Modules & Modifications
    Replies: 2
    Last Post: 05-24-2005, 02:15 AM
  4. Create custom pages/content
    By Seraphis-XII in forum Troubleshooting / "How do I..." Questions
    Replies: 9
    Last Post: 09-12-2004, 11:36 AM
  5. create new modules
    By Zedd in forum Troubleshooting / "How do I..." Questions
    Replies: 14
    Last Post: 08-14-2004, 08:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •