pragmaMx Support Forum

pragmaMx => Themes & Design => Thema gestartet von: Baldyman am 30 Oktober 2011, 20:32:13

Titel: [gelöst] Topic Image in mx-blank integrieren
Beitrag von: Baldyman am 30 Oktober 2011, 20:32:13
Hoi zusammen  :bye:

Erstmal großen Dank an diabolo für das Theme. Schönes Teil  :thumbup:

Ist es möglich, oder hat sich schon mal jemand daran vergangen, die Topic Images da rein zu bringen ?
Hab mich mal an der ThemeFunctions versucht, aber will net so recht  :red:
Hier ein Screen, damit ihr wisst was ich meine.
Würde sich doch auch gut machen rechts neben den Überschriften zum Artikel !?

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Ftopicimageurt7.png&hash=93ca35b265c635450d4e7a9e277dc8c50a43d52a) (http://www.abload.de/image.php?img=topicimageurt7.png)
Titel: Re:Topic Image in mx-blank integrieren
Beitrag von: diabolo am 30 Oktober 2011, 22:56:04
Hi,
should better near text content


theme.html add {$topicimage}

                  <div class="post-content">
                      {$topicimage}

                      {$content}

                      {$readmore}

                      {$notes}

                  </div>


theme.function

find
$story['topicimage'] = $GLOBALS['tipath'] . $story['topicimage'];

replace by
$story['topicimage'] =mxCreateImage($GLOBALS['tipath'] . $story['topicimage'], $story['topictext'], 0, 'align="left" style="padding-right: 20px; padding-bottom: 10px;"');
Maybe you should add css rules for image.
Titel: Re:Topic Image in mx-blank integrieren
Beitrag von: Baldyman am 30 Oktober 2011, 23:48:59
Hi diabolo  :bye:

works perfect  :thumbup:
Thx !!!!