Powered By Links

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Powered By Links

Post by svasti » Mon Feb 09, 2015 11:59 am

Somehow the discussion has stopped. Does it mean that it would be okay to introduce this feature in 1.6.6 :?:
Ludwig wrote:But, that all templates are listed, including those who are not active I don't personally like.
This problem has not been solved. :(

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Powered By Links

Post by Holger » Mon Feb 09, 2015 12:13 pm

Hmm, I'm not sure if I like this feature (that way) at all :? , so I'll not vote on that topic and leave the decision to the others...

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Powered By Links

Post by cmb » Mon Feb 09, 2015 12:28 pm

svasti wrote:Somehow the discussion has stopped. Does it mean that it would be okay to introduce this feature in 1.6.6 :?:
Personally, I would prefer to not introduce new features into the 1.6 branch anymore, even if they are pretty much self-contained. If you like, move the item from the 1.7 roadmap (there's a button to do that).
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Powered By Links

Post by svasti » Mon Feb 09, 2015 4:53 pm

Holger wrote:Hmm, I'm not sure if I like this feature (that way) at all
well, nor am I... my question would be, do you think such kind of feature is desirable? And if yes, what should it do? Or do you rather think, what we have now is sufficient?
cmb wrote:Personally, I would prefer to not introduce new features into the 1.6 branch anymore, even if they are pretty much self-contained. If you like, move the item from the 1.7 roadmap (there's a button to do that).
I haven't put it on the road map. My question is rather, if this feature is still relevant.

Maybe better to have an add-on to cover this functionality?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Powered By Links

Post by cmb » Mon Feb 09, 2015 10:31 pm

svasti wrote:My question is rather, if this feature is still relevant.

Maybe better to have an add-on to cover this functionality?
IMO an addon would be pretty useless. Actually, something like this should have been there from the early beginnings of CMSimple. Consider the awful lot of websites with "Powered by CMSimple" links, which are actually powered by CMSimpleSE, CMSimple_XH and what else -- the links are in the template, and nearly nobody cares to fix the links when they use another variant. I guess there are also some CMSimple 4.x websites which use templates with "Powered by CMSimple_XH" links. And of course there are websites with "Powered by CMSimple_XH" which actually link to cmsimple.org. All this nonsense could have been prevented... now it seems that it might come too late, but who knows which forks and variants will be there in the future.

Listing the installed plugins and templates seems to be a nice addition (I had already given some arguments in the OP).

Anyhow, the feature would be useless if template designers won't use it, but it seems the at least some of them would.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Powered By Links

Post by svasti » Tue Feb 10, 2015 9:32 am

cmb wrote:I guess there are also some CMSimple 4.x websites which use templates with "Powered by CMSimple_XH" links.
:mrgreen: CMSimple 4.5 cms.php:

Code: Select all

$poweredLinkCheck = '
<div style="width: 314px; background: #fc0; color: #000; font-size: 14px; font-family: arial, sans-serif; border: 3px solid #000; padding: 6px 20px; position: fixed;">
<p><img src="userfiles/images/flags/en.gif">&nbsp; <b>Wrong CMS Link detected in template!</b></p>
<p>Please <b>remove</b> following strings from your template (template.htm):</p>
<p>-xh &nbsp;&nbsp;&nbsp; _XH &nbsp;&nbsp;&nbsp; XH &nbsp;&nbsp;&nbsp; xh</p>
<p>Please <b>replace</b> following strings in your template (template.htm):</p>
<p>cmsimple.name => cmsimple.org<br>cmsimple.eu => cmsimple.org</p>
<p>Without or with a correct CMS link (cmsimple.org), this message will disappear.</p>
<p><img src="userfiles/images/flags/de.gif">&nbsp; <b>Falscher CMS Link im Template erkannt!</b></p>
<p>Bitte <b>entfernen</b> Sie folgende Zeichenketten aus Ihrem Template (template.htm):</p>
<p>-xh &nbsp;&nbsp;&nbsp; _XH &nbsp;&nbsp;&nbsp; XH &nbsp;&nbsp;&nbsp; xh</p>
<p>Bitte <b>ersetzen</b> Sie folgende Zeichenketten aus Ihrem Template (template.htm):</p>
<p>cmsimple.name => cmsimple.org<br>cmsimple.eu => cmsimple.org</p>
<p>Ohne oder mit einem korrekten CMS Link (zu cmsimple.org) wird diese Meldung nicht mehr erscheinen.</p>
</div>
';

if(preg_match('/CMSimple_XH|cmsimple-xh|CMSimple XH|&nbsp;XH|cmsimple.name|cmsimple.eu/i',file_get_contents($pth['file']['template'])))
{
    echo($poweredLinkCheck);
}

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Powered By Links

Post by cmb » Tue Feb 10, 2015 10:02 am

ROFL!
Christoph M. Becker – Plugins for CMSimple_XH

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Powered By Links

Post by Holger » Tue Feb 10, 2015 12:07 pm

Hehe,
DOCTYPE XHtml... got blacklisted too with the first try :lol: : http://cmsimple.org/forum/viewtopic.php?f=8&t=503#p1358

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Powered By Links

Post by cmb » Tue Feb 10, 2015 12:45 pm

Holger wrote:DOCTYPE XHtml... got blacklisted too with the first try
Yes, indeed. However, there are still bugs (i.e. undesired behavior) in the regexp -- unfortunately, I don't know where to report those.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Powered By Links

Post by svasti » Tue Feb 10, 2015 9:17 pm

Funny is that a Powered-by-Links function would even be something for Gert ... if we could agree on a common function name.

Post Reply