Toggle logged in effect in PHP - toggle

I have built my admin options within the page so if the admin is logged in all the text boxes and images can be changed on the same page.
Is it possible to add a link so when clicked it will toggle the effect of being logged in and logged out without actually logging out?
Any help or ideas would be much appreciated.

ok,sorry for late update,
to solve the problem i used jquery
created divs to go around all admin options and then just used the toggle option to show and hide them when admin click on the "show admin" option

Related

How to display My Account portlet as a popup?

I want the My Account portlet to open as a popup on the click of a link.
This popup should show the left panel(i.e My Submissions,Workflow etc.) only for the admin.
So that rules out making changes in the portal-ext.properties file.
A normal user should be able to view the center portion(i.e. fields with the user info) only.
How do i go about this?
It has been already implemented in liferay, when you get loggedIn then click over the username in docbar it will open the user account page in pop-up,check it's implementation

edit article from front page for registered user

I am trying to implement for a registered user to edit an article from front-end section of joomla 1.5. Is it possible? if so how can I proceed. I am new in joomla.
Thanks in advance.
There are two things you have to do. First you have to make sure that you have the correct user permissions set up. Go to your /administrator page and go to the user menu. There are a list of permissions in there - should be self explanatory.
The second thing you need to do is enable editing articles. Again, go to your administrator page and click the content menu. On the tool bar there is an 'options' button. Click that and there is an 'edit'tab. Enable all the options.
Now when the user logs into the front end, there will be a small 'edit article' icon on the article, but only if they have permission to edit it. If you find this icon isn't there, double check the user permissions.

restoring view's counter

I have an additional page called "precious feet" and when I first set it up I could view the amount of visits it got, however now it won't show this information, it also gives me the option to "like" which it never did before and I assume that is because it is my page and of course I will like it. Can anybody help me restore the functions. I have tried logging out and back in again but to no avail.
It sounds like you aren't the page admin anymore or you have a group not a page. Try clicking on the down arrow on the top right and under "Use Facebook as:" select your page. If it isn't there then it's likely you are no longer a page admin.

SugarCRM removing initial welcome and information entry screen for new users

When user initially signs in, they are presented with many Sugar advertisements and information screens to fill out.
Can we configure out this not to show the user and directly go to home screen.
The similar question is posted in SugarCRM forums also but no response.
http://www.sugarcrm.com/forums/showthread.php?t=69735
There is a check box on the "Create User" screen "User Wizard Prompt:" uncheck this.

Facebook page: How to add a customized box at the bottom left side of wall tab?

Dear all, I have a question about Facebook Page: (NOT user profile page, I mean a facebook page where you can become a fan)
How to add a customized box at the bottom left side of wall tab?
(I am the page creator/admin)
Please don't just give an answer "add the box to the page". Cause I really don't know how.
Also, it seems that putting $facebook->api_client->profile_setFBML and $facebook->api_client->profile_setInfo for the application won't provide a way for the page to add the box.
Below is an example image that is done by the other. I have circled the box at the image. I would like to know how to do the same to the page that I owned. Many thanks for reading.
alt text http://design.outblaze.com/calvin/facebook/facebookPageBoxQ.jpg
$facebook->api_client->profile_setFBML
is absolutely correct afair. Go to the App Page and Add the App to your Fan Page. It will most properbly appear in the Boxes Tab.
// get the fbml for the box
$main_box = $this->render();
// the first main_box is actually deprecated feel free not to use it
$this->facebook->api_client->profile_setFBML($main_box, PAGE_ID, $main_box, NULL, $main_box, $main_box);
// for easier workflow forward the user directly to the page
$this->facebook->redirect(PAGE_URL);
But as said by others in this thread in 90% of the cases the Static FBML App by Facebook does the job.
Unreality's answer helped me best but one clarification is needed. These boxes can be added only to "Pages" that you have admin rights to. You cannot add one of these boxes to your profile page from what I can see. (Anybody? Prove me wrong, please!)
You write an application that has a box. You add the box to the page, then move the box to the page's wall.
For example, I moved the Notes box on my app's page to my wall so you could see it:
http://www.facebook.com/apps/application.php?id=96193636102
Update, with more info:
In general, the way you do this is you add a function to your app that creates a block of fbml and passes it to setFBML(), using your page's ID instead of a user ID as the destination.
I'm planning to do this myself to add some summary statistics to my app's profile page, but that has to wait til after working hours.
I have found the answer. It's using the static fbml made from facebook
http://www.facebook.com/apps/application.php?id=4949752878&ref=s
Go there, click "add to my page", and pick your page.
Then goto your own page, and click "Edit page", then you will find FBML under the applications.
Click the pencil at the FBML box top right, select edit.
Then at the edit page, just write something up and save the changes
Next go back to your own page. Goto the "Boxes" tab, you will find the FBML box that you have just made.
Click the pencil button at the FBML box, select "Move to Wall Tab", and then done! Happy FaceBooking!
As far as I understand the profile boxes will be removed soon.