SMF For Free Support Forum
Signup For Free Forum
October 06, 2008, 09:40:38 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] 3 4
  Print  
Author Topic: [Code] SMF Page v1  (Read 4639 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 636


Do not PM me for Code Support or Request


View Profile
« Reply #15 on: September 15, 2007, 09:30:04 am »

You can use HTML.  Like <b> and things like that.  And, you can use a Chatbox.  You just have to make sure you have it so that there are no Double Quotes(") in the code.  If there are, change them to single quotes.  That is the only way it will work.
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 594


I'm around somewhere!!!


View Profile WWW
« Reply #16 on: October 10, 2007, 07:40:54 pm »

Sorry...I still haven't been able to get this one to work either,and I'm on server 1.What do we use for the url?
Logged


trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #17 on: October 10, 2007, 08:00:46 pm »

in the example it says like http://yourboard.smfforfree#.com/index.php?action=whatyawant
Logged


Ad Machine - Free advertising and tips on how to promote your board.
Agent Moose
Moderator
*****
Offline Offline

Posts: 636


Do not PM me for Code Support or Request


View Profile
« Reply #18 on: October 10, 2007, 09:08:27 pm »

Post your code here and I will see what I can do.  And this works on all servers.
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #19 on: October 10, 2007, 10:04:41 pm »

I got this in the botto of my footer
Code:
<script>
function smf_page_v1(link,title,content){
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match("action="+link)){
document.title=""+title+"";
$("#bodyarea").hide()
$("#bodyarea").before("<div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center; '>"+title+"</div><div id='upshrinkHeaderIC'><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2' width='100%'>"+content+"</td></tr></table></div></div>")
};};
smf_page_v1("http://hellbound.smfforfree3.com/index.php?action=chat", "Chat", "testing testing 1 2 3")
</script>

and i've got
Code:
<script src="http://hellbound.smfforfree3.com/jquery.js"></script>
in the top
Logged


Ad Machine - Free advertising and tips on how to promote your board.
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 594


I'm around somewhere!!!


View Profile WWW
« Reply #20 on: October 11, 2007, 07:51:27 am »

I finally got it to work,but for the "LINK" in the code ,you don't have to insert the actual link...you just have to insert the word that you want at the end of your link.For example,if your link was http://mypage.com/index.php?action=test",then you just  have to insert"test" where it says "LINK".
Here look at my code:

Code:
<script>
function smf_page_v1(link,title,content){
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match("action="+link)){
document.title=""+title+"";
$("#bodyarea").hide()
$("#bodyarea").before("<div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center; '>"+title+"</div><div id='upshrinkHeaderIC'><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2' width='100%'>"+content+"</td></tr></table></div></div>")
};};
smf_page_v1("game","Game of the Day","<iframe width='750' height='550' src='http://www.freeonlinegames.com/embed.php?g_id=13792' frameborder='0' scrolling='no'></iframe>")
</script>

And here is the end result: My smf page
« Last Edit: October 11, 2007, 07:53:59 am by Gordie » Logged


trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #21 on: October 11, 2007, 10:55:25 am »

ok now i am kinda annoied, how would i make a flash chat from www.spinchat.com work with it.  I know that you cant have quoted stuff for the context of the page but is there any way around it so i can add my chat.

Logged


Ad Machine - Free advertising and tips on how to promote your board.
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 594


I'm around somewhere!!!


View Profile WWW
« Reply #22 on: October 11, 2007, 11:05:10 am »

You can have quoted codes in the "CONTENT" section,you just have to change all the double quotes(") in your  chatroom code to single quotes(') first.Then paste the "new" chat code inside the quotes where it says "CONTENT"
Logged


trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #23 on: October 11, 2007, 03:59:11 pm »

Moose could you rewite it so you can use enters, its hard to setup codes in them with out the lines to space them out
« Last Edit: October 12, 2007, 03:30:56 pm by trevix » Logged


Ad Machine - Free advertising and tips on how to promote your board.
Nick_LRG
SMF For Free Member
*
Offline Offline

Posts: 96



View Profile WWW
« Reply #24 on: November 07, 2007, 08:01:38 pm »

what do i put in my link


"joshhorn573scape.smforfree2.com"

under the "LINK" part, what do i add to make it take me to a new page?
Logged

---
Agent Moose
Moderator
*****
Offline Offline

Posts: 636


Do not PM me for Code Support or Request


View Profile
« Reply #25 on: November 07, 2007, 09:22:35 pm »

The Link is how you would get to it.  So, If you have the link part "rawr", you can get to it by going to this:
joshhorn573scape.smforfree2.com/index.php?action=rawr
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
Jordan7
SMF For Free Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #26 on: November 10, 2007, 08:25:12 pm »

http://runecafe.smfforfree4.com/affiliates

I added the page it just redirects to a different website.. This is what I have
Code:

<script>
function smf_page_v1(link,title,content){
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match("action="+link)){
document.title=""+title+"";
$("#bodyarea").hide()
$("#bodyarea").before("<div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center; '>"+title+"</div><div id='upshrinkHeaderIC'><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2' width='100%'>"+content+"</td></tr></table></div></div>")
};};
smf_page_v1("http://www.runecafe.smfforfree4.com/affiliates","Affiliates","Message Slayer To Become An Affiliate")
</script>
Logged



^Click^
Agent Moose
Moderator
*****
Offline Offline

Posts: 636


Do not PM me for Code Support or Request


View Profile
« Reply #27 on: November 10, 2007, 09:04:53 pm »

You don't need the whole URL for the LINK part.

Here, try this:
Code:
<script>
function smf_page_v1(link,title,content){
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match("action="+link)){
document.title=""+title+"";
$("#bodyarea").hide()
$("#bodyarea").before("<div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center; '>"+title+"</div><div id='upshrinkHeaderIC'><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2' width='100%'>"+content+"</td></tr></table></div></div>")
};};
smf_page_v1("affiliates","Affiliates","Message Slayer To Become An Affiliate")
</script>

You would get to your new page with this link:
http://www.runecafe.smfforfree4.com/index.php?action=affiliates
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]
Acer
SMF For Free Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #28 on: December 02, 2007, 05:35:29 am »

hm does html work in "Content" ?
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 636


Do not PM me for Code Support or Request


View Profile
« Reply #29 on: December 02, 2007, 07:17:49 am »

Yes HTML Works in content.

You can't use Double Quotes ("), only Single (')
Logged

SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/center]


Pages: 1 [2] 3 4
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.462 seconds with 16 queries.