PDA

View Full Version : Newbie trying to edit templates


Obscurity
10-27-2008, 02:52 PM
Hello,

This is my first time messing around with forums as an admin and so far I've done ok, except for a few things.

In the vadvanced menu -> main settings area I added a block called "bottom" and where it says title I put "bottom column"

Then when I went into the Styles and Templates menu and tried to edit the vba_portal settings. But now the things that I moved there don't show up. I've never edited a template before so I'm guessing that's where I messed up.

So how do I get the bottom block I created to show up properly on the homepage?

I added a line of text that says,
</if>
<if condition="$show['bottom_column']">
<td valign="top">
$home[bottomblocks]
</td>

Any help with this would be much appreciated.

Brian
10-28-2008, 01:28 PM
Looks like you have your tags out of order. Try adding this code to your 'adv_portal' template instead:
<if condition="$show['bottom_column']">
<td valign="top">
$home[bottomblocks]
</td>
</if>

Our Sponsors
 

Obscurity
10-28-2008, 03:29 PM
Thank you very much for your reply.

I switched the tags and now they show up, but they're in the same position as my left column area. I followed a template that gave a few instructions but I guess they left out how to specify where the blocks you create are supposed to go.

I know this may seem completely newbish but how do I specify that the bottom block is supposed to go under the center block?

This is what I have so far.

<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>

$headinclude

</head>
<body>

$header

$navbar

<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<if condition="$show['left_column']">
<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
$home[leftblocks]
</td>
</if>
<if condition="$show['bottom_column']">
<td valign="top">
$home[bottomblocks]
</td>
</if>
<if condition="$show['center_column']">
<td valign="top">
$home[centerblocks]
</td>
</if>
<if condition="$show['right_column']">
<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
$home[rightblocks]
</td>
</if>
</tr>
</table>

$footer

</body>
</html>

Again, thank you for your time and any help is much appreciated.

PhilMcKrackon
10-28-2008, 05:39 PM
I know this may seem completely newbish but how do I specify that the bottom block is supposed to go under the center block?


This may work (not sure) - you may need to remove the <br /> after $home[centerblocks] and this may place the bottom blocks next to (the side) of the center blocks.

The best way to place a block under a block it create multiple tables with multiple rows and collumns, not try and place them all in one. Without seeing a drawing of eaxtly what you want it's hard to code correctly.


<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>

$headinclude

</head>
<body>

$header

$navbar

<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<if condition="$show['left_column']">
<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
$home[leftblocks]
</td>
</if>
<if condition="$show['center_column']">
<td valign="top">
$home[centerblocks]
<br />
<if condition="$show['bottom_column']">
$home[bottomblocks]
</if>

</td>
</if>
<if condition="$show['right_column']">
<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
$home[rightblocks]
</td>
</if>
</tr>
</table>

$footer

</body>
</html>

Our Sponsors
 

Brian
10-29-2008, 10:16 AM
I'm assuming this is more along the lines of what you're looking for:
<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<if condition="$show['left_column']">
<td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-$stylevar[right]: $vba_style[portal_colspacing]px"</if>>
$home[leftblocks]
</td>
</if>
<if condition="$show['bottom_column']">
<td valign="top">
$home[bottomblocks]
</td>
</if>
<if condition="$show['center_column']">
<td valign="top">
$home[centerblocks]
</td>
</if>
<if condition="$show['right_column']">
<td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-$stylevar[left]: $vba_style[portal_colspacing]px"</if>>
$home[rightblocks]
</td>
</if>
</tr>

<if condition="$show['bottom_column']">
<tr>
<td valign="top" colspan="3">
$home[bottomblocks]
</td>
</tr>
</if>

</table>

$footer

</body>
</html>

Obscurity
11-03-2008, 01:51 PM
Thank you for your help guys.

I really appreciate it.

Now I just have a couple other things I'm trying to get working and my site will be finished. (I think :D)

So my question is: If I'm using a custom skin my Notices won't show up on my main (the cmps_index) page. If I switch to the default skin they show up, but how do I get them to show up using another skin? I've tried several different skins, and I've made sure they are all compatible with the vbadvanced and the vb forums I'm using all with the same result. Is there something that I'm missing?

Brian
11-04-2008, 12:36 PM
You may need to make that same change to the 'adv_portal' template in your other style(s).