Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: pimp my template v2.1

  1. #1
    Join Date
    Apr 2007
    Posts
    137

    Default pimp my template v2.1

    hi folks,
    this is my script http://www.glissemagtv.com/index.php i would like to add background images behing the tag list and also behind the thre "record/upload/share "
    Any ideas where i can find them?
    is it possible to set a bckg image for the main part of the website where videos are?
    anybody tried it?
    best regards

  2. #2
    Join Date
    May 2007
    Posts
    15

    Default

    You need to edit the templates/index.tpl file. The "record/upload/share" is set up in a table, so yes you could use a background image.

    The "Recent Tags" are set up in a table also, in the file "templates/right.tpl".

  3. #3
    Join Date
    Apr 2007
    Posts
    137

    Default

    hi bosco, thx a lot.
    atm i am working on header.tpl, here s my trouble
    this is the code:
    Code:
    <TABLE cellSpacing=0  border="0"  cellPadding=0 width="100%" >
    <link rel="stylesheet" type="text/css" href="css/fond.css"> 
    <TR vAlign=center >
    <td align="right" width=400 ><background ="{$baseurl}/modimg/fondhautg.jpg">[img]{$baseurl}/templates/images/glissemagtv.gif[/img]</td>
    
    <td width=300 ><span class="style1"></span></td>
    
    <TD align=center ><span class="normal_blue">
    
    {insert name="msg_count" assign=total_msg}
    
    
    <TABLE cellSpacing=0 cellPadding=0 border=0>
    <TR>
    
    {if $smarty.session.USERNAME ne ""}
    
    <TD>{$smarty.session.USERNAME}!
     <a href="{$baseurl}/inbox.php">[img]{$baseurl}/templates/images/icon_mail_off.gif[/img]{else}
    src="{$baseurl}/templates/images/newmail.gif" border=0>{/if}</A>
    ({$total_msg}) </TD>
    <TD style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">|</TD>
    <TD>Log Out</TD>
    
    {else}
    
    <TD><a href="{$baseurl}/signup.php" class="bold"> <span style="color: rgb(255, 153, 0);">Enregistrez vous 
    Sign Up</span></A></TD>
    <TD style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">|</TD>
    <TD>Log In</TD>
    
    
    {/if}
    
    <TD style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">|</TD>
    <TD>Aide-Help</TD>
    <TD style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"></TD>
    <TD>[img]{$baseurl}/templates/images/rss.gif[/img]</TD>
    </TR>
    </TABLE>
    
    </TD>
    </TR>
    </TABLE
    the header where the logo is, is split in two parts.
    logo parts is 400 px wide and the rest is 300
    i try to display a pic as background (in fact a picture of 400 and another of 300 px
    http://www.glissemagtv.com/modimg/fondhautg.jpg
    http://www.glissemagtv.com/modimg/fondhautd.jpg
    ) that is displayed from the left of the logo to the right of the page.
    this is not working i gent plenty of error.

    Do you have a trick for set this background image?
    thx very much for your time and your help
    best regards

  4. #4
    Join Date
    May 2007
    Posts
    15

    Default

    If your trying to get your logo in front of the background image, you will probably have to use CSS with Absolute Positioning. You will have make your logo transparent, and use zIndex.

    Here is a link to info on using zIndex:

    http://www.w3schools.com/css/pr_pos_z-index.asp

    And here is an example:

    http://www.w3schools.com/css/tryit.asp? ... ss_zindex2

    Hope this helps.

  5. #5
    Join Date
    Apr 2007
    Posts
    137

    Default

    hi
    i tried with a css.
    i ve create background.css in wich i ve put that:
    Code:
    .fondg {
    background-image: url('modimg/fondhautg.jpg');
    }
    .fondd {
    background-image: url('modimg/fondhautd.jpg');
    }
    but then, everytime i was putting this line in header.tpl

    Code:
    <table width="700" align="center" class="background">
    i had serious error

    can t believe it is that hard to set background images.
    i ve open the tpl file with dreamweaver, and nowhere there is a menu like "insert image propriety "background" " unless i ve missed a function.
    thx for your time bosco, i truely appreciate,but didn t find a clue in your link.
    i must be hopeless :'(
    best regards
    nocomp

  6. #6
    Join Date
    Apr 2007
    Posts
    137

    Default

    i ve found!!!!!!!
    here is the magic line:
    Code:
    <TABLE cellSpacing=0  border="0"  cellPadding=0 width="100%" background="../modimg/fondhaut.jpg">
    and the result:)
    http://www.glissemagtv.com/index.php

    do you know if it can be possible to put a script i this page that ll change the top image on every reload?
    best regards
    nocomp

  7. #7
    Join Date
    May 2007
    Posts
    15

    Default

    Add this code to the top of index.php under the includes.

    Code:
    <?php
    
    
    // Name your images 1.jpg, 2.jpg etc.
    
    
    // Change this to the total number of images in the folder
    $total = "11";
    
    // Change to the type of files to use eg. .jpg or .gif
    $file_type = ".jpg";
    
    // Change to the location of the folder containing the images
    $image_folder = "images/random";
    
    // You do not need to edit below this line
    
    $start = "1";
    
    $random = mt_rand($start, $total);
    
    $image_name = $random . $file_type;
    
    ?>
    Then you would use :

    Code:
    <TABLE cellSpacing=0  border="0"  cellPadding=0 width="100%" background="<?php $image_folder/$image_name?>">
    Instead of:

    Code:
    <TABLE cellSpacing=0  border="0"  cellPadding=0 width="100%" background="../modimg/fondhaut.jpg">
    Hope this helps

  8. #8
    Join Date
    Apr 2007
    Posts
    137

    Default

    hi bosco,
    that will help me a lot, but the main prob is that my index.php is crypted :'(
    Code:
    <?php @Zend;
    4147;
    /* w.zend.com/products/zend_engine">Zend Engine</a>.</p></body></html>
    EOM;
    exit();
    __halt_compiler();
    ?>
    
    20031207025ÚC å´-?pó°S~0<@ÚòCg‚”½.“lz=÷¦¥EèÎG?Z„ÃuÌÖ‚¸…,FÉr&Úò‰‹t;å“a¨k˧*cË’ó‹¢%Ÿº0¢S>*c¶|æ*1‡giZtÄawj`\Xß&¨²?*ÓO~/W~‰”¡Å*|ÉÜÁ!÷±?ÀÊg*üóùN*s
    Any ide how i can place this code?
    thx for helping
    best regards
    herve

  9. #9
    Join Date
    May 2007
    Posts
    15

    Default

    Put this code in a file called random.php:
    Code:
    <?php
    
    // Name your images 1.jpg, 2.jpg etc.
    
    
    // Change this to the total number of images in the folder
    $total = "11";
    
    // Change to the type of files to use eg. .jpg or .gif
    $file_type = ".jpg";
    
    // Change to the location of the folder containing the images
    $image_folder = "images/random";
    
    // You do not need to edit below this line
    
    $start = "1";
    
    $random = mt_rand($start, $total);
    
    $image_name = $random . $file_type;
    
    echo "$image_folder/$image_name";
    
    ?>
    Then use this code in your header.tpl:

    Code:
    <TABLE cellSpacing=0  border="0"  cellPadding=0 width="100%" background="{include file="../random.php"}">
    That should work :)

  10. #10
    Join Date
    Apr 2007
    Posts
    137

    Default

    thx for this great tip*, tomorrow i ll prepare a set of random pictures and i ll try that.
    i just found a "bug", when you clic on a video for watch it, the picture i ve put on the top of the page dissapear, do i have to rewrite these codes in another page if i always want to have a picture on the top of the pages?
    best regards
    herve

Page 1 of 4 123 ... LastLast

Similar Threads

  1. 2.7 template please help
    By zclub in forum Template Modifications
    Replies: 2
    Last Post: 05-09-2009, 04:09 PM
  2. where is the template
    By Renew in forum Installation Support
    Replies: 1
    Last Post: 09-13-2008, 11:36 PM
  3. Need Template
    By holden30 in forum Template Modifications
    Replies: 1
    Last Post: 04-02-2008, 11:49 PM
  4. plz i need black template
    By ezzet in forum Template Modifications
    Replies: 13
    Last Post: 08-29-2007, 04:20 AM
  5. Will pay for a template
    By loki in forum Template Modifications
    Replies: 0
    Last Post: 08-25-2007, 09:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •