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 for each thread
Topic Started: Aug 16 2015, 06:15 AM (339 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
URL in profile

Would it be possible to create a code that would display an announcement over a certain thread like this:



"Ravenclaw House"


House Headmaster & Headmistress: _____ (link to their profile)
House Administrator: ____________ (link to users profile) House Icon House Quote:
House Leader: _______________ (link to the users profile)

House Notices:
_________________________
_________________________


Next to it, can a leaderboard be added next to this with the header named as: "House Points"?

For example:

House Points


It'll display the users username and the house points they have
I'll add the users and points manually
Ohh it cancelled out the spaces. Basically it would be the leaders, admins and headmaster on the left, the icon on thr middle, the header on top of the icon and the quote to the right of the icon and then next to this box the leaderboard
Edited by Tyler Dream, Aug 16 2015, 06:35 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
function addAnnouncement(tID, content) {
if (location.href.indexOf('/topic/' + tID + '/') !== -1) {
$('#main').prepend(content);
}
}

addAnnouncement('TOPIC_ID', 'CONTENT');
addAnnouncement('TOPIC_ID', 'CONTENT');
addAnnouncement('TOPIC_ID', 'CONTENT');
//]]>
</script>
Edit the capitalized text as necessary, HTML is allowed. Use quotation marks in the HTML and not apostrophes, use <br /> for a line-break.
Offline Profile Goto Top
 
Roby
Member Avatar
#27

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