1861
Mamba
Re: Module Pedigree
  • 2019/10/15 5:19

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Fantastic! I'm happy to hear that you found the right combination and were able to solve the issues.

Now that we know what works, and what doesn't, I'll try to test both versions under XOOPS 2.5.10 and PHP 7, to see what is different and what needs to be changed.

Thank you for sharing your solution....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1862
rossb
Re: Login not working except from user.php
  • 2019/10/14 20:47

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks geekwright;

You have already gone above and beyond. To see the failure, you will have to be a real user.

Already using jGrowl redirect. As you state: likely my theme interfering.
will try Google Chrome's developer tools
bottom line: got some learning to do, to debug this.
for now, will just replace login control with a link to login, since I am focused on updating content, major release, new features will keep me busy for at least a week.

Regards;
Bill



1863
geekwright
Re: Login not working except from user.php

I took the code from your login form, transported it to a test site, and it works.

When I try on your site (with a dummy name,) I can see it go through the expected steps.
- post to user.php
- redirect from user.php to modules/profile/user.php
- load modules/profile/user.php (due to login failing)

(Just for reference, the network section of Google Chrome's developer tools was my tool of choice for watching what was happening.)

That all looks correct. What is missing is a message.

The default message mechanism is a interstitial message box with a "click here if it doesn't reload" message. It is possible that your theme is interfering with that.

The more commonly used message delivery is a temporary overlay bubble. This can be enabled in admin under:
preferences -> system options -> general settings -> Use jGrowl redirect

With that option enabled you should be able to see the message that is redirecting to the final user.php page.



1864
Zirafka
Xoops and lists
  • 2019/10/14 10:22

  • Zirafka

  • Just popping in

  • Posts: 70

  • Since: 2008/8/9 1


Find file li.php on XOOPSROOT/CLASS/TEXTSANITIZER/LI directory and open it with editor.

Find this section:

public function load($ts
    { 
        
$ts->patterns[]     = "/[li](.*)[/li]/sU"
        
$ts->replacements[] = 'reverse slash 1'

        return 
true
    }


and add two rows:


        
$ts->patterns[]     = "/[li](.*)[/li]/sU"
        
$ts->replacements[] = '
  • 1
  • '

             
            
    $ts->patterns[] = "/[li=(.*)](.*)[/li]/sU"
            
    $ts->replacements[] = '< li type=" reverse slash 1 " > reverse slash 2 < / li >';         

            return 
    true
        }


    Find file style.css on THEMES dirctory and open it with editor.

    Find rows this rows

    ul margin2pxpadding2px; list-styledecimal insidetext-alignleft;}  
    li margin-left2px; list-stylesquare insidecolor#2F5376}


    and edit, or delete, parameter "list-style" (delete word "decimal" and "square").

    Thats all :)

    XOOPS can now use unordered and various ordered lists.

    Demo: https://www.zirafoviny.cz/modules/news/article.php?storyid=700 or https://translate.google.com/translate?sl=cs&tl=en&u=https%3A%2F%2Fwww.zirafoviny.cz%2Fmodules%2Fnews%2Farticle.php%3Fstoryid%3D700



    1865
    rossb
    Re: Login not working except from user.php
    • 2019/10/13 18:49

    • rossb

    • Just popping in

    • Posts: 77

    • Since: 2006/8/28


    Thanks @geekwright

    There must be something else. Still nada response. Already have debug on (no errs). Is there some instrumentation or debugging I can add to get to the root of this? Can you try the code, your site?

    Regards;
    Bill

    Current (exactly as suggested):

    <{if !$xoops_isuser}>
            <
    form method="post" action="<{xoAppUrl /user.php}>">
            <
    input type="hidden" name="op" value="login"/>
                <{
    $smarty.const._LOGIN}>&nbsp;
                <
    input name="uname" type="text" />&nbsp;&nbsp;<input name="pass" type="password"/>
                <
    input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />

                <{if 
    $lang_siteclosemsg}>
                    <
    input type="hidden" name="xoops_login" value="1" />
                <{/if}>
                <
    button type="submit"><img src="/SecureOffice_Images/icons/home.png" height="75%" alt="<{$smarty.const._LOGIN}>" /$
                <{if !
    $lang_siteclosemsg}>
                    &
    nbsp;+&nbsp;<a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const._REGISTER}>"><{$smar$
                <{/if}>
            form>
        <{else}>



    1866
    geekwright
    Re: Login not working except from user.php

    Sorry I wasn't clear. Looks like the only change needed should be to add the form tag back:
    <{if !$xoops_isuser}>
            <
    form method="post" action="<{xoAppUrl /user.php}>">
            <
    input type="hidden" name="op" value="login"/>
    ...



    1867
    belgi
    Re: Module Pedigree
    • 2019/10/13 15:44

    • belgi

    • Just popping in

    • Posts: 13

    • Since: 2019/9/29


    I have already solved my problem. I give you xoops and pedigree compatible versions:
    Xoops 2.5.9
    Pedigree module version 1.31Alpha 6 (seems stable now)
    PHP 5.6.35
    MYSQL 5.6.41-84.1
    I moved the base with xoops 2.5.6 and the 1.31 Alpha 1 module.

    I made the table itself in the database for additional fields in the pedigree. I also changed the names of some rows in the tables (parents, breeders and owners) in the module database in version 1.31 Alpha 1. They are different than in 1.31Alpha 6. Only then did I copy the data from the old database to the new database. There are also some small mistakes that I have not repaired because they do not bother me.
    The new base of dogs in this arrangement, as above, is stable, adds dogs, photos and other data, inbred counts, etc.
    Anna :) http://belgi.pl/pedigree/modules/pedigree/



    1868
    belgi
    Re: Pedigree module problems adding field/dog/owner
    • 2019/10/13 15:21

    • belgi

    • Just popping in

    • Posts: 13

    • Since: 2019/9/29


    Re: Error in animal pedigree software Error : Handler does not exist
    by belgi on 2019/10/13 15:19:17

    I have already solved my problem. I give you xoops and pedigree compatible versions:
    Xoops 2.5.9
    Pedigree module version 1.31Alpha 6 (seems stable now)
    PHP 5.6.35
    MYSQL 5.6.41-84.1
    I moved the base with xoops 2.5.6 and the 1.31 Alpha 1 module.

    I made the table itself in the database for additional fields in the pedigree. I also changed the names of some rows in the tables (parents, breeders and owners) in the module database in version 1.31 Alpha 1. They are different than in 1.31Alpha 6. Only then did I copy the data from the old database to the new database. There are also some small mistakes that I have not repaired because they do not bother me.
    The new base of dogs in this arrangement, as above, is stable, adds dogs, photos and other data, inbred counts, etc.
    Anna :) http://belgi.pl/pedigree/modules/pedigree/



    1869
    belgi
    Re: Error in animal pedigree software Error : Handler does not exist
    • 2019/10/13 15:17

    • belgi

    • Just popping in

    • Posts: 13

    • Since: 2019/9/29


    I have already solved my problem. I give you xoops and pedigree compatible versions:
    Xoops 2.5.9
    Pedigree module version 1.31Alpha 6 (seems stable now)
    PHP 5.6.35
    MYSQL 5.6.41-84.1
    I moved the base with xoops 2.5.6 and the 1.31 Alpha 1 module.

    I made the table itself in the database for additional fields in the pedigree. I also changed the names of some rows in the tables (parents, breeders and owners) in the module database in version 1.31 Alpha 1. They are different than in 1.31Alpha 6. Only then did I copy the data from the old database to the new database. There are also some small mistakes that I have not repaired because they do not bother me.
    The new base of dogs in this arrangement, as above, is stable, adds dogs, photos and other data, inbred counts, etc.
    Anna :)



    1870
    rossb
    Re: Login not working except from user.php
    • 2019/10/13 13:54

    • rossb

    • Just popping in

    • Posts: 77

    • Since: 2006/8/28


    Thanks @geekwright

    For some reason (wearing too many hats), I'm still not getting it. Same result: nada when attempting to login. Here's the exact code, modified per my understanding of your suggestion:

    <{if !$xoops_isuser}>
            <
    input type="hidden" name="op" value="login"/>
                <{
    $smarty.const._LOGIN}>&nbsp;
                <
    input name="uname" type="text" />&nbsp;&nbsp;<input name="pass" type="password"/>
                <
    input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />

                <{if 
    $lang_siteclosemsg}>
                    <
    input type="hidden" name="xoops_login" value="1" />
                <{/if}>
                <
    button type="submit"><img src="/SecureOffice_Images/icons/home.png" height="75%" alt="<{$smarty.const._LOGIN}>" />button>
                <{if !
    $lang_siteclosemsg}>
                    &
    nbsp;+&nbsp;<a href="<{xoAppUrl /register.php}>" class="register" title="<{$smarty.const._REGISTER}>"><{$smarty.const._REGISTER}>a>&nbsp;&nbsp;
                <{/if}>
            form>
        <{else}>


    Thanks;
    Bill




    TopTop
    « 1 ... 184 185 186 (187) 188 189 190 ... 29425 »



    Login

    Who's Online

    533 user(s) are online (310 user(s) are browsing Support Forums)


    Members: 0


    Guests: 533


    more...

    Donat-O-Meter

    Stats
    Goal: $100.00
    Due Date: Jul 31
    Gross Amount: $0.00
    Net Balance: $0.00
    Left to go: $100.00
    Make donations with PayPal!

    Latest GitHub Commits