Results 1 to 2 of 2

Thread: Disable the Popup ads for images

  1. #1
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default Disable the Popup ads for images

    Maybe you don't want popup ads show on some type of files,for example,image files,you can edit show.php to change this:
    Add the code:
    Code:
    if(in_array($type,$ImageFile))
    $template->assign_var('popup_js_code','document.getElementById("imagecode").style.visibility="visible";');
    Before(about line 85)
    Code:
    $template->pparse('body');
    after the changes is done,the code in show.php may like this:
    Code:
    if(in_array($type,$ImageFile))
    $template->assign_var('popup_js_code','document.getElementById("imagecode").style.visibility="visible";');
    
    $template->pparse('body');
    You can apply the same changes to images.php.

  2. #2

    Default

    I can't find any code as you instructed, may be because 2.1 has a new code? Could you please upgrade this thread? I want to disable all the pop-up images so the visitors can see image immediately.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •