rejetto forum

links only visible to some people

ixil · 15 · 18065

0 Members and 1 Guest are viewing this topic.

Offline ixil

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
is there a way to make links some users(from the default hfs user groups) can see but others cant


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
Is it a link in the VFS or a line you added to the template?


Offline ixil

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
Is it a link in the VFS or a line you added to the template?
its in my own custom template on a .html page


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
Then you can put something like

Code: [Select]
{.if|{.=|%user%|user1.}{.=|%user%|user2.}{.=|%user%|user3.}|
<a href="/page/">mylink</a>
.}

That would tell HFS to only send out the link for those users.


EDIT:  Since that contains macros it must be in a section in HFS's template, it cannot be in a .html page you added to the VFS.  If that's the case then conversion is quite easy, just copy the content from page.html to a section called [page] in the template and then your new URL will be /~page rather than /page.html
« Last Edit: August 10, 2011, 01:48:12 AM by raybob95 »


Offline ixil

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
EDIT:  Since that contains macros it must be in a section in HFS's template, it cannot be in a .html page you added to the VFS.  If that's the case then conversion is quite easy, just copy the content from page.html to a section called [page] in the template and then your new URL will be /~page rather than /page.html
ok i got the /~page up

Then you can put something like

Code: [Select]
{.if|{.=|%user%|user1.}{.=|%user%|user2.}{.=|%user%|user3.}|
<a href="/page/">mylink</a>
.}

That would tell HFS to only send out the link for those users.

but the code shows up as text and i cant tell what  it looks like  to others cause i never had a default log out button

also can i add multiple [page] codes or just that one so instead of /~page it will have custom message like /~home


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
If it shows up as text then you're either using HFS 2.2 (you need 2.3) or have macros disabled.

You can add as many new sections as you want to create new pages.

To log out, just restart your browser.
« Last Edit: August 10, 2011, 03:28:36 PM by raybob95 »


Offline ixil

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
If it shows up as text then you're either using HFS 2.2 (you need 2.3)

i cant work 2.3 because the home page isnt html it is a tpl

and the ~page gets displayed on the  normal page

check it: http://ridersofixil.tk/
« Last Edit: August 11, 2011, 12:48:57 AM by ixil »


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
I can't think of any situtations where running HFS 2.3 would mess up a template designed for HFS 2.2.

HFS 2.2 is unable to process macros and so the code will show up as text on your page.  Using HFS 2.3 should provide the correct result.  I checked your code and it does look like you inserted it correctly.

I suggest you backup your template, VFS, etc., and then try running HFS 2.3.  I see absolutely no reason why it should cause an issue.

EDIT:  Looking over your code a second time I see that all the template sections are also appearing on the page.... are you sure that you put them all in the main template of HFS?  If it's not private then attach your VFS/template in your next post and I'll look it over.
« Last Edit: August 11, 2011, 01:50:02 AM by raybob95 »


Offline ixil

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
um i used to have to just copy the code

Code: [Select]
<html>
<HEAD>
  <TITLE>Areas, Volumes, Surface Areas</TITLE>
</HEAD>
<BODY bgcolor=#ffffff link=#008000 vlink=#000080 text=#000000 LEFTMARGIN=0 TOPMARGIN=0>

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td style="background-color:#ffff80; color:#ffff80;">
<h1 style="font-size:130%;font-weight:normal; margin:0">
<b><a href="/home.html">Areas, Volumes, Surface Areas</a></b>
</h1>
</td></tr>

<tr><td style="background-color:#c0c0ff; font-weight:bold">
(<a href="/">Math</a>)
</td></tr>

</table>
<div style="margin:0.5em">
<A NAME="top">






<font face=Arial>
<font color=#ff0000><b>(<a href="../constants/pi.htm"><i>pi</i></a> = <img src="/math//symbols/pi-l.gif" style="vertical-align:middle; border-style:none" alt="[pi]" title="[pi]" /> = 3.141592...)</b></font>

