Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Editing Sites - sites_main.php popup window (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Editing Sites - sites_main.php popup window
#291
fattymattybrewing (User)
Support Your Local Brewer
Expert Boarder
Posts: 98
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Fatty Matty Brewing Location: Southwestern Wisconsin Birthdate: 1974-11-05
Editing Sites - sites_main.php popup window 3 Months ago Karma: 3  
One thing that has always annoyed my about editing sites from the admin UI is that when I am choosing to edit a specific site, and I choose the category then click on "EDIT" to make alts to the site (like move it to a new category) the "EDIT" hot link does not open a new window for that site, the "EDIT" link actually takes me away from the sites_main.php, edit sites page.

What I am customizing here is to be able to edit a number of sites in one category and have the "EDIT" button open a new target window with the site's edit data. Then when I am done editing that site, I just close the browser window and my original category's site list is still open.

I know this is really simple, but its a customization you just have to do if you find yourself editing multiple sites from the Admin tool. The other way to do thes multi site edits is by using something like phpMyAdmin.

Here is the customization:

In the file "admin/sites_main.php"...
Look for this line around line #441:
Code:

echo "<a href=\"edit_site.php?" . session_name() . "=" . session_id();
and change it to:
Code:

echo "<a target=\"blank\" href=\"edit_site.php?" . session_name() . "=" . session_id();
What you are telling admin/sites_main.php to do is when you click on the link for EDIT, you want to open a new window so that you can come back to your original category editing page by adding:
Code:

target=\"blank\"
You can also add a "close this window" link to use when you are done editing your site in the new window like this: In the file "admin/edit_site.php"... Look for this line around line #241:
Code:

?> <br>- Site Has been updated.<?
and change it to:
Code:

echo "<a target=\"blank\" href=\"edit_site.php?" . session_name() . "=" . session_id();
so again what you are doing here is adding a "close this window" hotlink using this javascript...
Code:

<A href="javascript: self.close ()">Close this Window</A>
 
Report to moderator   Logged Logged  
 
Lifes Too Short To Drink Crappy Beers
fattymattybrewing.com
  The administrator has disabled public write access.
#295
Dewed (User)
Administrator
Posts: 165
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Editing Sites - sites_main.php popup window 3 Months ago Karma: 6  
Nice touch. Thanks for your continual contributions.. now if I could just get you to send me some home brewed beer ! Oh well, I'll have to settle for the bottled stuff I guess
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008