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.
>

Similar Messages

  • How to show pages based on user logged in adf security ?

    Hi All,
    JDev ver : 11.1.1.4.0
    I have three Roles MANAGERS, ADMIN, ANALYST with users in each role.
    And i used form based authentication. There are seperate screens for each user, i want to show according to the user entered with Roles.
    How to Configure these roles in Resource Grants and what should be done in login action..
    For me the page now going forward, it remains in the login page itself
    How to do that ?
    thanks,
    Gopinath

    Hi..
    try out following sample
    http://andrejusb.blogspot.com/2011/05/oracle-webcenter-11g-ps3-adf-security.htmlalso check this >http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html

  • PrintIsolationHost.exe process show more processes that users

    On my W2K8 R2 Terminal Server which runs Xenapp 6.5 the printisolationhost.exe shows more processes than users logged in and shows memory consumption.  The user that has the process is SYSTEM. Anyway to have this process stop, release the memory or
    am I stuck with it till a reboot. Also, is there a way to prevent this from occurring in the future?
    Is this what's considered a memory leak?

    Hi,
    Thank you for your posting in Windows Server Forum.
    Please check below article which defines the solution related to some registry key.
    Windows 7 / Windows Server 2008 R2: Print Driver Isolation
    https://blogs.technet.com/b/askperf/archive/2009/10/08/windows-7-windows-server-2008-r2-print-driver-isolation.aspx
    Hope it helps! 
    Thanks,
    Dharmesh

  • Hide or show column from a report region based on user logged in

    Hi,
    I have this criteria, where I need to display a column on a report page but depends on the users logged in ( APP_User).
    On the field(column page) there is the Conditional Display option
    Conditional Display
    Condition Type: I choose the option where "item value in Expression 1 = expression 1
    *Expression 1*
    App_USER
    *Expression 2*
    I need to add 4 user names here that they allowed to view that column
    My question is how to list the names in expression 2 field, it worked when I added one name, but when I listed 4 names separated by comma, it didn't work.
    I appreciate any help or any solutions from you.
    Thank you.
    Sofia

    If you use "Text in Expression 1 is contained in the Value of Expression 2" then you can provide a comma-separated list. The only thing to watch out for is if you have a user "Bob" and a user "Bob Smith" then you will get a match on "Bob Smith" for the user "Bob"

  • How to show specific data for user on redirected page once they logged in

    I and fairly new, but have a general understanding of Dreamweaver. Using CS3 or CS4, how do you get the redirected page after the user logges in to show only the data for that user? I have creater the login page and it works fine but i dont know what needs to be on the redirected page for it to show only the data for the user that just logged in.
    I am not very good with the coding part so if it requires it any help with that would also be helpful.
    thank all.

    I should be able to get the understanding if explained.
    As for scripting i believe its PHP. at lease thats the page i created the login page with.
    As for user-specific information: basiclly there account information.
    As for database i have dreamweaver linked to a MySQL database. it pulls from 2) tables
    1st table has the following: ID - User Names - Password  - account number
    2nd table has the following: ID - account number - names - address - ect
    So basiclly i want when a user loges in for it to redirect them to a page which then only shows the data for that users. if i can link the data the pulls up by the account number that would be ideal
    Thank you Murry

  • How to show all user logged in/loggout in Report

    How to display All User Logged in time & Logout Time?
    Hi..
    I want to display All user in Portlet a report that show us all user that logged in the portal,
    their username,
    their time logged in,
    their time logged out..
    where can i find these information?
    do Portal have already something like this?
    Plz advise..Thanks.

    Thanks Sharmila for answering my question..
    Similar question i want to ask..
    I look at the table, and view it's data...
    Mmm..some i don't recognize...
    Actually, i just want to grep
    1)The UserId of the user who logged in the portal
    2)The time he logged in the portal
    3)the time he log out the portal
    That's all..
    How can i do that?..
    I plan to create one table to store the data, and plan to grab the data by jsp....
    What are the table/function/api that can i use and how?
    Plz advise.
    Thanks

  • Dynamically show/hide pages in a workset for special users at runtime

    Hi all,
    I want to create a workset that contains pages for different countries. The portal users should only be able to see the countries where they do business. I also would like masterdata from R/3 to drive the display of content on the portal.
    - Is there a way how I could dynamically show/hide certain pages of the workset for the specific users?
    - Would this showing/hiding of pages affect the workset for all users or only the instance for the specific user?
    - Would there be a difference when I want to dynamically show/hide iviews in a page instead of showing/hiding pages in a workset?
    Thanks a lot in advance.

    Hi Timo,
    Check out the article located at:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/portal_content/filtering role and workset content.htm
    It talks to exactly what you're trying to do.  I'd imagine you could extend this simplistic example to have the service pull the users country from his/her master record in R/3 and set their filtering expression accordingly.
    Hope this helps,
    Marty

  • How to hide a tab? register tab should not apper after user logs in

    Hi,
    In our portal, we enabled self registration with custom registration page. We wrote a portlet for registraion and added registration page a tab on the portal page.
    But after a user registers and logs in, we don't want to show the registration tab.
    If you have any idea on this, please let me know.
    Thanks,
    Sasi Bhushan.

    Hi,
    After registration, users will be redirected to login page.
    When users log in with userid/password, we need to take them to the home page of the portal. In our case, we gave a tab for "home" just like we gave for registration.
    So, users should be on the home tab of the portal and now, users should not see registration tab.
    This is the requirement.
    Thanks,
    Sasi Bhushan

  • Showing/Hiding Dashboard Prompts dynamically based on User logged on

    Hi
    I have query reg a showing/hiding dashboard prompts based on Users logged in.
    What is the best way???
    Please help
    And also anothe quick question
    Is there a way that we can change the Label of Dashboard prompt "ABC" for few users and "DEF" for other users
    Thanks in advance
    Cheers

    Hello,
    Using guided navigation properties for section, we can achieve your first requirement.
    How many prompts to be shown?
    depends on that number, you have to create those many reports in answers like,
    take one column to criteria and change functionaityt to case when 1=0 then Markets. Region else user() end
    apply filter on this equals to UserA (for userA), say ReportA
    for UserB filter has to change to UserB, say ReportB...etc
    Now, add all the prompts to dashboard, but each section (dashboard object) for each prompt.
    Go to section properties of each and select guided navigation property. The section which is holding the PromptA (should be shown to userA) then browse the reportA for guided navigation and click ok
    LIke this do for all prompts.
    Hope you understood...
    if any queries ask me..
    And for 2nd Q, in prompt, you have Select captio option which is the last option for all prompts,
    Write something there and check

  • Hide portlet login after user logged-on

    Hi all,
    I've seen many post with the issue to hide a portlet but i didn't find a answer that help me.
    After user logged in, I want to hide the login portlet.
    I've tried a backing file, with the setVisible() method on the object PortletBackingContext in the preRender method but it didn't work.
    Can someone help me ? Is is something possible to hide dynamically a portlet or i must use another way to do it ?
    Thanks all for any answer.

    Use entitlements. Login to the portaladmin tool and navigate the library tab on the left column. Find the login portlet and click on it. On the right, click the entitlements tab.
    Entitle the view capability of the portlet to the "Anonymous" user role. This way, only anonymous users (users who are not logged in) will see this portlet.
    In the same way, if you have a User Info portlet that you should see only once you are logged in, entitle it to the "Authenticated" user role.

  • In Address Book, any way to Show/Hide groups from view in the "ALL" view?

    I have groups of contacts in Address Book (v4.0.4) that I plan to use in the future, but right now having to wade through and past all of their individual entries when I am scanning my contact list in the "All" group view. Is there any way to Show/Hide these sub-groups with a visibility check-box? The sub-group name would still be there in the group list (to remind me that it exists and make it visible if desired), but I would have a lot less clutter and scrolling the rest of the time.
    I know I can export groups in vCard format and re-import later, but a lot of my original custom fields for the contacts are lost in the process. Is there a 3rd-party plug-in? (Apple, are you working on something like this?)

    Hi Mike, My Address Book app is behaving correctly (maybe I'm not).
    I'm just saying there are times when I want to see "most" of my total collection of contacts, maybe just for the purpose of creating new groups at particular time and want to see at one time the pool of contacts I have to choose from. There are groups that I very seldom need to use, so it would be a way of putting those groups (and their contacts) into "cold storage."
    I also may want to do searches from among most of my contacts, but also I may want to eliminate certain other particular groups from that search pool. That is the reason for wanting to do the "Show/Hide" thing. It is a way of displaying a logical "ALL" minus "SOME", which is the basically same thing as displaying the logical "UNION" of more than one group of contacts at one time. Can this be done?
    Is there a way to open alternate address books, from within the same Address Book app (and logged in as the same user)? That would allow me to truly isolate my work list from my home list.
    One answer to this occurs to me: I could create different log-ins on my PowerBook, and build the different variants of the Address Book I might want into each login and use Fast User Switching to get into each list of contacts. That seems like a lot of extra work . . . and logging in. Any suggestions?
    Scott

  • Robo v9 Show/Hide without Twisties - One button no longer working

    Hey there, as stated I am using Robo v9 with Show/Hide without Twisties (One button) with javascipts.  We have most of our images using DHTML drop-downs and when folks click on "Show All Images" on the page, the GIF changes to "Hide All Images" and all drop-downs (our images) and expanding text are diaplayed.
    It had been working all the time, but now it only works when I right click the topic in the TOC and choose "Edit Topic", then while in the Edit Window (Display view), when I do a View (Ctrl-W) and it displays the page within RoboHelp..I can click the "Show All Images" and it works like it always had.  BUT, if that page is not in the Edit Window, and I right click "Preview Topic", the click "Show All Images" (or on the DHTML dropdown itself) it will NOT show the images, *but the GIF image does properly toggle to "Hide All Images" (and if I do again, then it properly toggles to the "Show All Images" GIF, if I do it again), but now NO images are getting displayed for some reason.  It also NEVER works properly when I publish to our website (even when clicking the DHTML dropdown itself), but the GIF images toggle properly.
    If I right click and choose "Preview Topic" and click "View With" and use Internet Explorer 8 it still never works anymore, unless the topic is in the Edit Window (Display View), so I know the issue is not on the server.  It stops working after I do a generate and run on my pc.  Also when I view it IE8 within Robo (and Allow the Blocked Content to run the scripts), many instances of the same error is shown as:
    Message: Access is denied. 
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    ...but I *do* have access to the folder system, but in checking the coding of the ehlpdhtm.js, that area show, where I believe line 2646, character 3 starts at the "values = getAttribute(element, prop );" line below...but maybe something does not exist:
    ==
      //End HTML code invoked function
    function InitEffect( element, prop )
    var values = null;
    if( getAttribute(element,prop)) 
      values = getAttribute(element, prop );
    else if( getAttribute( element, "currentStyle" )  && element.currentStyle.getAttribute)
      values = element.currentStyle.getAttribute( prop );
    else  if (element.style.getAttribute)
      values = element.style.getAttribute( prop );
    if( !values )
      return;
    var functions = new Array();
    ==
    I have a much older backup when restored, it all works properly again in all cases, but I have done so much work since then that I think would need to be manually redone.  I have played with keeping those some javascipts alone (in case I changed something) and updated the rest of the data files I had added, deleted the .CPD file, but it somehow stops working again, probably with some updated file.  I am not sure what specific files could be causing the negative impact that is preventing it from working.  Maybe if I knew what files could impact, I couldrestore those from my old backup.  The newer backups when restored do not work properly, so there was a point in time where something changed and is causing this.
    All prior versions of RoboHelp (v7 and v8) have always worked and still do.  I am using v9.0.1.262, as the latest version has not yet been allowed on our pcs (per security), but since my earlier backup works, I thought it may not be the issue, but wanted to tell you anyway.  ;->
    Any ideas on how I should proceed?  What files may have impact to cause it not to work anymore?  The showhide.js is the only .js to show up as a baggage file.  Also, the DHTML line does exits in each html page's code, as we are still using Robo v7 as the production software and the Show/Hide always works, and I copy them into the respective Robo v9 folders (and if new, then I copy them, then import them), otherwise the newer v7 updated pages are copied over the older v9 html files while RoboHelp is closed.
    Thanks in advance for any info you can provide!

    I may have figured out what to fix to get v9 back to working on the Show/Hide button, but not the "why?" .
    It looks to all be dealing with the Robo automatic html coding of where to locate the .js file(s)...here is a quick overview of this issue and what I did.  When I view the non-working pages within Internet Explorer 8 within Robo (and Allow the Blocked Content to run the scripts), I saw many instances of the same error is shown as this in the log, which implied since I *do* have access rights, maybe the file was just not being found.
    Message: Access is denied.
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    OK, here are my findings.  EXAMPLE #1 and EXAMPLE #2 below are excerpts of the same file.  EXAMPLE #1 is from Robo v7 and is copied to the v9 folder after it was updated so our soon to be "production" webhelp will be from Robo v9 (instead of making the same manual updates in Robo v9 as in Robo v7, I copy the updated the .html file to the Robo v9 file system).  Note the direction of the directory slashes of the java scripts listed below, as they are all DOS type slashes (back slashes), EXCEPT for ehlpdhtm.js as it is the ONLY one using UNIX (forward) slashes.
    EXAMPLE #1 (from Robo v7)
    ==
    <link rel="StyleSheet" href="..\..\sty-std-topic.css">
    <script type="text/javascript" language=JavaScript x-save-method=compute-relative
    src="..\..\showhide.js"></script>
    </head>
    <body>
    <robohelp><script type="text/javascript" language=JavaScript1.2 src="../../ehlpdhtm.js"
    x-save-method=compute-relative></script>
    <script type="text/javascript" language=JavaScript1.2>
    <!--
    if( typeof( InitEffects ) != 'function' ) InitEffects = new Function();if( typeof( InitTrigger ) != 'function' ) InitTrigger = new Function();if( typeof( FilePopupInit ) != 'function' ) FilePopupInit = new Function();if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
    //-->
    </script>
    ==
    EXAMPLE #2(from Robo v9)
    This is from the restored backup of the Robo v9 files that always work when I restore them, and note they are ALL UNIX (forward) slashes.  These backup files were generated from Importing/Upgrading a copy of the Robo v7 files into Robo v9.
    ++
    <title>[Endpoint Protection] Symantec Overview</title>
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ++
    Additional info: The following is from another file from the Robo v9 backup files that always WORK and once again they are ALL UNIX (forward) slashes. 
    ~~
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ~~
    BUT since all .js files are referenced in EXAMPLE #1 have DOS slashes (back slashes), EXCEPT for the ehlpdhtm.js, I decided to change the line in ehlpdhtm.js FROM src="../../ehlpdhtm.js" TO src="..\..\ehlpdhtm.js" and IT (this one page) BEGAN WORKING AGAIN after I published.  So having all DOS back slashes DOES work in Robo v9!!!!  BUT it appears that Robo v9 only generates new pages using UNIX (forward) slashes in ALL coding.  I've read about issues like this occurring with the FireFox browser, but we only use IE8, and have not read anything like this related to IE8 issues. 
    So if all UNIX forward slashes and all DOS back slashes can work in Robo v9 in finding and using ehlpdhtm.js, (the Show/Hide buttons function properly) why is this problem existing in Robo v9 when there are mixed "slashes" (using forward and backward)?  ...and the mixed slashes ALWAYS works in Robo v7!  They do not have to all be in the same direction in Robo v7 as it appears to have to be in the newer/more advanced Robo v9.  Why does it matter that all slashes need to be all the same direction, if Robo v9 CAN actually read and figure out the DOS back slashes (formatted by Robo v7 creation) and actually generates UNIX forward slashes for the .js files in new Robo v9 output within the .html?
    More importantly will I have to always do a Global search and replace in Robo v9 to change the direction of the "back slashes" when I copy updated Robo v7 .html files into the Robo v9 folders (instead of manually reworking each change), while in transition from v7 to v9?
    Thanks in advance any information, recommendations, and feedback as your time is greatly appreciated!

  • Is there a way to show / hide email campaign newsletter opt-in form based on current opt-in status?

    We have a secure zone with email campaign opt-in as both a part of the registration form and as a stand alone form for users logged into the secure zone.
    We want to only show the opt-in form to users who are not already registered for the campaign, but cannot find a way to do this via modules / tags / liquid / API.
    I have searched the forums and cannot believe this is not possible. If not possible, it should be put on the list of development requests.
    Is this possible and if not, any suggestions?
    The best workaround I can think of is to use a CRM field to track campaign opt-in status and then js/css or liquid to show / hide the form.
    Thanks.

    You won't be able to have a page showing 24 charts per host.
    I really think that it is a bad idea to create a group per host, just to have the ability to add many charts.
    The maintenance effort will be a big penalty.
    Regards
    Rob

  • Show/Hide tabs in a report using profiles

    Hi,
       There is a need to show hide/show tabs based on User Profile or any other method.
       There are 1. Summary  2. Detailed Tab in report.
       For data analysts client want to show Detailed tab so that Analysts can work on Analysis.  Managers shoud be able to see only Summary tab.
      This is required to reduce no of modificatiosn required for reprots. This helsp to avoid prolifiration of reports as well.
      Pleas help on techniques/ tools to get this requirement at the earliest.
    Regards,
    Nanda Kishore B

    Hi Nanda,
    I do not think this functionality is currently available in WebI.
    However you could break these report tabs into two different reports and using access privilges make these two reports available to the concerned team.
    You can log a request at https://ideas.sap.com to directly work with the product group to check if this exact functinality could be included or not.
    Hope this helps.
    Regards,
    Manpreet

  • Buttons: show/hide feature

    Hi,
    I thing I know what the answer to my question will be, but I'm hoping that one of you InDesign gurus out there can provide me with a different answer to my question.
    I'm putting together an interactive PDF of a directory of helpful links related to different topics. The topics are buttons that the user will click on that will display off to the side a list of links and their titles that can be either clicked on (hyperlink) or copied and pasted to an email. I've created the list of links as separate objects and to display each of these objects, I've converted them to buttons and used the Show/Hide buttons feature on the topic buttons so that when a topic button is clicked on, it will display that list of links to that topic. It works fine, but of course, now that the link lists are buttons, they can't be copied and worse yet, can't be clicked on to access the web page from that link. Obviously, by converting my link lists to buttons so that they can be displayed when the topic button is clicked, I've lost the capability of the link list to do what it was supposed to do.
    The obvious solution would be to use object states, so that I maintain the original function of the link list for copying and accessing the web page of the link, but my reason for not using object states is that I don't want the output in a SWF file, which is the only way to use object states. Another solution would be to use separate pages to display each topic link list, but my concern about that is possible increase in overall file size if I have so many pages. Finally, I noticed that Adobe Acrabat has a show/hide layers feature that might work for my purpose, but I like the button creation of InDesign better.
    Is there any other way to accomplish what I want done other than the above solutions, or am I just going to have to settle for one those solutions?
    Any help would be greatly appreciated.

    I assume that you're talking about Show-Hide Fields in an interactive PDF. It's not likely that it will work given the limitations of most PDF readers on mobile devices.
    I'm a user of an iPad and iPhone, and haven't worked with Android or Windows devices but I think the issues are the same on all platforms. Some PDF readers are better than others. You didn't say what PDF reader you were testing on.
    Here are two articles I've written about the frustrations of getting interactivity to work on mobile devices, in this case, an iPad:
    http://indesignsecrets.com/for-interactive-pdf-not-all-readers-are-equal.php
    http://indesignsecrets.com/navigation-button-tricks-for-interactive-pdf-on-an-ipad.php
    The best PDF reader for iOS devices is PDF Expert, but I don't believe that exists for Android or Windows devices. I can view interactivity that Adobe Reader doesn't support.

Maybe you are looking for

  • Error report apon open of iTunes???

    Recently, well not recently but one day I was using my iTunes it was working fine and a new version thing poped up so I decided to get it, after I installed it an error report popped up "Debug" "Send Error Report" "Don't Send" I don't know why this i

  • How can I use my french Iphone in Thailand?

    Last June, I bought an Iphone in France with Bouygues operator. As I have to leave for Thailand, I ask them to unlock my Iphone, I had to paid 70 euros for it. They asked me to wait about 1 week. I am now in Thailand. Yesterday, I plugged the Iphone

  • Help with : HowTO: After Ts finished - All updates incl. office etc. deployed.

    Hi all I've been tasked with the following.. When a client PC finished deployment of Windows 7, we need all updates to have finished deploying.  Meaning.. after TS completed no more updates should be required.  Today.. when a client PC finishes we ha

  • PO Stylesheet How to remove space between two tables

    Hi I am building a rtf template for PO output for communication report in r12,there is a terms and conditions part and total amount part which comes at bottom of every page of the report. I have created that as a template and i call it in the footer.

  • Problem in date format in purchase order printout

    Hello Experts, We have problem in date format of some Purchase Order  in printout, the format of PO document date and delivery date are customized for example  PO document date Mar 02, 2011 and Delivery date Mar 15, 2011. In printout it shows: PO doc