51
rossb
Re: eCommerce Oledrion MyShop 2.35 Alpha 1 for PHP 7.2
  • 2018/5/30 12:29

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi Mamba;

May get around to github, once I am confident with changes. FYI, for now (too many things to do), I am stuck at Xoops 2.7.1 and (will do diffs, inspect), your fork may be too far ahead of me. Attempting to ecommerce this site:https://www.rossco.org/modules/publisher/item.php?itemid=3

Will be looking at changes in these areas (will expand):

Alter the checkout state machine process so can freely select checkout phases (and omit irrelevant ones):

_MI_OLEDRION_CHECKOUT_LEVEL_3', 'Long - Information, Packing, location, Delivery, Payment, Confirm');

For example, my products are: Package Repository Access, S/W Licensing for Product[a, b, c...], so checkout is: Info, Payment, Confirm

So, I may add to _MI_OLEDRION_CHECKOUT_LEVEL_X, to cover all permutations or use radio buttons (config) to select applicable checkout stages, where unchecked are ignored in checkout state machine.

May also make checkout phases a table driven SM.

Add user hints when required config such as Packing, location, Delivery are missing which is confusing to users (no way to select, empty radio buttons)

Currently I am stuck at never make it to paypal since:
$payment = $h_oledrion_payment->get($payment_id); returns empty in checkout.php, despite existing in db.

Xoops (and internet in general) is pretty sparse regarding Oledrion in general, with paypal integration in particular. I would like to see (and contribute to) this module going Xoops mainstream.

If you know of any active oledrion ecommerce sites that I can inspect, would really help. Your demo site lacks ability to fake purchase anything. Perhaps complete it using Paypal sandbox?

Regards;
Bill



52
rossb
Re: eCommerce Oledrion MyShop 2.35 Alpha 1 for PHP 7.2
  • 2018/5/29 10:44

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Monologue with self...

Correction: the oledrion IPN notifications already in place via:

gateway-notify.php which calls Oledrion_paypal->gatewayNotify in admin/gateways/paypal/gateway.php

Bill



53
rossb
Re: eCommerce Oledrion MyShop 2.35 Alpha 1 for PHP 7.2
  • 2018/5/28 21:16

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

This regards paypal on Oledrion V-2.34
downloaded from:https://github.com/XoopsModules25x/oledrion

