SMF For Free Support Forum
Signup For Free Forum
July 04, 2009, 11:24:27 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1] 2
  Print  
Author Topic: [Code] SMC News Box  (Read 2139 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« on: September 21, 2007, 07:31:15 pm »

Add this to your headers if you don't have it:
Code:
<script src="/jquery.js"></script>

Footers
Code:
<script creator="Agent Moose" at="smcodes.smfforfree3.com">
var boardname = "YOUR BOARD NAME HERE"
var News = "YOUR TEXT HERE"
$("#bodyarea").before('<div id="news_box"><div class="tborder" style="margin-top: 1ex;"><div class="catbg" style="padding: 5px 5px 5px 10px;">'+boardname+' News</div><table id="upshrinkHeader2" width="100%" cellpadding="4" cellspacing="0" border="0"><tr><td class="titlebg2"></td></tr><div class="windowbg"><span id="section">'+News+'</span></div></table></div>');
</script>

This will add a news box to your forum, like what SMC has.  Just replace the YOUR TEXT HERE part to your own text.  You may use HTML.  Replace YOUR BOARD NAME HERE with the name of your board.
« Last Edit: March 21, 2008, 12:12:26 pm by Agent Moose » Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
BadgerGirl*naf
SMF For Free Full Member
*
Offline Offline

Posts: 138



View Profile WWW
« Reply #1 on: September 21, 2007, 08:17:07 pm »

Great code moosie
Logged

Land of Smileys
SMF For Free Member
*
Offline Offline

Posts: 24



View Profile WWW
« Reply #2 on: September 21, 2007, 08:17:50 pm »

looks good AM
Logged




Click the banner to go to Land of Smileys, a fun place to talk about ANYTHING! Mod/Admin positions open.
BadgerGirl*naf
SMF For Free Full Member
*
Offline Offline

Posts: 138



View Profile WWW
« Reply #3 on: September 21, 2007, 08:21:06 pm »

Picture:

Logged

Land of Smileys
SMF For Free Member
*
Offline Offline

Posts: 24



View Profile WWW
« Reply #4 on: September 21, 2007, 08:23:49 pm »

Thanks
Logged




Click the banner to go to Land of Smileys, a fun place to talk about ANYTHING! Mod/Admin positions open.
BadgerGirl*naf
SMF For Free Full Member
*
Offline Offline

Posts: 138



View Profile WWW
« Reply #5 on: September 21, 2007, 08:26:52 pm »

np land your my best pal so is agent moosie
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #6 on: September 21, 2007, 08:27:16 pm »

Glad you all like it Smiley
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
BadgerGirl*naf
SMF For Free Full Member
*
Offline Offline

Posts: 138



View Profile WWW
« Reply #7 on: September 21, 2007, 08:28:55 pm »

=)=)=)=)=)
Logged

kaelan
SMF For Free Member
*
Offline Offline

Posts: 24


View Profile
« Reply #8 on: March 20, 2008, 10:21:26 am »

great code works for me  Shocked
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #9 on: March 21, 2008, 12:11:57 pm »

Glad ya like it Smiley
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!
GodGurl25
SMF For Free Member
*
Offline Offline

Posts: 39


View Profile WWW
« Reply #10 on: May 02, 2008, 10:23:06 pm »

This code is cool. But lemme ask. What is the code used for the code here? I tried to use
Code:
but it didn't worked. Will I use HTML codes for the links? Hm...
Logged

I have many questions for forums. So I joined here. LOL. Hehe
Trying to make friends.
dmk4ever
SMF For Free Member
*
Offline Offline

Posts: 22


View Profile
« Reply #11 on: May 30, 2008, 01:06:53 pm »

hallo

please you said

This will add a news box to your forum, like what SMC has.  Just replace the YOUR TEXT HERE part to your own text.  You may use HTML.  Replace YOUR BOARD NAME HERE with the name of your board.

where can i change and put code

coz i replaced the text with code but it didnt work
Logged
LaundryLady
Global Moderator
*
Offline Offline

Posts: 3056


Internet Challenged


View Profile
« Reply #12 on: May 30, 2008, 01:12:11 pm »

Post what you used so we can see what you were trying to do. Put it up just like you tried it, with your changes in place.
Logged
dmk4ever
SMF For Free Member
*
Offline Offline

Posts: 22


View Profile
« Reply #13 on: May 30, 2008, 02:13:02 pm »

i was trying to put bbc news code

but with arabic

i dont know if you can help me or not

but the code is english not arabic one

whatever if you can help thank you ,if you cant never mind and thank you for trying

this is the code

 
Code:
<iframe name="I1" marginwidth="1" marginheight="1" height="30" width="90%" scrolling="no" border="0" frameborder="0" src="http://news.bbc.co.uk/hi/arabic/news/ticker.stm"></iframe>
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 776


Do not PM me for Code Support or Request


View Profile
« Reply #14 on: May 30, 2008, 02:29:30 pm »

Code:
<iframe name='I1' marginwidth='1' marginheight='1' height='30' width='90%' scrolling='no' border='0' frameborder='0' src='http://news.bbc.co.uk/hi/arabic/news/ticker.stm'></iframe>

Try putting taht in the code Smiley
Logged

Want to know how good your board is?  Why not get it reviewed at Revolution X!


Pages: [1] 2
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.451 seconds with 17 queries.