Advertise Here

Author Topic: [Code] Contact Page  (Read 12426 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Contact Page
« on: April 23, 2008, 10:32:40 pm »
Add this to your headers if you don't have it:
Code: [Select]
<script src="/jquery.js"></script>
Footers:
Code: [Select]
<script>
var Me = 0;
var Contact = new Array();
Contact[Me++]=["NAME","EMAIL"];

var loc = window.location.href.split("/index.php")[0];
$(".maintab_back:contains(Logout) , .maintab_back:contains(Register)").before("<td class='maintab_back'><a href='" + loc + "/index.php?action=Contacts'>Contacts</a></td>");
if(location.href.match(/action=Contacts/i)){
document.title = "Contacts";
document.getElementById("bodyarea").innerHTML = "<br><br><div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center; '>Who do you want To Contact?</div><div id='Contacts'><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2' width='100%'><center><span id='ContactLinks'></span></center></td></tr></table></div></div><br><div id='ContactTable'><div class='tborder'><div class='catbg' style='padding: 6px; vertical-align: middle; text-align: center;'><span id='Title'></span></div><div><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='windowbg2' width='100%'><span id='The_Contacts'></span></td></tr></table></div></div></div><br>";

for(x=0;x<Contact.length;x++){
document.getElementById("ContactLinks").innerHTML += " [<a href='javascript:Contacts(" + x +")'>"  + Contact[x][0] + "</a>] ";
function Contacts(x){
document.title = Contact[x][0];
document.getElementById("Title").innerHTML = Contact[x][0];
document.getElementById("The_Contacts").innerHTML = "<form action='MAILTO:" + Contact[x][1] + "' method='post' enctype='text/plain'>Your Username: (If you don't have one, just use Guest)<br><input type='text'name='name' value='' size='40'><br>Your E-Mail Address:<br><input type='text' name='mail' size='100%'/><br>Why Are You Contacting " + Contact[x][0] + "?<br><text" + "area type='text' name='comment' cols='100%' rows='7'></text" + "area><br><input type='submit' value='Send'/> <input type='reset' value='Reset'/></form>";
};};};
</script>

Original Request: http://www.smfsupport.com/support/code_requests/req_contact_page-t14126.0.html

NAME = The Username of the contact
EMAIL = The Email Address of the Contact.

To add more contacts, add more of these lines:
Contact[Me++]=["NAME","EMAIL"];

Enjoy :)
« Last Edit: May 01, 2008, 03:01:19 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline pker own

  • SMF For Free Sr. Member
  • *
  • Posts: 370
    • View Profile
    • Coreyscape Forums (Was A Server)

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #1 on: April 24, 2008, 03:43:35 am »
wow very nice code this will come in handy! great work!

Offline legend 1234

  • SMF For Free Full Member
  • *
  • Posts: 222
  • Legend 1234
    • View Profile
    • XxownxX

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #2 on: April 24, 2008, 07:38:37 am »
umm ive added it to my forums

but now wat ?

were do they go to contact me or something >?

legend 1234
Need help with something ? General support l Guides and tuts l codes

Offline Blade

  • SMF For Free Master
  • *
  • Posts: 1394
    • View Profile

  • Total Badges: 19
    Badges: (View All)
    Windows User Topic Starter Combination Level 4 Level 3
Re: [Code] Contact Page
« Reply #3 on: April 24, 2008, 07:40:25 am »
i like thatcode, we have it on are forum

Offline legend 1234

  • SMF For Free Full Member
  • *
  • Posts: 222
  • Legend 1234
    • View Profile
    • XxownxX

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #4 on: April 24, 2008, 07:46:26 am »
lol dusty thats not the code i used for our forum

im trying to see wat this 1 does

i added it but i couldnt see nothing different at all lol

legend 1234
Need help with something ? General support l Guides and tuts l codes

Offline pker own

  • SMF For Free Sr. Member
  • *
  • Posts: 370
    • View Profile
    • Coreyscape Forums (Was A Server)

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #5 on: April 24, 2008, 08:01:53 am »
i got this added on my test forums but when i press send it takes me to emails do you know how to make it via private message?

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] Contact Page
« Reply #6 on: April 24, 2008, 08:37:55 am »
i got this added on my test forums but when i press send it takes me to emails do you know how to make it via private message?

Only Members can use the personal message option.  I use a contact page for members and guests to contact me when they can't log-in or something.


And I Play:  Mafia-Mandemz

Offline pker own

  • SMF For Free Sr. Member
  • *
  • Posts: 370
    • View Profile
    • Coreyscape Forums (Was A Server)

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #7 on: April 24, 2008, 08:38:57 am »
oh okay thank you LaundryLady ill use the pm one i used before. (if i can remember how to do it again.)

Offline Qub1

  • SMF For Free Full Member
  • *
  • Posts: 149
    • View Profile
    • QUB1

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #8 on: April 24, 2008, 09:41:23 am »
Omg, i was just working on a Project i called Contact Us!!! I was just making this code!
 :'( :'( :buck2: :buck2: :buck2: :buck2: :'( :'(

Offline legend 1234

  • SMF For Free Full Member
  • *
  • Posts: 222
  • Legend 1234
    • View Profile
    • XxownxX

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #9 on: April 24, 2008, 09:46:06 am »
haha qub1 im using the code u made its sweet :)

and i still cant see this code on my forums lol

legend 1234
Need help with something ? General support l Guides and tuts l codes

Offline Phoebe Jordan

  • SMF For Free Member
  • *
  • Posts: 42
    • View Profile
    • Romance Readers & Writers Forum

  • Total Badges: 12
    Badges: (View All)
    Apple User Topic Starter Combination Level 2 Level 1
Re: [Code] Contact Page
« Reply #10 on: April 24, 2008, 10:50:04 am »
haha qub1 im using the code u made its sweet :)

and i still cant see this code on my forums lol

legend 1234

Yeah I can't see where the contact page is supposed to be on my forums.

Offline pker own

  • SMF For Free Sr. Member
  • *
  • Posts: 370
    • View Profile
    • Coreyscape Forums (Was A Server)

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #11 on: April 24, 2008, 10:50:56 am »
there should be a 'CONTACT' tab it worked for me.

Offline Phoebe Jordan

  • SMF For Free Member
  • *
  • Posts: 42
    • View Profile
    • Romance Readers & Writers Forum

  • Total Badges: 12
    Badges: (View All)
    Apple User Topic Starter Combination Level 2 Level 1
Re: [Code] Contact Page
« Reply #12 on: April 24, 2008, 10:52:31 am »
there should be a 'CONTACT' tab it worked for me.

I don't see the contact tab.

Offline pker own

  • SMF For Free Sr. Member
  • *
  • Posts: 370
    • View Profile
    • Coreyscape Forums (Was A Server)

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Contact Page
« Reply #13 on: April 24, 2008, 10:53:27 am »
hmm weird i can see one whats your URL?

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Contact Page
« Reply #14 on: April 24, 2008, 10:53:52 am »
Phoebe Jordan.. leave your forum url with the code in place please so someone can see what you did and help you out with it.

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
3971 Views
Last post April 23, 2008, 10:35:01 pm
by Agent Moose
4 Replies
1203 Views
Last post April 26, 2008, 05:12:35 pm
by Founders
1 Replies
1701 Views
Last post October 06, 2008, 12:00:35 pm
by simply sibyl
4 Replies
6857 Views
Last post May 19, 2011, 06:22:26 pm
by Glitch
0 Replies
11983 Views
Last post September 22, 2018, 02:58:58 pm
by SMF For Free