Results 1 to 6 of 6

Thread: Sample Framework Add-on => Link request

  1. #1
    Join Date
    Jan 2006
    Posts
    253

    Default Sample Framework Add-on => Link request

    The new documentation states
    Download the sample Framework Add-on to use as an example of a correctly formatted Add-on.
    Does anyone have the link to the sample Framework Add-on please?

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    São Paulo - Brasil.
    Age
    39
    Posts
    151

    Default Re: Sample Framework Add-on => Link request

    Quote Originally Posted by julianps View Post
    The new documentation states
    Does anyone have the link to the sample Framework Add-on please?
    Thanks
    http://docs.google.com/View?id=dhk2c...34611034784788

    ...a blind padawan...

  3. #3
    Join Date
    Jan 2006
    Posts
    253

    Default Re: Sample Framework Add-on => Link request

    thanks Renato

    i take it from that we are to build our own from the example provided?

  4. #4
    Join Date
    Aug 2004
    Location
    São Paulo - Brasil.
    Age
    39
    Posts
    151

    Default Re: Sample Framework Add-on => Link request

    Quote Originally Posted by julianps View Post
    thanks Renato

    i take it from that we are to build our own from the example provided?
    Try this one.

    And Check the jQuery4OR Add-on too.

    []´s
    Attached Files Attached Files

    ...a blind padawan...

  5. #5
    Join Date
    Jan 2006
    Posts
    253

    Default Re: Sample Framework Add-on => Link request

    Nice; thanks.

    A quick question; how come references to the stylesheet are commented out?

    Ex #1
    Code:
    //$jscript .= '<link href="' . $config['baseurl'] . '/addons/sampleframework/css/addon_sampleframework.css" rel="stylesheet" type="text/css" />' . "\r\n";
    Ex #2
    Code:
    //$jscript .= '<link href="' . $config['baseurl'] . '/addons/sampleframework/sampleframework.css" rel="stylesheet" type="text/css" />' . "\r\n";
    Additionally I see a security function in the stript;
    Code:
    	{
    		$security = login::loginCheck('Admin', true);
    		if($security !== true)
    			{
    				// NOT ADMIN LOGGED: DO NOTHING
    			}
    Is this simply intended to stop the Addon module from parsing the code for non-admin users?

    Jules

  6. #6
    Join Date
    Aug 2004
    Location
    São Paulo - Brasil.
    Age
    39
    Posts
    151

    Default Re: Sample Framework Add-on => Link request

    A quick question; how come references to the stylesheet are commented out?
    is commented out because there is no css code to be loaded in this example.
    I make a simple div style.

    Additionally I see a security function in the stript....
    Is this simply intended to stop the Addon module from parsing the code for non-admin users?
    Exactly that.

    You can use this code too.

    PHP Code:
    $adminsecurity login::loginCheck('Admin'true);
    $agentsecurity login::loginCheck('Agent'true);
    $membersecurity login::loginCheck('Member'true);
        
    if(
    $adminsecurity !== TRUE and $agentsecurity !== TRUE and $membersecurity !== TRUE) { 
    // code Here


    []
    Renato
    Last edited by Renato.Dias; 09-28-2009 at 01:07 PM. Reason: is commented out...

    ...a blind padawan...

Similar Threads

  1. OR as ARTGallery see sample!
    By RealEstate in forum General Discussion
    Replies: 1
    Last Post: 05-02-2008, 10:21 PM
  2. RETS Sample XML File
    By mcraft59 in forum General Discussion
    Replies: 2
    Last Post: 12-31-2005, 10:12 PM
  3. Whats New - sample code
    By webvivre in forum General Help (CLOSED)
    Replies: 12
    Last Post: 08-01-2005, 05:18 AM
  4. vacation rental framework
    By jacmgr in forum Work
    Replies: 7
    Last Post: 07-16-2005, 09:19 AM
  5. what is framework?
    By cellularguy in forum Installation/Configuration Help (CLOSED)
    Replies: 3
    Last Post: 07-07-2005, 09:29 AM

Bookmarks

Posting Permissions

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