News:

Create A Forum Installed

Author Topic: what is the next step  (Read 3132 times)

0 Members and 1 Guest are viewing this topic.

Offline forum

  • Sr. Member
  • ****
  • Posts: 407
  • Karma: 4
    • View Profile

Badges: (View All)
Third year Anniversary Level 5 Linux User
Re: what is the next step
« Reply #15 on: August 06, 2012, 06:32:55 pm »
Code: [Select]
it is still not working i did what you told me to do to.
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
var forumurl = "tnafans";
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/smiley.gif" , "http://smfsupport.com/support/Smileys/smfnew/smiley.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/wink.gif" , "http://smfsupport.com/support/Smileys/smfnew/wink.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/cheesy.gif" , "http://smfsupport.com/support/Smileys/smfnew/cheesy.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/grin.gif" , "http://smfsupport.com/support/Smileys/smfnew/grin.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/angry.gif" , "http://smfsupport.com/support/Smileys/smfnew/angry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/sad.gif" , "http://smfsupport.com/support/Smileys/smfnew/sad.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/shocked.gif" , "http://smfsupport.com/support/Smileys/smfnew/shocked.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/cool.gif" , "http://smfsupport.com/support/Smileys/smfnew/cool.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/huh.gif" , "http://smfsupport.com/support/Smileys/smfnew/huh.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnfans.createaforum.com/Smileys/default/rolleyes.gif" , "http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/tongue.gif" , "http://smfsupport.com/support/Smileys/smfnew/tongue.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/lipsrsealed.gif" , "http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/undecided.gif" , "http://smfsupport.com/support/Smileys/smfnew/undecided.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/kiss.gif" , "http://smfsupport.com/support/Smileys/smfnew/kiss.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/cry.gif" , "http://smfsupport.com/support/Smileys/smfnew/cry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl "tnafans.createaforum.com/Smileys/default/embarrassed.gif" , "http://support.createaforum.com/Smileys/smfnew/embarrassed.gif" ]




var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i.src == img_b[j][0]) a_i.src = img_b[j][1];
}
swap_img();
</script>

Offline forum

  • Sr. Member
  • ****
  • Posts: 407
  • Karma: 4
    • View Profile

Badges: (View All)
Third year Anniversary Level 5 Linux User
Re: what is the next step
« Reply #16 on: August 06, 2012, 06:33:43 pm »
o sorry it did not post how i wanted it to sorry i did try :(

Offline Seldom Fail

  • Global Moderator
  • *****
  • Posts: 207
  • Karma: 30
  • Gender: Male
    • View Profile

Badges: (View All)
Karma Good Karma Bad Level 5
Re: what is the next step
« Reply #17 on: August 06, 2012, 07:27:54 pm »
Ok. I see the problem. This code doesn't work right with custom domains. One second.

When posting a code, put the code between the brackets.

Like this.

[code]CODE HERE[/code]
<--- Donate to CreateAForum! :D

Jeremiah 33:3

Offline Seldom Fail

  • Global Moderator
  • *****
  • Posts: 207
  • Karma: 30
  • Gender: Male
    • View Profile

Badges: (View All)
Karma Good Karma Bad Level 5
Re: what is the next step
« Reply #18 on: August 06, 2012, 07:31:29 pm »
Try this. The problem is that you changed your domain. So all of the links to the original smileys changed also. So adjusting the code the way other members would won't work for you.
This variation should work for you.

Code: [Select]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var img_b = new Array();
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/smiley.gif" , "http://smfsupport.com/support/Smileys/smfnew/smiley.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/wink.gif" , "http://smfsupport.com/support/Smileys/smfnew/wink.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/cheesy.gif" , "http://smfsupport.com/support/Smileys/smfnew/cheesy.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/grin.gif" , "http://smfsupport.com/support/Smileys/smfnew/grin.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/angry.gif" , "http://smfsupport.com/support/Smileys/smfnew/angry.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/sad.gif" , "http://smfsupport.com/support/Smileys/smfnew/sad.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/shocked.gif" , "http://smfsupport.com/support/Smileys/smfnew/shocked.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/cool.gif" , "http://smfsupport.com/support/Smileys/smfnew/cool.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/huh.gif" , "http://smfsupport.com/support/Smileys/smfnew/huh.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/rolleyes.gif" , "http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/tongue.gif" , "http://smfsupport.com/support/Smileys/smfnew/tongue.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/lipsrsealed.gif" , "http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/undecided.gif" , "http://smfsupport.com/support/Smileys/smfnew/undecided.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/kiss.gif" , "http://smfsupport.com/support/Smileys/smfnew/kiss.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/cry.gif" , "http://smfsupport.com/support/Smileys/smfnew/cry.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/embarrassed.gif" , "http://support.createaforum.com/Smileys/smfnew/embarrassed.gif" ]


var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i.src == img_b[j][0]) a_i.src = img_b[j][1];
}
swap_img();
</script>
<--- Donate to CreateAForum! :D