First, a className bug in oledrion/class/oledrion_gateways.php, two places, preventing admin gateway setup for paypal (// = bug):

public static function gatewayClassName($gatewayName)
{
// B.R. return 'oledrion_' . $gatewayName;
return 'Oledrion_' . $gatewayName;
}
public static function asGoodAncestor($gateway)
{
// B.R. if (get_parent_class($gateway) === 'oledrion_gateway') {
// B.R. if (get_parent_class($gateway) === get_class($this)) { - tried, doesn't work
if (get_parent_class($gateway) === 'Oledrion_gateway') {
return true;
} else {
return false;
}
}

Can someone update repo?

And, a question regarding paypal IPN callback

file "oledrion/paypal-notify.php" just exits and, I assume it is to be replaced with the paypal IPN code fromhttps://github.com/paypal/ipn-code-samples

Paypal recommends async operation (don't wait for transaction completion). So, how is oledrion notified that transaction is complete?

Thanks;
Bill



54
rossb
Re: USAGE: register_postfilter
  • 2017/1/2 17:51

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Solved;

Problems twofold:

changed location from $ROOT/index.php to modules/publisher/index.php, since it is publisher O/P I want to postfilter (add pupup definitions)

cut and past problems \n became n in the code:

return "<?php echo "<!-- Created by Smarty! -->\n"; ?>\n" . $tpl_source;

now, it works. Such a noob:)



55
rossb
USAGE: register_postfilter
  • 2017/1/2 16:24

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

Having difficulty understanding how to use the smarty register_postfilter function with xoops-2.5.8, based on this post:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=72081

Correct me if I am wrong, but, I think this goes into index.php, just after "include $GLOBALS['xoops']->path('header.php');"

function add_header_comment($tpl_source, &$smarty)     {         
return "<?php echo "<!-- Created by Smarty! -->n"?>n" . $tpl_source; 
  } 

$xoTheme->register_postfilter("add_header_comment");


I am nor even sure whether this function still applies and is usable for xoops-2.5.8, nor whether index.php is where it should reside.

Thanks;
Bill



56
rossb
Xoops 2.5.8 smarty popups
  • 2016/12/31 14:36

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

I am updating some old sites to 2.5.8 where I used overlib popups linked to dictionary words to precisely define terminology, to avoid confusion. Example:

http://www.nazisociopaths.org/modules/article/view.article.php/c1/34

I would like to use xoops best practice to achieve this. It seems that smarty function "function.popup.php" is the way to go, but I cannot find usage documentation and how to style the popups, for example, to achieve the bubble effect.

The next best choice appears to be to use these popups:

http://www.macridesweb.com/oltest/STARTED.html

Also, currently, the bubble links and contents are created once by an offline php script which takes input html and a dictionary file to automatically create the popup links in output html. I would like to automate the popup link creation using something like this (process before cache):

$xoopsTpl =& $xoTheme->template;
$xoopsTpl->load_filter('outputfilter.insertpopups);

Where insertpopups is a php function.

My questions are this:
1 - Am I on the right track?
2 - Can smarty popups do this - documentation / examples?
2 - If not, is the overlibmws approach I linked the best choice? Alternatives?

My long term goal is to create a module where words and definitions are admined, stored in xoops_db with a global variable controlling which, if any definition DB is used to display popups.

Thanks;
Bill



57
rossb
Re: XOOPS Publisher 1.04 Final available for Testing before official release
  • 2016/12/30 19:17

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks Bleekk;

Worked like a charm for xoops 2.5.8. My 2.5.8 site is not yet online.

Here's a demo site (2.5.7.1) using using publisher, slider and slideshow:

www.rossco.org

I used these modules for 2.5.8:

www.rossco.org/Files/publisher-1.04_RC1b.tar.gz (no changes)

www.rossco.org/Files/slider_2.5.8.tar.gz
www.rossco.org/Files/slideshow_2.5.8.tar.gz (Publisher Slideshow, depends on slider)

The latter 2 modules have changes to be 2.5.8 compatible:

.html -> .tpl
fixed assign by reference errors for objects
fixed $itemsObj = $publisher->getHandler('item')->getItems(...) call per your suggestion.

Thus far, I have only used / tested slider/templates/blocks/slider1.tpl, slider2-10.tpl need testing

I am hoping that someone will adopt the slider and slideshow modules, complete 2.5.8 testing, checkin to trunk.

TODO:

1 - test slider2-10.tpl
2 - Consider making publisher slideshow module a merge of slider / slideshow.
3 - Error messages that do not seem to affect functionality (also present for xoops 2.5.7.1

Notice: Undefined offset: 1 in file /modules/slider/blocks/slider.php line 25
Notice: Undefined offset: 2 in file /modules/slider/blocks/slider.php line 26
Notice: Undefined offset: 3 in file /modules/slider/blocks/slider.php line 27
Notice: Undefined offset: 4 in file /modules/slider/blocks/slider.php line 28
Notice: Undefined offset: 5 in file /modules/slider/blocks/slider.php line 29
Notice: Undefined offset: 6 in file /modules/slider/blocks/slider.php line 30
Notice: Undefined offset: 7 in file /modules/slider/blocks/slider.php line 31
Notice: Should call parent::__construct in /modules/slideshow/class/item.php line 150, in file /kernel/object.php line 1240
Notice: Undefined index: type in file /modules/slideshow/class/item.php line 263



58
rossb
Re: XOOPS Publisher 1.04 Final available for Testing before official release
  • 2016/12/29 21:16

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

Am attempting (xoops-2.58) to use publisher 1.04 with Xoops Publisher slideshow module, which I had working with Xoops-2.5.7.2.

Cannot get slides to display. Have debugged.
In file "themes/zetagenesis/modules/slider/blocks/slider1.tpl", line:
"$itemsObj = $publisher->getHandler('item')->getItems($limit = 6, $start = 0, array(_PUBLISHER_STATUS_PUBLISHED), -1, $sort = 'datesub', $order='DESC', '', true, $criteria = null, true);

variable $itemsObj (print_r($itemsObj);) is empty.

has the publisher update changed the required syntax of the getitems call?

I am using modules Slideshow 1.1 Final and Publisher Slider 2 Beta 1, both checked out from trunk.

Alternatively, are there more suitable slideshow modules for 2.5.8?



59
rossb
Re: Newbb 4.3 "post text insert error" after import CBB 3.08 Forum
  • 2012/6/30 21:30

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks Alfred, now working...



60
rossb
Re: Newbb 4.3 "post text insert error" after import CBB 3.08 Forum
  • 2012/6/30 19:43

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks Alfred

Site is new replacement, on a new host. newbb forum data did not exist on new site, hence need to import newbb data from old site.

Old site is still online, want zero downtime, just swap out entire vm containing site when ready to update.

Your post seems to imply that this may work:
nuke MySql xoops_bb_* on new site
install CBB 3.08 on new site
import newbb data from old site
delete modules/newbb (3.08) on new site
upload modules/newbb (4.03) to new site
update module

yes/no/other?





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



Login

Who's Online

233 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 233


more...

Donat-O-Meter

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

Latest GitHub Commits