Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 03:04:49 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Frontend.css wird nicht geladen in Download Gallery  (Read 499 times)
Waldschwein
Guest
« on: January 26, 2010, 03:06:37 PM »

Hallo!

Ich bin fast am Verzweifeln gerade - ich bekomme in Version 2.21 die Download Gallery 2 http://www.websitebakers.com/pages/modules/listings/various/download-gallery-2.php nicht dazu, dass sie mit Hilfe von register_frontend_m odfiles('css') geladen wird. Jedes Modul klappt hier, allerdings nicht die Download Gallery 2.
Auch habe ich die Zeilen im Core (view.php Zeile 34-41 auskommentiert):
Code:
// load frontend.css if the template forgot it:
if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) &&
     file_exists(WB_PATH .'/modules/download_gallery/frontend.css')) {
        echo '<style type="text/css">';
        include(WB_PATH .'/modules/download_gallery/frontend.css');
        echo "\n</style>\n";
}

Ebenfalls das führt nicht dazu, dass die frontend.css im Header auftaucht bei den anderen Modulen - stattdessen wird sie im Quelltext eingebunden (was leider zu Validierungsfehlern führt).
Beispiel kann ich nicht bieten, hier ist es aber ganz genauso: http://club.websitebakers.com/pages/de/formulare.php
Evtl. liegt es an xft2, doch ich wüsste nicht, wieso xft2 die download gallery ausschließt...

Wäre super, wenn jemand eine Lösung hat.

Gruß Michael
Logged
WebBird
Guest
« Reply #1 on: January 26, 2010, 03:12:52 PM »

Hm. xft2 hatte doch neulich einen Bug, der dazu führte, daß das Objekt $wb hinüber war. Das führte z. B. in Kombination mit AnyNews zu einer leeren Seite. Vielleicht geht das hier in eine ähnliche Richtung?
Logged
Waldschwein
Guest
« Reply #2 on: January 26, 2010, 03:26:52 PM »

Hallo!

