PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : كد نويسي در index.php



kambiz_g
06-30-2007, 09:24 PM
سلام
من دارم تغييراتي در يك قالب مدم اين قالب table نداره و در اون از div استفاده شده
من مي خوام قسمتي از سايت كه به صورت افقي دو عملگر div قرار گرفته بشه سه عملگر هر كاري كردم نشد
اينم عكس برايه توضيحه بيشتر

<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>

اينم كدهايه مربوط به اون قسمت


&lt;/div&gt; &lt;!-- end head section --&gt;
&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;?php if ((mosCountModules( &#039;banner&#039; )) || (mosCountModules( &#039;user7&#039; ))) { ?&gt;
&lt;div id=&quot;bannersection&quot;&gt;
&lt;?php if (mosCountModules( &#039;banner&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox1&quot;&gt;
&lt;?php mosLoadModules( &quot;banner&quot;, -2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &#039;user7&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox2&quot;&gt;
&lt;?php mosLoadModules( &#039;user7&#039;, -2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;div style=&quot;clear:both;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php } ?&gt;

كه من به اين طريق تغيير دادم و نشد



&lt;/div&gt; &lt;!-- end head section --&gt;
&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;?php if ((mosCountModules( &#039;debug&#039; )) || (mosCountModules( &#039;user7&#039; )) || (mosCountModules( &#039;icon&#039; ))) { ?&gt;
&lt;div id=&quot;bannersection&quot;&gt;
&lt;?php if (mosCountModules( &#039;debug&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox1&quot;&gt;
&lt;?php mosLoadModules( &quot;debug&quot;, -1 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &#039;user7&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox2&quot;&gt;
&lt;?php mosLoadModules( &#039;user7&#039;, -2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &#039;icon&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox3&quot;&gt;
&lt;?php mosLoadModules( &quot;icon&quot;, -3 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;div style=&quot;clear:both;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php } ?&gt;

ممنونم كه هميشه كمك مي كنيد

kambiz_g
06-30-2007, 09:29 PM
ببخشيد من ويرايش رو پيدا نكردم
من كد رو به اين حالت تغيير دادم

&lt;/div&gt; &lt;!-- end head section --&gt;
&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;?php if ((mosCountModules( &#039;debug&#039; )) || (mosCountModules( &#039;user7&#039; )) || (mosCountModules( &#039;icon&#039; ))) { ?&gt;
&lt;div id=&quot;bannersection&quot;&gt;
&lt;?php if (mosCountModules( &#039;debug&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox1&quot;&gt;
&lt;?php mosLoadModules( &quot;debug&quot;, -2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &#039;user7&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox2&quot;&gt;
&lt;?php mosLoadModules( &#039;user7&#039;, -2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &#039;icon&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox3&quot;&gt;
&lt;?php mosLoadModules( &quot;icon&quot;, -2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;div style=&quot;clear:both;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;?php } ?&gt;

kambiz_g
07-01-2007, 05:21 AM
بازم سلام
من كدها رو يكم مرتب تر كردم خيلي بهتر شد ولي هنوز به طوره كل كامل نشده
يه جاش رو اشتباه كردم كه نمي دونم كجاست
ممنون ميشم كمك كنيد چون خيلي ضروريه


&lt;/div&gt; &lt;!-- end head section --&gt;
&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;?php if (mosCountModules(&#039;debug&#039;) || mosCountModules(&#039;icon&#039;)|| mosCountModules(&#039;user7&#039;) ) { ?&gt;
&lt;div id=&quot;bannersection&quot;&gt;
&lt;?php if (mosCountModules( &quot;debug&quot; )) { ?&gt;
&lt;div class=&quot;bannerbox&quot; style=&quot;width:&lt;?php echo $modwidth; ?&gt;; float:left;&quot;&gt;
&lt;?php mosLoadModules ( &#039;debug&#039;,-2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &quot;icon&quot; )) { ?&gt;
&lt;div class=&quot;bannerbox&quot; style=&quot;width:&lt;?php echo $modwidth; ?&gt;;float:left;&quot;&gt;
&lt;?php mosLoadModules ( &#039;icon&#039;,-2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &quot;user7&quot; )) { ?&gt;
&lt;div style=&quot;width:&lt;?php echo $modwidth; ?&gt;;float:right;&quot;&gt;
&lt;?php mosLoadModules ( &#039;user7&#039;,-2); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;/div&gt;

kambiz_g
07-01-2007, 06:25 AM
بازم سلام
شرمنده ولي من دكمه ويرايش نديدم
من تقريبا درستش كردم فقط يه جا گير كردم
اين كديه كه به جايه اولي قرار دادم


&lt;/div&gt; &lt;!-- end head section --&gt;
&lt;/div&gt;
&lt;?php if (mosCountModules(&#039;debug&#039;) || mosCountModules(&#039;icon&#039;)|| mosCountModules(&#039;user7&#039;) ) { ?&gt;
&lt;div id=&quot;bannersection&quot;&gt;
&lt;?php if (mosCountModules( &quot;debug&quot; )) { ?&gt;
&lt;div class=&quot;bannerbox1&quot; style=&quot;width:&lt;?php echo $modwidth; ?&gt;; float:left;&quot;&gt;
&lt;?php mosLoadModules ( &#039;debug&#039;,-2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &#039;user7&#039; )) { ?&gt;
&lt;div id=&quot;bannerbox2&quot;&gt;
&lt;?php mosLoadModules ( &#039;user7&#039;,-2 ); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if (mosCountModules( &quot;icon&quot; )) { ?&gt;
&lt;div style=&quot;width:&lt;?php echo $modwidth; ?&gt;;float:right;&quot;&gt;
&lt;?php mosLoadModules ( &#039;icon&#039;,-2); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
&lt;/div&gt;




اينم تصويره خروجي

<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>

من مي خوام باكس هايه قرمز و آبي با باكس سبز هماهنگ بشن يعني باكس قرمز و آبي يكم بيان بالاتر
مرسي