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:
Add Reply
Email member in posts
Topic Started: Oct 22 2009, 11:16 AM (578 Views)
slayer766-ZNR
Member
[ *  *  *  * ]
Description: Adds the current user of the posts email link to it. Made as a request.
Copyright: slayer766
Known Bugs: None
Browser compatibility: All
Preview/screen shot: http://s1.zetaboards.com/Slayer_Coding/topic/664527
Installation: Board template > Below the board:

Code:
 
<script type="text/javascript">
$(".user_info").each(function(){
a = $(this).parent().parent();
a.next().next().children(".c_footicons").prev().append(" <a href='"+main_url+"comm/?c=1&mid="+a.prev().html().split('profile/')[1].split('/')[0]+"'>E-mail</a>");
});
</script>
Offline Profile Quote Post Goto Top
 
Longshot1-ZNR
Member Avatar
Retired Navy
[ * ]
When I attempted to view the "preview" I got this message:

You do not have permission to access this topic.
Error Code: 27002:34208

Kinda does away with the whole "preview" thing doesn't it ?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Coder
[ *  *  *  *  *  *  *  * ]
Here's a preview: http://img593.imageshack.us/img593/7209/281f6591f2dd450db151bf7.png

It lets you access the email link from members posts.
Offline Profile Quote Post Goto Top
 
Longshot1-ZNR
Member Avatar
Retired Navy
[ * ]
Cool, and thanks again Cory !
Offline Profile Quote Post Goto Top
 
alan131210
Member
[ *  * ]
Cory
Apr 1 2012, 05:31 PM
Here's a preview: http://img593.imageshack.us/img593/7209/281f6591f2dd450db151bf7.png

It lets you access the email link from members posts.
how can you add an icon of your own choice for this email button ???
Offline Profile Quote Post Goto Top
 
alan131210
Member
[ *  * ]
like when i add this it just says "email me" but i would like to add a custom icon instead of just a plain "email me" !!
Offline Profile Quote Post Goto Top
 
Pete B
Member
[ *  *  *  *  *  *  *  * ]
Like this:

Code
 
<script type="text/javascript">
$(".user_info").each(function(){
a = $(this).parent().parent();
a.next().next().children(".c_footicons").prev().append(" <a href='"+main_url+"comm/?c=1&mid="+a.prev().html().split('profile/')[1].split('/')[0]+"'><img src='IMG LINK HERE' alt='Email' /></a>");
});
</script>
Offline Profile Quote Post Goto Top
 
alan131210
Member
[ *  * ]
^^ yes thank you
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply