Spoken
Exclusive
Offline
Gender:
Posts: 454
Badges: (View All)
|
|
« on: November 06, 2008, 05:38:48 pm » |
|
To start off, I DID NOT make either of these codes. Agent Moose made em. I tweaked the second one. This code is to add a custom page to your forums. Footers <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) $("#bodyarea").after("</td></tr></table></div></div>") };}; smf_page_v1("URL","TITLE","CONTENT") </script> Replace "URL" with the URL you want for the page. (action=URL) Replace "TITLE" with the title of the page. Replace "CONTENT" with the content you want in the page. Note: In the content of your page, you CANNOT have any enters or double quotes ("). You MUST use <BR> when you want a line break and use single quotes (') instead of double ("). This code is to add extra content boxes to one of your existing custom pages. Footers: <script> function smf_page_v1(link,title,content){ //Created by Agent Moose (smcodes.smfforfree3.com) if(location.href.match("action="+link)){ $("#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) $("#bodyarea").after("</td></tr></table></div></div>") };}; smf_page_v1("URL","TITLE","CONTENT") </script> Replace "URL" with the page URL you want to add the box to. Replace "TITLE" with the Title of the new box. Replace "CONTENT" with the content of the new box. Just as in the code to add a page, you CANNOT use enters or double quotes ("). Again, I DID NOT make these. I only tweaked the second one. Moose did all the good work
|
|
« Last Edit: November 07, 2008, 06:35:36 pm by Agent Moose »
|
Report Spam
Logged
|
|
|
|
|
shimmy shabby
|
|
« Reply #1 on: November 06, 2008, 06:11:30 pm » |
|
I dont see any tweaking? and i'd leave it up to moose to post the original SMF Page code. And first i would ask permission from him if he even would let you modify it. But, if he said ok. Just like at the bottom put credits to Agent Moose for making the original SMF Page code. And so people don't jump at u for it, Put: Permission from Agent Moose to modify this code. Or something like that.
|
|
|
|
|
deathwilldie
|
|
« Reply #2 on: November 06, 2008, 09:43:48 pm » |
|
Well I'll see what moose says about it cause he is grounded from the computer.
Also if you want a code to be added here just PM him and ask...but I guess now PM me and I shall add it to here.
|
|
|
|
shimmy shabby
|
|
« Reply #3 on: November 06, 2008, 10:01:52 pm » |
|
Naughty moose... lol, bad grades or something?
|
|
|
|
Spoken
Exclusive
Offline
Gender:
Posts: 454
Badges: (View All)
|
|
« Reply #4 on: November 06, 2008, 10:15:11 pm » |
|
Lol sorry. I thought it would be fine posting it as long as I gave credit to him Well I'll see what moose says about it cause he is grounded from the computer. Lol hes what, 17? And hes grounded!? LOL
|
|
« Last Edit: November 06, 2008, 10:20:17 pm by Spoken »
|
Report Spam
Logged
|
|
|
|
deathwilldie
|
|
« Reply #5 on: November 07, 2008, 03:21:37 pm » |
|
Yea bad grades.... He is gonna sneak on sometime and do what ever it is he is going to do...he wouldn't tell me
|
|
|
|
Spoken
Exclusive
Offline
Gender:
Posts: 454
Badges: (View All)
|
|
« Reply #6 on: November 07, 2008, 04:02:48 pm » |
|
Lol. Dont his parent this hes too old for grounding??
|
|
|
|
deathwilldie
|
|
« Reply #7 on: November 07, 2008, 04:12:43 pm » |
|
Nah cause I could get grounded also...
Alright lets not get off topic.
|
|
|
|
Agent Moose
|
|
« Reply #8 on: November 07, 2008, 06:34:43 pm » |
|
Alrighty, I am on for tonight. My mom is out of town but death is probably going to kick me off when he gets home Anyway. Please PM me or deathwilldie when your going to post one of my codes. For now, it would be smart to PM my brother(deathwilldie). I'll keep this one here...but I don't know why you would need it since there is a WebPage Editor
|
|
|
|
shimmy shabby
|
|
« Reply #9 on: November 07, 2008, 06:46:38 pm » |
|
lol, brothers can be a pain sometimes.
Anyways... Could someone point out the tweaking spoken said he did? i can't notice it lol, maybe im blind.
|
|
|
|
Agent Moose
|
|
« Reply #10 on: November 07, 2008, 07:22:19 pm » |
|
Honestly, I couldn't see it either And its my code
|
|
|
|
Spoken
Exclusive
Offline
Gender:
Posts: 454
Badges: (View All)
|
|
« Reply #11 on: November 07, 2008, 07:22:31 pm » |
|
In the first code you can see. document.title=""+title+""; I took that out in the second code. What it does is instead of making it the title of the whole page AND the title of the first box, it only makes it the title of the new box. If that makes sense
|
|
|
|
|
|
Spoken
Exclusive
Offline
Gender:
Posts: 454
Badges: (View All)
|
|
« Reply #14 on: November 07, 2008, 07:30:25 pm » |
|
In the first code you can see.
Code: document.title=""+title+""; I took that out in the second code. What it does is instead of making it the title of the whole page AND the title of the first box, it only makes it the title of the new box. If that makes sense
All that taking that out does is remove the Title, Example if you use IE, at the top it would have like SMF Page - Windows Internet Explorer, All taking out the document.title thing would do would be get rid of that Yes, but if you have the original code, AND the tweaked code, the new code will add a box without changing the title from the original code. Sorry im not good at explaining XD
|
|
|
|
|
|