Advertise Here

Author Topic: [code] Admin Quick Swap  (Read 3230 times)

0 Members and 1 Guest are viewing this topic.

Offline -Sя.Sharp

  • SMF For Free Master
  • *
  • Posts: 1032
    • View Profile
    • Hidden Designers

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
[code] Admin Quick Swap
« on: January 17, 2009, 08:42:12 pm »
This is for an admin or anyone with access to the administrators panel, to quickly change the skin of the forum...without having to navigate all the way to "Manage Styles" ;)
 
Works in all browsers.

Live Preview

I have one for a portal block (HTML) and for the footers.

EDIT WHAT IS CAPS AND RED.
note: STYLE ID is the name of the style example) you create a style Named Blue Day, the id will be "blueday".[/b]
Quote
<script language="JavaScript" type="text/javascript">
<!--
function writeJS(){
var str='';
str+='<b><FONT face="Times New Roman" size= "3" color="white">Swapper:</b></font><br/><form action="http://SITE URL.smfforfree#.com/index.php?action=style;sa=pick" method="post">';
//By Sharp/chrisdor (chrisdor.deviantart.com) Hidden-Designers.com
str+='<select name="stylepicker" size="1">';
str+='<option value="STYLE ID">STYLE NAME</option>';
str+='<option value="STYLE ID">STYLE NAME</option>';
str+='</select>';
str+='<input type="submit" value="Swap Style"/>';
str+='<meta http-equiv="refresh" content="onsubmit" url="http://SITE URL.smfforfree#.com/index.php?action=style" >';
document.write(str);
}
writeJS();
//-->
</script>

And for our portal block.

EDIT WHAT IS CAPS AND RED.

Quote
<FONT face="Times New Roman" size= "3" color="white">Swapper:</b></font><br/><form action="http://SITE URL.smfforfree#.com/index.php?action=style;sa=pick" method="post">
<select name="stylepicker" size="1">
<option value="STYLE ID">STYLE NAME</option>
<option value="STYLE ID">STYLE NAME</option>
</select>
<input type="submit" value="Swap Style"/>
</form>
« Last Edit: January 19, 2009, 11:35:23 am by chrisdor »

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [code] Swapper
« Reply #1 on: January 17, 2009, 08:47:07 pm »
Ah looks great, but hasnt been tested on IE.. :'(

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] Swapper
« Reply #2 on: January 17, 2009, 09:00:45 pm »
Umm.. only Admins (or anyone with access to that area) would be able to use it.
Theres another easier way actually.   View your source code while you are in manage styles and find the form for the style picker.   No javascript or anything needed.  Again that is only for groups with permission to that area.

 
« Last Edit: January 17, 2009, 09:10:34 pm by simply sibyl »

Offline -Sя.Sharp

  • SMF For Free Master
  • *
  • Posts: 1032
    • View Profile
    • Hidden Designers

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [code] Swapper
« Reply #3 on: January 17, 2009, 09:05:01 pm »
Ah looks great, but hasnt been tested on IE.. :'(

EDIT: Looks like sibyl beat me to explaining what I just realized. Back to work I guess.

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] Swapper
« Reply #4 on: January 17, 2009, 09:09:48 pm »
Ah looks great, but hasnt been tested on IE.. :'(

EDIT: Looks like sibyl beat me to explaining what I just realized. Back to work I guess.

Soon as you said you referenced the picker I knew it was going to be a problem. ;)


Offline valhalla95

  • SMF For Free Member
  • *
  • Posts: 30
    • View Profile
    • {LYLE CODING}

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [code] Swapper
« Reply #5 on: January 19, 2009, 10:35:11 am »
please test it on IE and Safari

good job though

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] Swapper
« Reply #6 on: January 19, 2009, 10:39:01 am »
please test it on IE and Safari

good job though

It works in all browsers.    
It only works for the Admin or Membergroups that have access to the Manage Styles area so members wouldnt be able to use it.     He didnt realize that when he created it.  It is basically a shortcut to the stylepicker button in the admin panel.   You can grab the same info from your forums source code and put the same dropdown box you see inside Manage styles someplace on your forum but only you as Admin can use it..   see here:  http://sibylstylecreator.smfforfree2.com/     Just a simple form code.   Same thing though:  will only work for admins
« Last Edit: January 19, 2009, 10:41:13 am by simply sibyl »

Offline valhalla95

  • SMF For Free Member
  • *
  • Posts: 30
    • View Profile
    • {LYLE CODING}

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [code] Swapper
« Reply #7 on: January 19, 2009, 11:26:32 am »
please test it on IE and Safari

good job though

It works in all browsers.    
It only works for the Admin or Membergroups that have access to the Manage Styles area so members wouldnt be able to use it.     He didnt realize that when he created it.  It is basically a shortcut to the stylepicker button in the admin panel.   You can grab the same info from your forums source code and put the same dropdown box you see inside Manage styles someplace on your forum but only you as Admin can use it..   see here:  http://sibylstylecreator.smfforfree2.com/     Just a simple form code.   Same thing though:  will only work for admins
thanks sibyl

Offline -Sя.Sharp

  • SMF For Free Master
  • *
  • Posts: 1032
    • View Profile
    • Hidden Designers

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [code] Admin Quick Swap
« Reply #8 on: January 19, 2009, 11:36:40 am »
Alright until I can somehow figure out making it simple for users to change the skin (which was my goal: simple skin changer), this is just gonna be an "Admin Quick Swap"...

I will try to think of some ways...sorry...

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] Admin Quick Swap
« Reply #9 on: January 19, 2009, 11:38:45 am »
Alright until I can somehow figure out making it simple for users to change the skin (which was my goal: simple skin changer), this is just gonna be an "Admin Quick Swap"...

I will try to think of some ways...sorry...

chris have you checked out the dropdown box one that Moose created.  There are two different optons for setting it up.    Also check the one that I created.  It can be placed in different areas of the forum.  It works flawlessly; no default style flash, etc.    It uses "radio" buttons for selection.   I should see if I can do it so a dropdown box could be used for it instead.
SMF for Free has plans to create a way for members to change styles.   Am not sure when that will happen though.
« Last Edit: January 19, 2009, 11:44:48 am by simply sibyl »

 

Related Topics

  Subject / Started by Replies Last post
58 Replies
17541 Views
Last post November 04, 2006, 08:37:54 pm
by Adds
13 Replies
3400 Views
Last post October 24, 2006, 11:59:09 am
by Laugh-nd-kid
26 Replies
19181 Views
Last post November 30, 2009, 06:19:51 pm
by simply sibyl
17 Replies
6918 Views
Last post May 12, 2007, 01:01:09 pm
by Agent Moose
1 Replies
1502 Views
Last post March 14, 2009, 11:27:21 pm
by Agent Moose