#1 Free Forum Host






Post new topic Reply to topic   [ 17 posts ] 
Hide URL from Guests MOD 
Author Message

Joined: Thu May 22, 2008 4:54 am
Posts: 12
fDollar: 14 | Donate
Karma: 0
Post Hide URL from Guests MOD
Hi,

I need a Mod to hide hyperlinks on my forum from guests,
I'v been looking arround and found this Mod: http://www.phpbb.com/community/viewtopic.php?f=70&t=669275&start=0
Hopefully this link helps

Many Thanks

Nxttm


Thu Jan 06, 2011 9:43 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Mon Aug 25, 2008 5:49 pm
Posts: 12,294
fDollar: 12143 | Donate
Karma: 143

Location: East Central U.S.
Post Re: Hide URL from Guests MOD
Good day.

Submitted for voting. Thanks for the suggestion. 8)
http://www.google.com/moderator/#16/e=441a1

_________________
Paul - Admin
Please do not PM me for support. Ask any questions you have in the proper support forums.
Knowledge Base
Read articles on various subjects that will aid you in forum building and support.
Forum Upgrades
Want more upgrades for your forum? Follow this link to see everything that's available to you.
What is Advanced Hosting?
An article that will better describe everything that comes along with Advanced Hosting. Some of which include installing your own modifications and styles.


Thu Jan 06, 2011 9:51 pm
Profile WWW
User avatar

Joined: Sat Oct 13, 2007 2:50 am
Posts: 750
fDollar: 378 | Donate
Karma: 2

Location: London, England
Post Re: Hide URL from Guests MOD
I second this request!

_________________
http://classicalmusicmayhem.freeforums.org


Sat Jan 08, 2011 3:31 pm
Profile WWW
User avatar

Joined: Fri Jan 07, 2011 11:51 am
Posts: 65
fDollar: 77 | Donate
Karma: 4

Location: Somewhere
Post Re: Hide URL from Guests MOD
Here's what you need

Step 1.
Place this in the "BBCode usage" textarea.
Code:
[hideurl={URL}]{SIMPLETEXT}[/hideurl]


Step 2.
Place this in the "HTML " textarea.
Code:
<a href="{URL}" id="guest" name="guest">{SIMPLETEXT}</a>
<span name="guest" id="guest">&nbsp;</span>
<script>
var lks = document.links;
for(i=0; i<lks.length;i++){
if(lks[i].href.indexOf('mode=register')!=-1)
{
document.getElementsByTagName('A').guest.style.display="none";
document.getElementsByTagName('SPAN').guest.innerHTML="You must be a registered user to see links.";
}
else{
document.getElementsByTagName('A').guest.style.visibility="visible";
}}
</script>


And now when you have that BBCode you can hide Links From Guest.
example
Code:
[hideurl=http://yahoo.com]Yahoo[/hideurl]

Logged in user will see the link
Guests will see this message "You must be a registered user to see links"

_________________
Image
Want To Advertise??? - Submit Your Site to Over 100 Search Engines
Subscribe to FEED


Sat Jan 08, 2011 5:24 pm
Profile WWW

Joined: Thu May 22, 2008 4:54 am
Posts: 12
fDollar: 14 | Donate
Karma: 0
Post Re: Hide URL from Guests MOD
That wouldn't work for me, I need it so that it works with all URLs on my forum, not ones with seperate BBcode tags, but thanks anyway :)


Sat Jan 08, 2011 5:32 pm
Profile
Support Team
Support Team
User avatar

Joined: Sat Jan 31, 2009 1:12 am
Posts: 23,042
fDollar: 26040 | Donate
Karma: 287

Location: Alberta, Canada
Post Re: Hide URL from Guests MOD
Yeah, the issue with that set up is that you would have to edit each link individually to use it.

_________________
Sabre - Support Staff
Please post all questions in the General Support Forum. There will be no Support over private message, so please only PM me when you think it's necessary.
Image
Advanced HostingPremium ServiceCanceling PayPal SubscriptionsAfter Purchasing Advanced Hosting
Terms of ServiceForum DeletionUnparking DomainUsing your own domainAdvanced Hosting INFO


Sat Jan 08, 2011 5:34 pm
Profile
User avatar

Joined: Fri Jan 07, 2011 11:51 am
Posts: 65
fDollar: 77 | Donate
Karma: 4

Location: Somewhere
Post Re: Hide URL from Guests MOD
Yes, I did believe that he wanted to hide urls's in posts. I do apologize for mistaking of the topic.

_________________
Image
Want To Advertise??? - Submit Your Site to Over 100 Search Engines
Subscribe to FEED


Sat Jan 08, 2011 5:37 pm
Profile WWW
User avatar

Joined: Sat Oct 13, 2007 2:50 am
Posts: 750
fDollar: 378 | Donate
Karma: 2

Location: London, England
Post Re: Hide URL from Guests MOD
chien wrote:
Here's what you need

Wow that works! Not automated like a mod but certainly a useful stop-gap.

Thanks chien!

_________________
http://classicalmusicmayhem.freeforums.org


Last edited by RodCorkin on Sun Jan 09, 2011 3:08 am, edited 1 time in total.



Sat Jan 08, 2011 5:41 pm
Profile WWW
User avatar

Joined: Sat Oct 13, 2007 2:50 am
Posts: 750
fDollar: 378 | Donate
Karma: 2

Location: London, England
Post Re: Hide URL from Guests MOD
Could you (or someone) advise how to amend the bbcode to make the "You must be a registered user to see links." anouncement appear coloured red?

_________________
http://classicalmusicmayhem.freeforums.org


Sat Jan 08, 2011 6:09 pm
Profile WWW
User avatar

Joined: Tue Jan 04, 2011 7:44 pm
Posts: 246
fDollar: 277 | Donate
Karma: 1

Location: Sydney , Australia
Post Re: Hide URL from Guests MOD
Hmmm i like this !

Very helpful thanks a bunch

_________________
Why hello there.... :)
Image
http://www.mytribe.freeforums.org/