Jeremiah 33:3

Offline forum

  • Sr. Member
  • ****
  • Posts: 407
  • Karma: 4
    • View Profile

Badges: (View All)
Third year Anniversary Level 5 Linux User
Re: what is the next step
« Reply #19 on: August 06, 2012, 07:34:00 pm »
still not worked

Offline Seldom Fail

  • Global Moderator
  • *****
  • Posts: 207
  • Karma: 30
  • Gender: Male
    • View Profile

Badges: (View All)
Karma Good Karma Bad Level 5
Re: what is the next step
« Reply #20 on: August 06, 2012, 07:51:57 pm »
Code: [Select]
<script type='text/javascript'>
/*
Change Any Image On Page
Created by iFusion
*/
var img_b = new Array();

img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/smiley.gif" , "http://smfsupport.com/support/Smileys/smfnew/smiley.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/wink.gif" , "http://smfsupport.com/support/Smileys/smfnew/wink.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/cheesy.gif" , "http://smfsupport.com/support/Smileys/smfnew/cheesy.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/grin.gif" , "http://smfsupport.com/support/Smileys/smfnew/grin.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/angry.gif" , "http://smfsupport.com/support/Smileys/smfnew/angry.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/sad.gif" , "http://smfsupport.com/support/Smileys/smfnew/sad.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/shocked.gif" , "http://smfsupport.com/support/Smileys/smfnew/shocked.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/cool.gif" , "http://smfsupport.com/support/Smileys/smfnew/cool.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/huh.gif" , "http://smfsupport.com/support/Smileys/smfnew/huh.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/rolleyes.gif" , "http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/tongue.gif" , "http://smfsupport.com/support/Smileys/smfnew/tongue.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/lipsrsealed.gif" , "http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/undecided.gif" , "http://smfsupport.com/support/Smileys/smfnew/undecided.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/kiss.gif" , "http://smfsupport.com/support/Smileys/smfnew/kiss.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/cry.gif" , "http://smfsupport.com/support/Smileys/smfnew/cry.gif" ]
img_b[img_b.length++] = [ "http://tnafanforum.com/Smileys/default/embarrassed.gif" , "http://support.createaforum.com/Smileys/smfnew/embarrassed.gif" ]

var all_images = document.getElementsByTagName('IMG');
for(i=0;i<all_images.length;i++){
for(j=0;j<img_b.length;j++){
   if(all_images.src == img_b[j][0]){
     all_images.src = img_b[j][1];
}}}
</script>


This will work.
<--- Donate to CreateAForum! :D

Jeremiah 33:3

Offline forum

  • Sr. Member
  • ****
  • Posts: 407
  • Karma: 4
    • View Profile

Badges: (View All)
Third year Anniversary Level 5 Linux User
Re: what is the next step
« Reply #21 on: August 06, 2012, 07:56:25 pm »
still not working

Offline Seldom Fail

  • Global Moderator
  • *****
  • Posts: 207
  • Karma: 30
  • Gender: Male
    • View Profile

Badges: (View All)
Karma Good Karma Bad Level 5
Re: what is the next step
« Reply #22 on: August 06, 2012, 09:02:30 pm »
Gah. My bad.

Code: [Select]
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

