pragmaMx Support Forum

pragmaMx => Themes & Design => Thema gestartet von: diabolo in 06 November 2007, 15:46:00

Titel: Nice free phpnuke template for pragmaMx
Beitrag von: diabolo in 06 November 2007, 15:46:00
Hi,

http://www.ethaidesign.com

This is free and lovely phpnuke template.

For using to PragmaMx:

Open file theme.php from the template

line 49
ads(0);
replace by:
//ads(0);

function themefooter() line 100
add $index for global
global $index, $foot1, $foot2, $foot3, $copyright, $totaltime;
and after
replace:
if (defined('INDEX_FILE')) {
by:
if ($index == 1) {


line 53>58
replace
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
    if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
    }

by
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
$sel = '';
$topic ='';
    if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
}


fertig  ;)
Titel: Re: Nice free phpnuke template for pragmaMx
Beitrag von: siggi in 06 November 2007, 16:00:41
Yes, nice, but that template based on XHTML and not HTML4.01, which pragmaMx currently renders. It can lead to problems in the layout.
:)
Ja, schick. Nur das basiert auf XHTML und nicht auf HTML4.01, welches pragmaMx aktuell rendert. Es kann also zu Problemen im Layout führen.

Zitat<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: //www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">