Opening new windows while using the normal menu.
|
Posted
#836
(In Topic #208)
|
|
|---|---|
|
|
Opening new windows while using the normal menu.First, connect to your FTP server and download which ever menu_left.php file for the appropriate menu… For example, If you want to use new windows on your public website, then you would need to download <your website>/pages/menu_left.php …. For the admin center simply download the menu_left.php located in your <website>/admincenter/pages/ folder. Once downloaded, open one in notepad (if you haven't associated .php with a text editor, simply make a shortcut to notepad where your .php files are by using the right click menu > new > shortcut then click and drag the php file over the shortcut and voilà) Code
<script language="javascript" type="text/javascript">
Add that code BELOW this: Code
if (!function_exists("get_db_forums"))
But ABOVE this: ('adminmenu' would change depending on the file you're editing…) Code
<?php
So the final version of the file should look something like this: Code
<?php /*
|
|
Posted
|
|
|
|
You'll see something like this: Code
<script language="javascript" type="text/javascript">
Change it so it looks somewhat like so: Code
<script language="javascript" type="text/javascript">
Now, upload the new file in the custom directory of where you got it from. Basicly, if you got it from <your site>/pages/ then put it in <your site>/custom/ If you got it from <your site>/admincenter/pages/ then put it in <your site>/admincenter/custom/ Edit whichever menu you've just uploaded ("sidebar" or "admincenter" or whatever…) Add something like so: Code
Something in a new window = javascript:somewordhere();
This basicly tells your browser & ocportal that it should run as a javascript. The menu_left holds the JS code/function and thus will execute whatever you told it to do (in this case, open www.website.com in a new window). |
|
Posted
|
|
|
Fan in training |
|
|
Posted
|
|
|
|
|
1 guests and 0 members have just viewed this: None
Control functions:







