View Full Version : Changing the CMPS Location Listing Layout
missionaire
04-03-2008, 02:50 AM
Hi,
I have tried to change the default cmps location listing from the default (image 1) into the what is show on the image (image 2).
However though, it seems as if my recent threads on the bottom row was tweaked and turns out into what you can see on image 3.
I would like to ask :
1) how or what can I do to fix my recent threads?
2) is that how I am suppose to do to change the layout of the default? By "slicing" up the columns into what I required, under the location listing?
(Images are uploaded in sequence, image1, image2...) Thanks in advance.
Brian
04-03-2008, 12:27 PM
Can you post the code you're using in your 'adv_portal' template? Sounds like you have an error in there somewhere.
missionaire
04-03-2008, 10:01 PM
Can you post the code you're using in your 'adv_portal' template? Sounds like you have an error in there somewhere.
Here's the adv_portal code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<if condition="$pages['name'] == 'home'">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
</if>
<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">
<table>
<tr>
<td>$home[centerblocks]</td>
</tr>
<tr>
<td><table width="100%" cellpadding="0" cellspacing="1">
<tr>
<td>$home[center_midleftblocks]</td>
<td width="1%"> </td>
<td>$home[center_midrightblocks]</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%">
<tr><td>$home[center_bottomblocks]</td></tr></table></td>
</tr>
</table>
</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>
Thanks.
Brian
04-04-2008, 11:54 AM
Do you have any modules active in your default center column? If not then part of the problem may be that the custom columns are being hidden since the <if condition> at the top of your center column only checks for modules active in that column and not your custom ones. If that's not it, can you link me to the page so I can view the source code and such?
missionaire
04-05-2008, 01:01 AM
Do you have any modules active in your default center column? If not then part of the problem may be that the custom columns are being hidden since the <if condition> at the top of your center column only checks for modules active in that column and not your custom ones. If that's not it, can you link me to the page so I can view the source code and such?
As a matter of fact the left column doesn't contain anything active nor inactive. So that's left with everything on the center and right columns. Right column is working fine.
As for the whole lot in the center column, I only have only 1 active module each on the top and bottom center, as well as the center left and right. And none of it is hidden.
I am sorry that I am unable to provide u with the page because it is currently on my localhost.:(
missionaire
04-05-2008, 11:41 PM
I managed to solve this, which seems to be kind of weird.
It seems fine, if I do not rename the "center" column, but if I were to change it to other names like "center_bottom" the recent threads module go haywire again.
Do you happen to know why is this so? Thanks.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.