Jump to content

Remove PrestaShop Welcome Video , Summary Prestashop Link and PrestaShop News! in back office


Recommended Posts

In your Prestashop folder go to Admin>Tabs and open up AdminHome.php

 

Line 184-210 is the video part, so comment that out or remove. The other parts are further down that file but not got time now to check and say exactly where. :/

 

Make sure you make a back-up of the file in case you delete or edit something you shouldn't!

  • Like 1
Link to comment
Share on other sites

Those should all be in the same file somewhere. Further down from the video part. I can't say exactly where at the moment as I'm away from the PC so can't check. If I get time, I'll look for you but it should be fairly obvious which ones they are ;)

  • Like 1
Link to comment
Share on other sites

thank you very much and i hope you help me soon with this , thank you again ,iam waiting your help when you are free ,and i will add you if you dont mind

 

Ok, I had a look for you. You need to edit the same file as before and remove these parts:

 

Lines 359 - 401

</table>
 </div>
 <div id="column_right">
  <script type="text/javascript">
   $(document).ready(function() {
 $.ajax({
  url: "ajax.php",
  dataType: "json",
  data: "getAdminHomeElement",
  success: function(json) {
   if (json.screencast != \'NOK\')
    $(\'#adminpresentation\').fadeIn(\'slow\');
   else
    $(\'#adminpresentation\').fadeOut(\'slow\');
   $(\'#partner_preactivation\').fadeOut(\'slow\', function() {
    if (json.partner_preactivation != \'NOK\')
	 $(\'#partner_preactivation\').html(json.partner_preactivation);
    else
	 $(\'#partner_preactivation\').html(\'\');
    $(\'#partner_preactivation\').fadeIn(\'slow\');
   });
   $(\'#discover_prestashop\').fadeOut(\'slow\', function() {
    if (json.discover_prestashop != \'NOK\')
	 $(\'#discover_prestashop\').html(json.discover_prestashop);
    else
	 $(\'#discover_prestashop\').html(\'\');
    $(\'#discover_prestashop\').fadeIn(\'slow\');
   });
  },
  error: function(XMLHttpRequest, textStatus, errorThrown)
  {
   $(\'#adminpresentation\').fadeOut(\'slow\');
   $(\'#partner_preactivation\').fadeOut(\'slow\');
   $(\'#discover_prestashop\').fadeOut(\'slow\');
  }
 });
   });
  </script>
  <div id="partner_preactivation">
   <p class="center"><img src="../img/loader.gif" alt="" /> '.translate('Loading...').'</p>
  </div>

 

And also the part from Lines 409 - 412

echo '
  <div id="discover_prestashop">
   <p class="center"><img src="../img/loader.gif" alt="" /> '.translate('Loading...').'</p>
  </div>
 </div>
 <div class="clear"></div>';

 

That will do it for you.

  • Like 2
Link to comment
Share on other sites

you are so sweet , thank you very much ;) , i know that dont have alot of time , but really i thank you from my heart , and i would like to ask if you can helpme with somthing else

when ilog in to backoffice and i click moudle >>> Themes , you see downin the page , Live from PrestaShop Addons!

from where i can remove it ,

 

best regards

Link to comment
Share on other sites

Go to the same folder as before and this time find 'AdminThemes.php'

 

Go to Line 134 and remove this part:

 echo '<br /><br />';
 if (@ini_get('allow_url_fopen') AND @fsockopen('addons.prestashop.com', 80, $errno, $errst, 3))
  echo '<script type="text/javascript">
   $.post("'.dirname($currentIndex).'/ajax.php",{page:"themes"},function(a){getE("prestastore-content").innerHTML="<legend><img src=\"../img/admin/prestastore.gif\" class=\"middle\" /> '.$this->l('Live from PrestaShop Addons!').'</legend>"+a;});
  </script>
  <fieldset id="prestastore-content" class="width3"></fieldset>';  
 else
  echo '<a href="http://addons.prestashop.com/3-prestashop-themes">'.$this->l('Find new themes on PrestaShop Addons!').'</a>';

  • Like 1
Link to comment
Share on other sites

For the Prestashop video tutorials screen in particular, you can remove that directly from the back office. Just under the video tutorials window on the home page of the back office there's a Do not show again checkbox. Simply mark the checkbox.

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

hi

 

Thanks for above posts.

 

If you want to remove Help Button from admin(BO), go to Admin Folder > index.php

 

Line No. 56 - 75

 

please comment this with this example:

 

 

/*echo'<script type="text/javascript">

 

$(document).ready(function(){

$.ajax({

type : "POST",

url: "ajax.php",

data:{

"helpAccess":"1",

"item":"'.$item['class_name'].'",

"isoUser":"'.$isoUser.'",

"country":"'.Country::getIsoById(_PS_COUNTRY_DEFAULT_).'",

"version":"'._PS_VERSION_.'"

},

async : true,

success: function(msg) {

$("#help-button").html(msg);

$("#help-button").fadeIn("slow");

}

});

});</script>'; */

 

 

You are done.

Link to comment
Share on other sites

  • 5 months later...

Hi... I'm new to perstashop.. I want to delete the prestashop news from the backoffice.. But i can't .. As u said , I check in the Admin>tabs> index.php file. But I can see only 34 lines.. Can't find those lines which u said.. Please help me.... Thanks in advance.

 

To remove the News block from the backend:

 

For PrestaShop 1.5 assuming that the root PrestaShop folder on your hosting account is public_html, go to public_html/controllers/admin and edit the file AdminHomeController.php. Find and comment out the following code:

 

<div class="row-news"><div id="block_discover"><iframe frameborder="no" style="margin: 0px; padding: 0px; width: 100%; height:300px; overflow:hidden;" src="'.$protocol.'://api.prestashop.com/rss2/news2.php?v='._PS_VERSION_.'&lang='.$isoUser.'"></iframe></div>

 

To comment it out put an exclamation mark and two hyphens after the first bracket (e.g. <!--div) and two hyphens before the last one (e.g. /div-->).

 

For PrestaShop 1.4 go to public_html/your_admin_directory on your hosting account (of course, you need to replace your_admin_dir with the actual name of your admin directory) and edit the file ajax.php. Find and comment out the following code:

 

<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 315px; height: 290px;" src="'.$protocol.'://www.prestashop.com/rss/news2.php?v='._PS_VERSION_.'&lang='.$isoUser.'"></iframe>

 

Then flush the browser cache and refresh the backend.

 

Hope this helps.

Edited by hxd (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...

Hello guys sorry if I open this topic, I would like to know if there is a way to eliminate the prestashop news and video in version 1.5 there is no file admin.php

 

How can I do? Thank you!

 

nice share waiting for 1.5 also. thx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...