Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request] Client Login Plugin (Details inside)
#4
TDT-Alpha Wrote:
RobA Wrote:This would work with just the client files plugin.

You can create a private page with the slug clientpage_[client name] and the contents of this page will be displayed before the list of client files, once the client is logged in.

The external comments plugin can be called using optional parameters to uniquely identify each client's login and provide different comments to each user. I can play a bit and give the specifics for this configuration if you want.

-Rob A>

That's exactly what I've been looking for... Working on it! When I'll need you, should I P.M you?
Thanks!
Edit:
Doesn't really work, where should I put the clientpage_(#).html?

Unfortunately, after a bit of playing, it looks like this can;t be done on the page, as the page doesn't "know" what client is lggged in in an easy manner.

ive found the only way to do it is similar to the suggestion for the news manager.

You can add the line:
Code:
$clientfiles_content .= return_external_comments( return_page_slug() . ':' . $client, get_page_url(True) . '?client=' . $client, return_page_title(). ' ' . $client);

to the clientfile plugin either at line 577 (before the logout button) or after line 581 (after the logout button):


Code:
**here**
      // logout form
      $clientfiles_content .= '<form name="logout" action="#clientlogout" method="post">';
      $clientfiles_content .= '<input type="submit" name="submitlogout" value="Client Log Out" />';
      $clientfiles_content .= '</form></br>';  
     ** or here **
    }

Please note that because of the way the external commenting providers work, these comments will not be private in any sense of the word, so may not meet your needs.

-Rob A>
Reply


Messages In This Thread
[Request] Client Login Plugin (Details inside) - by RobA - 2011-07-14, 02:44:54



Users browsing this thread: 1 Guest(s)