coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: bl4kdev1l on February 08, 2008, 07:21:14 AM

Title: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 07:21:14 AM
[Edit GauGau] Replaced hotlinked image with attchement [/Edit]



How can i add adsense and code box like this guy did? same location?
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: just_some_guy on February 08, 2008, 09:34:06 AM
Hola,

Open theme.php, if the code below is not in your theme.php, copy the entire function or variable definition from themes/sample/theme.php

Find:


Code:
<!-- BEGIN title -->


                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->


And after
Code:
<!-- BEGIN title -->

paste your adsense code.
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: Joachim Müller on February 08, 2008, 01:37:06 PM
Quote from: just_some_guy on February 08, 2008, 09:34:06 AM
Open theme.php, if the code below is not in your theme.php, copy the entire function or variable definition from themes/sample/theme.php
Just as a clarification: do not copy & paste the entire content of themes/sample/theme.php into themes/yourtheme/theme.php. Just copy the function or variable definition that you actually want to modify into your custom theme. For this specific case, you need to variable definition for $template_display_media. So, if your custom theme doesn't contain it, copy// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
from themes/sample/theme.php into a new line before?>of themes/yourtheme/theme.php. Then modify as suggested above.

Quote from: bl4kdev1l on February 08, 2008, 07:21:14 AM
How can i add adsense and code box like this guy did? same location?
Has been asked (and answered) many times before - next time you have a question, search the board first before starting yet another duplicate thread.
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 04:00:55 PM
Quote from: just_some_guy on February 08, 2008, 09:34:06 AM
Hola,

Open theme.php, if the code below is not in your theme.php, copy the entire function or variable definition from themes/sample/theme.php

Find:


Code:
<!-- BEGIN title -->


                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->


And after
Code:
<!-- BEGIN title -->

paste your adsense code.



Hola  :-[ no entendi bn lo que me quizo decir el que siguio el post abajo si podrias explicarme un poquito mejor en español quiza pueda entenderlo mejor! :D y disculpa la molestias Gracias.

PQ lo hice como me dijiste tu pero no sale el anuncio de google! :S
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: just_some_guy on February 08, 2008, 04:08:30 PM
Vale,  por favor escribe aqui tu theme.php.

Ok, please post your theme.php.
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 04:19:15 PM
no pude poner el codigo aki pq excedia de caracteres



GRACIAS
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: just_some_guy on February 08, 2008, 04:24:16 PM
Tu codigo esta bien y tiene no problemas. Donde esta tu galeria?

The code appears correct, a link to your gallery?
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 04:29:20 PM
Http://www.360MagNYC.com/gallery (Http://www.360magnyc.com/gallery)

solo hay una foto pq estoy trabajando en el site esa foto es prueba solo para probar el codigo que estamos modificando.


Quote from: just_some_guy on February 08, 2008, 04:24:16 PM
Tu codigo esta bien y tiene no problemas. Donde esta tu galeria?

The code appears correct, a link to your gallery?
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: just_some_guy on February 08, 2008, 04:38:29 PM
Vale, este theme (el codigo de tu escribe) es el theme de tu galeria ahora, si?

Intente este código -

Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 04:43:51 PM
si ese es el theme de mi galeria y puse el que me diste y no funciona todavia :S  ???   :'(



Quote from: just_some_guy on February 08, 2008, 04:38:29 PM
Vale, este theme (el codigo de tu escribe) es el theme de tu galeria ahora, si?

Intente este código -


Title: Re: How Can i add Adsense and Code Box Like ......
Post by: just_some_guy on February 08, 2008, 05:01:04 PM
Lo siento no lo se, pero, yo trandulicir por otras personas.

I cant fix bl4kdev1l 's problem, basically he wants the adsense ad to appear where he highlighted on the photo he posted. He attached his theme.php where he had the ad code below {title}, this wouldnt work for him. I edited it for him and put the ad code below {caption} (this is where it is on my gallery and the ad shows up fine there). This still does not work and i can't help anymore, however, i will translate if need be.
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 05:05:42 PM
GRACIAS!  por tu ayuda, como podria poner el codigo en el textarea si me podrias ayudar con eso tambien :S  :-[
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 05:12:14 PM
yo tengo otro problemita parte de ese no se si podrias ayudarme en esto pero lo que pasa es que cuando le doy a share your pictures en el menu de CPG simpre me desloguea (logs me out) y me dice:


QuoteError
You don't have permission to perform this operation.







----------------------------------------------------------------------------------------------------------------------------------------------------
Quote from: just_some_guy on February 08, 2008, 05:01:04 PM
Lo siento no lo se, pero, yo trandulicir por otras personas.

I cant fix bl4kdev1l 's problem, basically he wants the adsense ad to appear where he highlighted on the photo he posted. He attached his theme.php where he had the ad code below {title}, this wouldnt work for him. I edited it for him and put the ad code below {caption} (this is where it is on my gallery and the ad shows up fine there). This still does not work and i can't help anymore, however, i will translate if need be.
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: just_some_guy on February 08, 2008, 05:25:00 PM
Quote from: bl4kdev1l on February 08, 2008, 05:05:42 PM
GRACIAS!  por tu ayuda, como podria poner el codigo en el textarea si me podrias ayudar con eso tambien :S  :-[

Este plugin is muy similar de este - http://forum.coppermine-gallery.net/index.php?topic=36302.0

This plugin is similar to what you want.

Quoteyo tengo otro problemita parte de ese no se si podrias ayudarme en esto pero lo que pasa es que cuando le doy a share your pictures en el menu de CPG simpre me desloguea (logs me out) y me dice:



Quote
Error
You don't have permission to perform this operation.


La ley de este foro es 1 pregunta por 1 thread, pero si tu comienza un nuevo thread  yo traducira por otra personas.

The rule is question per thread, but if you start a new thread i will translate your problem for others.
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 05:26:34 PM
Ok Listo GRACIAS jeje
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: bl4kdev1l on February 08, 2008, 05:29:25 PM
si es similar pero eso es bbcode :S necesito html. no?
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: just_some_guy on February 08, 2008, 05:43:02 PM
Veo tu mensajes.

His question was related to the plugin, i have pm'ed him the solution as i think this is straying too far off-topic.
Title: Re: How Can i add Adsense and Code Box Like ......
Post by: Joachim Müller on February 08, 2008, 07:50:50 PM
There is no support in Spanish, for reasons explained many times over. Period. Locking.