Advertise Here

Author Topic: [code] Linking avatars to profiles  (Read 3858 times)

0 Members and 1 Guest are viewing this topic.

Offline Colette Brunel

  • SMF For Free Sr. Member
  • *
  • Posts: 424
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Poll Voter Level 4 Fourth year Anniversary Windows User Topic Starter
[code] Linking avatars to profiles
« on: November 26, 2008, 10:43:53 am »
The following code will link all avatars to your profile.

Make sure you have a reference to jQuery in your headers.

Code: [Select]
<script src="/jquery.js"></script>
Add the following code into your headers.

Code: [Select]
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
$("img.avatar").click(function() {
   window.location='?action=profile'; }
); // ]]></script>
« Last Edit: November 26, 2008, 10:49:54 am by ccbtimewiz »

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #1 on: November 26, 2008, 12:09:24 pm »
Awesome! Im going to use it!

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #2 on: November 26, 2008, 01:57:23 pm »
link all avatars to my profile?

Offline Colette Brunel

  • SMF For Free Sr. Member
  • *
  • Posts: 424
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Poll Voter Level 4 Fourth year Anniversary Windows User Topic Starter
Re: [code] Linking avatars to profiles
« Reply #3 on: November 26, 2008, 02:12:17 pm »
link all avatars to my profile?

Correct.

Originally I was going to make it link to the user's profile, but that's very difficult to do apparently. Once I figure out how to do that without writing too big of a script, I'll update it.
« Last Edit: November 26, 2008, 02:18:34 pm by ccbtimewiz »

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #4 on: November 26, 2008, 03:09:39 pm »
no i mean like whats it do

Offline Colette Brunel

  • SMF For Free Sr. Member
  • *
  • Posts: 424
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Poll Voter Level 4 Fourth year Anniversary Windows User Topic Starter
Re: [code] Linking avatars to profiles
« Reply #5 on: November 26, 2008, 03:17:45 pm »
When you click an avatar, it brings you to your user page.

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #6 on: November 26, 2008, 06:18:37 pm »
oh ok cool thx

Offline -Sя.Sharp

  • SMF For Free Master
  • *
  • Posts: 1032
    • View Profile
    • Hidden Designers

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [code] Linking avatars to profiles
« Reply #7 on: November 26, 2008, 10:54:18 pm »
I'm sorry I tested this out and it didn't seem to work, as I understand it its suppose to make the avatars "clickable" in, post? Here you can visit my test topic. Also I didn't alter the code in anyway, so its either it doesn't work...or I do not understand its function.

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #8 on: November 26, 2008, 11:06:34 pm »
hmmmm it worked for me when i tryed it

Offline Colette Brunel

  • SMF For Free Sr. Member
  • *
  • Posts: 424
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Poll Voter Level 4 Fourth year Anniversary Windows User Topic Starter
Re: [code] Linking avatars to profiles
« Reply #9 on: November 27, 2008, 05:55:15 pm »
I'm sorry I tested this out and it didn't seem to work, as I understand it its suppose to make the avatars "clickable" in, post? Here you can visit my test topic. Also I didn't alter the code in anyway, so its either it doesn't work...or I do not understand its function.

Other code appears to be interfering.

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #10 on: January 14, 2009, 09:54:04 pm »
ccb This has suddenly stoped working for me any ideas on what happened

Offline SmartBoy986

  • SMF For Free Full Member
  • *
  • Posts: 173
    • View Profile
    • XtraCrazyForum . . . Join US TODAY !!!

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #11 on: January 15, 2009, 05:45:15 am »
this works picture then picture then picture?
??

Offline [JeReMy]

  • SMF For Free Master
  • *
  • Posts: 1174
  • www.ourhangout.org
    • View Profile
    • ourhangout

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #12 on: January 15, 2009, 06:51:26 am »
this works picture then picture then picture?
??
whattttt

Offline SmartBoy986

  • SMF For Free Full Member
  • *
  • Posts: 173
    • View Profile
    • XtraCrazyForum . . . Join US TODAY !!!

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code] Linking avatars to profiles
« Reply #13 on: January 15, 2009, 07:14:33 am »
means
1st pic. then other then other etc.

Offline Colette Brunel

  • SMF For Free Sr. Member
  • *
  • Posts: 424
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Poll Voter Level 4 Fourth year Anniversary Windows User Topic Starter
Re: [code] Linking avatars to profiles
« Reply #14 on: January 15, 2009, 10:19:12 am »
means
1st pic. then other then other etc.

This mod links all avatars, yes.

ccb This has suddenly stoped working for me any ideas on what happened

Well things don't just stop working for no reason. Have you installed/edited anything? Perhaps you added a new script that interferes?

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
4188 Views
Last post October 30, 2006, 11:53:47 am
by $H-GAGE$
7 Replies
2021 Views
Last post January 18, 2009, 09:54:38 am
by simply sibyl
1 Replies
1414 Views
Last post January 18, 2008, 10:56:47 am
by Celebrus
5 Replies
1921 Views
Last post December 07, 2009, 07:31:08 pm
by simply sibyl
20 Replies
3251 Views
Last post February 14, 2010, 05:45:59 pm
by SMF For Free