How Can i add Adsense and Code Box Like ...... How Can i add Adsense and Code Box Like ......
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How Can i add Adsense and Code Box Like ......

Started by bl4kdev1l, February 08, 2008, 07:21:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bl4kdev1l

[Edit GauGau] Replaced hotlinked image with attchement [/Edit]



How can i add adsense and code box like this guy did? same location?

just_some_guy

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.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

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.

bl4kdev1l

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

just_some_guy

Vale,  por favor escribe aqui tu theme.php.

Ok, please post your theme.php.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

bl4kdev1l

no pude poner el codigo aki pq excedia de caracteres



GRACIAS

just_some_guy

Tu codigo esta bien y tiene no problemas. Donde esta tu galeria?

The code appears correct, a link to your gallery?
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

bl4kdev1l

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?

just_some_guy

Vale, este theme (el codigo de tu escribe) es el theme de tu galeria ahora, si?

Intente este código -

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

bl4kdev1l

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 -



just_some_guy

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.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

bl4kdev1l

GRACIAS!  por tu ayuda, como podria poner el codigo en el textarea si me podrias ayudar con eso tambien :S  :-[

bl4kdev1l

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.

just_some_guy

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.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

bl4kdev1l


bl4kdev1l

si es similar pero eso es bbcode :S necesito html. no?

just_some_guy

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.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller

There is no support in Spanish, for reasons explained many times over. Period. Locking.