Put that in your headers. Sorry. I'm currently sick and am over looking the simple details today. Lol
« Last Edit: August 07, 2012, 03:21:29 am by xboi209 »
<--- Donate to CreateAForum! :D

Jeremiah 33:3

Offline forum

  • Sr. Member
  • ****
  • Posts: 407
  • Karma: 4
    • View Profile

Badges: (View All)
Third year Anniversary Level 5 Linux User
Re: what is the next step
« Reply #23 on: August 07, 2012, 09:39:29 am »
Still not working

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: what is the next step
« Reply #24 on: August 07, 2012, 01:34:39 pm »
Copy and paste everything from your headers and footers so i can see if there's anything wrong
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline forum

  • Sr. Member
  • ****
  • Posts: 407
  • Karma: 4
    • View Profile

Badges: (View All)
Third year Anniversary Level 5 Linux User
Re: what is the next step
« Reply #25 on: August 07, 2012, 03:28:48 pm »
it is the same code as he put up thats all thats in the header and footer

Offline Seldom Fail

  • Global Moderator
  • *****
  • Posts: 207
  • Karma: 30
  • Gender: Male
    • View Profile

Badges: (View All)
Karma Good Karma Bad Level 5
Re: what is the next step
« Reply #26 on: August 07, 2012, 04:09:32 pm »
Code: [Select]
<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var forumurl = "tnafans";
var img_b = new Array();
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/smiley.gif" , "http://smfsupport.com/support/Smileys/smfnew/smiley.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/wink.gif" , "http://smfsupport.com/support/Smileys/smfnew/wink.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/cheesy.gif" , "http://smfsupport.com/support/Smileys/smfnew/cheesy.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/grin.gif" , "http://smfsupport.com/support/Smileys/smfnew/grin.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/angry.gif" , "http://smfsupport.com/support/Smileys/smfnew/angry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/sad.gif" , "http://smfsupport.com/support/Smileys/smfnew/sad.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/shocked.gif" , "http://smfsupport.com/support/Smileys/smfnew/shocked.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/cool.gif" , "http://smfsupport.com/support/Smileys/smfnew/cool.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/huh.gif" , "http://smfsupport.com/support/Smileys/smfnew/huh.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/rolleyes.gif" , "http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/tongue.gif" , "http://smfsupport.com/support/Smileys/smfnew/tongue.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/lipsrsealed.gif" , "http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/undecided.gif" , "http://smfsupport.com/support/Smileys/smfnew/undecided.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/kiss.gif" , "http://smfsupport.com/support/Smileys/smfnew/kiss.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/cry.gif" , "http://smfsupport.com/support/Smileys/smfnew/cry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl +  ".createaforum.com/Smileys/default/embarrassed.gif" , "http://support.createaforum.com/Smileys/smfnew/embarrassed.gif" ]


var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>
« Last Edit: August 08, 2012, 12:38:37 am by xboi209 »
<--- Donate to CreateAForum! :D

Jeremiah 33:3

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: what is the next step
« Reply #27 on: August 08, 2012, 12:30:20 am »
I'm going to confirm that the code itself is broken, the problem line is:
Code: [Select]
a_i.src = img_b[j][0];

Console error: Uncaught TypeError: Cannot read property '0' of undefined

A brave man will rise up and fix this one day...


Fixed
« Last Edit: August 08, 2012, 12:38:17 am by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline forum

  • Sr. Member
  • ****
  • Posts: 407
  • Karma: 4
    • View Profile

Badges: (View All)
Third year Anniversary Level 5 Linux User
Re: what is the next step
« Reply #28 on: August 08, 2012, 07:10:37 pm »
this code it not working it comes up with the code at the bo0ttom of the site :/

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: what is the next step
« Reply #29 on: August 09, 2012, 12:39:23 am »
I edited Seldom Fail's post already, are you sure you're using that one?
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
354 Views
Last post September 26, 2011, 08:13:37 pm
by CreateAForum
16 Replies
2979 Views
Last post September 07, 2012, 10:51:21 am
by forum
0 Replies
768 Views
Last post May 26, 2014, 06:44:00 pm
by Andrew Waldegrave
3 Replies
438 Views
Last post October 03, 2015, 11:29:23 pm
by CreateAForum