Advertise Here

Author Topic: How to find which SMF server I'm on  (Read 2349 times)

0 Members and 1 Guest are viewing this topic.

Offline NYNick

  • SMF For Free Member
  • *
  • Posts: 62
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
How to find which SMF server I'm on
« on: May 27, 2009, 10:47:41 am »
My brother drove me crazy enough to help with his forum... Now he doesn't know which server he's on, so I can't add the "<script src="http://YOUR_FORUM.smfforfreeX.com/jquery.js"></script>" into the headers for mods for it. Is there I way I can find this out?

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: How to find which SMF server I'm on
« Reply #1 on: May 27, 2009, 10:49:30 am »
You don't need to know which one it is on.

Use this, it works on all servers:

Code: [Select]
<script src="/jquery.js"></script>

Offline NYNick

  • SMF For Free Member
  • *
  • Posts: 62
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: How to find which SMF server I'm on
« Reply #2 on: May 27, 2009, 10:51:34 am »
When I do that, I get a "Cannot open file" error page  ???

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: How to find which SMF server I'm on
« Reply #3 on: May 27, 2009, 10:52:49 am »
it must have something to do with whatever code you are using...   that code works fine

forum url?
what code did you try to use?   Post the code so we can see it?

Offline NYNick

  • SMF For Free Member
  • *
  • Posts: 62
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: How to find which SMF server I'm on
« Reply #4 on: May 27, 2009, 11:05:37 am »
It just got set up this morning:
http://www.smf4free.com/forums/patsfans

I haven't modified the headers/footers yet on it since I keep getting those errors.
I've been wanting to use a code by Agent Moose... Here's the code they give:
Code: [Select]
<script>
function custom_message(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var message = new Array();
message[message.length] = ["USERNAME","CUSTOM MESSAGE"]

if(location.href.match(/topic/i)){
for(f=0;f<message.length;f++){
$("a").each(function(){
if(this.innerHTML == message[f][0] && $(this).parent("b").parent("td").html()){
$(this).after("<div class='windowbg2'><span class='smalltext'><b>Custom Message:</b><br>" + message[f][1] + "</span></div>");
};});};};};
custom_message();
</script>

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: How to find which SMF server I'm on
« Reply #5 on: May 27, 2009, 11:12:03 am »
erm Im not sure if jquery has been uploaded (by SMF for Free) to smf4free.com
I'll send him a note to find out about that

using an smfforfree.com forum url and adding /jquery.js to the end of it - you can download the file.
Im not able to do so using your forum url.

Offline NYNick

  • SMF For Free Member
  • *
  • Posts: 62
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: How to find which SMF server I'm on
« Reply #6 on: May 27, 2009, 11:13:00 am »
OK. Thank you :)

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: How to find which SMF server I'm on
« Reply #7 on: May 27, 2009, 11:16:24 am »
Try this -  the files located here on smf4free.com:  http://www.smf4free.com/jquery.js

So do the code this way:

Code: [Select]
<script src="http://www.smf4free.com/jquery.js"></script>
The other code SHOULD work for you too but give this a try
« Last Edit: May 27, 2009, 11:18:44 am by simply sibyl »

Offline NYNick

  • SMF For Free Member
  • *
  • Posts: 62
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: How to find which SMF server I'm on
« Reply #8 on: May 27, 2009, 11:22:52 am »
"Cannot load file"   :buck2: :-\

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: How to find which SMF server I'm on
« Reply #9 on: May 27, 2009, 11:28:57 am »
ok hold on.. gonna try something

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: How to find which SMF server I'm on
« Reply #10 on: May 27, 2009, 11:31:09 am »
The normal code should work for you fine:

Code: [Select]
<script src="/jquery.js"></script>
I just tried it on an smf4free test forum and it worked with no issue with the hide tab code so maybe its something you are doing with the code you are wanting to use.

edit:  I just put in the custom message code you posted - it works fine for me with the jquery code above.   Make sure to edit the custom message code in the appropriate places.
« Last Edit: May 27, 2009, 11:36:47 am by simply sibyl »

Offline NYNick

  • SMF For Free Member
  • *
  • Posts: 62
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: How to find which SMF server I'm on
« Reply #11 on: May 27, 2009, 02:31:52 pm »
Got it working on that one, now I have a problem on a different forum with the footers xD But that will go in a different thread. Thanks for your time :)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1244 Views
Last post April 27, 2007, 04:28:49 pm
by Kimmie
1 Replies
945 Views
Last post March 29, 2008, 03:07:26 pm
by LaundryLady
25 Replies
11186 Views
Last post April 28, 2009, 10:46:29 pm
by SMF For Free
0 Replies
525 Views
Last post May 27, 2009, 10:55:17 am
by simply sibyl
1 Replies
932 Views
Last post July 13, 2009, 08:27:59 pm
by Andrew