Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Can't Find Code Anywhere; Blog Link Under Avatar
Topic Started: Nov 19 2008, 09:18 PM (1,082 Views)
JadedOne-ZNS
Member Avatar
Member
[ *  *  * ]
I could have sworn I got a code from the old support board but I can't locate this particular code here or over there on the old support board.

The code I am looking for places a link to someone's blog underneath their avatar when they make posts. If anyone can help me locate this code it would be greatly appreciated..... :)
Offline Profile Quote Post Goto Top
 
Nicolas
Member Avatar
"PLES RING IF AN RNSER IS REQIRD."

I believe this is the code:
Code: HTML
 
<script type="text/javascript">
//slayer766

if(location.href.match("topic"))
$(".user_info").each(function(){
a = $(this).parent().parent();
a.next().next().children(".c_footicons").prev().append(" <a href='"+main_url+"blog/main/"+a.prev().html().split('profile/')[1].split('/')[0]+"'><img src='http://z3.ifrm.com/18/3/0/f186882/blogbutton.jpg'></a>");
});
</script>

It is explained in JFK's Blog.
It will appear whether or not the person has a blog, unfortunately, but it's a start. :)
Offline Profile Quote Post Goto Top
 
JFK
Member Avatar
Member
[ *  *  * ]
=O

Someone actually reads my blog ?

:$ :) :P

Seriously though, use the smallblogbutton image as it fits rather well and does not distort the miniprofile box. ;)

http://z3.ifrm.com/18/3/0/f187843/smallblogbutton.jpg
Edited by JFK, Nov 20 2008, 07:50 AM.
Offline Profile Quote Post Goto Top
 
lego12
Member Avatar
gets board easily
[ * ]
where do i put the code?
Offline Profile Quote Post Goto Top
 
JFK
Member Avatar
Member
[ *  *  * ]
ACP > Board template > Below the board.
Offline Profile Quote Post Goto Top
 
lego12
Member Avatar
gets board easily
[ * ]
it doesn't show up on my board, i thin it may interfere with the Reputation system :( either that or some other code :(
Offline Profile Quote Post Goto Top
 
Nicolas
Member Avatar
"PLES RING IF AN RNSER IS REQIRD."

Can you post a link to your board?
Offline Profile Quote Post Goto Top
 
lego12
Member Avatar
gets board easily
[ * ]
http://s15.zetaboards.com/GVCC_Khaos_Kinetik
use this account to see rep system...
user: test
pass: testing
(I'm planning to use this board in the future only for people in my youth group)
Offline Profile Quote Post Goto Top
 
Nicolas
Member Avatar
"PLES RING IF AN RNSER IS REQIRD."

It hasn't shown up because you didn't input the code correctly. You forgot the opening <

You have:
Quote:
 

script type="text/javascript">
//slayer766

if(location.href.match("topic"))
$(".user_info").each(function(){
a = $(this).parent().parent();
a.next().next().children(".c_footicons").prev().append(" <a href='"+main_url+"blog/main/"+a.prev().html().split('profile/')[1].split('/')[0]+"'><img src='
http://z3.ifrm.com/18/3/0/f187843/smallblogbutton.jpg'></a>");
});
</script>

It should be:
Code:
 
<script type="text/javascript">
//slayer766

if(location.href.match("topic"))
$(".user_info").each(function(){
a = $(this).parent().parent();
a.next().next().children(".c_footicons").prev().append(" <a href='"+main_url+"blog/main/"+a.prev().html().split('profile/')[1].split('/')[0]+"'><img src='
[url]http://z3.ifrm.com/18/3/0/f187843/smallblogbutton.jpg'></a>");[/url]
});
</script>
Edited by Nicolas, Nov 20 2008, 08:55 PM.
Offline Profile Quote Post Goto Top
 
lego12
Member Avatar
gets board easily
[ * ]
thats not it i just copied it wrong from acp...

i did put
<script type="text/javascript">
//slayer766

if(location.href.match("topic"))
$(".user_info").each(function(){
a = $(this).parent().parent();
a.next().next().children(".c_footicons").prev().append(" <a href='"+main_url+"blog/main/"+a.prev().html().split('profile/')[1].split('/')[0]+"'><img src='
http://z3.ifrm.com/18/3/0/f187843/smallblogbutton.jpg'></a>");
});
</script>
if you guys cant figure it it that's fine, but still its a good code for the most part..
Edited by lego12, Nov 20 2008, 08:58 PM.
Offline Profile Quote Post Goto Top
 
Nicolas
Member Avatar
"PLES RING IF AN RNSER IS REQIRD."

If you remove the rep code for a moment does it work then?
Can you post your board wrappers?
Offline Profile Quote Post Goto Top
 
JFK
Member Avatar
Member
[ *  *  * ]
I just looked at your source code and there is a carrage return immediately after the first single quote in the following which does not belong :

Code:
 
<img src='http://z3.ifrm.com/18/3/0/f187843/smallblogbutton.jpg'></a>");
Offline Profile Quote Post Goto Top
 
lego12
Member Avatar
gets board easily
[ * ]
i removed rep system it still doesnt work.. odd
so how do i fix it?
(has nothing to do with this but im going to eat ill be back in 10 mins,...)
Edited by lego12, Nov 20 2008, 09:05 PM.
Offline Profile Quote Post Goto Top
 
JFK
Member Avatar
Member
[ *  *  * ]
lego12
Nov 20 2008, 09:01 PM
i removed rep system it still doesnt work.. odd
so how do i fix it?
(has nothing to do with this but im going to eat ill be back in 10 mins,...)
Remove what you put there earlier and do a straight copy/paste of the following :

Code:
 


<script type="text/javascript">
//slayer766

if(location.href.match("topic"))
$(".user_info").each(function(){
a = $(this).parent().parent();
a.next().next().children(".c_footicons").prev().append(" <a href='"+main_url+"blog/main/"+a.prev().html().split('profile/')[1].split('/')[0]+"'><img src='http://z3.ifrm.com/190/51/0/f188748/smallblogbutton.jpg'></a>");
});
</script>



I just pulled the above out of my test board template and it does work there.
Offline Profile Quote Post Goto Top
 
lego12
Member Avatar
gets board easily
[ * ]
yay! it works, thanks
now im going to work on a vox themed image for my board
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · ZetaBoards Support · Next Topic »
Add Reply