41
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



42
rossb
Login not working except from user.php
  • 2019/10/12 17:00

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

Xoops 2.5.9, site: www.rossco.org

I have a login field in my header, themes/xbootstrap/tpl/userbar.tpl , intended to replace / bypass going to user.php. Login using this does not work (no error messages, nada). Login via modules/profile/user.php works fine. What am I missing / doing wrong?

Here's the login image:
Resized Image

Thanks;
Bill

<div style="background: #F1F1F1 url('')">
<
div id="xo-banner" class="commercial" style="height:85px;">
    <
a id="xo-main-logo" class="commercial" href="<{xoAppUrl /}>" title=""><img src="/SecureOffice_Images/rossco.png" alt="<{$xoops_sitename}>" /></a>
    <{if 
$xoops_banner and $xoops_banner != '&nbsp;'}>
        <!-- <{
$xoops_banner}> width="480px" height="60px" -->
        <
iframe src=<{$xoops_url}>/images/banners/xoopsifyIt.gif border="0" scrolling="no" allowtransparency="true" width="480px" height="60px" style="border:0" align="right" alt="http://www.xoops.org/;"> </iframe>
    <{/if}>
</
div>

<
div id="xo-userbar" align="right">
    <{if !
$xoops_isuser}>
        <
form method="post" action="<{xoAppUrl /user.php op=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}>
        <{
xoInboxCount assign=pmcount}>
        <
a href="<{xoAppUrl viewpmsg.php}>" title="<{$smarty.const._THEME_INBOX}>">
        <{if 
$pmcount}>
            <
img src="<{$xoops_url}>/SecureOffice_Images/icons/inbox-full.png" alt="<{$pmcount}> <{$smarty.const._THEME_INBOX_NOTREAD}>"/>
        <{else}>
            <
img src="<{$xoops_url}>/SecureOffice_Images/icons/inbox.png" alt="<{$smarty.const._THEME_INBOX}>"/>
        <{/if}>
        </
a>
        <
a href="<{xoAppUrl /notifications.php}>" title="<{$smarty.const._THEME_NOTIFICATIONS}>"><img src="<{$xoops_url}>/SecureOffice_Images/icons/note_view.png" alt="<{$smarty.const._THEME_NOTIFICATIONS}>"/></a>
        <
a href="<{xoAppUrl /user.php}>" title="<{$smarty.const._THEME_PROFILE}>"><img src="<{$xoops_url}>/SecureOffice_Images/icons/profile.png" alt="<{$smarty.const._THEME_PROFILE}>"/></a>

        <{if 
$xoops_isadmin}>
            <
a href="<{xoAppUrl /admin.php}>" title="<{$smarty.const._THEME_ADMINISTRATION}>"><img src="<{$xoops_url}>/SecureOffice_Images/icons/configuration.png" alt="<{$smarty.const._THEME_ADMINISTRATION}>" /></a>
        <{/if}>
        <
a href="<{xoAppUrl /user.php op=logout}>" title="<{$smarty.const._THEME_LOGOUT}>" ><img src="<{$xoops_url}>/SecureOffice_Images/icons/exit.png" alt="<{$smarty.const._THEME_LOGOUT}>"/></a>
    <{/if}>
</
div>
</
div>



43
rossb
Re: "The page isn’t redirecting properly" when non-admin (UID not 1) logged in
  • 2018/9/4 16:48

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Recognized xoops superiority long ago. Started with 2.0, patched up til 2.5.7, patches upon patches sites became unmaintainable. Bit the bullet, clean break (recreated) to 2.5.9

...B



44
rossb
Re: "The page isn’t redirecting properly" when non-admin (UID not 1) logged in
  • 2018/9/4 13:39

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Solved.

The two users I was having trouble with were previously members of the webmaster group on an incarnation of a previous (antique xoops) site, which I recreated (xoops 2.5.9) from scratch and phpmyadmin imported users and other DB tables from.

SOLUTION: edit problematic users for desired attributes, save, clear xoops and browser cache (including cookies)

I also found this thread useful for "what to check":

https://xoops.org/modules/newbb/viewtopic.php?start=0&topic_id=1819&order=ASC&status=&mode=0

Not sure of other users have same woes. Awaiting complaints.

@geekwright Is this your patch?
redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM, false);

Regards;
Bill



45
rossb
Re: "The page isn’t redirecting properly" when non-admin (UID not 1) logged in
  • 2018/9/3 20:31

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks fellow geek;

