Shows link only if user is logged in

Hi there,
DW 8, PHP & my SQL
I have a db of registered users and have links to download
documents.
Some of these documents are for everyone and some I only want
to be
downloadable or logged in registered users - all on the same
page.
If someone can please point me to a tutorial or advice as to
what I am
to do, I will really appreciate it.
Regards,
Deon

back from lunch - where you at on the table?
"crash" <[email protected]> wrote in message
news:[email protected]...
> Is this site for your or for a client? If a client, I
woudl build an
> access table that allows them to determine (or you to
easily administrate)
> access levels.
>
> If it's for you, that's not really necessary, though I
find it helps me.
> Somewhere write down your access levels:
>
> 1 - Default, open
> 2 - Member
> 3 - Edit (add/edit content)
> 4 - Admin (add/edit/delete site sectiosn)
>
> Next, create your table for your documents. WHat
information do you need
> to have contained within them? How are you puloading
them? Do they need
> approval before being released? Do they need to expire?
>
> So far, we know we need this information in our
documents table:
>
> docID
> docName
> docUrl
> docClearance (what number of clearance is needed tob e
read)
>
> We may need these fields:
> docDateAdd
> docDateEdit
> docDateRemove
> docPublish (can be bool, or 1 - 4 to define steps of
publication such as
> submission, waiting, approved, live)
>
> Do you grab your users' clearnace on your login page?
(it's a checkbox on
> hte MM server behavior thingy)
>
> More after lunch, get those tables setup.
>
> "Deon" <[email protected]> wrote in
message
> news:[email protected]...
>> crash, my db is set up and users can log in and out.
Just for what it
>> might be worth in the future, I have a default
Access level of 1. That's
>> where I am now.
>>
>> Deon
>>
>>
>> crash wrote:
>>> Where are you at now? Do you ahve your database
setup at all? Or are
>>> you saying you have your database setup, but
only a table for the users
>>> in it?
>>>
>>> Should not need a tutorial, should be fairly
straight forward.
>>>
>>>
>>> "Deon" <[email protected]> wrote
in message
>>> news:[email protected]...
>>>
>>>>Crash,
>>>>
>>>>thanx for the time to answer my question. My
db only makes provision for
>>>>the registered users. At the moment I only
know what I want and have no
>>>>idea how to get there. Are there tutorials
you are aware of for this? If
>>>>not, I can Google if I know what to look for.
>>>>
>>>>Thank you again!
>>>>Deon
>>>>
>>>>
>>>>crash wrote:
>>>>
>>>>>What separates the two out in your
database? Do you have a "class"
>>>>>field to determine document class (ie,
private or public?) Do you have
>>>>>a table of association that says which
users or which level of users
>>>>>can access which documents?
>>>>>
>>>>>Getting that built will be your first
step. After that, I would build
>>>>>two recordsets, one public and one
private. I would then use DW's show
>>>>>region if recordset is not empty Server
Behavior to show the links I
>>>>>wanted.
>>>>>
>>>>>Another way to buidl ti would be to use
one recordset and the split the
>>>>>two (public/private) into arrays and
display them according to isset()
>>>>>statements.
>>>>>
>>>>>HTH,
>>>>>
>>>>>Jon
>>>>>"Deon" <[email protected]>
wrote in message
>>>>>news:[email protected]...
>>>>>
>>>>>
>>>>>>Hi there,
>>>>>>
>>>>>>DW 8, PHP & my SQL
>>>>>>
>>>>>>I have a db of registered users and
have links to download documents.
>>>>>>Some of these documents are for
everyone and some I only want to be
>>>>>>downloadable or logged in registered
users - all on the same page.
>>>>>>
>>>>>>If someone can please point me to a
tutorial or advice as to what I am
>>>>>>to do, I will really appreciate it.
>>>>>>
>>>>>>Regards,
>>>>>>Deon
>>>>>
>>>>>
>>>
>
>

