Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Sep 22, 2003 9:20 pm Reply with quote

Here is the code I use to make my Administration block look like my Site Navigation block.
Code:
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=center>

<TR><FORM METHOD=GET ACTION="modules.php">
<TD><SELECT NAME="name" SIZE="8" onChange="top.location.href=this.options[this.selectedIndex].value">
<OPTION VALUE="admin.php">Administration
<OPTION VALUE="admin.php?op=BlocksAdmin">Blocks
<OPTION VALUE="admin.php?op=forums">Forums
<OPTION VALUE="admin.php?op=messages">Messages
<OPTION VALUE="admin.php?op=modules">Modules
<OPTION VALUE="admin.php?op=adminStory">New Story
<OPTION VALUE="admin.php?op=hreferer">HTTP Referers
<OPTION VALUE="admin.php?op=Configure">Preferences
<OPTION VALUE="admin.php?op=logout">Logout
</SELECT></TD></TR></FORM></table>

Just replace your Administration in line block code with this.


Last edited by Raven on Tue Apr 27, 2004 10:39 am; edited 1 time in total 
View user's profile Send private message
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Mon Sep 22, 2003 9:26 pm Reply with quote

thanks for this one raven it is going to be well used i can tell you that one.
We also appreciate all you do for us.
Thanks
SF
 
View user's profile Send private message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Fri Sep 26, 2003 2:04 pm Reply with quote

Raven wrote:
Here is the code I use to make my Administration block look like my Site Navigation block.
Code:
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=center>

<TR><FORM METHOD=GET ACTION="modules.php">
<TD><SELECT NAME="name" SIZE="8" onChange="top.location.href=this.options[this.selectedIndex].value">
<OPTION VALUE="admin.php">Administration
<OPTION VALUE="admin.php?op=BlocksAdmin">Blocks
<OPTION VALUE="admin.php?op=forums">Forums
<OPTION VALUE="admin.php?op=messages">Messages
<OPTION VALUE="admin.php?op=modules">Modules
<OPTION VALUE="admin.php?op=adminStory">New Story
<OPTION VALUE="admin.php?op=hreferer">HTTP Referers
<OPTION VALUE="admin.php?op=Configure">Preferences
<OPTION VALUE="admin.php?op=logout">Logout
</SELECT></TD></TR></FORM></table>

Just replace your Administration in line block code with this.


I'm sorry. Where does this go?
 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Fri Sep 26, 2003 2:21 pm Reply with quote

Goto administration/blocks and click edit on Administration. You will see that the block administration is an online block. Just paste the code over the existing code.
 
porcupinepc
Involved
Involved



Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Fri Sep 26, 2003 4:10 pm Reply with quote

Very cooooooooooooooooool!

This just gets better and better!

Joe Robertson
Porcupine PC
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Raven







PostPosted: Fri Sep 26, 2003 4:17 pm Reply with quote

Thanks for your encouragement and support!
 
StefanL
New Member
New Member



Joined: Sep 20, 2003
Posts: 5

PostPosted: Fri Sep 26, 2003 6:22 pm Reply with quote

First of all, Raven, thanks for sharing your code with us.Very Happy

Then:
porcupinepc wrote:
Very cooooooooooooooooool!

This just gets better and better!

Joe Robertson
Porcupine PC
[ Only registered users can see links on this board! Get registered or login! ]

If you want to be coooooooooooooooooooooooooooler Very Happy , you can change the background colour in the select box to the same background as your theme.

Here is how to do it:

Replace the following row in Ravens code:
Code:
<SELECT NAME="name" SIZE="8" onChange="top.location.href=this.options[this.selectedIndex].value">

With:
Code:
<SELECT NAME="name" SIZE="8" onClick="top.location.href=this.options[this.selectedIndex].value" CLASS="selectbox">

In the file /THEMES/YOUR_SELECTED_THEME/STYLE/style.css add the following rows:

Code:
/* My personal changes */

.selectbox {BACKGROUND:#EFEFEF;}


Background colour is an example from HELIUSGRAY. You should change it so it fits your theme.
 
View user's profile Send private message
fury







PostPosted: Sun Oct 05, 2003 10:42 am Reply with quote

hmm i must have messed it up i put the code in exactly the way it should be according to this post tho change the color of the form to match the theme.
Before:
Code:


<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=center>
<TR><FORM METHOD=GET ACTION="modules.php">
<TD><SELECT NAME="name" SIZE="8" onChange="top.location.href=this.options[this.selectedIndex].value">
<OPTION VALUE="admin.php">Administration
<OPTION VALUE="admin.php?op=BlocksAdmin">Blocks
<OPTION VALUE="admin.php?op=forums">Forums
<OPTION VALUE="admin.php?op=messages">Messages
<OPTION VALUE="admin.php?op=modules">Modules
<OPTION VALUE="admin.php?op=adminStory">New Story
<OPTION VALUE="admin.php?op=hreferer">HTTP Referers
<OPTION VALUE="admin.php?op=Configure">Preferences
<OPTION VALUE="admin.php?op=logout">Logout
</SELECT></TD></TR></FORM></table>

and this works perfectly with the form.

I wanted to change it so i put in this.
After:
Code:


<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=center>
<TR><FORM METHOD=GET ACTION="modules.php">
<TD<SELECT NAME="name" SIZE="8" onClick="top.location.href=this.options[this.selectedIndex].value" CLASS="selectbox">
<OPTION VALUE="admin.php">Administration
<OPTION VALUE="admin.php?op=BlocksAdmin">Blocks
<OPTION VALUE="admin.php?op=forums">Forums
<OPTION VALUE="admin.php?op=messages">Messages
<OPTION VALUE="admin.php?op=modules">Modules
<OPTION VALUE="admin.php?op=adminStory">New Story
<OPTION VALUE="admin.php?op=hreferer">HTTP Referers
<OPTION VALUE="admin.php?op=Configure">Preferences
<OPTION VALUE="admin.php?op=logout">Logout
</SELECT></TD></TR></FORM></table>


and it changed it to the theme colors and all but i could not click on a link it acted as if it was an input cell area i kept getting the I cursor whenever i tried to click on it

did i do something wrong?
Thanks
Fury
 
fury







PostPosted: Sun Oct 05, 2003 8:56 pm Reply with quote

never mind the above error i made it my self oopps
the one thing i could not do is make the form background invisible. i have read up on this a bit and could not find anything that would help.
I tired taking the color out and that did not help.
Thanks
Fury
 
blith







PostPosted: Tue Apr 27, 2004 10:34 am Reply with quote

Raven can you sticky this? I just spent a while trying to find it... thank you.
 
Raven







PostPosted: Tue Apr 27, 2004 10:39 am Reply with quote

Done.
 
eak
New Member
New Member



Joined: Nov 11, 2004
Posts: 16

PostPosted: Thu Nov 11, 2004 2:52 pm Reply with quote

StefanL wrote:
In the file /THEMES/YOUR_SELECTED_THEME/STYLE/style.css add the following rows:

Code:
/* My personal changes */

.selectbox {BACKGROUND:#EFEFEF;}


Background colour is an example from HELIUSGRAY. You should change it so it fits your theme.


Mine looks like this:
Code:


/* My personal changes */
.selectbox { background:#333333;
FONT-WEIGHT: bold;
FONT-SIZE: 11px;
font:12px "Arial",Verdana, Helvetica, sans-serif;
color:#ee0000
}


Enjoy.

_________________
EAK specs (OS / Apache / MySQL / PHP / PHPNuke)
FedoraCore2 2.6.5-1.358smp/httpd-2.0.50-2.1/mysql-3.23.58-9/PHP 4.3.8/PHPNuke7.5 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©