SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:24:45 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Member Quickies V1  (Read 1132 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« on: September 22, 2007, 07:21:27 pm »

Add this to the top of your headers if you don't have it:
Code:
<script src="/jquery.js"></script>


Footers
Code:
<script creator="Agent Moose">
if(location.href.match(/topic,/i)) {
var counter = 0;$("tr td b a").each(function(){
if(this.href.match(/\?action=profile;u=(\d+)/i)) {
//Created by Agent Moose (smcodes.smfforfree3.com)
var url = RegExp.$1; this.href = "javascript:void(0)"; this.id = "_"+counter;
$(this).click(function(){$("#member"+url+this.id+"_options").toggle();});
$(this).each(function(){$(this).append("<br><span id='"+url+"_"+counter+"PWNS'></span>")})
$("#"+url+"_"+counter+"PWNS").html('<div id="member'+url+"_"+counter+'_options"><table class="bordercolor" width="150"><tbody><tr class="titlebg"> Member Options</td></tr><tr><td class="windowbg"><a href="'+location.pathname+'?action=profile;u='+url+'">View Profile</a><br/><a href="'+location.pathname+'?action=pm;sa=send;u='+url+'">Message User</a><br/><a href="'+location.pathname+'?action=comment;sa=add;u='+url+'">Comment User</a><br/><a href="'+location.pathname+'?action=profile;u='+url+';sa=showPosts">Show Lastest Posts</a><br/><a href="'+location.pathname+'?action=profile;u='+url+';sa=statPanel">Show Stats</a><br/></td></tr></tbody></table></div>')
$("#member"+url+"_"+counter+"_options").each(function(){this.style.display = 'none';this.style.position = 'absolute'});counter++;};})};
</script>

This code is just like the Admin Quickies, but way better.  If you click on a members name in a topic, a box will appear under it with these links:
-View Profile
-Message User
-Comment User
-Show Latest Posts
-Show Stats

This code works for IE and FF.

Preview: http://shoutbox.smfforfree3.com/index.php/topic,3.0.html (Click on a members name to see what happens!)

So, You like?
« Last Edit: May 02, 2008, 04:13:24 pm by simply sibyl » Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Alex
SMF For Free Full Member
*
Offline Offline

Posts: 116


View Profile
« Reply #1 on: September 22, 2007, 08:04:41 pm »

Very nice!
Logged

sig coming soon!
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: September 22, 2007, 08:15:26 pm »

Thanks Smiley
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Coreeeey
SMF For Free Sr. Member
*
Offline Offline

Posts: 311



View Profile WWW
« Reply #3 on: September 23, 2007, 12:24:16 am »

The preview doesn't seem to be working for me. I am using IE 7.
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #4 on: September 23, 2007, 11:27:48 am »

Oh yea.  You need to make a new account on it for it to work.
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
BadgerGirl*naf
SMF For Free Full Member
*
Offline Offline

Posts: 138



View Profile WWW
« Reply #5 on: September 23, 2007, 11:35:02 am »

Very nice Agent Moose... did u add to the site?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #6 on: September 23, 2007, 11:47:53 am »

No I didn't.  It will make it go slower because of how much the code does.
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
BadgerGirl*naf
SMF For Free Full Member
*
Offline Offline

Posts: 138



View Profile WWW
« Reply #7 on: September 23, 2007, 12:18:36 pm »

so i shouldnt add it right?
Logged

Laugh-nd-kid
SMF For Free Master
*
Offline Offline

Posts: 1413


Thankyou for this great software SMF For Free!


View Profile
« Reply #8 on: September 23, 2007, 12:19:11 pm »

Good Idea of a CODE!
Logged

V.JR
SMF For Free Member
*
Offline Offline

Posts: 55



View Profile WWW
« Reply #9 on: September 23, 2007, 06:31:33 pm »

dude u rock every code u made has been awsome thx for them all
Logged

Raven78
SMF For Free Newbie
*
Offline Offline

Posts: 14



View Profile
« Reply #10 on: May 19, 2008, 11:47:36 pm »

Awesomess^^
Logged
3lf-ครรครรเภ
SMF For Free Full Member
*
Offline Offline

Posts: 108



View Profile
« Reply #11 on: June 14, 2008, 05:34:31 pm »

url; soadroxscape.smfforfree4.com
it disabled my admin crowns from showing up in posts for some reason.. (i removed and now they work fine)
Logged

mrthunder23
SMF For Free Member
*
Offline Offline

Posts: 42


View Profile
« Reply #12 on: June 17, 2008, 05:52:49 pm »

The Quickie Panel comes out on the otherside of the screen, how can I fix this?
Logged


Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.323 seconds with 18 queries.