Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   Editing a post in images before the names of the categories (http://www.bvlist.com/showthread.php?t=6037)

dumorim 12th February 2011 18:19

Editing a post in images before the names of the categories
 
I would like to know how to put these images before the names of the categories

http://img9.imageshack.us/img9/9379/semttulozbv.png

daffy 12th February 2011 18:56

? they are arnt they? post your category block and il fix it up. or do you mean like.. either way post your block or the code :D

Image
Cat Name

Image
Cat Name

Image
Cat Name

if want to try yourself. follow the code for image will look like
Code:

 
change
Code:

 
to
Code:


this will make a break and place name below image.

-->   means: no break space so you get a space then link like your screen.
-- >
mean break, so you will see link below image.

dumorim 12th February 2011 20:04

I wonder where I find this code in which folder?

daffy 12th February 2011 22:00

mmm i think it will be in blocks/categories_block.php OR will be in theme/theme_name/header.php.

dumorim 13th February 2011 16:53

would first like to thank but we do not have this code here is not the only thing I know is that in this database

daffy 13th February 2011 23:54

Quote:

Originally Posted by dumorim (Post 26815)
would first like to thank but we do not have this code here is not the only thing I know is that in this database

I am not sure what you mean sir. this is a modified block, i thought you had this and wanted to change it? if you show me where this block (what site is this on). I can code it up with images for you and post it here.

dumorim 14th February 2011 06:48


maincats_block.php

PHP Code:

<?
if (!$site_config["MEMBERSONLY"] || $CURUSER) {
begin_block("".BROWSE_TORRENTS."");
    
$catsquery mysql_query("SELECT distinct parent_cat FROM categories ORDER BY parent_cat")or die(mysql_error());
    echo 
"- <a href=torrents.php>".SHOWALL."</a><BR>\n";
    while(
$catsrow MYSQL_FETCH_ARRAY($catsquery)){
        echo 
"- <a href=torrents.php?parent_cat=".urlencode($catsrow['parent_cat']).">$catsrow[parent_cat]</a><BR>\n";
    }

end_block();
}
?>

header.php

PHP Code:

<?php
//-----------------------------------------------------------------------//
//-----------------------------------------------------------------------//
//-----------------------------THEME BY:---------------------------------//
//-----------------------------------------------------------------------//
//--------------------------Ralphie & Nikkbu-----------------------------//
//-----------------------------------------------------------------------//
//-----------------------------------------------------------------------//
$GLOBALS['tstart'] = array_sum(explode(" "microtime()));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- inicio baloo -->
<script type="text/javascript" src="<?= $site_config["SITEURL"]; ?>/themes/NB-Carbon/overlib.js"></script>
<!-- fim baloo -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="js/prototype.js"></script>
<!-- inicio imagem -->
<script type="text/javascript"> 
        var GB_ROOT_DIR = "./greybox/";
    </script>

    <script type="text/javascript" src="greybox/AJS.js"></script>
    <script type="text/javascript" src="greybox/AJS_fx.js"></script>
    <script type="text/javascript" src="greybox/gb_scripts.js"></script>
    <link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
<!-- fim imagem -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?= $title?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?= $site_config["CHARSET"]; ?>">
<link rel="stylesheet" type="text/css" href="themes/Dark-Vista/theme.css">
<script type="text/javascript" src="<?= $site_config["SITEURL"]; ?>/backend/java_klappe.js"></script>
<style type="text/css">
<!--
img {
    behavior: url(themes/NB/images/iepngfix.htc);
    border: 0px;
}
-->
</style>
</head>

<BODY id="NB-Body">
<!-- Theme By: Ralphie & Nikkbu -->
<div id="container">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="18" height="112"><img src="themes/Dark-Vista/images/head-l.png" width="18" height="112" /></td>
<td height="112" align="center" background="themes/Dark-Vista/images/head-bg.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="112" align="right" valign="top" id="logo"><div id="infobar">
<!-- START INFOBAR CODE -->

<?
if (!$CURUSER){
    echo 
"[<a href=\"account-login.php\">"LOGIN "</a>]<B> or </B>[<a href=\"account-signup.php\">" SIGNUP "</a>]&nbsp;&nbsp;";
}else{
    print (
"".LOGGEDINAS.": ".$CURUSER["username"].""); 
    echo 
" <a href=\"account-logout.php\">[".LOGOUT."]</a> - ";
    if (
$CURUSER["control_panel"]=="yes") {
        print(
"<a href=admincp.php>[" STAFFCP "]</a> - ");
    }

//check for new pm's
                    
$res mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')") or print(mysql_error());
                    
$arr mysql_fetch_row($res);
                    
$unreadmail $arr[0];
                    if (
$unreadmail){
                        print(
"<font color=#FF0000><B>[Nova MP] (<a href=mailbox.php?inbox>$unreadmail</a>)</b></a></font>&nbsp;&nbsp;");
                    }else{
                        print(
"<a href=mailbox.php>[Minhas mensagens]</a>&nbsp;&nbsp;");
                          
                    }
                    print(
"<font color=#FF0000><B>[Seeding pontos] <a href='seedingbonus.php'>".$CURUSER['seedbonus']."");
                    
//end check for pm's
}
?>
<!-- END INFOBAR CODE -->
</div></td>
</tr>
</table></td>
<td width="18" height="112"><img src="themes/Dark-Vista/images/head-r.png" width="18" height="112" /></td>
</tr>
</table><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14" height="30"><img src="themes/Dark-Vista/images/nav-l.png" width="14" height="30" /></td>
<td height="30" align="left" background="themes/Dark-Vista/images/nav-bg.png"><table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="30" background="themes/Dark-Vista/images/subnav-bg.png">
<!-- START SUBNAV CODE -->
<div id="nav">
    <ul>
    <li><a href="index.php"><span>Home</span></a></li>
    <li><a href="torrents-upload.php"><span>Enviar Torrent</span></a></li>
    <li><a href="torrents.php"><span>Ver Torrents</span></a></li>
    <li><a href="torrents-today.php"><span>Torrents do Dia</span></a></li>
    <li><a  href="torrents-search.php"><span>Pesquisar</span></a></li>
    <li><a  href="faq.php"><span>FAQ</span></a></li>
    </ul>
</div>
<!-- END SUBNAV CODE -->
</td>
<td width="51" height="30"><img src="themes/Dark-Vista/images/subnav-r.png" width="51" height="30" /></td>
</tr>
</table></td>
<td width="14" height="30"><img src="themes/Dark-Vista/images/nav-r.png" width="14" height="30" /></td>
</tr>
</table><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" background="themes/Dark-Vista/images/body-ml.png"><img src="themes/Dark-Vista/images/blank.gif" width="10" height="12" /></td>
<td width="100%" valign="top" background="themes/Dark-Vista/images/body-mm.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tboby>
<tr>
<td valign="top">
<!-- START CONTENT CODE -->
<TABLE cellSpacing="8" cellPadding="0" width="100%" border="0" >
<TBODY>
<TR>

<?if ($site_config["LEFTNAV"]){?>
<TD vAlign="top" width="180">
<?leftblocks();?>
</TD>
<? //LEFTNAV ON/OFF END?>

<TD vAlign="top"><!-- MAIN CENTER CONTENT START -->

<?
if ($site_config["MIDDLENAV"]){
    
middleblocks();
//MIDDLENAV ON/OFF END
?>


daffy 14th February 2011 17:29

is this the block from the screenshot?

dumorim 14th February 2011 21:13

from what I understand we have to edit would be maincats_block.php


All times are GMT +2. The time now is 16:58.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.