Author Topic: Help home page edit.  (Read 4740 times)

0 Members and 1 Guest are viewing this topic.

Offline twiter

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Help home page edit.
« on: April 12, 2008, 08:08:19 AM »
i ll try to change my 160*600 adsense place on home page,
i ll try to locate it in between categories like on screen;

Code: [Select]
http://img508.imageshack.us/img508/1861/91968319ii3.jpg

i can do it on html editör but dont know php enough so  can u please give a home.html code,
mine is now.
Code: [Select]
{header}

<table class="okvir" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehead">
        <tr>
          <td><img src="{template_url}/images/header_logo.jpg" alt="" /></td>
         
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bordercolor">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="navbar" ><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</td>
                      <td class="navbar" align="right">
<a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;|&nbsp;
<a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;
  </td>
                    </tr>
                  </table>

  <p>1) Welcome to PicturesX.net. PicturesX.net contains tons of high-quality
wallpaper , pictures and posters for your desktop. . I hope
you enjoy the site. Please Click Our Sponsors<br>
2) What kind of wallpaper do you want to see more of? Vote in as many categories
as you want.<br>
3) By joining our free community you will have access to post topics, upload
photos in your own photo album and access many other special features.
Registration is fast, simple and absolutely free so please, join our community
today!<br>
&nbsp;</p>

<p align="right">
<script type="text/javascript"><!--
google_ad_client = "xxxxxxxxxxxxxxx";
/* 728x90, olu&#351;turulma 10.04.2008 */
google_ad_slot = "xxxxxxxxxxxxxxx";
google_color_border = "F3F3F3";
google_color_bg = "F3F3F3";
google_color_link = "CC0000";
google_color_text = "CC0000";
google_color_url = "666666";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>





            <table class="main" width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="180" class="left" valign="top">
                  <table width="180" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
                    </tr>
                    <tr>
                      <td><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="box_back">{user_box}</td>
                    </tr>
                    <tr>
                      <td><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>


<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="_top">
<table bgcolor="#cccccc">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25gry.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="16" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
<input type="hidden" name="client" value="xxxxxxxxxxxx"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->

<script type="text/javascript"><!--
google_ad_client = "xxxxxxxxxxxxxx";
google_ad_width = 160;
google_ad_height = 90;
google_ad_format = "160x90_0ads_al";
//2007-08-23: md-sidebar-ust-baglanti
google_ad_channel = "xxxxxxxx";
google_color_border = "CCCCCC";
google_color_bg = "CCCCCC";
google_color_link = "CC0000";
google_color_text = "CC0000";
google_color_url = "666666";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>





            <form method="post" action="{url_search}">
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>
                    <input type="text" name="search_keywords" size="10" class="searchinput" />
                  </td>
                  <td>
                    <input type="submit" value="{lang_search}" class="button" name="submit" />
                  </td>
                </tr>
                <tr valign="top">
                  <td colspan="2">&nbsp;&nbsp;<a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </tr>
              </table>
          </form>
     
  {if random_image}
                  <table width="180" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                    </tr>
                    <tr>
                      <td><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="box_back">
    <br />
                        {random_image}
<br />







                      </td>
                    </tr>
                  </table>
  {endif random_image}<br>
  {whos_online}<br><img src="{template_url}/images/spacer.gif" alt="" width="180" height="1" /></td>
                <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="18" height="18" /></td>
                <td width="100%" valign="top">
  <br />
                  <span class="title"> &raquo;&nbsp;{site_name}


</span>




  <br /> <br>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="F3F3F3" width="100%">
  <tr>
    <td width="50%"><script type="text/javascript"><!--
google_ad_client = "pub-1027897883165442";
/* 336x280, olu&#351;turulma 15.03.2008 */
google_ad_slot = "9107893922";
google_color_border = "F3F3F3";
google_color_bg = "F3F3F3";
google_ad_width = 336;
google_ad_height = 280;

//-->
    </script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </script>&nbsp;</td>
    <td width="50%"><meta http-equiv="Content-Language" content="tr">
<script type="text/javascript"><!--
google_ad_client = "xxxxxxxxxxx";
/* 300x250, olu&#351;turulma 15.03.2008 */
google_ad_slot = "xxxxxxx";
google_color_border = "F3F3F3";
google_color_bg = "F3F3F3";
google_ad_width = 300;
google_ad_height = 250;
//-->
    </script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </script>&nbsp;</td>
  </tr>
</table>


                  {if categories}
                       <table width="100%" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td valign="top" class="head1">{lang_categories}</td>
                          </tr>
                          <tr>
                            <td valign="top">{categories}</td>
                          </tr>
                  </table>


                    <script type="text/javascript"><!--