<A NAME="areas">
<H3>Areas</H3>

<p>
square = a<sup>2</sup>
</p>

<p>
rectangle = ab
</p>

<p>
parallelogram = bh
</p>

<p>
trapezoid = h/2 (b<sub>1</sub> + b<sub>2</sub>)
</p>

<p>
circle = <i>pi</i> r<sup> 2</sup>

</p>

<p>
ellipse = <i>pi</i> r<sub>1</sub> r<sub>2</sub>
</p>

<p>
triangle = (1/2) b h

</p>

<p>
equilateral triangle = (1/4)(3)
a<sup>2</sup>
</p>

<p>
triangle given SAS = (1/2) a b sin C
</p>

<p>
triangle given a,b,c = [s(s-a)(s-b)(s-c)]
when s = (a+b+c)/2
<font color=#800000><b>(Heron's formula)</b></font>

</p>

<p>
regular polygon = (1/2) n sin(360&deg;/n) S<sup>2</sup><br>
when n = # of sides and S = length from center to a corner
</p>

<HR>


<A NAME="volumes">
<H3>Volumes</H3>

<p>
cube = a<sup>3</sup>
</p>

<p>
rectangular prism = a b c
</p>

<p>
irregular prism = <B>b</B> h>
</p>

<p>
cylinder = <B>b</B> h =  r<sup>2</sup> h
</p>

<p>

pyramid = (1/3) <B>b</B> h
</p>

<p>
cone = (1/3) <B>b</B> h = 1/3 r<sup>2</sup> h
</p>

<p>
sphere = (4/3) r<sup>3</sup>
</p>

<p>
ellipsoid = (4/3) <i>pi</i> r<sub>1</sub> r<sub>2</sub> r<sub>3</sub>
</p>

<HR>

<A NAME="surfaces">
<H3>Surface Areas</H3>

<p>
cube = 6 a<sup>2</sup>
</p>


<p>

prism:<br>
&nbsp; &nbsp; (lateral area) = perimeter(<B>b</B>) L<br>
&nbsp; &nbsp; (total area) = perimeter(<B>b</B>) L
+ 2<B>b</B>
</p>

<p>
sphere = 4 r<sup>2</sup>
</p>


<p><b>Supporters:</b> <a
href="http://www.earnmydegree.com/index.html">Online Education</a> -
comprehensive directory of online education programs and college
degrees.</p>

</div>
<div>
<div>
<h3>now some ads to keep us live</h3>
<div>
<div>
<!-- Begin: AdBrite, Generated: 2009-11-02 9:55:18  -->
<script type="text/javascript">
var AdBrite_Title_Color = 'fff123';
var AdBrite_Text_Color = 'ffffff';
var AdBrite_Background_Color = '000000';
var AdBrite_Border_Color = '000000';
var AdBrite_URL_Color = 'ffffff';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1401134&zs=3330305f323530&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<!-- End: AdBrite -->

</td><td valign=top>
<!-- Begin: adBrite, Generated: 2011-05-31 15:47:10  -->
<script type="text/javascript">
var AdBrite_Title_Color = 'EEE888';
var AdBrite_Text_Color = 'FFFFFF';
var AdBrite_Background_Color = '000000';
var AdBrite_Border_Color = '000000';
var AdBrite_URL_Color = 'FFFFFF';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>

<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1404278&zs=3330305f323530&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<!-- End: adBrite --></div>
</BODY>
[page]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
y</div>[login-link]
<a href="~login" class=button><img src="/~img27" /> LOGIN</a>

[loggedin]
<span class=button><img src="/~img27" /> user: %user%</span>

[upload-link]
<a href="~upload" class=button><img src="/~img32" /> UPLOAD</a>

[up]
<a class=big href=".."><img src="/~img14" /> UP</a>

[nofiles]
<div class=big>No file</div></div>

<head>
<title>Riders Of Ixil - Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="keywords" content="clan,maplestory,runescape,minecraft,runescape,ixil,riders,world,of,warcraft,game,black,ops,online,offline,multiplayer,call,of,duty,hacks,mods">
<meta name="description" content="A free to join clan that plays any game ">
<!-- master default -->
<link ref="canonical" href="/~page"/>

<meta property="og:site_name" content="Riders Of Ixil" />
<meta property="og:title" content="Home" />

<link rel="stylesheet" type="text/css" href="http://static.websimages.com/static/global/theme/css/pluggables.css"/>
<script type="text/javascript" src="http://static.websimages.com/static/global/js/webs/usersites/webs_common.js"></script>
<script type="text/javascript" src="http://static.websimages.com/static/global/js/webs/websover.min.js"></script><link id="templatebase" rel="stylesheet" type="text/css" media="screen" href="http://static.websimages.com/static/global/css/templatebase.css">
<link id="fw_template_file" rel="stylesheet" type="text/css" href="http://ridersofixil.webs.com/.design.css?r=990" media="screen">
<script type="text/javascript">

</script><script>if(typeof(webs)==='undefined'){webs={page:{id:237119022}}}else if(typeof(webs.page)==='undefined'){webs.page={id:237119022}}else if(typeof(webs.page.id)==='undefinded'){webs.page.id=237119022}</script>
<meta name="fw:category" content="-1">

<link rel="stylesheet" type="text/css" href="http://images.freewebs.com/Members/Generationz/Standard/PrintCSS/print.css" media="print">
</head>
<body class="hasOneColumn noSidebar navtype-Left translate-en" >

<script type="text/javascript" src="http://static.websimages.com/JS/fw.js"></script>
<!--
{NavHeaderFormat}
<li class="fw-navheader">{NavHeader}</li>
{/NavHeaderFormat}



-->




<div id="fw-container">
<div id="fw-head">
<h1 id="fw-title"><a id="fw-titlelink" href="/~page">Riders Of Ixil</a></h1>
<h2 id="fw-smalltitle">We in Riders of Ixil do not encourage or discourage modding or botting, and we play any game alone or together.</h2>
<div id="logo-div" class="fw-logo"></div>

</div>


<div id="fw-blockContainer">
<div id="fw-mainnavwrap">
<div id="fw-nav-menu">
<ul class="fw-nav-level-0">
<b><p>Some stuff for the normal users</p></b>
<li><a class="section fw-current-nav-link" href="/home.html" >Home</a></li>
<li><a class="section fw-class-c176063d27e0c19c549e97d62d1a2dea" href="/rules.html" >Rules</a></li>
<li><a class="section fw-class-c176063d27e0c19c549e97d62d1a2dea" href="/videos.html" >Videos</a></li>
<li><a class="section fw-class-a311741c001afef287b084600c34e5b5" href="/chatpolls.html" >chat & polls</a></li>
<li><a class="section fw-class-a311741c001afef287b084600c34e5b5" href="/contact.html" >Contact Me</a></li>
</ul><div>
</div>
{.if|{.=|%user%|hapydedman22.}{.=|%user%|admin.}|
<ul class="fw-nav-level-0">
<b><p> some stuff only admins can use</p></b>
<li><a class="section fw-class-c176063d27e0c19c549e97d62d1a2dea" href="/admin.html" >Admin Access</a></li>
.}

</ul>
</div>
</div>

<div id="fw-bigcontain">


<div id="fw-columnContainer">
<div id="fw-mainColumn">
<!-- ParagraphStart 757805301 --><div class="fw-paragraph">
<div class="fw-paragraphtop"></div>
<h3 class="fw-title"><a name="757805301"></a><!-- ParagraphTitleStart -->Riders Of Ixil opening <!-- ParagraphTitleEnd --></h3>
<div class="fw-text"><!-- ParagraphBodyStart --><p>Riders Of Ixil grand opening today</p><p>&#160;</p><!-- ParagraphBodyEnd --></div>
<div class="fw-paragraphbottom"></div>
</div><!-- ParagraphEnd 757805301 --><!-- ParagraphStart 758414115 --><div class="fw-paragraph">
<div class="fw-paragraphtop"></div>
<h3 class="fw-title"><a name="758414115"></a><!-- ParagraphTitleStart -->visit our chat <!-- ParagraphTitleEnd --></h3>
<div class="fw-text"><!-- ParagraphBodyStart --><p>please visit our chat</p><!-- ParagraphBodyEnd --></div>
<div class="fw-paragraphbottom"></div>
</div><!-- ParagraphEnd 758414115 -->
</div>
</div>
</div>

