Jump to content

(DP44) Advanced Regexp

Featured Replies

  • Author

Will do it tomorrow and let you know. By then please open system logs in the acp and check them and Give me example of one log. 

Hm, it actually points to something related to Commerce...

 

#0 ./mysite.com/public/applications/nexus/sources/Package/Package.php(531): IPS\nexus\_Package::priceFromData(12, Array, NULL, Object(IPS\nexus\Customer), 'BGN', false, false, false)
#1 ./mysite.com/public/applications/nexus/sources/Package/Item.php(504): IPS\nexus\_Package::lowestPriceFromData(Object(IPS\nexus\Customer), 'BGN', 12, Array, NULL, Array, -1, NULL, false, NULL)
#2 ./mysite.com/public/system/Content/Content.php(1616): IPS\nexus\Package\_Item::searchResultSnippet(Array, Array, Array, NULL, Array, NULL, 'expanded')
#3 ./mysite.com/public/applications/nexus/sources/Package/Item.php(440): IPS\_Content::searchResult(Array, Array, Array, NULL, Array, NULL, false, 'expanded', false, false, NULL, Array)
#4 ./mysite.com/public/system/Content/Search/Result/Content.php(94): IPS\nexus\Package\_Item::searchResult(Array, Array, Array, NULL, Array, NULL, false, 'expanded', false, false, NULL, Array)
#5 ./mysite.com/public/system/Theme/Theme.php(847) : eval()'d code(2845): IPS\Content\Search\Result\_Content->html()
#6 ./mysite.com/public/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_search->resultStream(Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly))
#7 ./mysite.com/public/system/Theme/Theme.php(847) : eval()'d code(2915): IPS\Theme\_SandboxedTemplate->__call('resultStream', Array)
#8 ./mysite.com/public/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_search->results('["booking.com",...', 'ae70512e437bcea...', Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), 997)
#9 ./mysite.com/public/system/Theme/Theme.php(847) : eval()'d code(2992): IPS\Theme\_SandboxedTemplate->__call('results', Array)
#10 ./mysite.com/public/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_search->search('["booking.com",...', 'ae70512e437bcea...', Object(IPS\Content\Search\Results), '<ul class='ipsP...', Object(IPS\Http\Url\Friendly), Array, '\n\n\n<form accept...', 997)
#11 ./mysite.com/public/applications/core/modules/front/search/search.php(730): IPS\Theme\_SandboxedTemplate->__call('search', Array)
#12 ./mysite.com/public/applications/core/modules/front/search/search.php(80): IPS\core\modules\front\search\_search->_results()
#13 ./mysite.com/public/system/Dispatcher/Controller.php(96): IPS\core\modules\front\search\_search->manage()
#14 ./mysite.com/public/system/Dispatcher/Dispatcher.php(152): IPS\Dispatcher\_Controller->execute()
#15 ./mysite.com/public/index.php(13): IPS\_Dispatcher->run()
#16 {main}

The error itself is: OutOfBoundsException::0

  • Author

Do you have enabled template disk caching? See more:

 

Nope, not enabled. 

  • Author

My app is related and hooked into posts only in the forums app, see the hooks.json definition:

{
    "advancedRegexpsIpsForumsTopic": {
        "type": "C",
        "class": "\\IPS\\forums\\Topic"
    }
}

And it does not updating any content in the DB or something.

Yeap, it was Commerce related. I had booking.com in one of the descriptions of a premium subscriptions I sell. I removed it from there, the search was fixed after that. Sorry for wasting your time.

  • Author

No problem, glad I could help resolve your issues.

  • 1 month later...

Hello, is there any way to add/replace Amazon affiliate tags when someone posts a short URL, such as https://amzn.to/30swjOE

  • Author

And then replace it by that exactly?

  • 3 months later...

Am I the only one who thinks that we should leave the variables that aren't modified? On my forum deleting variables that are not modified breaks many links 😞

Feature request ?

  • Author

Yes, you're first. 🙂

Working as intended. Will look into it though. 

  • 8 months later...

Hi @DawPi,

I am a volunteer admin for a forum, and our forum owner just bought your plug-in. I've set it up per your template screenshot. It is rewriting the longer, complex amazon links, but not the really short ones like this:

https://www.amazon.com/Adapter-Diverter-Threaded-Connector-Bathroom/dp/B07XF1BCJH

How can we make that happen?

Thanks

The developer had me add another regular expression pattern for *.amazon.com/*, which now tags the short links too!

Cheers for good customer service.

Edited by Streetwise

  • 2 months later...

I'm not sure if it's me, but I've noticed my Affiliate links are changing the '&' to '%26', which then breaks the link.

Although, it shows the link as /B03563GDS?&tag=MYTAG        when I hover my mouse over.

 

Don't worry, I fixed the above issue. I was having a moment.... 🤪

  • Author
3 hours ago, Dean_ said:

Don't worry, I fixed the above issue. I was having a moment...

What was wrong?

1 hour ago, DawPi said:

What was wrong?

Added the & manually ‘&tag’, once removed it fixed the problem. 

Hi,

Links are not rewritten on topic with Topic Summary activated (only sidebar position, looks ok under first post) :

 

147748056_2021-11-1212_25_37-Settings.jpg.39f65895c299ed513d749527e47ada4a.jpg

Edited by Li3D

  • Author

Thanks for the info. I'll look into it.

  • 1 year later...
  • Author

Thank you for being a client!  The Invision Community Marketplace is closing October 30 2023, so I am moving all of my files over to my personal site https://forum.invisionize.pl

 

Bookmark https://forum.invisionize.pl and the new Marketplace Directory www.Invisioneer.org.  

Recently Browsing 0

  • No registered users viewing this page.