Jump to content

DGRL

Members
  • Posts

    35
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

DGRL's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Paste this line in your themes header.tpl Paste it before end head <script type="text/javascript"> jQuery(document).ready(function () { jQuery('a[href*=http://]:not([href*=http://Yourdomain.com])').attr('rel', 'nofollow'); jQuery('a[href*=http://]:not([href*=http://Yourdomain.com])').attr("target", "_blank"); jQuery('a[href*=https://]:not([href*=http://Yourdomain.com])').attr('rel', 'nofollow'); jQuery('a[href*=https://]:not([href*=http://Yourdomain.com])').attr("target", "_blank"); }); </script> </head>
  2. Hi everyone Is there someone willing enough to tell me how to remove the Powered by prestashop from the http header and als how to change the cookie name? See example HTTP/1.1 200 OK Date: Wed, 07 Sep 2016 13:02:09 GMT Server: XXX X-Powered-By: XXX P3P: CP="XXX" Powered-By: PrestaShop Set-Cookie: PrestaShop-XXX; expires=Wed, 07-Sep-2016 21:02:09 GMT; path=/; domain=XXX; httponly Vary: Accept-Encoding Content-Type: text/html; charset=utf-8 Content-Length: 134446 Keep-Alive: timeout=5, max=99 Connection: Keep-Alive Kind regards, DGRL
  3. Already fixed it myself Finally both REL and TARGET are saved And html putifier is turned on :-)
  4. as far as i see now only REL="nofollow" is not allowed in prestashop for some weird reason. Does anyone of you know how to modify the core of this program in order to let prestashop ACCEPT the REL part in a url? And why does prestahop not allow me to NOT FOLLOW a url?
  5. Hi everyone Does anyone of you know how to place a link in product description that includes rel and target? Everytime i place a link in the description and save prestashop removes the rel the whole time? I dont want to be kicked by search engines for this I need the rel and new window in my links thanks
  6. For everyone who needs a good solution Change This ( for 1.6.1.6 ) if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]', $var_list, $contact->email, $contact->name, null, null, $file_attachment, null, _PS_MAIL_DIR_, false, null, null, $from) || !Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, null, null, $file_attachment, null, _PS_MAIL_DIR_, false, null, null, $contact->email)) { $this->errors[] = Tools::displayError('An error occurred while sending the message.'); } To this ( for 1.6.1.6 ) if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]', $var_list, $contact->email, $contact->name, null, null, $file_attachment, null, _PS_MAIL_DIR_, false, null, null, $from) || !Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, null, null, $file_attachment, null, _PS_MAIL_DIR_, false, null, null, $contact->email)) {Mail::l('Your message has been correctly sent');} I tested this and works perfect Emails are indeed sent and recieved Regards DGRL
  7. After reading the prestashop docs and reading this Use HTMLPurifier Library I just want to know if there is a better way to get the rel and target in same link with html purifier enabled
  8. I just found out thanks to NemoPS that disabling the html purifier solves the problem, Is this the correct solution? coz prestashop recomends to enable this option Hope to hear from someone Thanks
  9. UPDATE it does not matter how i add the banner pic. everytime after saving the REL="nofollow" is deleted
  10. Hi Everyone I googled about this but couldnt find it When editing the product description and adding this link <a href="mylink=" rel="nofollow" target="_blank"><img width="100%"src="myimg" /></a> and saving it it will remove the rel="nofollow" part automaticly. after saving and returning back to the code the REL is not present anymore How can i manipulate prestashop so that both rel and target will stay? Kind regards
  11. This is fixed i can confirm as i tested it myself as i cant paste a url for some strange reason and i cant even make a hyperlink search for [-] FO :Fix bug #PSCSX-5077, Country ISO code js validation. search on github regards ps í tested this on 1.6.1.6 I hope prestashop will add this to there own code There statement of not editing files coz of future updates makes this fix useless for some of us
×
×
  • Create New...