<div id="fw-sidebar">
<div id="fw-sidebarbegin"></div>

<div id="fw-sidebarend"></div>
</div>
<div class="clears">
</div>
</div>

<div id="fw-footer">
<p id="fw-foottext" class="fw-footertext">Riders of Ixil
We have no association with IXIL bikes</p>
<p><script>
<!-- var udndom = (document.location.host.indexOf('.webs.com') > 0) ? '.webs.com' : 'none'; -->
_udn = "none";
</script>

<!-- Google Website Optimizer Control Script -->
<script>
function utmx_section(){}function utmx(){}
(function(){var k='0521688706',d=document,l=d.location,c=d.cookie;function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
d.write('<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
</script>
<!-- End of Google Website Optimizer Control Script -->

<script>utmx_section("Personal Footer")</script>
<script type="text/javascript">
function webURL() {
window.location = 'http://www.webs.com/?referer=wftr-' + location.host + '&utm_source=product&utm_medium=userSite&utm_term=free&utm_content=personal&utm_campaign=footer'
}
</script>
</a>
</p>

</noscript>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

<script type="text/javascript">
if(typeof(_gaq) == 'undefined') {
try {
var pageTracker = _gat._getTracker("UA-230305-2");
pageTracker._setDomainName("none");
pageTracker._setAllowHash(false);
pageTracker._setAllowLinker(true);
pageTracker._trackPageview();
} catch(err) {}
}
</script>

<!-- Google Website Optimizer Tracking Script -->
<script type="text/javascript">
if(typeof(_gat)!='object')document.write('<sc'+'ript src="http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com/ga.js"></sc'+'ript>')
</script>
<script type="text/javascript">
try {
var gwoTracker=_gat._getTracker("UA-230305-28");
gwoTracker._setDomainName("none");
gwoTracker._trackPageview("/0521688706/test");
}catch(err){}
</script>
<!-- End of Google Website Optimizer Tracking Script -->
<script>var _nwls=[];if(window.jQuery&&window.jQuery.find){_nwls=jQuery.find(".fw_link_newWindow");}else{if(document.getElementsByClassName){_nwls=document.getElementsByClassName("fw_link_newWindow");}else{if(document.querySelectorAll){_nwls=document.querySelectorAll(".fw_link_newWindow");}else{document.write('<scr'+'ipt src="http://static.websimages.com/static/global/js/sizzle/sizzle.min.js"><\/scr'+'ipt>');if(window.Sizzle){_nwls=Sizzle(".fw_link_newWindow");}}}}var numlinks=_nwls.length;for(var i=0;i<numlinks;i++){_nwls[i].target="_blank";}</script></p>
</div>
</div>

<!--[if IE 6]>
<script type="text/javascript" src="http://images.webs.com/static/global/js/webs/usersites/ie6subnav.js"></script>
<![endif]-->
<!-- --><script type="text/javascript" src="http://images.webs.com/static/global/js/webs/usersites/escort.js"></script><script type="text/javascript">if(typeof(urchinTracker)=='function'){_uacct="UA-230305-2";_udn="none";_uff=false;urchinTracker();}</script></body>
</html>
<!-- lappserver29 -->

<!-- [SB] PageID 237119022-->
<!-- null -->
[/page]
</html>

to have the ~page and the main (decoy) page

This link has been removed by user request

here is my vfs and i am running 2.3 thats when it messed up and what do you mean by

Quote
Looking over your code a second time I see that all the template sections are also appearing on the page.... are you sure that you put them all in the main template of HFS?

sorry im rather new to the html thing and im not used to it 


EDIT:i found that in the properties of the " / " folder the default file mask was using default.html as the page so i fixed that
« Last Edit: August 11, 2011, 10:28:44 PM by ixil »


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
The biggest issue I see (and probably the underlying one) is that you cannot use template sections in the 'diff template' part of your VFS.  Whatever you put in that box is for that page only.  To add more template sections, they need to go into the actual hfs.tpl file (Go to Menu --> HTML Template --> Edit).  The content of the main page but the sections in there such as [home] and [mason] need to go in the actual HFS template.

That is incorrect.  I tested it the way you have it and it works although I did not know you could do that and it doesn't work on my template for some reason...  Maybe you could try putting your root diff template into HFS's actual template file and see how it goes.

Problem 2:  HFS does not use closing tags for sections.  In your template I see you put [home] then the content and then [/home].  To HFS, that looks like you just made another section.  HFS knows to close that section when the next one begins.  It should look more like this:

[home]
content

[mason]
content



Let me know if this solves any of your issues.


EDIT:  When I put your VFS in my HFS 2.3 everything seems to work correctly.  What build are you using?
« Last Edit: August 11, 2011, 01:26:26 PM by raybob95 »


Offline ixil

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
The biggest issue I see (and probably the underlying one) is that you cannot use template sections in the 'diff template' part of your VFS.  Whatever you put in that box is for that page only.  To add more template sections, they need to go into the actual hfs.tpl file (Go to Menu --> HTML Template --> Edit).  The content of the main page but the sections in there such as [home] and [mason] need to go in the actual HFS template.

way to scratch it out

Quote
That is incorrect.  I tested it the way you have it and it works although I did not know you could do that and it doesn't work on my template for some reason...  Maybe you could try putting your root diff template into HFS's actual template file and see how it goes.

it  says on the template not to edit the template.i only tried the diff template because in 2.2f you clicked edit on the html and it brought up a sort of diff template. and is it possible i could make a secondary page like [mason] with the file upload stuff cause i keep trying and it takes over my whole template with the uploading. i wish to beable to edit pages at school

Quote
Problem 2:  HFS does not use closing tags for sections.  In your template I see you put [home] then the content and then [/home].  To HFS, that looks like you just made another section.  HFS knows to close that section when the next one begins.  It should look more like this

[home]
content

[mason]
content



Let me know if this solves any of your issues.

that diddnt do any thing but my issues arent affecting the "~" pages

Quote
EDIT:  When I put your VFS in my HFS 2.3 everything seems to work correctly.  What build are you using?

2.3 and every thing works on mine  in the properties of the root it was set to make the page use default.html i had fixed it right before my log says you downloaded it so thats why it  was fixed


also is there one a macro that does like group specified areas
like the user only areas/links

is there a way i can lock the ~page sort of thing
« Last Edit: August 12, 2011, 12:03:05 AM by ixil »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
easier way is to enable the "list protected items only for allowed users" in menu>virtual file system
then restrict access to the links.
in HFS 2.3, select all the links, then right click on them > permissions > access


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
But his template is custom with new HTML code, he's not just adding links to the VFS.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
sorry i missed that point
HFS 2.2 has no server side scripting capabilities


Offline mynameiskeeet

  • Occasional poster
  • *
    • Posts: 18
    • View Profile
Then you can put something like

Code: [Select]
{.if|{.=|%user%|user1.}{.=|%user%|user2.}{.=|%user%|user3.}|
<a href="/page/">mylink</a>
.}

That would tell HFS to only send out the link for those users.


EDIT:  Since that contains macros it must be in a section in HFS's template, it cannot be in a .html page you added to the VFS.  If that's the case then conversion is quite easy, just copy the content from page.html to a section called [page] in the template and then your new URL will be /~page rather than /page.html

omg. u made my day. thanks a lot :D