pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => SMF-pragmaMx Bridge => Thema gestartet von: V4Mp in 20 Juni 2006, 21:16:24

Titel: Wie auch linke Blöcke ausblenden?
Beitrag von: V4Mp in 20 Juni 2006, 21:16:24
Wie kann man die linken Blöcke (wie hier im Forum) ausblenden?
Oder geht das garnicht????
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: Energy-drink in 20 Juni 2006, 21:25:32
mal aus dem betaforum gefischt.....probiers einfach mal...

Zitat von: Musicman75 in 10 September 2005, 00:15:33
das musst im theme einstellen

bei den linken blöcken sieht das dann so aus:

          <tr>&lt;!-- START schmeiss_die_linken_bloecke_weg --&gt;
            <td class="blocksLeft" width="160" valign="top">

&lt;!-- START blocks_left_loop --&gt;
              &lt;!-- START block_left --&gt;
              <table  border="0" cellspacing="0" cellpadding="2">
                <tr>
                  <td class="boxtitle" uuups="OVERFLOW: hidden; WIDTH: 150px; PADDING-LEFT: 5px; PADDING-TOP: 3px;" colspan="2"><img src="images/menu_l.gif"> {BLOCK_TITLE}</td>
                </tr>
                <tr>
                  <td valign="top" class="boxcontent"><span uuups="OVERFLOW: hidden; WIDTH: 150px; PADDING-TOP: 3px; PADDING-BOTTOM: 8px; max-width: 150px;"> {BLOCK_CONTENT}</span></td>
  <td valign="bottom"><img src="images/block1.jpg"></td>
                </tr>
<tr><td align="right" colspan="2"><img src="images/block2.jpg"></td>
</tr>
              </table>
              &lt;!-- END block_left --&gt;
              &lt;!-- END blocks_left_loop --&gt;</td>&lt;!-- END schmeiss_die_linken_bloecke_weg --&gt;



dann kommt das noch in die functions.php des themes rein

/// linke blöcke entfernen
if (isset($_REQUEST['name'])) {
if ($_REQUEST['name'] == 'Forum' or $_REQUEST['name'] == 'Gallery') {
theme_extract_part($template, 'schmeiss_die_linken_bloecke_weg');
}
}



Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: V4Mp in 20 Juni 2006, 21:35:26
öhm... in welcher datei muss ich die anpassung machen???  :)
gibt ja mehrere im theme
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: der_luecke in 20 Juni 2006, 21:49:04
der obere Teil in der theme.html

und der untere Teil, wie es da steht in die functions.php

Das setzt allerdings voraus, dass dein theme mit der pragmaMx-theme-engine gebaut wurde.
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: V4Mp in 20 Juni 2006, 22:03:31
Habs mal versucht, allerdings lässt sich dann das Forum garnicht mehr öffnen.
Seite ist dann leer.

Zweites Probelm... der Text aus dem theme.html wird in der normalen Seite (z.B. News) angezeigt.  ???

Weiß aber nicht was falsch war
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: der_luecke in 20 Juni 2006, 22:06:35
Schicke doch bitte einen Link zum Ansehen. Und das nächste Mal ein paar mehr Informationen. Z.B. Name des themes oder wenn du es selbst gebastelt hat, dann hänge es bitte als zip an.
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: V4Mp in 20 Juni 2006, 22:22:13
Also gut. Das mit der Schrift habe ich gelöst.
Allerdings wird immernoch das gesamte Forum ausgeblendet??? Zumindest ist nix mehr zu sehen, wenn ich das einfüge.

Der Theme ist selbstgemacht. Images sind rausgelassen, da der Theme sonst zu groß wäre.
Der Code ist dort noch nicht eingefügt.

Hier noch wie es eingebaut ist.

theme.html

<tr>
<!-- START schmeiss_die_linken_bloecke_weg -->
<td valign="top" bgcolor="#FFFFFF" background="images/entwurf_r2_c5.jpg">
            <!-- START blocks_left_loop -->
            <!-- START block_left -->
