Jump to content

(DP44) Advanced Regexp


DawPi

Recommended Posts

  • 4 weeks later...
Posted (edited)

Does this app can replace keywords with links?

For instance every time it finds a keyword, let's say Digital Ocean or Digital Ocean,  replace it with a link like <a href="https://digitalocean.com/ref/myusername">Digital Ocean</a> ? 

Edited by MediaDIGI.com
Posted
2 hours ago, MediaDIGI.com said:

Does this app can replace keywords with links?

For instance every time it finds a keyword, let's say Digital Ocean or Digital Ocean,  replace it with a link like <a href="https://digitalocean.com/ref/myusername">Digital Ocean</a> ? 

No. But there is another app that does exact what you need:

 

  • 2 weeks later...
Posted

I have just added this and I have some questions. 

1. Do I need to explicitly list all parameters that I want to keep? For example I have this url: www.example.com/aid=1111&label=222. I want to change aid to 1212, I add it in the list, then the modified url is www.example.com/aid-=1212 only, the label one is stripped. Is this the correct behaviour? I am afraid I don't know all the other parameters this website might add to the url...

2. I don't see an option to separately add or replace a parameter. If my link does not contain the parameter I add, it seems it is not added...

Posted
On 11/17/2019 at 11:07 AM, DawPi said:

@jair101,

  1.  yes, you need to add them all.
  2. send me PW with the exact url and the parameters list. I'l check it.

2. is ok, I had to modify the url regular expression as my link did not had any parameters at all. Changing it from *.example.com/*?* to *.example.com/* worked fine and the parameter is added correctly now. 

As a feature suggestion, will be difficult to add also not only inclusion, but exclusion url expressions? Right now we add the parameters to all matched urls, but it might be useful if there is a possibility to add it to all but matched urls as well:  Add param="A" for all urls that do not contain param="B".  This can be useful if you want to have more then one approved parameters or to protect a very specific parameter from being overwritten. Hm, I guess it can be done with more creative regular expression, will something like this work? https://stackoverflow.com/questions/2964645/regex-not-equal-to-string I have to try I guess 🙂

There is a bit of a learning curve, but very powerful app, thanks 🙂

Posted

I'll concider it when I'll start thinking and doing next version. Thanks for your suggestions!

1 hour ago, jair101 said:

There is a bit of a learning curve, but very powerful app, thanks 🙂

Thank you too. 🙂

  • 3 months later...
  • 4 weeks later...
Posted
2 hours ago, DawPi said:

What problems you have and want to be explained?

I don’t have any issues, just wondering what urls and what is being appended to them, haven’t tried anything yet. Figured I ask to see if anyone has it configured already to share.

  • 2 months later...
Posted


So my thinking is to buy it, install it on my website and then any links from online stores where I have an affiliate account I can add my ID into the plugin/app and that's it.

I know it covers Amazon but I was hoping it would cover other online companies too such as Ebay and other outlets?

Posted
2 minutes ago, Sheffielder said:

So my thinking is to buy it, install it on my website and then any links from online stores where I have an affiliate account I can add my ID into the plugin/app and that's it.

Correct.

2 minutes ago, Sheffielder said:

I know it covers Amazon but I was hoping it would cover other online companies too such as Ebay and other outlets?

It cover "any" site if the regexp will be in good way added in my app settings.

Posted

I have one regexp configured on my community, it rewrites the links of booking.com. It looks like this:

 

However when I try to search by booking.com in the search engine I receive the following: 

Quote

[[Template core/front/search/resultStream is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Is it possible that this app interferes with that? I tried disabling the regex, but the problem persisted. I suppose the search index needs to be regenerated to test that, which will take a while. If you have some reg ex defined on your test/dev board maybe try to search by domain to try to replicate the problem 🙂

image.png

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...