Page 1 of 2 12 LastLast
Results 1 to 15 of 30

Thread: Require password before seeing modify screen

  1. #1
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default Require password before seeing modify screen

    this mod is available at http://www.indexuhelp.com
    Last edited by esm; 08-27-2003 at 10:05 AM.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    to use the "forgot your password feature" you will need to do the following:

    in modify_select.html add:
    Code:
    ( <a class=lblack href="send_pwd.php?pflag=lp">forgot your password</a>? )
    just before the ShowFormLoginPwd function in the send_pwd.php file add the following:

    Code:
    function ShowLinkId() {
    
      // vars global configuration
      global $theme_path;
    
      // vars url & form
    
      // vars messages
      global $msg;
    
      // vars template
      global $error_msg, $lid;
        
      DisplayTemplate($theme_path."show_id_pwd_form.html",
        "\$error_msg,\$lid");
    }

    then in the main section change the following
    Code:
    if (empty($pflag)) {  
      ShowFormLoginPwd();    
    }
    elseif($pflag=='login_pwd') {
      ProcessFormLoginPwd(); 
    }
    elseif($pflag=='lp') {
      ShowLinkId(); 
    }
    elseif($pflag=='sp') {
      SendLinkPwd(); 
    }
    Last edited by esm; 09-05-2003 at 04:27 PM.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Aug 2003
    Posts
    233

    Default

    Has anyone tried this mod yet on a full version of indexu ?
    BEfore I attempt it I wanted to check first.
    But I agree the information to modify a listing should NOT be available to just anyybody.

    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  4. #4
    Join Date
    Aug 2003
    Posts
    233

    Default

    Well I tried to do this mod but for the life of me can not find link.lib.php . What directory is this supposed to be in ?

    thanks again,
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  5. #5
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    as I said, all MODs need thorough testing by users...

    I corrected it to link.class.php . I have a dyslexic keyboard.

    As you will learn, most of the general functions for INDEXU are in the files in the lib folder.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #6
    Join Date
    Aug 2003
    Posts
    233

    Default

    I tried and started the mod but even so could not macth the coding since it appears maybe your code is modded diferent then a stock version of the licensed version ?

    Anyways for now this is all moot until I can get Dody or you or someone to figure out why I can't add to my links unless I do it manualy.

    As well when I try and run something from the control panel I now get an error like this:

    Warning: fopen(/home/users/l/lewisw/public_html/indexu/application.php) [function.fopen]: failed to create stream: Permission denied in /home/users/l/lewisw/public_html/indexu/admin/app_setup.php on line 178

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/l/lewisw/public_html/indexu/admin/app_setup.php on line 190


    and nothing gets changed.
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  7. #7
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    did you get your site running...? I did not see any errors?
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  8. #8
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by lewisw
    I tried and started the mod but even so could not macth the coding since it appears maybe your code is modded diferent then a stock version of the licensed version ?
    what parts of the mod do not match???
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  9. #9
    Join Date
    Aug 2003
    Posts
    233

    Default

    Esm,
    The errors are in Admin Control Panel.
    Since you have access to it just go to admin cp and click on settings.

    Then try and change for example day new flag from 7 to 14
    and hit "change application settings" button and you will see the error and the settings do not change.

    best
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by lewisw

    Warning: fopen(/home/users/l/lewisw/public_html/indexu/application.php) [function.fopen]: failed to create stream: Permission denied in /home/users/l/lewisw/public_html/indexu/admin/app_setup.php on line 178

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/users/l/lewisw/public_html/indexu/admin/app_setup.php on line 190
    this error is not related to the password mod

    you probably uploaded the application.php and forgot to CHMOD it to 666. line 178 is trying to open it for write (+w)

    I CHMODed it to 666 and it is OK

    when I try to run the sql statement for the new links from the index.php file, I get the following error:

    Code:
    MySQL said: Got error 28 from table handler. 
    
    Query: select distinct * from idx_link where suspended = 0 order by date desc, last_updated desc limit 10
    you may need to ask your host why you get the error 28

    strangely enough, when I remove the word "distinct" form the above SELECT statement, it runs OK.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  11. #11
    Join Date
    Aug 2003
    Posts
    233

    Default

    Esm,
    Is the last thing you said the reason why the last links added do not display on the index.html page ?
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  12. #12
    Join Date
    Aug 2003
    Posts
    233

    Default

    just out of curiosity where are these new links that are bheing submitted going ? I just had 3 last night that I need to add manualy this morning
    Are they actualy in the mysql database or once submitted and I receive the e-mail notification they are deleted ?
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  13. #13
    Join Date
    Aug 2003
    Posts
    233

    Default

    Also Dody concerning the problem Esm explained to you in better technical terms then I ever could I also found out the following DOES NOT work either to validate a link.
    Fo example I made Lewis the editor of two categorys.

    Editor Menu
    Validate Links

    Search/Edit/Remove Links

    Write/Edit/Delete Official Review

    Validate Reviews

    View Broken Link Report
    You're an editor for the following category:
    About com
    Mind Body Fitness


    Now even though there were links submitted to the Mind Body Fitness category when I click on my menu option "Validate Links"
    their are none to be validated.

    Please let me know as soon as you can figure this out Dody.
    Thanks so much Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  14. #14
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by lewisw
    I tried and started the mod but even so could not macth the coding since it appears maybe your code is modded diferent then a stock version of the licensed version ?
    I changed the wording on the modify_select to say replace instead of change. It seemed more appropriate.

    I commented in another thread that "applying a hack takes a knack" which tjoerg adopted as his signature line. Many times it takes "reading between the lines" particualarly when it comes to certain html code ( tables, colors, size, etc ) but sometimes even the guts of the code because either you or I have made a MOD to the original code.

    I have applied hundreds of hacks and created just about as many. some were straightforward; some were very complicated. with some hacks I did the best I could in applying them and hoped they worked when I finished.

    thus, the phrase "applying a hack takes a knack."

    Do the best you can and when you get to a point that you can't go any further, post a msg and let us know where that point is...
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  15. #15
    Join Date
    Aug 2003
    Posts
    233

    Default

    Okay I am coming to a standstill with the system until Dody can figure out what is wrong.
    The problems I e-mailed him about are:

    1.New links not being added to the database.
    2.New links added to the system are no longer displayed via the front page new links section.

    As much as I love this new portal ten times more then the links 2 system I can not feasably manualy add all links submitted as sometimes I get 20 in a day.

    A great Sunday to all.
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

Similar Threads

  1. modify resource password or id request.
    By lewisw in forum v3.2
    Replies: 7
    Last Post: 09-05-2003, 10:31 PM
  2. Replies: 1
    Last Post: 08-10-2003, 07:02 AM
  3. Replies: 3
    Last Post: 06-27-2003, 08:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •