Links only visible to Admin
4 posters
Page 1 of 1
Links only visible to Admin
Is there any coding to make it so a specific link is only view-able by the admins? I've been trying to make a widget that is admin only but when I try adding the div to view a picture page, it shows up for everyone. What I want is to make a direct link to images that only I can use for sending purposes. Here is what I have so far but like I said, showed up for everyone anyway...
In Widget viewable only by Admin:
<style type="text/css">
#float_bottom_save {
position: fixed;
z-index: 50;
top: 200px;
right: 50px;
clip: inherit;
}
#close {
position: absolute;
top: 0px;
right: 0px;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript">
$(function() {
$('#close').click(function() {
$('#float_bottom_left').remove();
});
});
</script>
In the coding for the View an Image Page:
<div id="float_bottom_save">
<a href="{U_PIC}">Get</a>
</div>
In Widget viewable only by Admin:
<style type="text/css">
#float_bottom_save {
position: fixed;
z-index: 50;
top: 200px;
right: 50px;
clip: inherit;
}
#close {
position: absolute;
top: 0px;
right: 0px;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript">
$(function() {
$('#close').click(function() {
$('#float_bottom_left').remove();
});
});
</script>
In the coding for the View an Image Page:
<div id="float_bottom_save">
<a href="{U_PIC}">Get</a>
</div>
Re: Links only visible to Admin
There should be an option for who can view it: administrators, moderators, members, or guests. There should be a permission image on the widget.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Links only visible to Admin
I know, I did this already and checked only Admin, I said this already. Is there another code or way to do this on my own?
Re: Links only visible to Admin
Not really.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Links only visible to Admin
Well I was told I couldn't even do a lot of things that I've managed to do. So I believe that if people think hard enough there are loop holes or ways to do things so if anyone can help, please.
Re: Links only visible to Admin
DesignersSociety wrote: So I believe that if people think hard enough there are loop holes or ways to do things
Sweet i like that positive thinking
The only way i see only admins being able to do this, is to either have a forum set up for admins only
or to set the widget permissions only for admins. i mean where exactly are these images/links supposed to be?
If it is something for admins to only see then you should just post whatever it is in a admin office. Unless you wanted to do the admin widget, I know what your saying but forumotion dose not have the options to set it this way. even with scripts. you only going to be able to do/use features on how forumotion is set up.
meaning if there is no way to only allow admins to view content in certain forums/post/threads while others can not? unless they have no permissions to view the post/thread? Like? Many boards such as phpbb V-Bulletin and other forums software do indeed have options for admins and staff to use hide tags to set permissions or even points systems of who can view the content in any giving post ,thread,or other sections. But at this time forumotion has nothing of the sort and you basically just have to narrow it down to a admin office and or widget once again.
may be if you can explain a little more of exactly what you are using it for and trying to do, we may be able to come up with a couple alternatives that you might be able to do? And like you said, who knows there may be away for someone to write a script to allow this? never say never. but thats way beyond me. Java scripts is defiantly not my strong point, but learn as you go along as well.
What is your script supposed to do? If it is content you want to place in a widget only for admins to see, then you don't need any scripts, all you need to do is just set the permissions for admin, and admins can add any content to it through the acp widgets management.
Once again i am not sure what the script is supposed to do. So try to explain a lil more about that and what your overall purpose is for and we will do our best to try to come up with some sort of solution or alternative
info added
Yeah i don't know what this script is supposed to do?
when i set up the widget set to admin.. it makes the widget disappear and i see the GET floating top right of the page, and that can be adjusted to where you want it to show, but what is it supposed to be getting, when i click it all it dose is a redirect back to the forum home page?
and do you know if this script is supposed to be in <head> and <body> tags, i tested that too, and when it is then you do see the widget, but nothing in it, just the title of the widget.. i named it admin as test and permissions set to admin only?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Links only visible to Admin
Thank you, What I'm trying to do is setup on each gallery image, either a link to the direct image or the direct image url. Now I already found a way to do this and works with each individual image in the gallery for that specific one. I put this in using the Admin Panel for Display> Gallery> album_showpage_body
<div id="float_bottom_save">
<a href="{U_PIC}">Get</a>
</div>
Basically I tried to connect it by making a forum widget that's checked for All Pages and set to Admin Only like this
<style type="text/css">
#float_bottom_save {
position: fixed;
z-index: 50;
top: 200px;
right: 50px;
clip: inherit;
}
</style>
Now what happens is I'm not sure that it connects right for some reason. The link shows and says Get which when clicked redirect to the direct image. Only problem really is when I test it signed out or using another regular user, it still shows up and the position isn't how I set in the div. I only want it to be view-able by the Admin since this is supposed to be a system where they buy the images then I get the direct image link and send to them. Is there a way you could help with this?
<div id="float_bottom_save">
<a href="{U_PIC}">Get</a>
</div>
Basically I tried to connect it by making a forum widget that's checked for All Pages and set to Admin Only like this
<style type="text/css">
#float_bottom_save {
position: fixed;
z-index: 50;
top: 200px;
right: 50px;
clip: inherit;
}
</style>
Now what happens is I'm not sure that it connects right for some reason. The link shows and says Get which when clicked redirect to the direct image. Only problem really is when I test it signed out or using another regular user, it still shows up and the position isn't how I set in the div. I only want it to be view-able by the Admin since this is supposed to be a system where they buy the images then I get the direct image link and send to them. Is there a way you could help with this?
Re: Links only visible to Admin
Well i am actually more confused now then i was before.
Yeah i am really not sure, i will read a few more times and see if i can understand it a little better.
Other then that may be another member or staff my know? right now i have a lot of things running through my mind but don't think it is anything that would help with what your trying to do?
Yeah i am not sure,
why not just send them the link to their pm or something? or see if you can find some coding to set up like a shopping cart sort of thing and imply it to html pages?
Are you using paypal?
http://webdesign.about.com/od/ecommerce/a/create-a-paypal-shopping-cart.htm
http://support.godaddy.com/help/category/267/quick-shopping-cart
Yeah i am really not sure, i will read a few more times and see if i can understand it a little better.
Other then that may be another member or staff my know? right now i have a lot of things running through my mind but don't think it is anything that would help with what your trying to do?
DesignersSociety wrote: this is supposed to be a system where they buy the images then I get the direct image link and send to them.
Yeah i am not sure,
why not just send them the link to their pm or something? or see if you can find some coding to set up like a shopping cart sort of thing and imply it to html pages?
Are you using paypal?
http://webdesign.about.com/od/ecommerce/a/create-a-paypal-shopping-cart.htm
http://support.godaddy.com/help/category/267/quick-shopping-cart
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Links only visible to Admin
I just want an easier way to me to get the link to send them(which i send in a PM) It doesn't use paypal or anything its just a fake shop using points.
Similar topics
» admin forum visible to admin + mods only
» Links not visible for guests?
» Links only visible to admins
» How can i visible my admin group
» Hashtags & Mentions - Links Not Visible To Guests
» Links not visible for guests?
» Links only visible to admins
» How can i visible my admin group
» Hashtags & Mentions - Links Not Visible To Guests
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum