HelpHelpSearchSearchMembersMembersCalendarCalendar
Welcome, Guest. Please login or register.

Login with username, password and session length
October 15, 2008, 08:01:38 PM
Please use the support forum for support issues instead of sending me pm's. Thanks.
I will not reply to support issues via pm.
« previous next »
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read March 14, 2007, 10:19:59 AM #0
humanporkrind

Trying something

This first code is 3 box layouts at the top of devils rejects theme from a theme here I had done
Code:
//These are the three content boxes.

echo '

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="30%" class="top-Cbox">

<div class="cbtt"><span class="orangetext">first</span><span class="browntext"><b>box</b></span></div>

<p class="cbcontent">stuff</p>

<div class="cbll"><a href="#">bottom<span class="orangetext"><b>link</b></span></a></div>

</td>

<td width="4%"></td>

<td width="32%" class="top-Cbox">

<div class="cbtt"><span class="orangetext">second</span><span class="browntext"><b>box</b></span></div>

<p class="cbcontent">STUFF</p>

<div class="cbll"><a href="#">bottom<span class="orangetext"><b>link</b></span></a></div>

</td>

<td width="4%"></td>

<td width="30%" class="top-Cbox">

<div class="cbtt"><span class="orangetext">third</span><span class="browntext"><b>box</b></span></div>

<p class="cbcontent">stuff</p>

<div class="cbll"><a href="#">bottom<span class="orangetext"><b>link</b></span></a></div>

</td>

</tr>

<tr>

<td width="30%" class="bottomrust"></td>

<td width="4%"></td>

<td width="32%" class="bottomrust"></td>

<td width="4%"></td>

<td width="30%" class="bottomrust"></td>

</tr>

</table>';

I am adding 3 Html sections in the current theme options, so that  can add and change html there instead of going into the index.template. Here is what i found from another theme done by block.
Code:
<tr class="catbg">
<td colspan="2"><img src="', $settings['images_url'], '/icons/config_sm.gif" alt="" border="0" align="top" /> ', $txt['theme6'], '</td>
                                </tr>
                  <tr class="windowbg2">
                     <td valign="top">HTML box - Right Side: <br /></td><td>
<textarea name="options[myrightbox]" rows=6 cols=40 wrap="auto">' , isset($context['theme_settings']['myrightbox']) ? $context['theme_settings']['myrightbox'] : '' , '</textarea>
                     </td>                 </tr>
                 <tr class="windowbg2">
                     <td valign="top">HTML box - Left side: <br /></td><td>
<textarea name="options[myleftbox]" rows=6 cols=40 wrap="auto">' , isset($context['theme_settings']['myleftbox']) ? $context['theme_settings']['myleftbox'] : '' , '</textarea>
                     </td>                 </tr>
                 <tr class="windowbg2">
                     <td valign="top">HTML box - Middle: <br /></td><td>
<textarea name="options[mytopbox]" rows=6 cols=40 wrap="auto">' , isset($context['theme_settings']['mytopbox']) ? $context['theme_settings']['mytopbox'] : '' , '</textarea>
                     </td>                 </tr>

How can I get the second code to input to output into the three boxes?


Any help will be very appreciated
thanks
Offline  
Read March 16, 2007, 07:48:50 PM #1
m3talc0re

Re: Trying something

Try replacing the <p class="cbcontent">stuff</p> with the textarea parts:

Code:
<textarea name="options[myrightbox]" rows=6 cols=40 wrap="auto">' , isset($context['theme_settings']['myrightbox']) ? $context['theme_settings']['myrightbox'] : '' , '</textarea>


The real hell is your life gone wrong.
Offline  
Read March 16, 2007, 09:01:32 PM #2
humanporkrind

Re: Trying something

all that does is make a writeable area on the block itself.
Offline  
Read March 16, 2007, 10:32:59 PM #3
humanporkrind

Re: Trying something

Ok figured it out

change this
Code:
<p class="cbcontent">stuff</p>
to this
Code:
<br>', $settings['myleftbox'], '
Offline  
Read March 17, 2007, 03:19:33 AM #4
m3talc0re

Re: Trying something

Lol, simple enough Tongue

Though, I think it probably would be better with the full:
' , isset($context['theme_settings']['myleftbox']) ? $context['theme_settings']['myleftbox'] : '' , '


The real hell is your life gone wrong.
Offline  
Read March 17, 2007, 12:14:52 PM #5
humanporkrind

Re: Trying something

tried that but it doesn't allow any output
Offline  
Pages: [1]   Go Up
Jump to:  

Theme by Webtechnica.net
MySQL PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC XHTML 1.0 CSS