Announcements for members only?
2 posters
Page 1 of 1
Announcements for members only?
Hello,
I would like to set my announcements to display ONLY for members.. How can I do this?
I would like to set my announcements to display ONLY for members.. How can I do this?
Guest- Guest
Re: Announcements for members only?
Hi,
Do you mean scrolling announces, or post announces?
Do you mean scrolling announces, or post announces?
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Announcements for members only?
I mean the general scrolling announcements.
located in ACP: General > Messages and Emails > Announcements |
located in ACP: General > Messages and Emails > Announcements |
Guest- Guest
Re: Announcements for members only?
It might be possible with the template editions, but I don't think it's possible in phpbb3 without template editions.
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Announcements for members only?
Of course it's possible!!!
Here's a phpBB3 board with a homepage message that changes depending on whether you are a member or a guest: http://www.thefacebookforum.net/forum.htm
I'm sure the same code can be applied to announcements as well.
Here's a phpBB3 board with a homepage message that changes depending on whether you are a member or a guest: http://www.thefacebookforum.net/forum.htm
I'm sure the same code can be applied to announcements as well.
Guest- Guest
Re: Announcements for members only?
I'm not sure I'm seeing what you are talking about, do u have to be a registered member on that forum in order to see their announcements? If so, thats exactly what I would like to do, I just need to figure this out!Dion wrote:Of course it's possible!!!
Here's a phpBB3 board with a homepage message that changes depending on whether you are a member or a guest: http://www.thefacebookforum.net/forum.htm
I'm sure the same code can be applied to announcements as well.
Guest- Guest
Re: Announcements for members only?
ooohhhhhhhhhhhhhh! Thats true Dion, I completely forgot about that!
Click on the "Homepage message" to see what I mean.
I don't know how exactly he did it, but I got a feeling it's JS, I'll try and find out for ya
Click on the "Homepage message" to see what I mean.
I don't know how exactly he did it, but I got a feeling it's JS, I'll try and find out for ya
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Announcements for members only?
hmmm...Looks like I've found the script Lots of javascript and nothing else
The script is made by Dion, I think so I can't reveal it without his permission, it could be copyrighted
The script is made by Dion, I think so I can't reveal it without his permission, it could be copyrighted
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Announcements for members only?
What about adding the announcements code between:
in the templates . but the problem is i can't find it there or maybe it has another name .. try finding it
- Code:
<!-- BEGIN switch_user_logged_in -->
HERE
<!-- END switch_user_logged_in -->
in the templates . but the problem is i can't find it there or maybe it has another name .. try finding it
Guest- Guest
Re: Announcements for members only?
Gangstar15 wrote:What about adding the announcements code between:
- Code:
<!-- BEGIN switch_user_logged_in -->
HERE
<!-- END switch_user_logged_in -->
in the templates . but the problem is i can't find it there or maybe it has another name .. try finding it
He wants it for phpBB3.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Announcements for members only?
we need to get this Dion guy in here then! if he knows of a way then im guessing hes my only hope at the moment, i been trying to figure this out for weeks.. I set my chatbox as an announcement but it looks like a big black box to guest because its an iframe code. This is where my need to make announcements invisible for guest comes in.ankillien wrote:hmmm...Looks like I've found the script Lots of javascript and nothing else
The script is made by Dion, I think so I can't reveal it without his permission, it could be copyrighted
Guest- Guest
Re: Announcements for members only?
Use a script like this:
"member code" will only be executed when a member is logged in. So, if "member code" contains code to display a message, only members that are logged in will see the message.
I leave it up to you to write "member code", and how to insert the script into your forum.
- Code:
<script type="text/javascript">
if(document.getElementById('i_icon_mini_logout')) {"member code"}
</script>
"member code" will only be executed when a member is logged in. So, if "member code" contains code to display a message, only members that are logged in will see the message.
I leave it up to you to write "member code", and how to insert the script into your forum.
Guest- Guest
Re: Announcements for members only?
Dion wrote:Use a script like this:
- Code:
if(document.getElementById('i_icon_mini_logout')) {"member code"}
"member code" will only be executed when a member is logged in. So, if "member code" contains code to display a message, only members that are logged in will see the message.
I leave it up to you to write "member code", and how to insert the script into your forum.
k i just tried that and it didnt work. I put my entire code in replacement of "member code". This is the exact code i put in the announcements and all it did was make the nothing show, even while i was logged in:
- Code:
<script type="text/javascript">
if(document.getElementById('i_icon_mini_logout')) {"<div style="float:right;text-align:right;"><b>Please click
'Log In' to use the members only Chatbox.
↓</b></div><div><b>Please View The-EN Chatbox
Rules: <a
href="http://www.the-en.com/rules-f18/chatbox-rules-click-here-t1599.htm?sid=b449803b34e1f34fd8b6e8fb74e4b9c3"
class="postlink">Click
Here!</a></b></div><br>
<iframe frameborder="0" width=100% height=350
src=http://electronicnetwork.all-up.com/chatbox/chatbox.forum
marginheight=2 marginwidth=2 scrolling=auto allowtransparency=yes
name=EN Chatbox style=border:#002EFF 1px
solid;border-top:0px></iframe>"}
</script>
Guest- Guest
Re: Announcements for members only?
Hey SPADEZ,
I think you need to put the HTML codes in document.write() function of javascript. It won't work if you put it directly like HTML.
I think you need to put the HTML codes in document.write() function of javascript. It won't work if you put it directly like HTML.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Announcements for members only?
Hey ankillien I still cant figure this out... Can you please tell me how to put this code:
with this code:
- Code:
<div style="float:right;text-align:left;"><div><b>EN Public Chatroom: <a href="http://xat.com/ElectronicNetwork" class="postlink" target="_blank" title="This is our public chatroom for members and guest. The EN Chatbox below is for members only.">Click Here!</a></b></div><b>Please click 'Log In' to use the members only Chatbox. ↓</b></div><div><b>Please View The-EN Chatbox Rules: <a href="http://www.the-en.com/rules-f18/chatbox-rules-click-here-t1599.htm?sid=b449803b34e1f34fd8b6e8fb74e4b9c3" class="postlink" title="These are the rules for the EN Chatbox below. Please read them and follow them.">Click Here!</a></b></div><br>
<iframe frameborder="0" width=100% height=350 src=http://electronicnetwork.all-up.com/chatbox/chatbox.forum marginheight=2 marginwidth=2 scrolling=auto allowtransparency=yes name=EN Chatbox style=border:#002EFF 1px solid;border-top:0px></iframe>
with this code:
- Code:
<script type="text/javascript">
if(document.getElementById('i_icon_mini_logout')) {"member code"}
</script>
Guest- Guest
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum