SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:35:12 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] Quick Message V1  (Read 807 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: June 21, 2007, 07:28:10 pm »

Add to headers if you don't have it already...
Code:
<script src="/jquery.js"></script>

Code:
<script>
if($("td.titlebg2 span b").not($("td.titlebg2 span b:contains(News)")).html()){
$(".maintab_back:contains(Logout)").after('<td class="maintab_last"> </td><td class="maintab_first"></td><td valign="top" class="maintab_back"><a href="http://XXXXXXX.smfforfreeX.com/index.php?action=pm;sa=send">New Message</a></td>')
};
</script>

Place in Headers.

This just adds a tab with a New Message link in it.  Simple, yet helpfull.

You will need to change the X's in the code to your board name and server.
« Last Edit: May 02, 2008, 09:20:24 pm by Agent Moose » Logged



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

Posts: 2010


View Profile WWW
« Reply #1 on: June 21, 2007, 08:07:24 pm »

I'm confused on this one (tried it with IE 6 and Opera). Where exactly does it put the tab at?
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: June 21, 2007, 09:12:55 pm »

Are you loged in when trying it?  It adds a tab next to the Logout Link uptop.
Logged



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

Posts: 2010


View Profile WWW
« Reply #3 on: June 21, 2007, 09:18:06 pm »

yeah and I dont have any extra tabs up there  Undecided. I put the code in just like you have it. Do we need to change any of the text first?

Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #4 on: June 21, 2007, 09:39:37 pm »

No, that is weird...it works for me...

Try this:
Code:
<script>

function quick_message() {
$(function() {
if(username){
$($(".maintab_back").contains("Logout")).after('<td class="maintab_last"> </td><td class="maintab_first"></td><td valign="top" class="maintab_back"><a href="http://smcodes.smfforfree3.com/index.php?action=pm;sa=send">New Message</a></td><td class="maintab_last"> </td><td class="maintab_first"></td><td valign="top" class="maintab_back"><a href="http://smcodes.smfforfree3.com/index.php/board,8.0.codes.html">Code Index</a></td>')
};});};
quick_message()
</script>
« Last Edit: June 21, 2007, 09:41:13 pm by Agent Moose » Logged



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

Posts: 2010


View Profile WWW
« Reply #5 on: June 21, 2007, 09:40:14 pm »

which browser are you using?


EDIT I just tried it with FF as well and still no tab  Undecided
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #6 on: June 21, 2007, 09:41:34 pm »

I am using FF.  I just tried it in IE too and it worked.  Try the code I posted before this post.
Logged



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

Posts: 2010


View Profile WWW
« Reply #7 on: June 21, 2007, 09:42:11 pm »

I am using FF.  I just tried it in IE too and it worked.  Try the code I posted before this post.

let me delete the code and redo it and see if maybe something got left off..
Logged

Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #8 on: June 21, 2007, 09:47:00 pm »

no that didnt work either.. one thing I did notice though is you have changed your main header code

this is the one I was using:

Code:
<script language="JavaScript" type="text/javascript" src="http://209.85.48.12/9581/134/upload/p4217340.ibf">//Jquery code</script>

but the one you have here is different. At any rate neither of them work for me because I just tried them both..lol

Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #9 on: June 22, 2007, 01:40:20 am »

hmmm...I will look into this later today, as it is 2 39 in the morning right now...

The code is still the same, but I just took out some part you don't have to have.
Logged



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

Posts: 2010


View Profile WWW
« Reply #10 on: June 22, 2007, 01:46:30 am »

hmmm...I will look into this later today, as it is 2 39 in the morning right now...

The code is still the same, but I just took out some part you don't have to have.


lol np.. You can mess with it later.

GO TO BED!  Cool
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.213 seconds with 16 queries.