Link to the mod (https://custom.simplemachines.org/index.php?mod=3084)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FAdkmods%2Flogo.png&hash=b7e60a41a3ada5e2ace731e912eef5f3dd40e770) (http://www.smfpersonal.net/)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fuser.png&hash=997d251819d42b9aa15fd08d1b64be6544cd071a)
Autor/Author: ^HeRaCLeS^ (http://www.smfpersonal.net/profiles/heracles-u259.html)
enik (http://www.smfpersonal.net/profiles/enik-u417.html)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fpage_white_flash.png&hash=ed86fd5e13fc727a61ef6b0bdbb304d2f610017e)
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
htmlLas opciones de este mod se encuentran en:
Admin -> ModificacionesCopyright 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)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fpage_white_flash.png&hash=ed86fd5e13fc727a61ef6b0bdbb304d2f610017e)
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
htmlThe options of this mod are in:
Admin -> Modification SettingsCopyright 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)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b)
Idiomas/Languages:o English
o English-utf8
o Spanish_es
o Spanish_es-utf8
o Spanish_latin
o Spanish_latin-utf8
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b)
Compatibilidad/Compatibility: SMF 2.0.x
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b)
Desarrollador/Developer: Adk-Team (http://www.smfpersonal.net)
Nice work ;)
Quote from: enik on August 18, 2011, 06:53:11 PM
Nice work ;)
Course you would say this being one of the authors. ::)
Just show up as an author but all credit is Heracles :P
Looks cool to me...
Nice work :)
Thank you very much ;)
Use hooks (http://wiki.simplemachines.org/smf/Integration_hooks) please. Changing of index.template.php is a very bad idea.
Updated to SMF 2.0.1 ;)
Regards enik...
Updated to 2.0.2
Thanks for this Mod
very nice add-on, useful, and thank you
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.
Yes good work
When Update dont forget portuguese files
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.
The only way I can get my site to work is to reupload the original subs.php folder.
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
how do you do the package installation?
and if you do the package install, do you still have to mod all them files?
no... that is the whole point of the package manager....
http://wiki.simplemachines.org/smf/Package_manager
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.
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.
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?>
does your packages folder also have a temp sub-folder?
No in the packages folder I have:
backups folder
.htaccess
index.php
installed.list
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
http://wiki.simplemachines.org/smf/Error_in_mod_installation
SMF 2.0.4 updated ;)
Regards enik...
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?
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?
No, That's not possible with the code mod. Would have to modify all code