Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Documentation
Author Message
floppydrivez
Involved
Involved



Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi

PostPosted: Fri Sep 25, 2009 6:00 pm Reply with quote

Could we use anchors in the first part of the installer so it jumps closer to where I have to click next.

I tested this in FF 3.5 and IE 8 (it draws an underline in IE8 easy fix, but still)

Something like

Code:
      <tr>

        <td><a name="lip2" href="javascript:void(0)">
      <table><tr><td>
          <form name="lip2" method="post" action="<?php $_SERVER['PHP_SELF'];?>">
            <input class="button" type="submit" name="<?php echo _rnSUBMIT;?>" value="<?php echo _rnSTEP3b;?>&nbsp;:&nbsp;&nbsp;<?php echo _rnLOAD_IP2COUNTRY_DATA2_10;?>" />
            &nbsp;&nbsp;<span class="c3"><input class="inputbox" name="session" value="<?php echo $_SESSION['lip2'];?>" readonly="readonly" size="75" onfocus="blur()" /></span>
            <input type="hidden" name="op" value="lip2" />
          </form>
      </td></tr></table>
   </a>
      </td>
   </tr>


Code:
      if($_POST['op']=='lip10'){

         echo '<script>window.location.href = "'.$_SERVER['PHP_SELF'].'?setup='.$setup.'#setup"</script>';
      }else{
         echo '<script>window.location.href = "'.$_SERVER['PHP_SELF'].'#'.$_POST['op'].'"</script>';
      }


In language files.

Code:
<a href="setup.php" name="setup">Setup</a>


Yes, I am the lazy one.

_________________
Phpnuke Downloads, Clan Themes, Mack Hankins 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Sep 25, 2009 6:38 pm Reply with quote

This is needed Wink . It is a little annoying having to scroll down so many times when loading the IP2Country stuff.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
floppydrivez







PostPosted: Fri Sep 25, 2009 6:44 pm Reply with quote

Especially when your a developer and its common to reload the CMS from scratch like 10 times a day. /exaggeration on
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Sep 26, 2009 1:09 pm Reply with quote

One thing that I have always wanted is a "Quick Install" version where I can elect to install the IP2C data or not then simply hit a button and the whole shootin' match is loaded. The files were broken up to avoid issues with slow servers (so reach the PHP time-out) and/or limits on database queries within a given time-frame. If you have none of these limitations and you install many times over, yes, it is kind of a pain. In fact, I'd love to just enter in all my information that setup.php click a check-box, and let it install everything from the tables and data all in one shot.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Sep 26, 2009 2:23 pm Reply with quote

speedtype And people in hell want ice water killing me
 
View user's profile Send private message
montego







PostPosted: Sun Sep 27, 2009 10:55 am Reply with quote

Unfortunately, too late for them my friend... but, we're still a kickin' so time to get crackin'

speedtype

ROTFL
 
Raven







PostPosted: Sun Sep 27, 2009 1:20 pm Reply with quote

speedtype tempus fugit
 
eldorado
Involved
Involved



Joined: Sep 10, 2008
Posts: 424
Location: France,Translator

PostPosted: Sun Sep 27, 2009 3:47 pm Reply with quote

alea jacta est now raven Razz time to get crackin' , nah , just kidding . Hey floppy , why don't you get a saved copy of the database at start and just reload it when you need reinstall? Thats what I do but maybe thats not enough , Is there a script that do something else than install sql in the installation?

_________________
United-holy-dragons.net (My RN site)- Rejekz(cod4 clan) - gamerslounge 
View user's profile Send private message Visit poster's website MSN Messenger
Raven







PostPosted: Sun Sep 27, 2009 7:20 pm Reply with quote

Eldorado's simple but elegant sugestion is an excellent example of Occam's razor Wink
 
floppydrivez







PostPosted: Sun Sep 27, 2009 7:23 pm Reply with quote

A one click installer is very possible though. The basic concept is that the new location is just the next step in the installer phase and a simple check to see if there was an error with the current phase.

All pretty simple stuff. If it was me, I would create a checkbox array which defined which phases (love that word) needed to be executed. After reviewing the code for the current installer, it is just a some minor modifications and testing.
 
Raven







PostPosted: Sun Sep 27, 2009 7:41 pm Reply with quote

True. All things are possible. In your browser you can also click View/Zoom Out and, Voila! It all fits on a single screen Wink

All that aside, I understand the issues, desires, wants, etc. I also know that I can loop the IP2C to make it one click. When I was creating the installer I took the approach that a single click should create a single response. In other words one action equals one reaction which is, I believe, some programming principle I read somewhere Laughing. It helps to keep debugging much easier. In any event, no need to drag this out as the installer is being rewritten anyway. Maybe redesigned is a better term. What was released was all I could complete at that time Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Documentation

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 ©