MODx Command Dropdown

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
Locked
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

MODx Command Dropdown

Post by Jessica » Wed Jun 13, 2012 3:20 pm

How would I get this? (see image)

Image
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: MODx Command Dropdown

Post by Jessica » Thu Jun 14, 2012 12:43 am

bump
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: MODx Command Dropdown

Post by femu » Thu Jun 14, 2012 5:50 am

Do you mean a dropdown box?
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: MODx Command Dropdown

Post by Jessica » Thu Jun 14, 2012 1:56 pm

yeah.
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

User avatar
FloridaMan339
Registered User
Posts: 112
Joined: Thu Jan 07, 2010 11:58 pm
Location: Fort Myers, Florida
Name: Randy Wood
Contact:

Re: MODx Command Dropdown

Post by FloridaMan339 » Thu Jun 14, 2012 4:30 pm

TRY THIS:
Before </head> in overall_header.html:

Code: Select all

<!-- Dropdown Box Start -->
<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>
<!-- Dropdown Box End -->
IN BODY of file where you want the box to appear:

Code: Select all

<!-- Dropdown Box Choices Start -->
<form action="dummy" method="post"><select name="choice" size="1" onChange="jump(this.form)">
<option value="http://www.stephenwilliams.me.uk/socialcircles/">Social Circles</option>
<option value="http://www.christiansocialnet.org/">ChristianSocialNet</option>
<option value="http://socialnetwork.phpbb3hacks.com/">phpBB Social Network</option>
<option value="http://www.phpbb.com/">phpBB</option>
<option value="http://www.google.com/">Google</option></select></form>
<!-- Dropdown Box Choices End -->
Demo:
http://silvermoon.comoj.com/index.php

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: MODx Command Dropdown

Post by Jessica » Thu Jun 14, 2012 7:54 pm

oh wait no...sorry I wasn't clear but I meant that I wanted the MODx dropdown, which has Find, Add after, etc, and you can put them in your post....
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: MODx Command Dropdown

Post by 4_seven » Fri Jun 15, 2012 3:30 pm

Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
trigger_error
I've Been Banned!
Posts: 200
Joined: Mon Feb 21, 2011 1:27 pm

Re: MODx Command Dropdown

Post by trigger_error » Sat Jun 16, 2012 1:52 pm

Thanks for that. Works a treat :lol:

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: MODx Command Dropdown

Post by Jessica » Sat Jun 16, 2012 1:55 pm

Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

Locked

Return to “[3.0.x] MOD Requests”