<table cellpadding="0" cellspacing="0" width="175">
<tr>
<td width="25" height="2" background="images/entwurf_r5_c1.jpg">
</td>
<td width="2" height="2" background="images/entwurf_r7_c2.jpg">
</td>
<td width="142" height="2" background="images/entwurf_r7_c3.jpg">
</td>
<td width="2" height="2" background="images/entwurf_r7_c2.jpg">
</td>
<td width="4" bgcolor="#FFFFFF">
</td>
</tr>
<tr>
<td width="25" height="20" background="images/entwurf_r5_c1.jpg">
</td>
<td width="2" height="20" background="images/entwurf_r7_c2.jpg">
</td>
<td width="142" height="20" bgcolor="#000000" align="center" valign="middle" class="boxtitle">{BLOCK_TITLE} </td>
<td width="2" height="20" background="images/entwurf_r7_c2.jpg">
</td>
<td width="4" bgcolor="#FFFFFF">
</td>
</tr>
<tr>
<td width="25" height="2" background="images/entwurf_r5_c1.jpg">
</td>
<td width="2" height="2" background="images/entwurf_r7_c2.jpg">
</td>
<td width="142" height="2" background="images/entwurf_r7_c3.jpg">
</td>
<td width="2" background="images/entwurf_r7_c2.jpg">
</td>
<td width="4" bgcolor="#FFFFFF">
</td>
</tr>
<tr>
<td width="25" height="2" background="images/entwurf_r5_c1.jpg">
</td>
<td width="2" height="2" bgcolor="#FFFFFF">
</td>
<td width="142" height="2" bgcolor="#FFFFFF">
</td>
<td width="2" bgcolor="#FFFFFF">
</td>
<td width="4" bgcolor="#FFFFFF">
</td>
</tr>
<tr>
<td width="25" background="images/entwurf_r5_c1.jpg">
</td>
<td width="2" bgcolor="#CCCCCC">
</td>
<td width="142" bgcolor="#CCCCCC" class="boxcontent">{BLOCK_CONTENT}</td>
<td width="2" bgcolor="#CCCCCC">
</td>
<td width="4" bgcolor="#FFFFFF">
</td>
</tr>
<tr>
<td width="25" height="4" background="images/entwurf_r5_c1.jpg">
</td>
<td width="2" height="4" bgcolor="#FFFFFF">
</td>
<td width="142" height="4" bgcolor="#FFFFFF">
</td>
<td width="2" bgcolor="#FFFFFF">
</td>
<td width="4" bgcolor="#FFFFFF">
</td>
</tr>
</table>
            <!-- END block_left -->

            <!-- END blocks_left_loop -->
</td>
<!-- END schmeiss_die_linken_bloecke_weg -->
<td width="2" background="images/middleline.jpg">


functions.php

/*   system must be allowed by pragmaMx.de.                           */
/**********************************************************************/
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");

/// linke blöcke entfernen
if (isset($_REQUEST['name'])) {
if ($_REQUEST['name'] == 'Forum' or $_REQUEST['name'] == 'Gallery') {
theme_extract_part($template, 'schmeiss_die_linken_bloecke_weg');
}
}

/// Dateiname des templates
define("MX_THIS_THEMEFILE","theme.html");
/// Templatefile verwendet eig


[gelöscht durch Administrator]
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: blues in 20 Juni 2006, 22:26:57
Bei mir in der funktions.php gibt es eine Stelle :

provisorische Möglichkeit, die linken Blöcke bei bestimmten Modulen zu entfernen.

Dort:    ($_REQUEST['name'] == 'eBoard'

eBord im Forum ändern und fertig, bei mir funzt es

Gruß blues
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: V4Mp in 20 Juni 2006, 22:48:24
Also. Wie gesagt, die Seite ist dann vollkommen leer.
Nur noch


<html><body></body></html>


Steht dann in der Datei, die geöffnet wird.
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: Rettungsdackel in 06 September 2006, 00:54:59
Im mx-default in der functions.php ab Zeile 61 und ab Zeile 212 steht da was interessantes.
Damit hab ich die linken Blöcke beim Forenaufruf wegbekommen.
Titel: Re: Wie auch linke Blöcke ausblenden?
Beitrag von: FrankySZ in 06 September 2006, 11:17:43

Hi @ll,

ist denn das Prob von V4Mp noch akut? is ja schon etwas aelter der thread ;)

@Rettungdackel,
ZitatIm mx-default in der functions.php ab Zeile 61 und ab Zeile 212 steht da was interessantes.

wobei es normalerweise voellig ausreicht fuer die "provisorische  Moeglichkeit..." in der
function theme_replace_end($template) ab ca Zeile 210 die ## zu enfernen.