I suspected as much, but it is independent of start module. Have already triple checked user group membership and group perms, but will do again.

Regards;
Bill



46
rossb
Re: eCommerce Oledrion MyShop 2.35 Beta 1 for PHP 5.6 - 7.3
  • 2018/9/3 11:57

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi Mamba;

Try to clone a product in admin. Things will break (badly)

Regards;
Bill



47
rossb
"The page isn’t redirecting properly" when non-admin (UID not 1) logged in
  • 2018/9/3 10:33

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


xoops 2.5.9
php 5.6
anonymous and admin users can view site. Other users get in infinite redirect loop. Firefox displays above error, IE times out.

Have tracked this down to /index.php:

if ($xoopsUser) {
if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) {
THIS --> redirect_header(XOOPS_URL, 1, _NOPERM, false);
}
$xoopsUserIsAdmin = $xoopsUser->isAdmin($xoopsModule->getVar('mid'));
} else {
if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), XOOPS_GROUP_ANONYMOUS)) {
redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
}
}

How can I debug / fix this?

Thanks;
Bill



48
rossb
Re: eCommerce Oledrion MyShop 2.35 Alpha 1 for PHP 7.2
  • 2018/6/6 20:15

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Have taken Mamba's suggestion and created a GitHub issue with working code and changelog:

https://github.com/XoopsModules25x/oledrion/issues/7

Bill



49
rossb
Re: eCommerce Oledrion MyShop 2.35 Alpha 1 for PHP 7.2
  • 2018/6/4 17:26

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Mamba;

My "plan" is to tarball my "working" module, send it privately to U (or any volunteers) and U can do diffs from release (original) version, design review and, if necessary, cleanup and do another release for V2.34.

Then, U can take changes and roll into V2.35 or whatever U release as latest and greatest.

This is because I am on critical path for my product site and, cannot (yet) take the time for github, ... learning curve. Plus, of course, lack of knowledge regarding Xoops "best practices". I assume having working (and tested) oledrion e-commerce module is of general interest to the xoops community and worth some effort, in addition to mine.

I was pre-mature regarding paypal success. The module was "happy", but Paypal was not due to:
HTTP/1.0, no ssl, port 80 (443 required) and major timing problems getting "200 OK" to Paypal within the required 30 second response time window. All now resolved (< 2 seconds).

I could use some mentoring (I am most definitely not a php guru, but experienced H/W, S/E engineer) and, if there is anyone else interested in collaborating (divide the tasks) with me, let me know.

Seeking input regarding alternate payment gateways for our eastern friends.

Current Changelog:

Updated Paypal Gateway:
- use current protocols HTTP/1.1, ssl, port 443
- send verification emails after payment cleared (previously before)
- offload payment processing (after paypal confirm) to separate thread (pcntl_fork, to decouple paypal transaction time from total transaction time (due to site load)
- include transaction ID in verification emails
Changed oledrion_thankyou.tpl and oledrion_cancelpurchase.tpl to links to point to main site URL (whatever is configured as home module, as opposed to OLEDRION_URL)

I will announce when my site (www.rossco.org) goes live for payments.

Other things to change:
- fix bug with selecting Picture for payment (admin). May be the wrong place to select picture, since it is used to represent gateway and should be a gateway property (ie; paypal image).
- fix templates (checkout) for "Select delivery method form" and "Select payment method form" so that radio button fields are one line each.
- may get rid of redundant validation email, since both customer and vendor already receive emails upon gateway (paypal) transaction complete.



50
rossb
Re: eCommerce Oledrion MyShop 2.35 Alpha 1 for PHP 7.2
  • 2018/5/31 12:59

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


monologue continues...

Got Paypal (sandbox) working, pondering changes (global, to submit to xoops) ...

solicting opinions on checkout order:

Currently: Send orders emails and SMS before initiate Paypal transaction. Assumes order success, incorrect.

Proposed: Send emails, SMS (success / fail) after Paypal transaction complete. Add stub update DB function to update user DB entry upon successful purchase.

Also, IMHO, way too much customer info collected (privacy, phone#, name, city, address). Propose making these fields optional, and, if configured as non-optional, populate from xoops user db if user logged in and fields exist.

Thoughts?




TopTop
« 1 2 3 4 (5) 6 7 »



Login

Who's Online

156 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 156


more...

Donat-O-Meter

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

Latest GitHub Commits