Hmm... Das kann ich schlecht nachprüfen, ich denke einmal das hier ist der Bereich, wo dies kontrolliert wird, darum mal ein Auszug:
Code:
public function register_modfiles (&$db, $page_id) {
       
        $query = "SELECT module from ".TABLE_PREFIX."sections WHERE page_id='".$page_id."' AND module<>'wysiwyg' order by position";
        $result = $db->query( $query );
       
        if (!$result) return $db->get_error();
       
        if ($result->numRows() < 1) return "";
       
        $file_list = array (
            'css'    => array (
                'frontend.css',
                'css/frontend.css'
                ),
            'js'    => array (
                'frontend.js',
                'js/frontend.js'
                )
        );
       
Vielleicht fällt einem ja ein Fehler auf... Wobei ich mich ja frage - die frontend.css ist ja da - und das Modul sollte sich ja grundsätzlich in der Beziehung von keinem anderen unterscheiden.

Gruß Michael
Logged
FrankH

Offline Offline

Posts: 735


WWW
« Reply #3 on: January 26, 2010, 03:48:34 PM »

Deinstalliere doch einfach mal xft2 und sieh dann, wie die DG funktiniert.
Wenn auf einer Seite die DG nach dem fehlerhaften Modul aufgerufen wird, kann es schon sein, daß sie nicht wie erwartet reagiert, wenn das Modul z.B. eine benötigte Core-Variable kaputt gemacht hat.
Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
WebBird
Guest
« Reply #4 on: January 26, 2010, 04:20:11 PM »

Bei erpe haben wir das Problem dadurch isoliert, daß er ein Standardtemplate benutzt hat, statt des xft2-Templates. Danach trat der Fehler nicht mehr auf.

Edit: Deinstallation ist dafür nicht erforderlich.
Logged
Waldschwein
Guest
« Reply #5 on: January 26, 2010, 04:32:05 PM »

Hallo!

Hmm, also generell ein Standardtemplate zu nehmen ist nicht (mehr) möglich.

Ich habe einmal all_css genommen, aber weiterhin nichts im head...

Vielleicht hilft der Quelltext ja (also mit AllCss ohne xft2), ich denke aber nicht...

Achja: Es sind zwei DL Galleries auf der Seite eingebunden - per section_picker.

Code:
<div class="content">
        <a class="section_anchor" id="wb_217" name="wb_217"></a><p><img width="60" height="60" alt="Download websitebaker" src="http://localhost/web/wbnew2/media/common/download.png" style="float: right;" /></p>
[...]
<div><style type="text/css">/*
  CSS definition for WebsiteBaker module: Download Gallery 2
*/
.mod_download_gallery_line_f, .mod_download_gallery_line_rightalign_f {
    border-bottom: 1px solid #DDD;
    font-size: 12px;
    padding: 12px 12px 0px 0px;
}
[...]
</style>
<!-- start download gallery start -->
<form method='post' action='http://localhost/web/wbnew2/de/download/neueste-version.php'>
  <table cellpadding="0" cellspacing="0" border="0">
   <tr>
   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort1" value="TA" />
            <button class="mod_download_gallery_btn_f " type="submit" name="R1" value="Kurzbezeichnung">Kurzbezeichnung</button> </td>
   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort2" value="CA" />

            <button class="mod_download_gallery_btn_ra_f " type="submit" name="R2" value="Letzte &Auml;nderung">Letzte &Auml;nderung</button> </td>
   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort3" value="SA" />
            <button class="mod_download_gallery_btn_ra_f " type="submit" name="R3" value="Dateigr&ouml;&szlig;e">Dateigr&ouml;&szlig;e</button> </td>
   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort4" value="DA" />
            <button class="mod_download_gallery_btn_ra_f " type="submit" name="R4" value="Aufrufe">Aufrufe</button>  </td>

   </tr>
<tr>
<td class="mod_download_gallery_line_f"><a href="http://localhost/web/wbnew2/modules/download_gallery/dlc.php?file=2&amp;id=1262339349" title="Download websitebaker"><div class="dlzip">&nbsp;&nbsp;</div><b>WebsiteBaker 2.8.0</b></a></td>
   <td class="mod_download_gallery_line_rightalign_f"> 01.01.2010</td>
   <td class="mod_download_gallery_line_rightalign_f"> 0 kB</td>
   <td class="mod_download_gallery_line_rightalign_f"> 0 </td>
   </tr></table></form>

<!-- gallery generated in 0.0199 seconds -->

<!-- end download gallery -->
</div>
<p>&nbsp;</p>
[...]
<div><style type="text/css">/*
  CSS definition for WebsiteBaker module: Download Gallery 2
*/

.mod_download_gallery_line_f, .mod_download_gallery_line_rightalign_f {
    border-bottom: 1px solid #DDD;
    font-size: 12px;
    padding: 12px 12px 0px 0px;
}
[...]                                                                
</style>
<!-- start download gallery start -->
<form method='post' action='http://localhost/web/wbnew2/de/download/neueste-version.php'>
  <table cellpadding="0" cellspacing="0" border="0">
   <tr>

   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort1" value="TA" />
            <button class="mod_download_gallery_btn_f " type="submit" name="R1" value="Kurzbezeichnung">Kurzbezeichnung</button> </td>
   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort2" value="CA" />
            <button class="mod_download_gallery_btn_ra_f " type="submit" name="R2" value="Letzte &Auml;nderung">Letzte &Auml;nderung</button> </td>
   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort3" value="SA" />

            <button class="mod_download_gallery_btn_ra_f " type="submit" name="R3" value="Dateigr&ouml;&szlig;e">Dateigr&ouml;&szlig;e</button> </td>
   <td class="mod_download_gallery_th_f"> <input type="hidden" name="sort4" value="DA" />
            <button class="mod_download_gallery_btn_ra_f " type="submit" name="R4" value="Aufrufe">Aufrufe</button>  </td>
   </tr>
<tr>
<td class="mod_download_gallery_line_f"><a href="http://localhost/web/wbnew2/modules/download_gallery/dlc.php?file=55&amp;id=1263206095" title="Download WebsiteBaker ReleaseCandidate"><div class="dlzip">&nbsp;&nbsp;</div><b>WebsiteBaker 2.8.1 RC1</b></a></td>
   <td class="mod_download_gallery_line_rightalign_f"> 11.01.2010</td>

   <td class="mod_download_gallery_line_rightalign_f"> 0 kB</td>
   <td class="mod_download_gallery_line_rightalign_f"> 0 </td>
   </tr></table></form>
<!-- gallery generated in 0.02 seconds -->

<!-- end download gallery -->
</div>

Gruß Michael
Logged
WebBird
Guest
« Reply #6 on: January 26, 2010, 06:18:06 PM »

Hmm, also generell ein Standardtemplate zu nehmen ist nicht (mehr) möglich.

Das hat ja auch keiner gesagt. Wink Ging ja nur darum, einen Fehler in xft2 auszuschließen.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!