News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

download button BBc

Started by Dhayzon, February 10, 2013, 07:30:45 PM

Previous topic - Next topic

Dhayzon

Link to Mod


Dowload Button BBc
Developed by Dhayzon for SMFhispano.com
Special Thanks MARY LOU
SMF 2.0.XX



El soporte oficial de los desarrolladores de nuestros mods lo encontraras en smfhispano.net
Official Support in
www.smfhispano.net




Descripcion (Spanish):
Download button BBC es un simple boton con un diseño muy profesional donde se ocultara tu link de descarga
[descarga] url //.... [/descarga]


Description (English):
Download BBC button is a button with a very professional which hide your download link
[descarga] url //.... [/descarga]


Languages:
english
spanish_es-utf8
spanish_latin

Demo:       view demo




Screenshots | Imagenes.

 



dowload button bbc

Copyright 2012 |
http://smfhispano.net




Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Shambles

Have you any plans to provide an English BBcode-tag or option?

I don't have spanish-utf8 language installed so I got a warning during package installation, which I ignored. It seems that without it, your mod will not work.

NanoSector

Quote from: Shambles on February 11, 2013, 02:32:19 AM
Have you any plans to provide an English BBcode-tag or option?

I don't have spanish-utf8 language installed so I got a warning during package installation, which I ignored. It seems that without it, your mod will not work.
Looks like I skipped over the spanish_es language file, it needs an error="skip" attached. The mod should work without the Spanish language files.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Dhayzon

This modification was made ​​to the Spanish language was essential so
as those with English language only they jumped the error, but they worked well

the mod already upgraded and placed as primary English language so no one will have problems

thanks for that little problem Report

Shambles

Yes it works now - thanks for your efforts, though I thought the actual tag itself would be "english'ified", rather than [descarga].

Ho hum.

Inti31

very nice - but you could improve it by using that - it is not necessary to load this png from another source.

    background:transparent url(../images/e5EXM6o.png) no-repeat 50% 55%;

I modifiied the package and put it into /files and added this line in install/uninstall-area of  package-info.xml

       <require-file name="files/e5EXM6o.png" destination="$imagesdir" />


        <remove-file name="$imagesdir/e5EXM6o.png" />

my example:
http://test.epica-forum.de/index.php?topic=562.0

great work


german

     <file name="$languagedir/index.german.php">
        <operation>
            <search position="before"><![CDATA[// Use numeric entities in the below string.]]></search>
            <add><![CDATA[//dowload button.

$txt['descarga'] = 'Download Button einf&uuml;gen';
$txt['download'] ='Download Link';]]></add>
        </operation>
    </file>
     <file name="$languagedir/index.german-utf8.php">
        <operation>
            <search position="before"><![CDATA[// Use numeric entities in the below string.]]></search>
            <add><![CDATA[//dowload button
$txt['descarga'] = 'Download Button einfügen';
$txt['download'] ='Download Link';]]></add>
        </operation>
    </file>



my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Realinfo

Instead of [/descarga], can we have [/download]

NanoSector

For everyone wanting it in English, find in Sources/Subs.php:

'tag' => 'descarga',

Replace:
'tag' => 'download',

In Sources/Subs-Editor.php
Find:
'before' => '[descarga]',
'after' => '[/descarga]',


Replace:
'before' => '[download]',
'after' => '[/download]',
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Shambles

Quote
Instead of [/descarga], can we have [/download]

That was part of the question I was asking in Reply #2 above.

Quote from: YoshiFor everyone wanting it in English, find in Sources/Subs.php

Yes, Yoshi, it is indeed simple to perform that edit, for those of us confident enough to locate, download, edit and upload. But for others who we've seen [recently] struggling with even the concept of finding the Sources directory, the solution via Finding & Replacing isn't such an easy option.

Although I haven't read anything to support this, I'd always assumed that modifications were approved for the common language of installation - English -  with options built-in (or later added) for alternative languages. Is that not the case [any more] ?

NanoSector

Quote from: Shambles on February 15, 2013, 05:50:15 AM
Although I haven't read anything to support this, I'd always assumed that modifications were approved for the common language of installation - English -  with options built-in (or later added) for alternative languages. Is that not the case [any more] ?
The mod should include support for the English language, if the tags are in English it doesn't really matter.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Shambles

Quote
...if the tags are in English it doesn't really matter.

And if they aren't, as in this example...?

NanoSector

Quote from: Shambles on February 15, 2013, 06:15:47 AM
Quote
...if the tags are in English it doesn't really matter.

And if they aren't, as in this example...?
Heh, I meant it doesn't matter a lot if the tags are in English or not :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Fat_Man

Does it hide the download link?
I've used this and if anything, it does the complete opposite.

Apllicmz

when update dont forget portugues files


[/code]<file name="$languagedir/index.portuguese_pt.php" error="skip">
        <operation>
            <search position="before"><![CDATA[// Use numeric entities in the below string.]]></search>
            <add><![CDATA[//dowload button by dhayzon for smfhispano.Translate by Candidosa2 Support smfpt.net


$txt['descarga'] = 'Insira um bot&atilde;o de download ';
$txt['download'] ='Link para download';]]></add>
        </operation>
    </file>
<file name="$languagedir/index.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="before"><![CDATA[// Use numeric entities in the below string.]]></search>
            <add><![CDATA[//dowload button by dhayzon for smfhispano.Translate by Candidosa2 Support smfpt.net


$txt['descarga'] = 'Insira um bot&atilde;o de download ';
$txt['download'] ='Link para download';]]></add>
        </operation>
    </file>



DarthRiddle

#15
Am I missing something?
With version 1.1 when you hit the create button icon, it comes up backwards and does not make a button. Im using the new Mystic Theme from smfpersonal
When you insert the hyperlink in between, and hit save. You just get the txt and hyperlink with no nice button.
See photo:



Output after save


Diego Andrés

This mod is for smf 2.x.x

SMF Tricks - Free & Premium Responsive Themes for SMF.

phpshiva

This doesent work on 2.0.8 can you fix this?

fapencio

Quote from: phpshiva on June 19, 2014, 06:32:08 AM
This doesent work on 2.0.8 can you fix this?

Hi @phpshiva in attachments you will find the mod fixed to work in 2.0.8, just for 2.0.8 ok?
best regards

My smf forum is 2.0.10 version
my theme is default
language spanish es utf8

DKBjorn


Advertisement: