Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Code Requests
  • Completed Requests
  • [Completed] [ZB] edit the profile
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[Completed] [ZB] edit the profile
Tweet Topic Started: Oct 17 2009, 10:42 AM (257 Views)
theschoot Oct 17 2009, 10:42 AM Post #1
Member Avatar
Want to learn Javascript :)

Posts:
79
Group:
Member
Member
#2,214
Joined:
Feb 3, 2009
Coding language
HTML/CSS
i'm searching acode which can do the following:

Posted Image

that a specific own profile field goes between the other rows, e.g. between the personal Messenger and MSN.

thx for help,
Posted Image
Offline Profile Goto Top
 
RedBldSandman Oct 17 2009, 11:37 AM Post #2
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
Try this:
Code:
 
if (location.href.match("/profile")) {
var info_name = "ICQ"
$("td.c_desc:contains("+info_name+")").parent().insertAfter($("td.c_desc:contains(Personal Messenger)").parent())
}
Just change the variable info_name to whatever value you wish, its currently set as "ICQ" as in your screenshot.
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
theschoot Oct 17 2009, 01:52 PM Post #3
Member Avatar
Want to learn Javascript :)

Posts:
79
Group:
Member
Member
#2,214
Joined:
Feb 3, 2009
Coding language
HTML/CSS
RedBldSandman
Oct 17 2009, 11:37 AM
Try this:
Code:
 
if (location.href.match("/profile")) {
var info_name = "ICQ"
$("td.c_desc:contains("+info_name+")").parent().insertAfter($("td.c_desc:contains(Personal Messenger)").parent())
}
Just change the variable info_name to whatever value you wish, its currently set as "ICQ" as in your screenshot.
great thx, and it is possible that the "icq" row appears under a selfmade row like Contact Information? that i can make a own thing like Contact Information or Personal Information??

thx would be great
Posted Image
Offline Profile Goto Top
 
RedBldSandman Oct 17 2009, 07:49 PM Post #4
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
I'm a bit confused by what you want xD If you want to specify a different row to insert the ICQ row after, you can use this code:
Code:
 
if (location.href.match("/profile")) {
var info_name = "ICQ"
var info_after = "Personal Messenger"
$("td.c_desc:contains("+info_name+")").parent().insertAfter($("td.c_desc:contains("+info_after+")").parent())
}
Just change the variable info_after to the title of the row you want to insert your ICQ row after. If this isn't what you meant, just clarify what you wanted and I can get that done :D
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
theschoot Oct 18 2009, 09:24 AM Post #5
Member Avatar
Want to learn Javascript :)

Posts:
79
Group:
Member
Member
#2,214
Joined:
Feb 3, 2009
Coding language
HTML/CSS
RedBldSandman
Oct 17 2009, 07:49 PM
I'm a bit confused by what you want xD If you want to specify a different row to insert the ICQ row after, you can use this code:
Code:
 
if (location.href.match("/profile")) {
var info_name = "ICQ"
var info_after = "Personal Messenger"
$("td.c_desc:contains("+info_name+")").parent().insertAfter($("td.c_desc:contains("+info_after+")").parent())
}
Just change the variable info_after to the title of the row you want to insert your ICQ row after. If this isn't what you meant, just clarify what you wanted and I can get that done :D
^_^ thx but i mean to make an own row, like the Contact Information or Personal Information in which you can write what else you like, by yourself :)

sry my english isn't the best
Edited by theschoot, Oct 18 2009, 09:24 AM.
Posted Image
Offline Profile Goto Top
 
RedBldSandman Oct 18 2009, 05:58 PM Post #6
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
So something like this?
Code:
 
if (location.href.match("/profile")) {
var info_name = "ICQ"
var info_header = "Additional Information"

var info_test = $("td.c_desc:contains("+info_name+")").text()
if (info_test!="") {
$("table.profile:eq(2)").before("<table class='profile' cellspacing='1'><thead><tr><th colspan='2'>"+info_header+"</th></tr></thead><tbody id='info_obj'></tbody></table>")
$("td.c_desc:contains("+info_name+")").parent().appendTo("#info_obj")
}
}
Just change info_header to whatever you wish the new block to be called. Hopefully this actually is what you wanted :P
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
theschoot Oct 19 2009, 07:26 AM Post #7
Member Avatar
Want to learn Javascript :)

Posts:
79
Group:
Member
Member
#2,214
Joined:
Feb 3, 2009
Coding language
HTML/CSS
RedBldSandman
Oct 18 2009, 05:58 PM
So something like this?
Code:
 
if (location.href.match("/profile")) {
var info_name = "ICQ"
var info_header = "Additional Information"

var info_test = $("td.c_desc:contains("+info_name+")").text()
if (info_test!="") {
$("table.profile:eq(2)").before("<table class='profile' cellspacing='1'><thead><tr><th colspan='2'>"+info_header+"</th></tr></thead><tbody id='info_obj'></tbody></table>")
$("td.c_desc:contains("+info_name+")").parent().appendTo("#info_obj")
}
}
Just change info_header to whatever you wish the new block to be called. Hopefully this actually is what you wanted :P
^_^ thx alot

that was the thing i wanted :)
Posted Image
Offline Profile Goto Top
 
RedBldSandman Oct 19 2009, 07:42 AM Post #8
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
No problem :D
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
HolySavior Oct 19 2009, 04:15 PM Post #9
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
You're welcome.
See? We can read thoughts too. ;)

Your request has been completed, and we're moving it to the correct forum. We hope it works for you; if it doesn't, feel free to post another request topic in the requests forum. Just remember: read the rules first!

Thanks,
The ZBCode Staff
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Completed Requests · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 2:27 PM Jul 11
Hosted for free by ZetaBoards · Privacy Policy