Similar Messages

  • Show link based on user permission

    hello ,
    i have a user control that display a simple link to a list and i would like to show link only for users who have access to the list.
    if the user has not access to list , he should no see the link.
    How to reach my goal ? 
    Thanks

    You can use JavaScript client object model code to check the permissions of the user on the list. Specifically, you will need to check for viewListItems permissions. Here is a smple code to get permissions of the user on the list.
    Note that this code will retrieve the current user's permissions. 
    var list
    function getUserPermissions() {
    var clientContext = SP.ClientContext.get_current();
    list = clientContext.get_web().get_lists().getByTitle('L5'); clientContext.load(list, 'EffectiveBasePermissions'); clientContext.executeQueryAsync(onQuerySucceeded, onQueryFailed);}
    function onQuerySucceeded() {
    if(list.get_effectiveBasePermissions().has(SP.PermissionKind.viewListItems)) {
    //Show link
    else {
    //Don't show link
    function onQueryFailed(sender, args) {   
    alert('Request failed. ' + args.get_message() +  '\n' + args.get_stackTrace());
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext',getUserPermissions);
    However, if you are comfortable with Server side object model code, you can use:
    var currentUser = SPContext.Current.Web.User;
    SPList.DoesUserHavePermissions(currentUser, SPBasePermissions.ViewListItems);
    See this for more information: http://www.mindfiresolutions.com/Checking-current-users-permission-on-a-SharePoint-list-using-C-1642.php
    Nadeem Yousuf

  • Only one user at a time can log in per client

    Server: 10.6.2
    Client: 10.5.8
    The share point on the server is the default of /Users. Home directories are configured as /Network/Severs/hostname/Users/username. In the "Home" tab of each user, the home directory shows up as "afp://hostname/Users", which is the default when creating a user.
    On a given client, only one user can log in at a time. If the first user switches to the login screen without logging out (fast user switching), when the second user attempts to log in, they get an error "You are unable to log in to account "xxxx" at this time."
    Looking in the secure.log, the error appears to be "file busy":
    Mar 7 12:13:39 G4-MDD authorizationhost[677]: ERROR | -[HomeDirMounter mountNetworkHomeWithURL:attributes:dirPath:username:] | PremountHomeDirectoryWithAuthentication( url=afp://Mini.local/Users, homedir=/Network/Servers/Mini.local/Users/xxxxxx, name=xxxxxx ) returned 16
    The server's /Users directory is mounted. It appears to be trying to automount another copy, rather than use the existing mount.
    How do I resolve this so multiple users can be logged in at one time? Surely I don't have to create a share point for each user?

    I'm glad to hear I'm not the only one encountering this problem, although the fact that this problem has apparently existed for some time is mind boggling to me. The idea that there is some data corruption issue here is not a valid concern. We did this all the time on Linux in my previous life. There is no need to unmount the mounted directory, at least in the default case. The mount point is /Users. Home directories on the server are /Users/fred and /Users/sally. Automounter mounts /Users at the mount point /Network/Servers/serverhostname/Users. Fred is logged in and can access /Users/fred. Now Sally wants to log in. /Users is already mounted. There is no reason to unmount/remount /Users. OS X can see it is already mounted. Just log Sally in - she already has full access to her files.
    If Fred and Sally reside on different servers, then there would be different mount points /Network/Servers/hostname/Users - again no conflict in the mount points.
    The only solution I can see right now is a separate share point for each user, which is unacceptable. That might work for my two users. It's hardly scalable from a maintenance standpoint.
    I do have the problem of fred logging out and sally not being able to get in right away, but that period is probably less than a minute. Wait a minute, then sally can log in.

  • After software update, users cannot log into Xserve

    We have an Xserve running 10.6.7.  We just did an software update and rebooted the server.  Something broke and at this point, only local users can log in, such as the administrator account.  None of the users in the LDAP db can log in.  I cannot access their accounts from Workgroup Manager, either, because it posts an LDAP error.
    We do have a full backup of that drive from 24 hours ago, but don't want to just blindly overwrite the whole drive.  Are there specific files I could restore?
    Or, is there a way to correct what's wrong with LDAP?

    Sadly we are currently having problems with ldap and directoryservices after the 10.6.7 update. It is not the same thing you are seeing but none the less.
    My advice would be to get that backup up and running.  You could copy the backup to an external drive and try and boot off of it and see how that works if its ok I would revert back and hold off on updates.

  • Task Scheduler Security Option - Run if user is logged in or not

    using Windows Server 208 R2 Terminal Server - Running .NET 4.0 programs
    We are running .NET 4.0 Windows Forms programs using Task Scheduler with the Security Option - Run whether user is logged in or not.
    When the Task Scheduler starts these jobs they either not not run or they fail.
    Questions:
    1. What shell is used by Task Scheduler with the setting "run whether user is logged in or not" ?
    2. Is there some way to detect this shell or environment in a .NET program?
    I am trying to determine if I can modify the .NET programs so they will run in this shell with no errors.
    Thank you
    MisterT99

    Hi Mister,
    In addition, Since you need to launch a GUI application through Task Scheduler, so this task also need to run interactively.
    However, if the item "Run whether user is logged on or not" is selected, tasks will not run interactively, so we need to select the "Run only when user is logged".
    I recommend you can change the item "Change user or group" in security option and add a group, which will make sure your application will run interactively for all users in the group when the users logon.
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I have itunes on a mac with 2 users but the library only shows on the main user how can both users have the same library?

    i have itunes on a mac with 2 users but the library only shows on the main user how can both users have the same library?

    Hi,
    Have a Look at these Links on Home Sharing:
    http://support.apple.com/kb/HT4620
    http://support.apple.com/kb/HT3819
    Could be what you need...
    Cheers,

  • Show/Hide PHP If user logged in

    Hi,
    I have done some research and nothing seems to be working.
    I'm also not very experienced with this. I have on my side frame a
    section where if the user is NOT logged in, we the sign in form
    appears and if the user IS logged in, a simple 3 rowed table
    appears. Can someone help me with this. I'm very lost and could use
    some detailed help.
    My variable for user is: $_SESSION['MM_Username'] =
    $loginUsername;

    I think what you're looking for can be foudn here:
    Server Behaviors -> User Authentication -> Restrict
    Access to Page
    If not, just use
    <?php
    if ($_SESSION("MM_Username")) {
    ?>
    Put your control panel HTML here
    <?php } ?>
    "tedrodgers" <[email protected]> wrote in
    message
    news:e61n1s$s2m$[email protected]..
    > hi guys, new to this forum and not a very experienced
    php programmer so
    > please
    > be patient with me
    >
    > I have a "user control panel" which I only want to show
    to users if they
    > are
    > logged in.
    >
    > I cant see in the "server behaviours" part of DW8 a
    ready made "show if.."
    > that will do this?
    > I maybe being stupid / blind so apologis if i have
    missed it.
    >
    > any ideas guys?
    >
    > thnks in advance.
    >

  • Only One Mobile User can Log In to Laptop

    I have a network account on my Mac Book Pro. I can log in no problem, access everything on the network, etc. but no one else can log in to this particular laptop. All of the other users can log into each other's identical Mac Book Pros, my account included. I have checked in my MBP's System Preferences > Accounts and the "Allow network users to login to this computer" checkbox is checked. The PDC is Leopard 10.5.6 running Open Directory.
    When one of the other network accounts tries to log in to my computer we get the following error:
    You are unable to login to the user account (username) at this time. Logging in to the account failed because of an error.
    I have googled that error but nothing seems to apply to this situation. Most of the postings found here and on the web are authenticating against Active Directory, and the assumption seems to be no one can log in, not just select accounts.
    I've done plenty of searching here and on Google but the description of the problem is hard to summarize so I'm posting my own question. Thank you in advance for any information you can provide.

    Is this a second hand phone? It sounds like the it is and the previous owner did not disable Activation Lock, the antitheft feature of iOS. If this is the case then the only solution is to get the previous owner to unlock it.

  • Search Query that shows articles based on the current logged in users Office location

    Hi,
    I've set up a "news" channel that shows articles targeted to the current user. Basicly this on done by queryting the property of the custom "Office Location" termset.
    My setup is something like the following in my term store:
    The setup works perfect now. countries are not taggable so at the moment the user needs to choose City 1.. City 2 etc. for their articles which works fine since sometimes articles are also only targeted to cities and not countries.
    Anyways now we have got 2 users in City 4. Here it makes no sense that articles should be targeted City 3 and City 4 in order to show articles to entire Country 2. Basicle what I want here is that if an article is targeted with City 3 it should also be shown
    to City 4 users.
    How is this archived best? I have tried to make the Countries available for tagging as well, however it not show anything since the user property of course still is City 3 or City 4.
    Thanks for your time

    Hi,
    You can not get hold of the parent in your scenario. You want the parent of the tagged term in the user profile, and there is no built-in mechanism in search to get this. So as I mentioned you have to use JSOM to get the parent term, and then use that in
    your owstaxIdOfficex0020Location:term query.
    owstaxIdOfficex0020Location:{User.SPS-Location.IDWithChildren}
    would be a valid query, except it won't help you much :)
    Thanks,
    Mikael Svenson - Search Enthusiast
    SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • HT1349 Win 7 64 bit:  iTunes won't install, get error code 2324 or installer says I am not logged on as administrator:  only one user and it is an administrator user.

    Win 7 64 bit:  iTunes won't install, get error code 2324 or installer says I am not logged on as administrator:  only one user and it is an administrator user.

    Hey there k8ei,
    Thank you for using Apple Support Communities
    I found this article for you to help troubleshoot installing iTunes named Trouble installing iTunes or QuickTime for Windows found here http://support.apple.com/kb/HT1926.
    Here is a general overview on where the troubleshooting will take you:
    General installation troubleshooting
    1. Empty your Temp directory and restart
    2. Completely remove iTunes and related components
    3. Install the latest version of iTunes
    Additional troubleshooting
    After performing each of the steps below, you will need to completely remove iTunes and related components and then install iTunes again to determine whether the issue is resolved.
    1. Make sure you have administrator account access
    2. Make sure your folder names don't contain strange characters
    3. Get the latest Windows updates
    4. Disable other conflicting software
    All the very best,
    Sterling

  • SCCM 2012 powershell only when no user is logged in

    Hi All,
    I think this is probably me, I am trying to run a powershell script which calls an MSI in the Application node, seems to work fine when the user is logged on, but I wanted to run this as, only when no user is logged on, and install for system. It seems to
    start and just exit straight away.
    Command line: that I use: powershell.exe -noprofile -executionpolicy bypass -file .\Install.ps1 is this correct to run as system?

    I'm also having a very similar issue. In my scenario, I have a PowerShell script that runs an software update tool with different parameters based on the value of a specific registry entry. I was testing the SCCM Application when logged on and just running
    for Software Center and it runs as expected, but when I changed the User Experience from "Run whether or not a user is logged on" to "Only when no users are logged on" and it fails.  In the AppEnforce.log the following lines are present:
    <![LOG[+++ Starting Install enforcement for App DT "Set New Servers - addiman" ApplicationDeliveryType - ScopeId_2E6C34BD-8633-43D8-B5B5-09A1C291D45B/DeploymentType_56ca55b4-ce9b-4dfd-a64f-db3da408013b, Revision - 5, ContentPath
    - C:\WINDOWS\ccmcache\3n, Execution Context - System]LOG]!><time="11:06:10.878+480" date="02-12-2015" component="AppEnforce" context="" type="1" thread="1628" file="appprovider.cpp:1702">
    <![LOG[The enforcement of this App DT requires all users to be logged off.  The deployment cannot specify a user collection when the deployment type requires that a user must be logged off.  Aborting enforcement.]LOG]!><time="11:06:10.879+480"
    date="02-12-2015" component="AppEnforce" context="" type="3" thread="1628" file="appprovider.cpp:1732">
    <![LOG[CommenceEnforcement failed with error 0x87d0031d.]LOG]!><time="11:06:10.880+480" date="02-12-2015" component="AppEnforce" context="" type="3" thread="1628" file="appprovider.cpp:1825">
    <![LOG[Method CommenceEnforcement failed with error code 87D0031D]LOG]!><time="11:06:10.880+480" date="02-12-2015" component="AppEnforce" context="" type="3" thread="1628" file="appprovider.cpp:2390">
    <![LOG[++++++ Failed to enforce app. Error 0x87d0031d. ++++++]LOG]!><time="11:06:10.885+480" date="02-12-2015" component="AppEnforce" context="" type="3"
    thread="1628" file="appprovider.cpp:2467">
    I've did confirm that the Deployment was not to a User Collection as is implied by the error message and I even went as far as deleting and recreating the Deployment.
    In addition, I have another Application (Java 7 Update 31) that I have set to "Only when no users to login" and it installs as expected. When run from Software Center the Status changes to "Waiting for users to log off" and it is installed
    after I log off.
    Is there some issue with this when trying to run a PowerShell script when logged off?
    Thank you in advance for any insight as to this in consistent behavior.
    Bill Hunt

  • Some of my website images with embeded links only show the link with firefox, with IE8 the image appears correctly, why does this happen

    my website http://www.functionkey.net. If you view my homepage you will see that 3 of my images with embedded links only show up with the links. I am not using "_blank" in my code. The website was created using Microsoft Frontpage 2003.

    If you look at the page source then you will notice that there are some errors with (missing) closing tags.<br />
    Such errors shows as RED text.<br />
    You need to correct at least all codes marked as red text.
    The first &lt;a&gt; tag isn't closed here and you open a second &lt;a&gt;
    <pre>&lt;a target="_blank" border="0" href="http://www.win-rar.com"&gt;
    &lt;div align="left"&gt;
    &nbsp;&lt;/div&gt;
    &lt;div align="left"&gt;
    <u>&lt;a href="http://www.smartdraw.com"&gt;</u>
    &lt;img src="images/sd_logo.gif" width="256" height="111" border="1" alt="SmartDraw - The world's first Visual Processor (TM)" hspace="0"&gt;&lt;/a&gt;</pre>

  • Hiding Links from Infoview (e.g Log off) for some users

    Hi,
    Can we hide links in Infoview (e.g log off) for some users in BO XI R2 ?
    Thanks

    Hi Vaneet,
    No we cannot hide links of infoview  for some users in BO XI R2.
    Thanks,
    Praveen.

  • EM shows alert "User SYS logged on from node but no entry in SYS.AUD$

    Hello,
    When i look on the alert page of my databases i see sometimes the following message "User SYS logged on from <node>.
    I have setup several audit actions, like "create session" to track sessions.
    But in table SYS.AUD$ i see many records, but not the one of user SYS.
    Why? Anyone an idea?
    Best regards,
    hvdtol

    i understand it is comming from metrics, but i don't understand why i can see it in the sys.aud$ table.
    hvdtol

  • Last log-on attributes value not showing in some AD user account

    Hi,
    As per the requirement in my project I want to get the details of user's last log-on time in AD Attributes. My DC is running Win2K8 R2. The funny thing is that I can find out some users last log-on time details. Can anybody help me to solve this.
    Thanks in advance
    Jaril Nambiar

    Understanding the AD Account attributes - LastLogon, LastLogonTimeStamp and LastLogonDate
    http://social.technet.microsoft.com/wiki/contents/articles/22461.understanding-the-ad-account-attributes-lastlogon-lastlogontimestamp-and-lastlogondate.aspx
    Also see one nice discussion on lastlogontimestamp.
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/7c8fffea-9b13-436f-98c6-ffa350fe341e/is-there-any-difference-between-lastlogontimestamp-in-ad-2003-and-ad-2008?forum=winserverDS#b1942366-6105-406e-ab19-e52aa5c38174
    “The LastLogonTimeStamp Attribute” – “What it was designed for and how it works”
    http://blogs.technet.com/b/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx
    Regards,
    Biswajit
    MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
    Blog:
      Script Gallary:
      LinkedIn:
    Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

Maybe you are looking for

  • Urgent - How to delete a variant in F110 (automatic payment program)

    Hello, I want to delete a variant created in printout medium tab. Please guide me. version-  4.6c Thanks in advance. Regards, Jay

  • 11/18/2014 - Beta - Flash Player 16.0.0.228

    The latest Flash Player 16 beta builds are now available. Beta builds can be downloaded from labs.adobe.com.  Today's build brings the Flash Player beta up to date with this week's official release. New Features for Flash Player 16: Stage3D - Standar

  • Standard SAP HR report to give output on change in fields values

    Hi Is there any starndard report in sap hr which will give output on changes on the infotype fileds for given two dates.

  • Duplicate records in a table

    i need to find duplicate records in a table that have the same name but a different id number. only fields i am using is the id, first name, last name, middle name any help would be great thanks

  • Failed to load PDF document

    I downloaded the trial version of Acrobat X. I have a couple of documents to load on a website. If the .pdf documents are created in word or from a file there is no problem. They up load and download just fine. If I scan them in Acrobat X, they are c