Subscribe to Image

Hi

I like to know how I can change the Subscribe button or block to be a image so I can design my own banner so people can susbcribe and when they click the image they get the same Subscribe pop up

here is my sample

 

e64mk5.png

 

 

Thank you,

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 28 Feb 2011

hey, even i think i can answer that one.

 

so what you do is find the source for the subscribe button, and you can copy that. create a new subscribe block, place your image in that block with an <a href=""><img src=""></a>

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 28 Feb 2011

To modify the existing block:

Edit Language key: _SUBSCRIBE_TEXT

Original string:

Subscribe now for {0}  newsletter to receive news, updates, photos of top rated members, feedback and tips to your e-mail.


New string:

<input type="image" src="<bx_url_root />templates/base/images/icons/YourImage.jpg" onclick="oBxDolSubscription.subscribe(0, 'system', 'mass_mailer', 0)" class="form_input_submit" name="subscribe" value="Subscribe">

Then upload YourImage.jpg to templates/base/images/icons/

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 28 Feb 2011

 

To modify the existing block:

Edit Language key: _SUBSCRIBE_TEXT

Original string:

Subscribe now for {0}  newsletter to receive news, updates, photos of top rated members, feedback and tips to your e-mail.


New string:

<input type="image" src="<bx_url_root />templates/base/images/icons/YourImage.jpg" onclick="oBxDolSubscription.subscribe(0, 'system', 'mass_mailer', 0)" class="form_input_submit" name="subscribe" value="Subscribe">

Then upload YourImage.jpg to templates/base/images/icons/

I try this before using firebug but the problem is the small subscribe button still there and work like I want

and when I create new block is not multilanguage and I want the block to be multilanguage or not show the tittle at the top on the block

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 28 Feb 2011

beautiful, nicely done.

 

To modify the existing block:

Edit Language key: _SUBSCRIBE_TEXT

Original string:

Subscribe now for {0}  newsletter to receive news, updates, photos of top rated members, feedback and tips to your e-mail.


New string:

<input type="image" src="<bx_url_root />templates/base/images/icons/YourImage.jpg" onclick="oBxDolSubscription.subscribe(0, 'system', 'mass_mailer', 0)" class="form_input_submit" name="subscribe" value="Subscribe">

Then upload YourImage.jpg to templates/base/images/icons/

I try this before using firebug but the problem is the small subscribe button still there and work like I want

and when I create new block is not multilanguage and I want the block to be multilanguage or not show the tittle at the top on the block

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 28 Feb 2011

Naw... that still leaves the button, and he doesn't want that, and you can't just add the same code to a new block.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 28 Feb 2011

HL,

take a peek at this one: --> http://dol705.codewire.us/index.php see what you think?

Naw... that still leaves the button, and he doesn't want that, and you can't just add the same code to a new block.

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 1 Mar 2011

 

HL,

take a peek at this one: --> http://dol705.codewire.us/index.php see what you think?

Naw... that still leaves the button, and he doesn't want that, and you can't just add the same code to a new block.

 

Perfect!

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 1 Mar 2011

i put that Houston Howdy on there for you HL

 

HL,

take a peek at this one: --> http://dol705.codewire.us/index.php see what you think?

Naw... that still leaves the button, and he doesn't want that, and you can't just add the same code to a new block.

 

Perfect!

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 1 Mar 2011

/templates/base/home_page_subscribe.html:

 

<div class="dbContentHtml">
<table cellspacing="0" cellpadding="0" class="form_advanced_table">
<tr>
<td colspan="2" class="colspan" style="white-space: normal">__message__</td>
</tr>
<tr>
<td colspan="2" class="colspan">
<div align="center">
<input type="image" src="/path/to/image.png" class="form_input_submit" onclick="__button_script__" />
</div>
</td>
</tr>
</table>
</div>

 

I recommend you copy this file over from /base/ into your own template's directory and make any changes there.

 

I didn't make this. It was stolen from DosDawg while he wasn't looking.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 1 Mar 2011

 

HL,

take a peek at this one: --> http://dol705.codewire.us/index.php see what you think?

Naw... that still leaves the button, and he doesn't want that, and you can't just add the same code to a new block.

 

lol

you guy made my date

Thanks for the support guys but the way nice picture

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 1 Mar 2011

i would have posted it here, but thought better of it, considering the powder puff feelings of some lately. thats why i had HL go check it out.

 

HL,

take a peek at this one: --> http://dol705.codewire.us/index.php see what you think?

Naw... that still leaves the button, and he doesn't want that, and you can't just add the same code to a new block.

 

lol

you guy made my date

Thanks for the support guys but the way nice picture

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 1 Mar 2011

Ok

I remove this code from home_page_subscribe.html

 

<tr>
<td colspan="2" class="colspan">
<div class="button_wrapper">
<input type="button" value="__button_title__" name="subscribe" class="form_input_submit" onclick="__button_script__" />
<div class="button_wrapper_close"></div>
</div>
</td>
</tr>

 

Than I add the code on my languakey call: _SUBSCRIBE_TEXT

<input type="image" src="images/ads/susbcribete.png" onclick="oBxDolSubscription.subscribe(0, 'system', 'mass_mailer', 0)" class="form_input_submit" name="subscribe" value="Subscribe">

and I dit the test and everything is workign fine but I like to know is this is a good idea or this can do something bad to my site later

Thanks you can try why a dit if you like

Thanks  Magnussoft

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 1 Mar 2011

i do believe that can cause some errors on IE, please check it. the way the subscription is working is that it runs through the subscription.php, which runs through the /inc/classes/BxDolSubscription.php

 

i think that is the order anyhow. then it runs through the /templates/base/scripts/BxBaseSubscription.php

 

so you have too many files and it would have been best to run it the way it was suggested, because you know how dolphin can be problematic~!!!!!~~~~

Ok

I remove this code from home_page_subscribe.html

 

<tr>
<td colspan="2" class="colspan">
<div class="button_wrapper">
<input type="button" value="__button_title__" name="subscribe" class="form_input_submit" onclick="__button_script__" />
<div class="button_wrapper_close"></div>
</div>
</td>
</tr>

 

Than I add the code on my languakey call: _SUBSCRIBE_TEXT

<input type="image" src="images/ads/susbcribete.png" onclick="oBxDolSubscription.subscribe(0, 'system', 'mass_mailer', 0)" class="form_input_submit" name="subscribe" value="Subscribe">

and I dit the test and everything is workign fine but I like to know is this is a good idea or this can do something bad to my site later

Thanks you can try why a dit if you like

Thanks  Magnussoft

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 1 Mar 2011

Hi Dosdawg

I dit the test on IE ,Firefox, and Google Chrome and seem to be working fine I click the banner and the pop up looks perfect

Post Reply - if you going to help - No for - bla bla bla bla
Quote · 1 Mar 2011

ok kewl because i had tried that route and was getting undefined errors on the variable.

Hi Dosdawg

I dit the test on IE ,Firefox, and Google Chrome and seem to be working fine I click the banner and the pop up looks perfect

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 1 Mar 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.