News:

Create A Forum Installed

Author Topic: [Code] Any Image Changer  (Read 3542 times)

0 Members and 2 Guests are viewing this topic.

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
[Code] Any Image Changer
« on: January 06, 2013, 10:00:44 pm »
Description: Changes any image on your forum to any image you want.

This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/

Footers:
Code: [Select]
<script>function xboi209_changeimg(oldimg,newimg){$("img[src='"+oldimg+"']").attr("src",newimg)}
xboi209_changeimg("OLD IMG URL","NEW IMG URL");
</script>

Editing Instructions: At the end of the code before the </script>, write xboi209_changeimg("OLD IMG URL","NEW IMG URL"); and replace OLD IMG URL with the old image url and NEW IMG URL to the new image url. To change multiple images, just copy and paste xboi209_changeimg("OLD IMG URL","NEW IMG URL"); before </script>.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


Offline Silver734

  • Full Member
  • ***
  • Posts: 165
  • Karma: 1
  • Gender: Female
    • View Profile
    • Fairy Tail

Badges: (View All)
Second year Anniversary One year Anniversary Poll Voter
Re: [Code] Any Image Changer
« Reply #1 on: August 29, 2013, 11:25:44 pm »
It worked for a few minutes and then didn't work anymore


EDIT: nope it's better now just a bit slow
« Last Edit: August 29, 2013, 11:36:36 pm by Silver734 »
Fairytailrp.netFairytailrp.net
This forum was made with Create a Forum!! :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: [Code] Any Image Changer
« Reply #2 on: August 30, 2013, 03:54:07 am »
It worked for a few minutes and then didn't work anymore


EDIT: nope it's better now just a bit slow
If you're using this for a lot of images, it's definitely going to be slow unless you have a modern web browser and a decent computer.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline Silver734

  • Full Member
  • ***
  • Posts: 165
  • Karma: 1
  • Gender: Female
    • View Profile
    • Fairy Tail

Badges: (View All)
Second year Anniversary One year Anniversary Poll Voter
Re: [Code] Any Image Changer
« Reply #3 on: August 30, 2013, 06:35:57 pm »
Is windows 7 ok?
Fairytailrp.netFairytailrp.net
This forum was made with Create a Forum!! :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: [Code] Any Image Changer
« Reply #4 on: August 30, 2013, 10:24:15 pm »
The OS doesn't matter
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline Cobra C

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
    • View Profile

Badges: (View All)
Karma Good Level 3 Combination
Re: [Code] Any Image Changer
« Reply #5 on: July 19, 2020, 05:59:23 am »
Does this still work? Having trouble getting this to work.

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
4478 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
3 Replies
2535 Views
Last post August 03, 2010, 04:41:15 pm
by CreateAForum Codes
60 Replies
14976 Views
Last post November 27, 2014, 04:24:38 am
by Agent Moose
2 Replies
1696 Views
Last post August 08, 2010, 03:41:46 pm
by Thornton136
3 Replies
679 Views
Last post April 04, 2011, 10:59:23 pm
by Alex