We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Announcement box for members only
Topic Started: Nov 23 2012, 12:32 PM (297 Views)
tobeme
Member Avatar
Member
[ *  * ]
Board Address: (http://www.wallacehuo.info)
Board Software: (ZetaBoards)
Description:

I want to make 3 different announcements on the top of my board. The 3 announcements will appear in one row with 3 columns (3 boxes). One of the announcements is a embedded with a video. One with a picture and one with text only.

Also, only members after they login can see the announcement with text only.. All guests (including members) can see the announcements with the picture and the video.

Thanks
Offline Profile Goto Top
 
SlyCooperFan1
Member Avatar
Coder
[ *  *  *  * ]
Okay, here you go.

Directions: Place this in Above the Board. Replace "EMBED" with the embed code for your video (most video-sharing sites have an embed code in HTML that you can use). Replace "PICTURE" with the exact URL to your picture. Replace "TEXT" with the announcement text you want. The text announcement will not show unless you're logged in.
Code:
 
<table><thead><tr><th>Announcements</th></tr></thead><tbody><tr><td>EMBED</td><td><img src="PICTURE" alt="" /></td><td style="display:none;" id="athusoit">TEXT</td></tr></tbody></table>
<script type="text/javascript">var userlink=$("#top_info small a:eq(0)").text();if(userlink=="[Sign Out]"){ $("#athusoit").show(); }</script>
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic