PDA

View Full Version : WRAP Code


xHLHx Darkskilz
03-28-2008, 04:53 PM
Hello,

I dont know what the name of this thing is, but i think its some wrap code.

It's almost the same as this only it does got the letter written above it.

Its better to see the screenshot. Is there some code for this?

Thanks
MerQ



EDIT:
<table align="left" border="0" cellspacing="$stylevar" class="tborder" width="80%">
<td class="tcat" colspan="$mods[colspan]">
<span class="smallfont">Managers
HLH Damast
HLH MerQ</a><else /></if></strong></span></td>


<table align="left" border="0" cellpadding="$stylevar" cellspacing="$stylevar" class="tborder" width="80%">
<td class="tcat">
<span class="smallfont">Team Leaders
HLH ZeR0SaN
HLH Fearlezz v2</a><else /></if></strong></span></td>

Effect:

http://img138.imageshack.us/img138/6231/screenhunter04mar281942ox9.jpg

While it should be.

http://img138.imageshack.us/img138/2180/screenhunter05mar281943rl1.jpg

Lynne
03-28-2008, 05:43 PM
I have no idea what we are supposed to see in that image. Are we just looking at the box? If so, view source on this page shows this:

<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: 4px;
border: 1px inset;
width: 500px;
height: 34px;
text-align: left;
overflow: auto">
Text goes here
</pre>

xHLHx Darkskilz
03-28-2008, 05:48 PM
Your code works, thanks.

Only i still don't know why my code worked bad on a costum style.
'cause that one is alot better, than this one.

xHLHx Darkskilz
03-30-2008, 11:56 AM
anyone?

Lynne
03-30-2008, 02:54 PM
What exactly is it that you want? The two are pretty different. One is a box where overflow is handled with a scroll bar and the other is a table with a proper head and the text wraps.

xHLHx Darkskilz
03-31-2008, 02:38 PM
I want the proper code for the one with the proper head and text wraps. Only problem is that if i just the code i made listed in the first post it will strech out the template.
The second screenshot is just a excample of how the template should look like.

Hope you understand it.

Lynne
03-31-2008, 03:55 PM
It's really hard to tell without seeing the source code. My guess would be that the table is all screwed up. Looking at your code would suggest that also since you have 'else' and 'end if' statements with no beginning. So, I'd take a look at your source code and see if everything adds up properly (all the trs and tds and tables).

xHLHx Darkskilz
03-31-2008, 04:10 PM
I took this part form a template, adv_portal_module_wrapper

And changed it. This is the code i used.

$mods[formcode]

<div style="padding-bottom:$vba_style[portal_vspace]px">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="$mods[colspan]">
<if condition="$vba_style['portal_collapsemods']">
<a href="#top" onclick="return toggle_collapse('module_$mods[collapse]')" style="float:$stylevar[right]"><img alt="" border="0" id="collapseimg_module_$mods[collapse]" src="$stylevar[imgdir_button]/collapse_tcat$modimgcollapse.gif" /></a>
</if>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] <if condition="$mods['link']"><a href="$mods[link]">$mods[title]</a><else />$mods[title]</if></strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_$mods[collapse]" style="$modcollapse">
<if condition="$show['tablerow']">
<tr>
<td class="$bgclass">
$modulehtml
</td>
</tr>
<else />
$modulehtml
</if>
</tbody>
</table>
</div>
<if condition="$mods['formcode']"></form></if>

Lynne
03-31-2008, 04:28 PM
That looks fine, from what I can see. But, have you gone and actually looked at what is spit out on a page? View your page source and see what is going on cuz something is obviously stretching things out. You may have to modify that template yourself to make it work with your site.

xHLHx Darkskilz
04-01-2008, 03:59 PM
Where can i find the spit out and the page source?