PDA

View Full Version : pasting google adsense inside a php



abboodeh
April 16th, 2009, 15:14
Hello

i have bought a script (Gallarific)

to be used in my site (www.arabicartoons.com)

and i have some questions since i'm not a programmer and i know very little of html...

this script is built on PHP...

i'm in touch with the support but i've two small question that you might help me before the support get back to me...

1st:
the script doesn't support arabic, all i see is:
http://up4them.com/i/00000/5fntmro1nmlc.JPG

what should i do to enable Arabic?

and 2nd:

i don't know where to paste the google adsense code, the support told me it should goes in the index.php

index.php exactly contains of:


<table id="main" cellspacing="0" cellpadding="0">
<?php ginclude('menu'); ?>
<?php ginclude('links'); ?>
<?php ginclude('recent_grid'); ?>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" class="heading">
<tr>
<td width="50" nowrap>&nbsp;</td>
<td width="40%" class="title">Gallery</td>
<td width="30%" class="title">Last Upload</td>
<td width="15%" class="title"><center>Photos</center></td>
<td width="15%" class="title"><center>Views</center></td>
</tr>
</table>
<?php ginclude('gallery_grid'); ?>
</td>
</tr>
<?php ginclude('popular_grid'); ?>
<?php ginclude('gallery_stats'); ?>
</table>
<?php if(isset($_GET["session_expired"])) { ?>
<script>alert("Your session has timed out. Please login again.");</script>
<?php } ?>


i know that i should paste it anywhere between [bode] and [/body]

but where is the [body] in php?

sorry guys my question might be silly but i'm trying my best to learn how to use php...

Thank you very much in advance for your support

GlennBeforeTime
April 16th, 2009, 20:01
This would have to be the most easiest question to answer, not sure why no one else answered this first.

Set your meta language to Arabic with HTML.

And as for the PHP script. see how it looks now;

<table id="main" cellspacing="0" cellpadding="0">
<?php ginclude('menu'); ?>
<?php ginclude('links'); ?>
<?php ginclude('recent_grid'); ?>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" class="heading">
<tr>
<td width="50" nowrap>&nbsp;</td>
<td width="40%" class="title">Gallery</td>
<td width="30%" class="title">Last Upload</td>
<td width="15%" class="title"><center>Photos</center></td>
<td width="15%" class="title"><center>Views</center></td>
</tr>
</table>
<?php ginclude('gallery_grid'); ?>
</td>
</tr>
<?php ginclude('popular_grid'); ?>
<?php ginclude('gallery_stats'); ?>
</table>
<?php if(isset($_GET["session_expired"])) { ?>
<script>alert("Your session has timed out. Please login again.");</script>
<?php } ?>

All of the black text there is pure HTML and a good old cut and paste job from any HTML site, dreamweaver or even frontpage.

abboodeh
April 17th, 2009, 08:10
Thank you very much! the support have fixed it!


it's solved, i'm really really sorry for my silly questions, but i'm just an accountant who's trying to learn HTML :D

but i still have a problem, i can't write arabic instead of english words...

take the above code as an example, when i try to edit the word (gallary) and write soomething in arabic it appears like this on the site:
http://up4them.com/i/00000/225ino94ctg6.JPG
which is wrong..


i'm using word pad and MS front page...



site accepts writing arabic comments fine, but i'm having this problem when editing the main pages....

Thnaks again in advance :)

Dan
April 18th, 2009, 22:13
Have you set the default translation in the Gallery configuration? Just wild guessing here.

abboodeh
April 19th, 2009, 03:31
Thank you guys it's solved!
i appreciate all your efforts!

Good day!