google_ad_client = "xxxxxxxxxxx";
/* 160x600, olu&#351;turulma 08.04.2008 */
google_ad_slot = "xxxxxx";
google_color_border = "CCCCCC";
google_color_bg = "CCCCCC";
google_color_link = "CC0000";
google_color_text = "CC0000";
google_color_url = "666666";
google_ad_width = 160;
google_ad_height = 600;
//-->
                    </script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                    </script>



                  <br />
                  {endif categories}{lang_site_stats}<br />
                  <br />
                  {if msg}<b>{msg}</b><br /><br />{endif msg}
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head1" valign="top">{lang_new_images}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td>{new_images}</td>
                    </tr>
                  </table>
  <br><br />
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>{category_dropdown_form}</td>
                      <td align="right">{setperpage_dropdown_form}</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                </td>
               <td width="19" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="19" height="19" /></td>
                          </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
   
   
   

                 
                 
                 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" >
        <tr>
          <td class="tablebottom" width="6">&nbsp;</td>
          <td class="tablebottom">{copyright}</td>
          <td align="left" class="tablebottom">Look At <a href="http://www.picturesx.net/sitemap.htm" target="_blank"><strong>Sitemap</strong></a>&nbsp;&nbsp;</td>
          <td align="right" class="tablebottom">Design by <a href="http://www.eniserdal.com" target="_blank"><strong>Enis ERDAL</strong></a>&nbsp;&nbsp;</td>
        </tr>
      </table>
      </td>
  </tr>
</table>
{footer}

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Help home page edit.
« Reply #1 on: April 12, 2008, 08:45:04 AM »
Hi twiter,

you can't code it in hard html.
The tables generatet by php :wink:

in includes/functions.php
search:
Code: [Select]
    $categories .= $site_template->parse_template("category_bit");
    $count++;
    $count2++;
    $categories .= "</td>\n</tr>\n";

    if ($count == $table_rows && $count2 < sizeof($visible_cat_cache)) {
      $categories .= "</table></td>\n";
      $categories .= "<td valign=\"top\" width=\"".$cattable_width."\" class=\"catbgcolor\">\n";
      $categories .= "<table border=\"0\" cellpadding=\"".$config['cat_table_cellpadding']."\" cellspacing=\"".$config['cat_table_cellspacing']."\">\n";

      $total = $total - $count2;
replace by:
Code: [Select]
    $categories .= $site_template->parse_template("category_bit");
    $count++;
    $count2++;
    $categories .= "</td></tr>\n\n";

    if ($count == $table_rows && $count2 < sizeof($visible_cat_cache)) {
      $categories .= "</table>\n</td>\n<td width=\"160\" valign=\"top\" align=\"center\">\n\n";
      $categories .= "<script type=\"text/javascript\"><!-- \n";
      $categories .= "google_ad_client = \"xxxxxxxxxxx\"; \n";
      $categories .= "/* 160x600, olu&#351;turulma 08.04.2008 */ \n";
      $categories .= "google_ad_slot = \"xxxxxx\"; \n";
      $categories .= "google_color_border = \"CCCCCC\"; \n";
      $categories .= "google_color_bg = \"CCCCCC\"; \n";
      $categories .= "google_color_link = \"CC0000\"; \n";
      $categories .= "google_color_text = \"CC0000\"; \n";
      $categories .= "google_color_url = \"666666\";\n";
      $categories .= "google_ad_width = 160; \n";
      $categories .= "google_ad_height = 600; \n";
      $categories .= "//--> \n";
      $categories .= "</script> \n";
      $categories .= "<script type=\"text/javascript\" \n";
      $categories .= "src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"> \n";
      $categories .= "</script> \n\n";
      $categories .= "</td>\n";
      $categories .= "<td valign=\"top\" width=\"".$cattable_width."\" class=\"catbgcolor\">\n";
      $categories .= "<table border=\"0\" cellpadding=\"".$config['cat_table_cellpadding']."\" cellspacing=\"".$config['cat_table_cellspacing']."\">\n";

      $total = $total - $count2;



KurtW

Offline twiter

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: Help home page edit.
« Reply #2 on: April 12, 2008, 09:24:04 AM »
thank u very much i do it  :lol:
http://www.picturesx.net

Offline redbankweb

  • Pre-Newbie
  • Posts: 1
    • View Profile
Google Ads help
« Reply #3 on: August 19, 2008, 05:36:09 PM »
Website Holder: www.redbankweb.info/gallery
4Images Version: 1.7.6
Experience:  I don't know PHP.  I know HTML.

I am trying to get two instances of Google Ads on one page.
I have successfully entered GoogleAds code on various pages, but when I add it a second time, I only see one instance of it.
There is usually a blank placeholder for where the ads should be, but no visible text.

On this page (http://www.redbankweb.info/gallery/categories.php?cat_id=1)

There is code on over Photo Ops: (seen)
Code under "Professional Pictures of Jude Law (Hits: 7) ": invisible
Code under Category Search/Images per Page (near bottom): invisible
and more code over the "Powered by 4images 1.7.6 " at very bottom: invisible.

As you can see, only the first instance shows.  If I remove the top code, then the next instance shows up.

Can anyone supply a reason why this is happening?  Or possibly a solution?

Thank you in advance,
Mark