Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ^HeRaCLeS^ on August 17, 2011, 04:34:19 PM

Title: System Advertising
Post by: ^HeRaCLeS^ on August 17, 2011, 04:34:19 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3084)

System Advertising 1.0

(http://www.smfpersonal.net/Adkmods/logo.png) (http://www.smfpersonal.net/)

(http://www.smfpersonal.net/famfamfam/user.png) Autor/Author:
     ^HeRaCLeS^ (http://www.smfpersonal.net/profiles/heracles-u259.html)
     enik (http://www.smfpersonal.net/profiles/enik-u417.html)
    
(http://www.smfpersonal.net/famfamfam/page_white_flash.png) Características:
     Esta aplicación nos permitira poner bloques de publicidad tanto en el sitio como en los temas principales.
     Opciones:
          Activar/desactivar bloques en el sitio.
          Dos bloques (Superior e Inferior)..
          Activación independiente de los bloques.
          Visible en: (Todo el sitio - Solo en index).
          Visible para: (Todos - Solo visitantes).
          Modificar tamaño alto: (50, 100, 150 ó 200px).
          Activar/desactivar bloques en los temas principales.
          Tres bloques (Superior - Medio - Inferior).
          Activación independiente de los bloques.
          Visible para: (Todos - Solo visitantes).
          Modificar tamaño: (50, 100, 150 ó 200px)(400 y 600 Para bloque medio).
               
     Nota: El contedido de todos los bloques puede contener códigos html

Las opciones de este mod se encuentran en:
Admin -> Modificaciones

Copyright 2011 by SMF Personal @ visita www.smfpersonal.net (http://www.smfpersonal.net) para soporte oficial.

Si tu quieres ayudarnos, por favor visita nuestra seccion de contribuciones: Contribuir (http://www.smfpersonal.net/about.html;sa=contritube-spanish)



(http://www.smfpersonal.net/famfamfam/page_white_flash.png) Features:
     This application allows you to block advertising in both the site and the main themes.
     Options:
          Enable/Disable blocks in the site.
          Two blocks (top and bottom).
          Independent Activation of the blocks.
          Visible in: (All the site - only in index).
          Visible to: (all - only visitors).
          Resize high: (50, 100, 150 or 200px).
          Enable/disable blocks on the main themes.
          Three blocks (Superior - Middle - Inferior).
          Independent Activation of the blocks.
          Visible to: (all - only visitors).
          Resize: (50, 100, 150 or 200px) (400 and 600 for half block).
               
     Note: The contents of all blocks can contain codes html

The options of this mod are in:
Admin -> Modification Settings

Copyright 2011 by SMF Personal @ visit www.smfpersonal.net (http://www.smfpersonal.net) for official support.

If you want help, please visit our contributions section: Contribute (http://www.smfpersonal.net/about.html;sa=contribute)




(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Idiomas/Languages:

o English
o English-utf8
o Spanish_es
o Spanish_es-utf8
o Spanish_latin
o Spanish_latin-utf8

(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Compatibilidad/Compatibility:
     SMF 2.0.x

(http://www.smfpersonal.net/Themes/default/images/post/topicsolved.gif) Desarrollador/Developer:
     Adk-Team (http://www.smfpersonal.net)
Title: Re: Adk System Advertising
Post by: enik on August 18, 2011, 06:53:11 PM
Nice work  ;)
Title: Re: Adk System Advertising
Post by: TheListener on August 18, 2011, 08:31:33 PM
Quote from: enik on August 18, 2011, 06:53:11 PM
Nice work  ;)

Course you would say this being one of the authors.  ::)
Title: Re: Adk System Advertising
Post by: enik on August 18, 2011, 09:11:18 PM
Just show up as an author but all credit is Heracles  :P
Title: Re: Adk System Advertising
Post by: mbanusick2 on August 18, 2011, 11:43:29 PM
Looks cool to me...
Nice work :)
Title: Re: Adk System Advertising
Post by: ^HeRaCLeS^ on August 19, 2011, 07:45:36 AM
Thank you very much ;)
Title: Re: Adk System Advertising
Post by: Bugo on August 21, 2011, 01:39:53 AM
Use hooks (http://wiki.simplemachines.org/smf/Integration_hooks) please. Changing of index.template.php is a very bad idea.
Title: Re: Adk System Advertising
Post by: Adk-Team on September 22, 2011, 11:19:16 AM
Updated to SMF 2.0.1  ;)

Regards enik...
Title: Re: Adk System Advertising
Post by: Adk-Team on January 20, 2012, 01:44:30 PM
Updated to 2.0.2
Title: Re: Adk System Advertising
Post by: Eclipse16V on January 24, 2012, 01:16:09 AM
Thanks for this Mod
Title: Re: Adk System Advertising
Post by: impreza on February 19, 2012, 01:22:19 PM
very nice add-on, useful, and thank you
Title: Re: Adk System Advertising
Post by: Kindred on February 28, 2012, 04:54:31 PM
I have some issues

1- hardcoded text -- "ADK System Advertising" is hardcoded as heading text for the sections (subs.php)
2- text String names -- the text strings use non-descriptive names like $txt['SystemA_24']. It would be much more helpful and useful if the strings were labeled descriptively. (SMF had this same problem back with the 1.x series, which was addressed by changing the string labels to be descriptive in 2.x)

3- the ad locations...   The names like "superior" "theme lower" are also non-descriptive.
You either need a marked up screen shot of the locations in the default theme or more descriptive names.
for example,
"Superior" is "in the forum header, above the menubar" (index.template)
"Lower" is "just above the forum footer (index.template)
"advertising greater in themes" is "Above the first message in the thread view (display.template)
"advertising lower in themes" is "Between the first and second message in the thread view (display.template)

I have no clue where "advertising in themes" is supposed to display since I couldn't get it to show....


I suspect some of this is a language issue... so please try to find someone with a good command of English to assist you in producing your English translations.
Title: Re: Adk System Advertising
Post by: Apllicmz on July 22, 2012, 10:58:05 PM
Yes good work
When Update dont forget portuguese files


Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 05:20:25 PM
When installing this step by step I am getting this error?

Parse error: syntax error, unexpected ',' in /var/www/vhosts/unitedridaz.org/httpdocs/Sources/Subs.php on line 3956

Also I am a little new at this and not sure where to upload the english/install20/package-info/spanish files that came with the downloaded folder. 

Any and all help will be greatly appreciated.
Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 05:22:50 PM
The only way I can get my site to work is to reupload the original subs.php folder.
Title: Re: Adk System Advertising
Post by: Kindred on September 07, 2012, 05:50:58 PM
did you do a manual installation?

If you used the package manager, all the files would have been loaded to the correct locations.

if you did a manual installation, then follow the instructions in the install XML files, or in the package parser available on the mod download page.

The only reason you would have gotten that error is if you manually, incorrectly, added the code to subs,php
Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 05:53:43 PM
how do you do the package installation?
Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 05:56:58 PM
and if you do the package install, do you still have to mod all them files?
Title: Re: Adk System Advertising
Post by: Kindred on September 07, 2012, 06:03:13 PM
no... that is the whole point of the package manager....

http://wiki.simplemachines.org/smf/Package_manager
Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 06:08:20 PM
Ok so what I have is the folder I downloaded saved to my desktop.
Now what do I do.
Sorry for all the questions.  This is my first SMF site.
Title: Re: Adk System Advertising
Post by: Kindred on September 07, 2012, 06:15:21 PM
ummm... rtfm?


Download zip file.
go to package manager on your site
upload zip file via package manager
install package.

no folder on your local drive... don't extract anything

Do note, if you manually installed PART of the package, you will need to remove all those edits.
Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 06:22:38 PM
Ok i reuploaded all the original editted files.

I downloaded it through the package manager.

When installing I get this error now:
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I went into server via FTP and cmoded the folder and all in it to 777.  Still wont upload?>
Title: Re: Adk System Advertising
Post by: Kindred on September 07, 2012, 06:28:34 PM
does your packages folder also have a temp sub-folder?
Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 06:31:14 PM
No in the packages folder I have:

backups folder
.htaccess
index.php
installed.list
Title: Re: Adk System Advertising
Post by: drlowz on September 07, 2012, 06:44:30 PM
Ok I created a Temp file.  Which got me to a next step:

Type    Action    Description
   1.    Execute Code    install.php    
*    2.    Execute Modification    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/QueryString.php    Test successful
*    5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
*    8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
   9.    Extract File    ./Sources/Ads.php    
   10.    Extract File    ./Sources/LoadAds.php    
   11.    Extract File    ./Themes/default/Ads.template.php    
   12.    Extract File    ./Themes/default/languages/Ads.english.php    
   13.    Extract File    ./Themes/default/languages/Ads.english-utf8.php    

Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
      Core Theme
      Execute Modification    ./Themes/core/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/core/BoardIndex.template.php    Test successful
      2.    Add After    ./Themes/core/BoardIndex.template.php    Test failed
      Execute Modification    ./Themes/core/Display.template.php    Test failed
      1.    Add After    ./Themes/core/Display.template.php    Test successful
      2.    Replace    ./Themes/core/Display.template.php    Test successful
      3.    Replace    ./Themes/core/Display.template.php    Test failed
      Execute Modification    ./Themes/core/MessageIndex.template.php    Test failed
      1.    Add After    ./Themes/core/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/core/MessageIndex.template.php    Test failed
      PixelCar
      Execute Modification    ./Themes/PixelCar/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/PixelCar/BoardIndex.template.php    Test successful
      2.    Add After    ./Themes/PixelCar/BoardIndex.template.php    Test failed
      Execute Modification    ./Themes/PixelCar/Display.template.php    Test failed
      1.    Add After    ./Themes/PixelCar/Display.template.php    Test successful
      2.    Replace    ./Themes/PixelCar/Display.template.php    Test successful
      3.    Replace    ./Themes/PixelCar/Display.template.php    Test failed
      Minimal
      Execute Modification    ./Themes/min/Display.template.php    Test successful
Title: Re: Adk System Advertising
Post by: Kindred on September 07, 2012, 09:09:59 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Adk System Advertising
Post by: Adk-Team on February 08, 2013, 08:08:33 PM
SMF 2.0.4 updated  ;)

Regards enik...
Title: Re: Adk System Advertising
Post by: bosswhite on May 21, 2013, 12:13:44 PM
Very nice mod but biggest trouble for me is that I have to go in to settings every time I want ad to change.

Is it possible for me to alter something so that input boxes will accept php instead of html?
Title: Re: Adk System Advertising
Post by: bosswhite on May 23, 2013, 05:01:30 AM
Failing an answer to the above,
Is it possible to include a php file from within a html box so that the php file executes?
Title: Re: Adk System Advertising
Post by: ^HeRaCLeS^ on June 25, 2013, 06:47:41 AM
No, That's not possible with the code mod. Would have to modify all code