Sat Jan 08, 2011 6:10 pm
Profile

Joined: Thu May 22, 2008 4:54 am
Posts: 12
fDollar: 14 | Donate
Karma: 0
Post Re: Hide URL from Guests MOD
RodCorkin wrote:
Could you (or someone) advise how to amend the bbcode to make the "You must be a registered user to see links." anouncement appear coloured red?

Try This

BBcode:
Code:
[hideurl={URL}]{SIMPLETEXT}[/hideurl]

Html:
Code:
<div class="postbody"><span style="color: #FF0000"><a href="http://yahoo.com" id="guest" name="guest" class="postlink" rel="nofollow" onclick="this.target='_blank';">Yahoo</a>
<span name="guest" id="guest">&nbsp;</span>
<script>
var lks = document.links;
for(i=0; i<lks.length;i++){
if(lks[i].href.indexOf('mode=register')!=-1)
{
document.getElementsByTagName('A').guest.style.display="none";
document.getElementsByTagName('SPAN').guest.innerHTML="You must be a registered user to see links.";
}
else{
document.getElementsByTagName('A').guest.style.visibility="visible";
}}
</script></span></div>


Sat Jan 08, 2011 7:42 pm
Profile
User avatar

Joined: Fri Jan 07, 2011 11:51 am
Posts: 65
fDollar: 77 | Donate
Karma: 4

Location: Somewhere
Post Re: Hide URL from Guests MOD
In response the simplier way of doing that would be

Step 1.
Place this in the "BBCode usage" textarea.
Code:
[hideurl={URL}]{SIMPLETEXT}[/hideurl]


Step 2.
Place this in the "HTML " textarea.
Code:
<a href="{URL}" id="guest" name="guest">{SIMPLETEXT}</a>
<span name="guest" id="guest" style="color:#F00">&nbsp;</span>
<script>
var lks = document.links;
for(i=0; i<lks.length;i++){
if(lks[i].href.indexOf('mode=register')!=-1)
{
document.getElementsByTagName('A').guest.style.display="none";
document.getElementsByTagName('SPAN').guest.innerHTML="You must be a registered user to see links.";
}
else{
document.getElementsByTagName('A').guest.style.visibility="visible";
}}
</script>

_________________
Image
Want To Advertise??? - Submit Your Site to Over 100 Search Engines
Subscribe to FEED


Sat Jan 08, 2011 7:44 pm
Profile WWW
User avatar

Joined: Thu Nov 15, 2007 6:52 am
Posts: 3,626
fDollar: 2690 | Donate
Karma: 109
Post Re: Hide URL from Guests MOD
RodCorkin wrote:
Could you (or someone) advise how to amend the bbcode to make the "You must be a registered user to see links." anouncement appear coloured red?

Step 2:-
Code:
<a href="{URL}" id="guest" name="guest">{SIMPLETEXT}</a>
<span name="guest" id="guest" style="color:red">&nbsp;</span>
<script>
var lks = document.links;
for(i=0; i<lks.length;i++){
if(lks[i].href.indexOf('mode=register')!=-1)
{
document.getElementsByTagName('A').guest.style.display="none";
document.getElementsByTagName('SPAN').guest.innerHTML="You must be a registered user to see links.";
}
else{
document.getElementsByTagName('A').guest.style.visibility="visible";
}}
</script>

Edit, apologies didn't re-check chien had posted a solution before I posted this.

_________________
manic


Sat Jan 08, 2011 8:04 pm
Profile

Joined: Thu May 22, 2008 4:54 am
Posts: 12
fDollar: 14 | Donate
Karma: 0
Post Re: Hide URL from Guests MOD
@manic,

this it totally unrelated but how did you make your avatar?


Sat Jan 08, 2011 8:32 pm
Profile
User avatar

Joined: Sat Oct 13, 2007 2:50 am
Posts: 750
fDollar: 378 | Donate
Karma: 2

Location: London, England
Post Re: Hide URL from Guests MOD
Great now the text is red. Thanks to all you guys above.

_________________
http://classicalmusicmayhem.freeforums.org


Sun Jan 09, 2011 3:10 am
Profile WWW
User avatar

Joined: Thu Nov 15, 2007 6:52 am
Posts: 3,626
fDollar: 2690 | Donate
Karma: 109
Post Re: Hide URL from Guests MOD
Nxttm wrote:
@manic,

this it totally unrelated but how did you make your avatar?

http://wigflip.com/signbot/

_________________
manic


Sun Jan 09, 2011 3:56 am
Profile

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 2
fDollar: 3 | Donate
Karma: 0
Post Re: Hide URL from Guests MOD
hello,
thats code it's work, but only for 1 hyperlink hide from guest :(

can i get for two or more hyperlink hide from guest?

thanks

_________________
Forum 8


Fri Apr 22, 2011 3:26 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic   [ 17 posts ] 


Similar topics

How do guests come onto my forum?
Forum: General Support
Author: Knownledge
Replies: 4

Guests viewing/composing pms?
Forum: General Support
Author: Ajn2702
Replies: 1

See and Banned guests
Forum: General Support
Author: mellinatre
Replies: 3

Top

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by FreeForums.org | Create a free forum | Powered by phpBB
About FreeForums | Advertisers | Investors | Legal | Contact


Copyright © 2012 FreeForums.org All rights reserved.
Style by FreeForums.org.