The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Links only visible to Admin

4 posters

Go down

In progress Links only visible to Admin

Post by DesignersSociety April 7th 2013, 5:16 am

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>

DesignersSociety
DesignersSociety
Forumember

Female Posts : 146
Reputation : 3
Language : english

http://designerssociety.betaboard.net

Back to top Go down

In progress Re: Links only visible to Admin

Post by SLGray April 7th 2013, 7:17 am

There should be an option for who can view it: administrators, moderators, members, or guests. There should be a permission image on the widget.


Links only visible to Admin Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Links only visible to Admin

Post by DesignersSociety April 7th 2013, 8:00 am

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?
DesignersSociety
DesignersSociety
Forumember

Female Posts : 146
Reputation : 3
Language : english

http://designerssociety.betaboard.net

Back to top Go down

In progress Re: Links only visible to Admin

Post by Sanket April 7th 2013, 10:06 am

Not really.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Links only visible to Admin

Post by DesignersSociety April 10th 2013, 5:15 am

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

Female Posts : 146
Reputation : 3
Language : english

http://designerssociety.betaboard.net

Back to top Go down

In progress Re: Links only visible to Admin

Post by kirk April 10th 2013, 8:08 am

DesignersSociety wrote: So I believe that if people think hard enough there are loop holes or ways to do things

Sweet Razz i like that positive thinking thumright

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 Smile

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
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

In progress Re: Links only visible to Admin

Post by DesignersSociety April 11th 2013, 10:18 pm

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?
DesignersSociety
DesignersSociety
Forumember

Female Posts : 146
Reputation : 3
Language : english

http://designerssociety.betaboard.net

Back to top Go down

In progress Re: Links only visible to Admin

Post by kirk April 13th 2013, 8:45 pm

Well i am actually more confused now then i was before. Sad

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, Sad
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
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

In progress Re: Links only visible to Admin

Post by DesignersSociety April 15th 2013, 9:34 pm

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

Female Posts : 146
Reputation : 3
Language : english

http://designerssociety.betaboard.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum