Virtual Dhamma-Vinaya Vihara

Studies, projects & library - [Studium, Projekte & Bibliothek] (brahma & nimmanarati deva) => Dhamma Teamwork - [Dhamma Gemeinschaftsarbeit] => Our Monastery here - [Unser Kloster hier] => Topic started by: Dhammañāṇa on April 16, 2013, 07:15:12 PM

Title: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 16, 2013, 07:15:12 PM
(https://forum.sangham.net/Smileys/sanghagift_sangham_sw.gif)

This topic is dedicated to post seen technical problems, collect them and make them easier to be executed.

Dear visitor, dear Dhamma friends and members of sangham.net,

when ever you come across a technical problem or a strange appearance or if you have any suggestions in relation of the function and loading issues on this website, please feel free and invited to post such points.

When ever you feel that you have a solution for a problem, please feel free and invited to offer such as for the engaged team, everybody is invited to help in all issues.

Note for the executes: Should you start to work on an issue, please make this in the raised original post. Should a problem be solved or seen as not needed to be solved, please mark this also in the related original topic. In this way it is possible that everybody can act freely and chose a task, without much further requests.

(https://forum.sangham.net/Smileys/sadhu_sangham_sw.gif)




Dieses Thema ist dazu gewidmet, auf Technikprobleme hinzuweisen, sie zu sammeln und sie damit leichter abarbeitbar zu machen.

Sehr geehrte Besucher, liebe Dhammafreunde und Mitarbeiter auf sangham.net,

wenn immer Sie über ein Technikproblem oder eine seltsame Erscheinung stolpern oder wenn Sie anregungen bezüglich des Funktion und der Darstellungen auf der Webseite haben, fühlen Sie sich bitte eingeladen solche Dinge hier zu posten.

Wenn immer Sie glauben eine Lösung oder eine Anregung für ein Problem zu haben, fühlen Sie sich eingeladen diese Lösung oder Anregung hier zu teilen. Jeder ist stets eingeladen auszuhelfen.

Anmerkung für die Exekutive: Sollte jemand beginnen sich um ein Thema zu kümmern, diese bitte im erfolgen Originalbeitrag bemerken. Sollte ein Problem gelöst sein, oder als nicht lösenswert angesehen werden, bitte auch das im Originalbeitag bemerken. Auf diese Weise ist es möglich relativ unabhängig zu arbeiten und auch ohne viel weiteres Hinterfragen zu müssen.

(https://forum.sangham.net/Smileys/sadhu_sangham_sw.gif)
Title: [1] wap2 problems - wap2 Probleme
Post by: Dhammañāṇa on April 16, 2013, 07:28:25 PM
wap2 Probleme

Es dürfte zumindest für manche oder Zeitweise wap2 probleme geben (Sicherheitsverbindung für ipones und ander Smartdinger)

In den Fehlermeldungen (Protokol) kommen zur Zeit oft derartige Medungen vor:

Unable to load the 'wap2_tpdl_item' template.
?action=tpmod;dl=item...

vor. Hier dürfte es sich um das Laden des Themas im TinyPortal handeln.

Auch gibt es da die Meldung/Hinweis von TheY: Can't Post New Topic In Some Forum (http://forum.sangham.net/index.php?topic=285.0)

Für den Fall, daß jemand soetwas kennt, bitte Bescheid und Rat geben. Danke!

wap2 problems

It seems there is sometimes or for some a problem with the wap2 mode (a security connection for ipones and other smart devices)

In the error protocols similar errors like this are visible often this times:

Unable to load the 'wap2_tpdl_item' template.
?action=tpmod;dl=item...

It seems there is a problem to load the theme in TinyPortal.

There is also a claim/hint from TheY: Can't Post New Topic In Some Forum (http://forum.sangham.net/index.php?topic=285.0)

In the case somebody is familiar with such please let us know. Thanks!


Title: [2] Wish: different layout for [url] & [iurl] links - Wunsch [url] [iurl]
Post by: Dhammañāṇa on April 23, 2013, 12:04:45 AM
Wunsch: verschiedenes Aussehen für [ url ] und [ iurl ] Links.

Ich denke es wäre gut eine sichtbare Kennzeichnung für externe Links (Links die ein neues Fenster öffnen/benützt für Links auf anderen Domains), wie etwa einen kleinen Pfeil zu haben.

Hab zu diesem Zwecke eine Anfrage gestellt und auch schon gute großzügige Erklärung erhalten. Zur Zeit aber noch nicht umgesetzt oder ausprobiert: Different layout for BBC [ iurl ] and [ url ] links / all intern links autom. [iurl](https://forum.sangham.net/proxy.php?request=http%3A%2F%2Fwww.arrowtrial.org%2Fimages%2Fright_arrow_g.gif&hash=ce151dc2e931cf176cf3c9bcb287ce428baa24be) (http://www.simplemachines.org/community/index.php?topic=502298.msg3530786#msg3530786)


Wish: different layout for [ url ] & [ iurl ] links

I think it would be good to have a visible remark for external links (links which open a new window/used for links to other domains), like a little arrow.

For this I have directed already a request and already gained a good and generous explaining. It have not made or tested it yet: Different layout for BBC [ iurl ] and [ url ] links / all intern links autom. [iurl](https://forum.sangham.net/proxy.php?request=http%3A%2F%2Fwww.arrowtrial.org%2Fimages%2Fright_arrow_g.gif&hash=ce151dc2e931cf176cf3c9bcb287ce428baa24be) (http://www.simplemachines.org/community/index.php?topic=502298.msg3530786#msg3530786)
Title: [3] error/Fehlermeldung "8: Undefined variable: settings"
Post by: Dhammañāṇa on April 23, 2013, 12:14:23 AM
error/Fehlermeldung "8: Undefined variable: settings"

Wir haben zur Zeit in der Datenbank eine extrem häufige Fehlermeldung, die wahrscheinlich mit dem Installieren oder deinstalieren einer Modifikation ausgelöst wurde. Hat soweit keine Auswrikungen, außer das es das Log-protokoll für Fehlermeldungen immer mehr vergrößert. Ist sicher einfach und schnell gelöst, wenn man Grundkenntnisse von php hat.

"8: Undefined variable: settings"
Datei: .../Themes/default/languages/TPortal.english-utf8.php (tp_above sub template - eval?)
Zeile: 21
Seit: März 25, 2013, 12:03:15 Nachmittag
Anzahl: ca 5000 mal, beim aufrufen verschiedener Forumseiten


Habe bereit versucht um eine Lösung anzufragen, ist aber bisher gescheitert.

Aktuelle Unterstützungsanfrage: Error: "8: Undefined variable: settings" (http://www.simplemachines.org/community/index.php?topic=502364.0) auf SMF

error/Fehlermeldung "8: Undefined variable: settings"

We have this time a very frequently error in the database, which has been maybe caused by installing or deinstalling of a modification. It does not have any special impact, but creates a lot of date in the log-file of errors. Its for sure easy to solve if one has some basic experiences with php.

"8: Undefined variable: settings"
21 File: .../Themes/default/languages/TPortal.german-utf8.php (tp_above sub template - eval?)
Line: 21


I have already tried request for a solution, but I failed till now.

Current support request: Error: "8: Undefined variable: settings" (http://www.simplemachines.org/community/index.php?topic=502364.0) auf SMF


Title: Re: [3] error/Fehlermeldung "8: Undefined variable: settings"
Post by: Administration on April 25, 2013, 12:04:57 AM
error/Fehlermeldung "8: Undefined variable: settings"

Wir haben zur Zeit in der Datenbank eine extrem häufige Fehlermeldung, die wahrscheinlich mit dem Installieren oder deinstalieren einer Modifikation ausgelöst wurde. Hat soweit keine Auswrikungen, außer das es das Log-protokoll für Fehlermeldungen immer mehr vergrößert. Ist sicher einfach und schnell gelöst, wenn man Grundkenntnisse von php hat.

"8: Undefined variable: settings"
Datei: .../Themes/default/languages/TPortal.english-utf8.php (tp_above sub template - eval?)
Zeile: 21
Seit: März 25, 2013, 12:03:15 Nachmittag
Anzahl: ca 5000 mal, beim aufrufen verschiedener Forumseiten


Habe bereit versucht um eine Lösung anzufragen, ist aber bisher gescheitert.

Aktuelle Unterstützungsanfrage: Error: "8: Undefined variable: settings" (http://www.simplemachines.org/community/index.php?topic=502364.0) auf SMF

error/Fehlermeldung "8: Undefined variable: settings"

We have this time a very frequently error in the database, which has been maybe caused by installing or deinstalling of a modification. It does not have any special impact, but creates a lot of date in the log-file of errors. Its for sure easy to solve if one has some basic experiences with php.

"8: Undefined variable: settings"
21 File: .../Themes/default/languages/TPortal.german-utf8.php (tp_above sub template - eval?)
Line: 21


I have already tried request for a solution, but I failed till now.

Current support request: Error: "8: Undefined variable: settings" (http://www.simplemachines.org/community/index.php?topic=502364.0) auf SMF

Hab aufgrund einen guten Tips im Supportforum, die Ursache finden können. Sie lag an einem Block (links der alte "Aktuelle Beiträge" Block) der nun deaktiviert ist, bis ich einen besseren Code dafür gefunden habe.

In der Anlage noch der "böse" code, zur Doku und für etwaige spätere Fälle.

I could find the reason for it, based on a good hint in the support forum. It was a block (left, the old "recent topic" block) which is now deactivated till I can find a proper code for such a block.

Attached the "bad" code for dokumentation and for futher use info.


Code: "don't use, causes mistakes!" [Select]
global $context, $modSettings, $txt;
$context['TPortal']['recentboxnum'] = '15';

if(isset($modSettings['recycle_board']))
$bb = $modSettings['recycle_board'];

$what = ssi_recentTopics($context['TPortal']['recentboxnum'], NULL, NULL, 'array');
$counter=1;
$cmax = count($what);

echo '
<div style="width: 100%; overflow: auto; height: 30ex;">';

foreach($what as $w)
{
echo '
<div class="smalltext"><a href="'.$w['href'].'">' . $w['short_subject'] . '</a></div>
<div class="smalltext">', $txt['by'], ' <b>', $w['poster']['link'], '</b></div>
<div class="smalltext">';
if(!$w['new'])
echo '<a href="'.$w['href'].'"><img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';

echo '['.$w['time'].']
</div>';

if($counter != $cmax)
echo '<hr />';
$counter++;
}
echo '
</div>';
Title: [4] Error message character amount in subject - Error Zeichenanzahl im Betreff
Post by: Dhammañāṇa on April 25, 2013, 12:34:44 AM
[4] Error Meldung wegen Zeichenanzahl im Betreffzeile

Manchmal passiert es, daß Nutzer eine Fehlermeldung "max 80 Zeichen erlaubt" in der Betreffzeile bekommen, wenn sie auf eine Thema oder einen Beitrag anworten. Dies scheint aber kein konstantes Phänomen zu sein.
Alexander war so nett und hat dies aufgezeigt und ein Testthema dazu im Testbereich (http://forum.sangham.net/index.php?topic=494.0). angelegt. Es ist nicht sicher, ob es sich um eine cookie Einstellung eines individuellen Browsers handelt oder um ein generelles "Probelm.

(screen shot von Alexander in der Anlage)

Ein Thema zu dieser Sache wurde bereits im Supportforum angelegt: � display for special characters and Warning in subject line (http://www.simplemachines.org/community/index.php?topic=502497.msg3532890#msg3532890)




[4] Error message character amount in subject

In some cases it happens that members get a error message "max 80 characters allowed" in regard of the subject when replay to a topic. That seems to be just occasional.
Alexander was so kind to report such and has created a test topic in the test-section (http://forum.sangham.net/index.php?topic=494.0). It's not sure if it is maybe a cookie setting of individual browsers or any other "problem"

(screen shot from Alexander attached)

A topic in regard of this issue in the supportforum is already raised: � display for special characters and Warning in subject line (http://www.simplemachines.org/community/index.php?topic=502497.msg3532890#msg3532890)
Title: Re: [2] Wish: different layout for [url] & [iurl] links - Wunsch [url] [iurl]
Post by: Dhammañāṇa on April 26, 2013, 02:38:23 PM
Wunsch: verschiedenes Aussehen für [ url ] und [ iurl ] Links.

Ich denke es wäre gut eine sichtbare Kennzeichnung für externe Links (Links die ein neues Fenster öffnen/benützt für Links auf anderen Domains), wie etwa einen kleinen Pfeil zu haben.

Hab zu diesem Zwecke eine Anfrage gestellt und auch schon gute großzügige Erklärung erhalten. Zur Zeit aber noch nicht umgesetzt oder ausprobiert: Different layout for BBC [ iurl ] and [ url ] links / all intern links autom. [iurl](https://forum.sangham.net/proxy.php?request=http%3A%2F%2Fwww.arrowtrial.org%2Fimages%2Fright_arrow_g.gif&hash=ce151dc2e931cf176cf3c9bcb287ce428baa24be) (http://www.simplemachines.org/community/index.php?topic=502298.msg3530786#msg3530786)


Wish: different layout for [ url ] & [ iurl ] links

I think it would be good to have a visible remark for external links (links which open a new window/used for links to other domains), like a little arrow.

For this I have directed already a request and already gained a good and generous explaining. It have not made or tested it yet: Different layout for BBC [ iurl ] and [ url ] links / all intern links autom. [iurl](https://forum.sangham.net/proxy.php?request=http%3A%2F%2Fwww.arrowtrial.org%2Fimages%2Fright_arrow_g.gif&hash=ce151dc2e931cf176cf3c9bcb287ce428baa24be) (http://www.simplemachines.org/community/index.php?topic=502298.msg3530786#msg3530786)

In der Datei sources/subs.php folgende Änderungen:

In the file sources/subs.php have been made following changes:

Code: "line 1297 - 1300" [Select]
				'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href=" 'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link">',
'after' => '</a>'," class="bbc_link">',
'after' => '</a>',


Geändert in

changed into

Code: "line 1297 - 1300" [Select]
				'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href=" 'tag' => 'iurl',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link">',
'after' => ' <img src="'. $settings['images_url'] .'/arrowi.gif" alt="" class="icon" /></a>'," class="bbc_link">',
'after' => ' <img src="'. $settings['images_url'] .'/arrowi.gif" alt="" class="icon" /></a>',


und/and

Code: "line 1566 - 1568" [Select]
				'type' => 'unparsed_equals',
'before' => '<a href=" 'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link" target="_blank">',
'after' => '</a>'," class="bbc_link" target="_blank">',
'after' => '</a>',


Geändert in

changed into

Code: "line 1566 - 1568" [Select]
				'type' => 'unparsed_equals',
'before' => '<a href=" 'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link" target="_blank">',
'after' => ' <img src="'. $settings['images_url'] .'/arrow.gif" alt="" class="icon" /></a>'," class="bbc_link" target="_blank">',
'after' => ' <img src="'. $settings['images_url'] .'/arrow.gif" alt="" class="icon" /></a>',


und/and

Code: "line 889" [Select]
	global $txt, $scripturl, $context, $modSettings, $user_info, $smcFunc;


Geändert in

changed into

Code: "line 889" [Select]
	global $txt, $scripturl, $context, $modSettings, $user_info, $smcFunc, $settings;


File arrow.gif (https://forum.sangham.net/Themes/default/images/arrowi.gif) für [ iurl ] und arrowi.gif (https://forum.sangham.net/Themes/default/images/arrow.gif) für [ url ] ergänzt in ../Themes/defaulsangham/images/

File arrow.gif (https://forum.sangham.net/Themes/default/images/arrowi.gif) for [ iurl ] and arrowi.gif (https://forum.sangham.net/Themes/default/images/arrow.gif) for [ url ] added in ../Themes/defaulsangham/images/

Und vorerst tut sich nichts  :) Erledigt, war nicht das default sonder sangham (theme) verzeichnis.

Herzlichen Dank an Mr. Pedram (http://www.simplemachines.org/community/index.php?action=profile;u=323252) und MrPhil (http://www.simplemachines.org/community/index.php?action=profile;u=104647) für die Hilfe und Tipps im Supportforum und auch Alexander für die Anteilnahme.

Thanks goes to Mr. Pedram (http://www.simplemachines.org/community/index.php?action=profile;u=323252) and MrPhil (http://www.simplemachines.org/community/index.php?action=profile;u=104647) for help and hints in the  Supportforum and also to Alexander for the care.

(https://forum.sangham.net/Smileys/sadhu_sangham_sw.gif)
Title: Re: [2] Wish: different layout for [url] & [iurl] links - Wunsch [url] [iurl]
Post by: Alexander on April 26, 2013, 03:01:50 PM
Auf meinem alten Informatikstand basierend kann einem System, das Online ist, nicht einfach ein neuer Maschinencode (nach Umwandlung des Quellcodes) eingespeist werden, da
a) die Änderungen hier mehr Speicher brauchen
b) punktgenau der Maschinencode ersetzt werden müsste
c) durch die Mehrbefehle auf andere Module/Variablen Einfluss habend, diesen dann auch noch die neuen Parameter und Adressen gesetzt werden müssten.

Das in einem laufenden Onlinebetrieb! Adress- und Parameterveränderungen an den gesetzten Parametern und Adressen im Hauptspeicher!
Das mag heute dynamisch gehen, doch ich bin da im Zweifel. Nach mir muss das System neu gestartet werden und vor dem Neustart, onlinegerecht das System in den betroffenen Bereichen verlinkt neu aufgebaut werden.
In den alten Systemen wird das oft IPL genannt.
Doch ich kann mich täuschen, die moderne Informatik ist heute weiter, als mein Stand ist, doch vielleicht könnte das der Grund sein, sodass sich erstmal nichts tut?
 :-*
Title: Re: [2] Wish: different layout for [url] & [iurl] links - Wunsch [url] [iurl]
Post by: Dhammañāṇa on April 26, 2013, 03:08:54 PM
Danke, war auch eine Gedanke von mir. Mal sehen ob das der einzige Grund ist. Viele Browser holen sich die Dinge ja auch aus diversen Zwischenspeichern.

(PS: hab mir erlaubt deine Betreffzeile zu ändern)

(https://forum.sangham.net/Smileys/sadhu_sangham_sw.gif)
Title: [5] Unable to preview - Vorschau nicht möglich
Post by: Dhammañāṇa on August 30, 2013, 06:07:16 PM
Werte Freunde,

Wie schon ein paar mal berichtet, und auch selbst erlebt, funktioniert die Möglichkeit der Vorschau manchmal nicht. Wie mir geraten wurde (http://www.smfportal.de/index.php/topic,10712.0.html), kann es an einem javascript liegen, daß irgendwo mitläuft.
Das zu finden wird nicht einfach, deshalb die Bitte, sollte euch das unterkommen, einen guten Report wo, daß passiert, welches Forum, welche Blöcke eventuell offen sind oder was sonst alles dabei vorkommt, hier posten.

Danke!!

Dear friends,

as already sometimes reported, and even self experienced, it happens that the possibility of preview for a post does not work. As I was informed, it could be a matter of a other javascript running aside. It will be not easy to find that and here my request: Please report such issues with what ever info you can provide, which forum, which blocks might be open... and post it here.

Thanks!!

 :-*
Title: [6] double posting of welcome - doppeltes Willkommen post
Post by: Dhammañāṇa on September 16, 2013, 01:26:00 PM
There was (?) a problem with the automatically welcome post (http://forum.sangham.net/index.php?topic=722.0) and it seems that it could have been fixed by the generously care of Branko (http://www.simplemachines.org/community/index.php?topic=169884.msg3602537#msg3602537). Don't like to miss to send a thanks here on this place as well.

Da war (?) ein Problem mit der mit der neuen Automatischen Willkommes Botschaft und es scheint, als würde es Mittels der großzügigen Führsorge von Branko (http://www.simplemachines.org/community/index.php?topic=169884.msg3602537#msg3602537) beseitigt worden sein. Möchte nicht missen, auch hier an dieser Stelle ein Danke dafür anzubringen.

Sadhu!

 :-*

in "source/Register.php" replaced this

Code: [Select]
	// Welcome Topic Mod

if (empty($row['last_login']))
{

global $sourcedir;
require_once($sourcedir . '/WelcomeTopic2.php');

DoWelcomePost($row['member_name']);

}

// End Welcome Topic Mod

// Welcome Topic Mod
global $sourcedir;
require_once($sourcedir . '/WelcomeTopic2.php');

DoWelcomePost($row['member_name']);


// End Welcome Topic Mod

with the suggested

Code: [Select]
// Welcome Topic Mod
global $sourcedir;
require_once($sourcedir . '/WelcomeTopic2.php');

DoWelcomePost($row['member_name']);


// End Welcome Topic Mod

/me nachträglich: wenn Attma das richtig abschätzt, gibt es in den Grundeinstellungen eine "Funktion" die es ermöglicht zwischen erneuern und nicht erneuern bei Email-Änderung zu wählen. Also dort könnte man es wahrscheinlich auch für dieses Mod unterdrücken, wenn es denn gewünscht sein sollte.
Title: [7] Technische Probleme mit Mitgliedsgruppen
Post by: Dhammañāṇa on November 09, 2013, 03:59:54 PM
Dieses findet sich in einem eigenen Thema behandelt: Technische Probleme mit den Mitgliedsgruppen (http://forum.sangham.net/index.php?topic=885.0)
Title: [8] "Probleme" mit dem Download dem SMF-Datenbankstruktur Backup
Post by: Administration on March 11, 2014, 10:20:22 AM
Die Software enthält eine Backupmoglichkeit für die Datenbankstruktur, die empfohlen wird zu machen, bevor man Modifikationen einspielt. Sie enthält die Struktur der SMF Datenbank (keine Datenen von Posts oder anderem) wie die Tabelen, Foren, Einstellungen, Postnr, Board, Nutzer...

Seit einiger Zeit ist es nicht mehr möglich diese als zop Datei herunter zu laden. Ich habe mir erlaubt deshalb eine Anfrage für zukünftige Administration im SMF-Forum zu stellen: http://www.simplemachines.org/community/index.php?topic=519625.0

Quote from: Johann im SMF Forum] (http://www.simplemachines.org/community/index.php?topic=519625.msg3677303#msg3677303)
Dear SMF Team, Supporter and friends,

since a while I have problem uploading a Backup when "Compress the file with gzip." is enabled. Sometimes I get an error message "this or that is missing" (I don't remember exactly but something like "the file you requested does not exist), sometimes I am directed to an strange empty page in with orange background and a red frame in the head part. If disabled, it seems to work well.

If you have any idea about the reason and how to solve for a internet and software dummy like me, I am happy to receive it.

 _/\_

(Johann im Arbeitsgewand)
Title: [9] php files im theme-default ev. beschädigt
Post by: Administration on March 11, 2014, 10:26:48 AM
Im Zuge von Arbeiten scheint es, daß gewisse Dateien vielleicht angegriffen wurden. Ich habe mir erlaubt diesbezüglich eine Anfrage im SMF-Forum zu stellen: http://www.simplemachines.org/community/index.php?topic=519626

Quote from: Johann on SFM-Supportforum (http://www.simplemachines.org/community/index.php?topic=519626.msg3677309#msg3677309)
Dear SMF Team, supporter and SMF friends,

while downloading some files from themes/default via explorer I got a time out/access error. After looking into the directory it seemed that some files have disappeared like index.css and tp...css also some php-files are displayed with a ~ at the end, like Display.template.php~, Display.template.php~...

Not sure if other stuff is also gone.

The css, files that remembered I copied form our usual theme into it again (I don't know the value and relation of default and usual themes).

When I look into the server side directory the php files are displayed as normal and a second with ~

So far all seems to work. But I am have a little worry if this could damage something if I just progress as usual.

Should I upload this files again? How to check if there are not some files lost? How to get the right files to upload them again?

Any wise hints are more then welcome.
Title: [10] White screen - Weißer Bildschirm
Post by: Dhammañāṇa on March 15, 2014, 11:33:46 AM
Beim bearbeiten des Themas Anfrage und Erbitten der Uposatha Tage (http://forum.sangham.net/index.php?topic=971) ist mir aufgefallen, daß Tabellen einen "White screen" erzeugen können. Dies passiert nach Auskunft aufgrund der Überbelastung des php-prozesses durch die zahlreichen Codes.

Ich habe diesbezüglich eine Anfage im Supportforum gestellt. Bisher ist jedoch noch keine zufriedenstellende Losung gefunden: Blank page after preview (also here on SMF forum!!) (http://www.simplemachines.org/community/index.php?topic=519789)

Der Vorschlag den Speicher zu erhöhen, ein Supporter hatte gemeint, daß wir eventuelle nur 32MB festgelegt hätten und 64MB gut wäre, scheint nicht hilfreich zu sein, da unsere Einstellung auf 128MB sind. Ich vermute ein Problem im der Codierung mit den Tabellentags.

Praktische Tips bis zur Klärung:

Keine Tabellen, oder wenn dann nur kleine. Bei mehr Problemen, die table-tags deaktivieren in den Admineinstellungen.

Sollte dennoch ein Post passiert sein und man das Thema nicht mehr aufrufen können, den Inhalt ändern, indem man den Befehl "Beitrag ändern, händisch nachbaut (Moderationsrechte erforderlich)

[unsere url]index.php?action=post;msg=[Nr. des Beitrages];topic=[Nr. des Themas]

/me meint, da daß Problem dort in dem Thema mehrmals aufgekommen ist, daß er die Tabellen dort entfernen wird und mit Bilder Austauschen.

Die Bearbeitfunktion hat nicht funktioniert. Da das Thema aber noch sichtbar war, könnte ich die Löschlinks aufrufen (diese sind Sitzungsbezogen generiert und haben einen code, sind nicht nachbastelbar). Diese haben zwar auch zu einem White Screen geführt, aber die Aktionen wurden offensichtlich durchgeführt.

Einige der gelöschten und verschobenen Beiträge waren nach den Aktionen verschwunden. Es gibt im Adminbereich des Forums den Bereich Wartung - Datenbanken und dort die Option "Fehler finden und reparieren". Auch wenn diese nach Durchführung angegeben hatte "Gratuliere, keine Fehler" wurden diese offensichtlich wieder behoben... ::)

Nur als Info, falls mal Probleme sind.

 _/\_
Title: Kalender-Block
Post by: Dhammañāṇa on March 18, 2014, 08:27:09 PM
Ich hab mir erlaubt einen etwas anderen Minikalender auszuprobieren, dessen Code ZarPrime im TP Forum gepostet hatte (http://www.tinyportal.net/index.php?topic=33767.msg270723#msg270723) und hab dort kurz mal angefragt.

Gegenüber dem alten Kalender zeigt er auch die aktuellen Events an und wenn man dann die Uposathatage in der Jahreseriegnisliste eingetragen hat, würden auch diese dann "blau" aufscheinen. Läßt sich sicher auch grafisch was machen.

Hab den "Original-Code" (bin nicht sicher, ob es nicht noch einen gibt, der die Tage und Daten in der jeweiligen Sprache anzeigen würde) hier:

Code: [Select]
/******************************************************************************************
* 'Mini' Calendar in phpblock -                                                           *
*                                                                                         *
* Program Parameters/Switches can be specified to change what is displayed and how.       *
*   If highlighting is turned on, only the types of entries which are selected to         *
*   be shown will be highlighted (and have to be shown to guests for guests to see        *
*   highlights). If option of linking the day numbers to calendar event posting form      *
*   is chosen ($date_links_to_posting = true), SMF permissions are in effect and only     *
*   those allowed to post events to the calendar will have this link in effect. For       *
*   $date_links_to_posting = false, and for those not permitted to post events, day       *
*   numbers will link to the full SMF Calendar page. Additionally, if option to show      *
*   a separate 'Post Event' button is chosen ($show_post_event_button = true), it will    *
*   only show for those permitted to post events to the calendar.                         *
*                                                                                         *
* Look for 'NON-ENGLISH' to see section for changing language. This is actually more      *
*   correctly referred to as 'language other than server default' as this Calendar will   *
*   use the server's default LOCALE language for Month and Day names unless overides      *
*   are specified in the code section labeled 'NON-ENGLISH  LABELS, MONTH & DAY NAMES',   *
*   below.                                                                                *
*                                                                                         *
* Once a given day is highlighted, the highlight will not be supplanted. That means       *
*   you may want to modify the order in which highlights are applied in order to set      *
*   desired 'precedence' (i.e. if b-days highlights are applied first, once a given       *
*   day is highlighted with b-day color, it will not be changed to be highlighted         *
*   with event color if an event occurs on the same day; you need to choose an order      *
*   of precedence and sequence the highlighting accordingly by changing the sequence      *
*   of sections in the $order_hilites array. Highlighting will be done in the given       *
*   order.                                                                                *
*                                                                                         *
* Also, if you want the individual B-day/Event/Holiday sections to be ordered in a        *
*   different sequence, you need to change the sequence of entries in the $order_lists    *
*   array.                                                                                *
*                                                                                         *
* Examples of highlighting can be seen in the section 'Highlight colors & backgrounds'    *
*   below. As given, highlighting is done by applying the admin specified calendar        *
*   entry color to the date, bolded, on the default background. Commented example given   *
*   of using bold white on a background box of the admin specified calendar entry color.  *
******************************************************************************************/
global $scripturl, $modSettings, $options, $context, $user_info, $sourcedir, $txt;

// Program Paramters/Switches Section

// use forum's date/time
// include user's time offset to forum date/time
$now = mktime() + (($user_info['time_offset'] + $modSettings['time_offset']) * 3600);

// Order to do highlightling - earlier have precedence
$order_hilites = array('Birthdays', 'Events', 'Holidays');

// Order to show calendar entry lists
$order_lists = array('Birthdays', 'Events', 'Holidays');

// Alignment of calendar entry lists
$align_list_entries = 'left';

// Use 'bordercolor' class for 'gridlines' (table background)
$bordercolor_gridlines = true; // Will 'show through' between table cells to act as 'grid lines'
$gridlines_thickness = 2;       // Pixel thickness for table "cellspacing" - only used w/ $bordercolor_gridlines = true;

// Letters to show on calendar for names of each of the days
$day_name_length = 2;

// Selection for first day of the week: 0-Sunday; 1-Monday
$first_day = !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0;

// Show B-Day list at all / to guests
$show_bdays = true;
$show_bdays_to_guests = true;

// Show Event list at all / to guests
$show_events = true;
$show_events_to_guests = true;

// Show Holiday list at all / to guests
$show_hdays = true;
$show_hdays_to_guests = true;

// If true, calendar date numbers link to calendar event posting form
// if not, links to full calendar page
$date_links_to_posting = true;

// Adds 'Post Event' button to bottom of block
$show_post_event_button = true;

// Highlight events, b-days, holidays (only if they're selected to show at all)
$show_hilites = true;

// Colors for saturday & sunday
$color_sunday = '#D00000';    // comment out to use default text colors -
$color_saturday = '#D00000';  //   can use hex codes with leading '#'

// Style to use for 'Today' highlight (color & background)
// example:
//  'color:#ff0000; background-color:#ffffff;';
$style_today = 'color:steelblue; font-weight:bold;';
// and / or
// Class to use for 'Today' highlight
$class_today = 'tborder';

// Default class to use when no other class specified
$class_default = 'windowbg';

// Class to use for column top day names
$class_day_names = '';  // Ex.: titlebg, catbg, catbg2, catbg3, windowbg, windowbg2, windowbg3

// Class for 'cells' holding text labels on calendar entry lists
$list_label_class = 'bordercolor'; // Ex.: titlebg, catbg, catbg2, catbg3, windowbg, windowbg2, windowbg3

// Class for 'cells' holding calendar entry lists
//   use regular variable for all same class
//   use two-member array to alternate between the two
// examples:
//  $list_entry_class = 'windowbg';
//  $list_entry_class = array('windowbg2','windowbg3');
$list_entry_class = '';

// Highlight style (colors & backgrounds & font)
// example:
//  'font-weight:bold; color:#ff0000; background-color:#ffffff;';
// and / or
// Highlight class (a existing class name)
// example:
//  'myclassname';
$hilite_bday_style = 'font-weight:bold;';
$hilite_bday_class = 'birthday'; // default style

$hilite_hday_style = 'font-weight:bold;';
$hilite_hday_class = 'holiday'; // default style

$hilite_event_style = 'font-weight:bold;';
$hilite_event_class = 'event'; // default style

// Choose to show 'look-behind' for the various entry types
$show_bdays_past = false;
$show_events_past = false;
$show_hdays_past = false;

// For any of the above chosen, days prior to today to display -
//    use '0' (zero) to use beginning of current month
$past_look_behind_period = 0;

// Non-English Labels, Month and Day Names
// To use Month and Day names other than the default on your server,
//   remove the two asterisk '*******' lines (the first starts with '/***'
//   and the second ends '***/') and supply the List Section Labels and the
//   Month and Day names to use per instructions below.
$list_label_bdays = 'Birthdays';  // Change to labels in language of choice
$list_label_events = 'Events';
$list_label_hdays = 'Holidays';
// $list_label_bdays = 'Cumpleaños'; 
// $list_label_events = 'Fiestas';
// $list_label_hdays = 'Festivos';

// specify all the day names in desired language
// The Startday is set according the Firstday in the Member profile
$day_names = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// $day_names = array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado');

// setup the day_names array according the Memberprofile
$i = $first_day;
while(!empty($i))
{
$fd = array_shift($day_names);
array_push($day_names, $fd);
$i--;
}

// specify the month names in desired language
$month_nam = array();
$month_nam['01'] = 'January';       
$month_nam['02'] = 'February';
$month_nam['03'] = 'March';
$month_nam['04'] = 'April';
$month_nam['05'] = 'May';
$month_nam['06'] = 'June';
$month_nam['07'] = 'July';
$month_nam['08'] = 'August';
$month_nam['09'] = 'September';
$month_nam['10'] = 'October';
$month_nam['11'] = 'November';
$month_nam['12'] = 'December';

// $month_nam['01'] = 'Enero';       
// $month_nam['02'] = 'Febrero';
// $month_nam['03'] = 'Marzo';
// $month_nam['04'] = 'Abril';
// $month_nam['05'] = 'Mayo';
// $month_nam['06'] = 'Junio';
// $month_nam['07'] = 'Julio';
// $month_nam['08'] = 'Agosto';
// $month_nam['09'] = 'Septiembre';
// $month_nam['10'] = 'Octubre';
// $month_nam['11'] = 'Noviembre';
// $month_nam['12'] = 'Diciembre';

$month_name = $month_nam[date('m',$now)];
//NAMES (end)

//  Program Paramters/Switches Section - End
//    (modify below at your own risk!!!)

if (empty($class_default))
$class_default = 'windowbg';

if (empty($hilite_bday_style))
$hilite_bday_class = $class_default;

if (empty($hilite_hday_class))
$hilite_hday_class = $class_default;

if (empty($hilite_event_class))
$hilite_event_class = $class_default;

$table_bkgrd = 'class="'.$class_default.'" cellspacing="1" cellpadding="1" style="margin:0 auto; text-align:center;"';
if ($bordercolor_gridlines)
$table_bkgrd = 'class="information" cellspacing="'.$gridlines_thickness.'" cellpadding="1" style="margin:0 auto; text-align:center;"';

$today = strftime('%d', $now);
$year = date('Y',$now);
$month = date('n',$now);
$nowdate = strftime('%Y-%m-%d', $now);

$month_href = $scripturl . '?action=calendar;year='.$year.';month='.$month;

require_once($sourcedir . '/Subs-Calendar.php');

$low_date_base = strftime('%Y-%m-%d', $now - 24 * 3600);
$high_date_base = strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600);

$low_date = ($show_bdays_past || $show_events_past || $show_hdays_past) ? ( ($past_look_behind_period == 0) ? date('Y',$now).'-'.date('m',$now).'-01' : strftime('%Y-%m-%d', $now - (($past_look_behind_period + 1) * 24 * 3600)) ) : $low_date_base;
$high_date = $high_date_base;
$low_date_ts = strtotime($low_date);

if ($show_bdays)
{
$bdays = $show_bdays_past ? getBirthdayRange($low_date, $high_date) : getBirthdayRange($low_date_base, $high_date);
ksort($bdays);
}

if ($show_events)
{
$events = $show_events_past ? getEventRange($low_date, $high_date, false) : getEventRange($low_date_base, $high_date, false);
ksort($events);
}

if ($show_hdays)
{
$holidays = $show_hdays_past ? getHolidayRange($low_date, $high_date) : getHolidayRange($low_date_base, $high_date);
ksort($holidays);
}

$stub = '<a class="smalltext" style="'.$style_today.'padding: 0px 2px 0px 2px;"';
// Highlighted 'Today' Box
if ($date_links_to_posting && allowedTo('calendar_post'))
$days = array($today => array(NULL, $class_today, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.date('j',$now).'</a>'));
else
$days = array($today => array(NULL, $class_today, $stub.' href="'.htmlspecialchars($month_href).'" target="_self">'.date('j',$now).'</a>'));

// HIGHLIGHTING (start)
if ($show_hilites)
{
foreach($order_hilites as $hilite_to_do)
{
$flag = strtoupper(substr($hilite_to_do,0,1));

// B-Day Highlighting
if ($flag == 'B')
{
if ($show_bdays)
{
if ($show_bdays_to_guests || !$user_info['is_guest'])
{
$stub = '<a class="smalltext" style="'. $hilite_bday_style .'padding: 0px 2px 0px 2px;"';
foreach($bdays as $startdate => $value)
{
if(!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_bday_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_bday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_bday_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_bday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}

// Event Highlighting
if ($flag == 'E')
{
if ($show_events)
{
if ($show_events_to_guests || !$user_info['is_guest'])
{
$stub = '<a class="smalltext" style="'. $hilite_event_style .'padding: 0px 2px 0px 2px;"';
foreach($events as $startdate => $value)
{
if(!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_event_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_event_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_event_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_event_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}

// Holiday Highlighting
if ($flag == 'H')
{
if ($show_hdays)
{
if ($show_hdays_to_guests || !$user_info['is_guest'])
{
$stub = '<a class="smalltext" style="'. $hilite_hday_style .'padding: 0px 2px 0px 2px;"';
foreach($holidays as $startdate => $value)
{
if (!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_hday_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_hday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_hday_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_hday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}
}
}
// HIGHLIGHTING (end)

$first_of_month = gmmktime(0,0,0,$month,1,$year);
list($month, $year, $weekday) = explode(',',gmstrftime('%m,%Y,%w',$first_of_month));

if (!isset($month_nam['12']))
{
$day_names = array();                                      // generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400)    // January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t));           // %A means full textual day name
list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
}

$weekday = ($weekday + 7 - $first_day) % 7;                // adjust for $first_day
$title   = htmlentities(ucfirst($month_name)).' '.$year;   // note that some locales don't capitalize month and day names

$calendar = '<table '.$table_bkgrd.'>'.'<caption >'.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).'</caption><tr>';

if (empty($class_day_names))
$class_day_names = $class_default;

if($day_name_length)
{                                      #if the day names should be shown ($day_name_length > 0)
foreach($day_names as $d)
$calendar .= '<th class="'.$class_day_names.' smalltext" align="center" valign="middle" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= '</tr><tr style="text-align:right;">';
}

if($weekday > 0)
$calendar .= '<td class="'.$class_default.'" colspan="'.$weekday.'"> </td>'; #initial 'empty' days

for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++)
{
if($weekday == 7)
{
$weekday   = 0; #start a new week
$calendar .= '</tr><tr style="text-align:right;">';
}

$daynow = sprintf('%02d',$day);
$col_width = ' width="14%"';
if (((($weekday+$first_day) % 7) == 0) || ((($weekday+$first_day) % 7) == 0))
$col_width = ' width="15%"';

if(isset($days[$daynow]) && is_array($days[$daynow]))
{
@list($link, $classes, $content) = $days[$daynow];
if(is_null($content)) 
$content  = $daynow;
$calendar .= '<td'.$col_width.' align="center" valign="middle" '.($classes ? ' class="'.htmlspecialchars($classes).'" style="padding: 0px 0px 0px 0px;font-size: x-small;">' : '>').($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= '<td'.$col_width.' class="'.$class_default.'" align="center" valign="middle" style="padding: 0px 0px 0px 0px;font-size: x-small;"><a class="smalltext"';
if (((($weekday+$first_day) % 7) == 0) && isset($color_sunday))
$calendar .= ' style="color:'.$color_sunday.';"';
if (((($weekday+$first_day) % 7) == 6) && isset($color_saturday))
$calendar .= ' style="color:'.$color_saturday.';"';
if ($date_links_to_posting && allowedTo('calendar_post'))
$calendar .= ' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$day.'" target="_self">'.$day.'</a></td>';
else
$calendar .= ' href="'.htmlspecialchars($month_href).'" target="_self">'.$day.'</a></td>';
}
}

if($weekday != 7)
$calendar .= '<td class="'.$class_default.'" colspan="'.(7-$weekday).'"> </td>'; #remaining "empty" days

echo $calendar.'</tr>';

foreach($order_lists as $list_to_do)
{
$flag = strtoupper(substr($list_to_do,0,1));

if (!isset($align_list_entries))
$align_list_entries = 'center';
elseif ($align_list_entries <> 'left')
$align_list_entries = 'center';

if (empty($list_label_class))
$list_label_class = $class_default;

if (empty($list_entry_class))
$list_entry_class = $class_default;

// BIRTHDAY SECTION
if(($flag == 'B') && $show_bdays)
{
if($show_bdays_to_guests || !$user_info['is_guest'])
{
if (!empty($bdays))
{
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" class="smalltext" align="center" style="font-weight: bold;">'.$list_label_bdays.'</td></tr>';
$ctr = 0;

foreach($bdays as $startdate => $bday_date)
{
if (($startdate >= strftime('%Y-%m-%d', $low_date_ts)) && ($startdate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
foreach ($bday_date as $member)
{
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';
$birthdate = strtotime($startdate);
$text_start = !isset($month_nam['12']) ? date("M j",$birthdate) : substr($month_nam[strftime('%m', $birthdate)],0,3) . date(" j",$birthdate);

echo '<tr'.$class_to_use.'><td colspan="7" class="smalltext" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . ':</strong></a> ';
echo '<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '">' . '<span class="'.$hilite_bday_class.'">' . ( ($nowdate == $startdate) ? '<b>' : '') . $member['name'] . (isset($member['age']) ? '(' . $member['age'] . ')' : '') . ( ($nowdate == $startdate) ? '</b>' : '') . '</span>' . '</a>';
echo '</td></tr>';
}
}
}
}
}
}

// EVENTS SECTION
if(($flag == 'E') && $show_events)
{
if($show_events_to_guests || !$user_info['is_guest'])
{
if (!empty($events))
{
$events_printed = array();
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" class="smalltext" align="center" style="font-weight: bold;">'.$list_label_events.'</td></tr>';
$ctr = 0;

foreach ($events as $startdate => $evt_date)
{
if (($startdate >= strftime('%Y-%m-%d', $low_date_ts)) && ($startdate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
foreach ($evt_date as $event)
{
if (!in_array($event['id'],$events_printed))
{
$events_printed[] = $event['id'];
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';

$evt_start = strtotime($event['start_date']);
$evt_end = strtotime($event['end_date']);
$text_start = !isset($month_nam['12']) ? date("M j",$evt_start) : substr($month_nam[strftime('%m', $evt_start)],0,3) . date(" j",$evt_start);
$text_end = ($event['start_date'] == $event['end_date'] ? '' : '-'. (substr($event['start_date'],5,2) == substr($event['end_date'],5,2) ? date("j",$evt_end) : (!isset($month_nam['12']) ? date("M j",$evt_end) : substr($month_nam[strftime('%m', $evt_start)],0,3) . date(" j",$evt_start))));

$link = $event['topic'] == 0 ? '<span class="'.$hilite_event_class.'">'. $event['title'] .'</span>' : '<a href="' . $scripturl . '?topic=' . $event['topic'] . '.0' . '"><span class="'.$hilite_event_class.'">' . $event['title'] . '</span></a>';

echo '<tr'.$class_to_use.'><td colspan="7" class="smalltext" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . $text_end . ':</strong></a> ';
echo  ( ($nowdate >= $event['start_date']) && ($event['end_date'] >= $nowdate) ) ? '<b>'.$link.'</b>' : $link;
echo '</td></tr>';
}
}
}
}
}
}
}

// HOLIDAY SECTION
if(($flag == 'H') && $show_hdays)
{
if($show_hdays_to_guests || !$user_info['is_guest'])
{
if (!empty($holidays))
{
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" class="smalltext" align="center" style="font-weight: bold;">'.$list_label_hdays.'</td></tr>';
$ctr = 0;

foreach ($holidays as $hDate => $hday)
{
if (($hDate >= strftime('%Y-%m-%d', $low_date_ts)) && ($hDate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
$eventdate = strtotime(date("Y").substr($hDate, 4));
foreach ($hday as $holiday)
{
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';
$text_start = !isset($month_nam['12']) ? date("M j",$eventdate) : substr($month_nam[strftime('%m', $eventdate)],0,3) . date(" j",$eventdate);

echo '<tr'.$class_to_use.'><td colspan="7" class="smalltext" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . ':</strong></a> ';
echo '<span class="'.$hilite_hday_class.'">'.$holiday.'</span>';
echo '</td></tr>';
}
}
}
}
}
}
}

if ($show_post_event_button)
{
if (allowedTo('calendar_post'))
{
echo '<tr><td colspan="7" class="'.$class_default.'" align="center" valign="middle">';
echo '<hr/ >';
echo '<a href="', $scripturl,  '?action=calendar;sa=post;month=', $month, ';year=', $year, ';sesc=', $context['session_id'], '">','<br />', create_button('calendarpe.gif', 'calendar_post_event', 'calendar_post_event', 'align="middle"'), '</a>';
echo '</td></tr>';
}
}

echo '</table>';
 

und da er etwas flashig war, hab ich ihn etwas angepasst und abgespeckt (die Highlightfarben sind "System"- und die müßte man im index.css ändern, wenn man das möchte). Das ist der Code, der heute für den Kalender hier zur Probe steht.

Code: [Select]
/******************************************************************************************
* 'Mini' Calendar in phpblock -                                                           *
*                                                                                         *
* Program Parameters/Switches can be specified to change what is displayed and how.       *
*   If highlighting is turned on, only the types of entries which are selected to         *
*   be shown will be highlighted (and have to be shown to guests for guests to see        *
*   highlights). If option of linking the day numbers to calendar event posting form      *
*   is chosen ($date_links_to_posting = true), SMF permissions are in effect and only     *
*   those allowed to post events to the calendar will have this link in effect. For       *
*   $date_links_to_posting = false, and for those not permitted to post events, day       *
*   numbers will link to the full SMF Calendar page. Additionally, if option to show      *
*   a separate 'Post Event' button is chosen ($show_post_event_button = true), it will    *
*   only show for those permitted to post events to the calendar.                         *
*                                                                                         *
* Look for 'NON-ENGLISH' to see section for changing language. This is actually more      *
*   correctly referred to as 'language other than server default' as this Calendar will   *
*   use the server's default LOCALE language for Month and Day names unless overides      *
*   are specified in the code section labeled 'NON-ENGLISH  LABELS, MONTH & DAY NAMES',   *
*   below.                                                                                *
*                                                                                         *
* Once a given day is highlighted, the highlight will not be supplanted. That means       *
*   you may want to modify the order in which highlights are applied in order to set      *
*   desired 'precedence' (i.e. if b-days highlights are applied first, once a given       *
*   day is highlighted with b-day color, it will not be changed to be highlighted         *
*   with event color if an event occurs on the same day; you need to choose an order      *
*   of precedence and sequence the highlighting accordingly by changing the sequence      *
*   of sections in the $order_hilites array. Highlighting will be done in the given       *
*   order.                                                                                *
*                                                                                         *
* Also, if you want the individual B-day/Event/Holiday sections to be ordered in a        *
*   different sequence, you need to change the sequence of entries in the $order_lists    *
*   array.                                                                                *
*                                                                                         *
* Examples of highlighting can be seen in the section 'Highlight colors & backgrounds'    *
*   below. As given, highlighting is done by applying the admin specified calendar        *
*   entry color to the date, bolded, on the default background. Commented example given   *
*   of using bold white on a background box of the admin specified calendar entry color.  *
******************************************************************************************/
global $scripturl, $modSettings, $options, $context, $user_info, $sourcedir, $txt;

// Program Paramters/Switches Section

// use forum's date/time
// include user's time offset to forum date/time
$now = mktime() + (($user_info['time_offset'] + $modSettings['time_offset']) * 3600);

// Order to do highlightling - earlier have precedence
$order_hilites = array('Birthdays', 'Events', 'Holidays');

// Order to show calendar entry lists
$order_lists = array('Birthdays', 'Events', 'Holidays');

// Alignment of calendar entry lists
$align_list_entries = 'left';

// Use 'bordercolor' class for 'gridlines' (table background)
$bordercolor_gridlines = true; // Will 'show through' between table cells to act as 'grid lines'
$gridlines_thickness = 2;       // Pixel thickness for table "cellspacing" - only used w/ $bordercolor_gridlines = true;

// Letters to show on calendar for names of each of the days
$day_name_length = 2;

// Selection for first day of the week: 0-Sunday; 1-Monday
$first_day = !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0;

// Show B-Day list at all / to guests
$show_bdays = true;
$show_bdays_to_guests = true;

// Show Event list at all / to guests
$show_events = true;
$show_events_to_guests = true;

// Show Holiday list at all / to guests
$show_hdays = true;
$show_hdays_to_guests = true;

// If true, calendar date numbers link to calendar event posting form
// if not, links to full calendar page
$date_links_to_posting = true;

// Adds 'Post Event' button to bottom of block
$show_post_event_button = true;

// Highlight events, b-days, holidays (only if they're selected to show at all)
$show_hilites = true;

// Colors for saturday & sunday
$color_sunday = '#B8704D';    // comment out to use default text colors -
$color_saturday = '#B8704D';  //   can use hex codes with leading '#'

// Style to use for 'Today' highlight (color & background)
// example:
//  'color:#000000; background-color:#FFFFFF;';
$style_today = 'color:#B8704D; font-weight:bold; background-color:#D1D1D1;';
// and / or
// Class to use for 'Today' highlight
$class_today = 'tborder';

// Default class to use when no other class specified
$class_default = 'windowbg';

// Class to use for column top day names
$class_day_names = '';  // Ex.: titlebg, catbg, catbg2, catbg3, windowbg, windowbg2, windowbg3

// Class for 'cells' holding text labels on calendar entry lists
$list_label_class = 'bordercolor'; // Ex.: titlebg, catbg, catbg2, catbg3, windowbg, windowbg2, windowbg3

// Class for 'cells' holding calendar entry lists
//   use regular variable for all same class
//   use two-member array to alternate between the two
// examples:
//  $list_entry_class = 'windowbg';
//  $list_entry_class = array('windowbg2','windowbg3');
$list_entry_class = '';

// Highlight style (colors & backgrounds & font)
// example:
//  'font-weight:bold; color:#ff0000; background-color:#ffffff;';
// and / or
// Highlight class (a existing class name)
// example:
//  'myclassname';
$hilite_bday_style = 'font-weight:bold;';
$hilite_bday_class = 'birthday'; // default style

$hilite_hday_style = 'font-weight:bold;';
$hilite_hday_class = 'holiday'; // default style

$hilite_event_style = 'font-weight:bold;';
$hilite_event_class = 'event'; // default style

// Choose to show 'look-behind' for the various entry types
$show_bdays_past = false;
$show_events_past = false;
$show_hdays_past = false;

// For any of the above chosen, days prior to today to display -
//    use '0' (zero) to use beginning of current month
$past_look_behind_period = 0;

// Non-English Labels, Month and Day Names
// To use Month and Day names other than the default on your server,
//   remove the two asterisk '*******' lines (the first starts with '/***'
//   and the second ends '***/') and supply the List Section Labels and the
//   Month and Day names to use per instructions below.
$list_label_bdays = 'Birthdays';  // Change to labels in language of choice
$list_label_events = 'Events';
$list_label_hdays = 'Holidays';
// $list_label_bdays = 'Cumpleaños'; 
// $list_label_events = 'Fiestas';
// $list_label_hdays = 'Festivos';

// specify all the day names in desired language
// The Startday is set according the Firstday in the Member profile
$day_names = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// $day_names = array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado');

// setup the day_names array according the Memberprofile
$i = $first_day;
while(!empty($i))
{
$fd = array_shift($day_names);
array_push($day_names, $fd);
$i--;
}

// specify the month names in desired language
$month_nam = array();
$month_nam['01'] = 'January';       
$month_nam['02'] = 'February';
$month_nam['03'] = 'March';
$month_nam['04'] = 'April';
$month_nam['05'] = 'May';
$month_nam['06'] = 'June';
$month_nam['07'] = 'July';
$month_nam['08'] = 'August';
$month_nam['09'] = 'September';
$month_nam['10'] = 'October';
$month_nam['11'] = 'November';
$month_nam['12'] = 'December';

// $month_nam['01'] = 'Enero';       
// $month_nam['02'] = 'Febrero';
// $month_nam['03'] = 'Marzo';
// $month_nam['04'] = 'Abril';
// $month_nam['05'] = 'Mayo';
// $month_nam['06'] = 'Junio';
// $month_nam['07'] = 'Julio';
// $month_nam['08'] = 'Agosto';
// $month_nam['09'] = 'Septiembre';
// $month_nam['10'] = 'Octubre';
// $month_nam['11'] = 'Noviembre';
// $month_nam['12'] = 'Diciembre';

$month_name = $month_nam[date('m',$now)];
//NAMES (end)

//  Program Paramters/Switches Section - End
//    (modify below at your own risk!!!)

if (empty($class_default))
$class_default = 'windowbg';

if (empty($hilite_bday_style))
$hilite_bday_class = $class_default;

if (empty($hilite_hday_class))
$hilite_hday_class = $class_default;

if (empty($hilite_event_class))
$hilite_event_class = $class_default;

$table_bkgrd = 'class="'.$class_default.'" cellspacing="1" cellpadding="1" style="margin:0 auto; text-align:center;"';
if ($bordercolor_gridlines)
$table_bkgrd = 'cellspacing="'.$gridlines_thickness.'" cellpadding="1" style="margin:0 auto; text-align:center;"';

$today = strftime('%d', $now);
$year = date('Y',$now);
$month = date('n',$now);
$nowdate = strftime('%Y-%m-%d', $now);

$month_href = $scripturl . '?action=calendar;year='.$year.';month='.$month;

require_once($sourcedir . '/Subs-Calendar.php');

$low_date_base = strftime('%Y-%m-%d', $now - 24 * 3600);
$high_date_base = strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600);

$low_date = ($show_bdays_past || $show_events_past || $show_hdays_past) ? ( ($past_look_behind_period == 0) ? date('Y',$now).'-'.date('m',$now).'-01' : strftime('%Y-%m-%d', $now - (($past_look_behind_period + 1) * 24 * 3600)) ) : $low_date_base;
$high_date = $high_date_base;
$low_date_ts = strtotime($low_date);

if ($show_bdays)
{
$bdays = $show_bdays_past ? getBirthdayRange($low_date, $high_date) : getBirthdayRange($low_date_base, $high_date);
ksort($bdays);
}

if ($show_events)
{
$events = $show_events_past ? getEventRange($low_date, $high_date, false) : getEventRange($low_date_base, $high_date, false);
ksort($events);
}

if ($show_hdays)
{
$holidays = $show_hdays_past ? getHolidayRange($low_date, $high_date) : getHolidayRange($low_date_base, $high_date);
ksort($holidays);
}

$stub = '<a style="'.$style_today.'padding: 0px 2px 0px 2px;"';
// Highlighted 'Today' Box
if ($date_links_to_posting && allowedTo('calendar_post'))
$days = array($today => array(NULL, $class_today, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.date('j',$now).'</a>'));
else
$days = array($today => array(NULL, $class_today, $stub.' href="'.htmlspecialchars($month_href).'" target="_self">'.date('j',$now).'</a>'));

// HIGHLIGHTING (start)
if ($show_hilites)
{
foreach($order_hilites as $hilite_to_do)
{
$flag = strtoupper(substr($hilite_to_do,0,1));

// B-Day Highlighting
if ($flag == 'B')
{
if ($show_bdays)
{
if ($show_bdays_to_guests || !$user_info['is_guest'])
{
$stub = '<a style="'. $hilite_bday_style .'padding: 0px 2px 0px 2px;"';
foreach($bdays as $startdate => $value)
{
if(!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_bday_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_bday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_bday_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_bday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}

// Event Highlighting
if ($flag == 'E')
{
if ($show_events)
{
if ($show_events_to_guests || !$user_info['is_guest'])
{
$stub = '<a style="'. $hilite_event_style .'padding: 0px 2px 0px 2px;"';
foreach($events as $startdate => $value)
{
if(!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_event_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_event_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_event_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_event_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}

// Holiday Highlighting
if ($flag == 'H')
{
if ($show_hdays)
{
if ($show_hdays_to_guests || !$user_info['is_guest'])
{
$stub = '<a style="'. $hilite_hday_style .'padding: 0px 2px 0px 2px;"';
foreach($holidays as $startdate => $value)
{
if (!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_hday_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_hday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_hday_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_hday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}
}
}
// HIGHLIGHTING (end)

$first_of_month = gmmktime(0,0,0,$month,1,$year);
list($month, $year, $weekday) = explode(',',gmstrftime('%m,%Y,%w',$first_of_month));

if (!isset($month_nam['12']))
{
$day_names = array();                                      // generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400)    // January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t));           // %A means full textual day name
list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
}

$weekday = ($weekday + 7 - $first_day) % 7;                // adjust for $first_day
$title   = htmlentities(ucfirst($month_name)).' '.$year;   // note that some locales don't capitalize month and day names

$calendar = '<table '.$table_bkgrd.'>'.'<caption >'.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).'</caption><tr>';

if (empty($class_day_names))
$class_day_names = $class_default;

if($day_name_length)
{                                      #if the day names should be shown ($day_name_length > 0)
foreach($day_names as $d)
$calendar .= '<th class="'.$class_day_names.'" align="center" valign="middle" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= '</tr><tr style="text-align:right;">';
}

if($weekday > 0)
$calendar .= '<td class="'.$class_default.'" colspan="'.$weekday.'"> </td>'; #initial 'empty' days

for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++)
{
if($weekday == 7)
{
$weekday   = 0; #start a new week
$calendar .= '</tr><tr style="text-align:right;">';
}

$daynow = sprintf('%02d',$day);
$col_width = ' width="14%"';
if (((($weekday+$first_day) % 7) == 0) || ((($weekday+$first_day) % 7) == 0))
$col_width = ' width="15%"';

if(isset($days[$daynow]) && is_array($days[$daynow]))
{
@list($link, $classes, $content) = $days[$daynow];
if(is_null($content)) 
$content  = $daynow;
$calendar .= '<td'.$col_width.' align="center" valign="middle" '.($classes ? ' class="'.htmlspecialchars($classes).'" style="padding: 0px 0px 0px 0px;font-size: x-small;">' : '>').($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= '<td'.$col_width.' class="'.$class_default.'" align="center" valign="middle" style="padding: 0px 0px 0px 0px;font-size: x-small;"><a ';
if (((($weekday+$first_day) % 7) == 0) && isset($color_sunday))
$calendar .= ' style="color:'.$color_sunday.';"';
if (((($weekday+$first_day) % 7) == 6) && isset($color_saturday))
$calendar .= ' style="color:'.$color_saturday.';"';
if ($date_links_to_posting && allowedTo('calendar_post'))
$calendar .= ' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$day.'" target="_self">'.$day.'</a></td>';
else
$calendar .= ' href="'.htmlspecialchars($month_href).'" target="_self">'.$day.'</a></td>';
}
}

if($weekday != 7)
$calendar .= '<td class="'.$class_default.'" colspan="'.(7-$weekday).'"> </td>'; #remaining "empty" days

echo $calendar.'</tr>';

foreach($order_lists as $list_to_do)
{
$flag = strtoupper(substr($list_to_do,0,1));

if (!isset($align_list_entries))
$align_list_entries = 'center';
elseif ($align_list_entries <> 'left')
$align_list_entries = 'center';

if (empty($list_label_class))
$list_label_class = $class_default;

if (empty($list_entry_class))
$list_entry_class = $class_default;

// BIRTHDAY SECTION
if(($flag == 'B') && $show_bdays)
{
if($show_bdays_to_guests || !$user_info['is_guest'])
{
if (!empty($bdays))
{
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" align="center" style="font-weight: bold;">'.$list_label_bdays.'</td></tr>';
$ctr = 0;

foreach($bdays as $startdate => $bday_date)
{
if (($startdate >= strftime('%Y-%m-%d', $low_date_ts)) && ($startdate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
foreach ($bday_date as $member)
{
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';
$birthdate = strtotime($startdate);
$text_start = !isset($month_nam['12']) ? date("M j",$birthdate) : substr($month_nam[strftime('%m', $birthdate)],0,3) . date(" j",$birthdate);

echo '<tr'.$class_to_use.'><td colspan="7" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . ':</strong></a> ';
echo '<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '">' . '<span class="'.$hilite_bday_class.'">' . ( ($nowdate == $startdate) ? '<b>' : '') . $member['name'] . (isset($member['age']) ? '(' . $member['age'] . ')' : '') . ( ($nowdate == $startdate) ? '</b>' : '') . '</span>' . '</a>';
echo '</td></tr>';
}
}
}
}
}
}

// EVENTS SECTION
if(($flag == 'E') && $show_events)
{
if($show_events_to_guests || !$user_info['is_guest'])
{
if (!empty($events))
{
$events_printed = array();
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" align="center" style="font-weight: bold;">'.$list_label_events.'</td></tr>';
$ctr = 0;

foreach ($events as $startdate => $evt_date)
{
if (($startdate >= strftime('%Y-%m-%d', $low_date_ts)) && ($startdate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
foreach ($evt_date as $event)
{
if (!in_array($event['id'],$events_printed))
{
$events_printed[] = $event['id'];
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';

$evt_start = strtotime($event['start_date']);
$evt_end = strtotime($event['end_date']);
$text_start = !isset($month_nam['12']) ? date("M j",$evt_start) : substr($month_nam[strftime('%m', $evt_start)],0,3) . date(" j",$evt_start);
$text_end = ($event['start_date'] == $event['end_date'] ? '' : '-'. (substr($event['start_date'],5,2) == substr($event['end_date'],5,2) ? date("j",$evt_end) : (!isset($month_nam['12']) ? date("M j",$evt_end) : substr($month_nam[strftime('%m', $evt_start)],0,3) . date(" j",$evt_start))));

$link = $event['topic'] == 0 ? '<span class="'.$hilite_event_class.'">'. $event['title'] .'</span>' : '<a href="' . $scripturl . '?topic=' . $event['topic'] . '.0' . '"><span class="'.$hilite_event_class.'">' . $event['title'] . '</span></a>';

echo '<tr'.$class_to_use.'><td colspan="7" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . $text_end . ':</strong></a> ';
echo  ( ($nowdate >= $event['start_date']) && ($event['end_date'] >= $nowdate) ) ? '<b>'.$link.'</b>' : $link;
echo '</td></tr>';
}
}
}
}
}
}
}

// HOLIDAY SECTION
if(($flag == 'H') && $show_hdays)
{
if($show_hdays_to_guests || !$user_info['is_guest'])
{
if (!empty($holidays))
{
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" align="center" style="font-weight: bold;">'.$list_label_hdays.'</td></tr>';
$ctr = 0;

foreach ($holidays as $hDate => $hday)
{
if (($hDate >= strftime('%Y-%m-%d', $low_date_ts)) && ($hDate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
$eventdate = strtotime(date("Y").substr($hDate, 4));
foreach ($hday as $holiday)
{
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';
$text_start = !isset($month_nam['12']) ? date("M j",$eventdate) : substr($month_nam[strftime('%m', $eventdate)],0,3) . date(" j",$eventdate);

echo '<tr'.$class_to_use.'><td colspan="7" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . ':</strong></a> ';
echo '<span class="'.$hilite_hday_class.'">'.$holiday.'</span>';
echo '</td></tr>';
}
}
}
}
}
}
}

if ($show_post_event_button)
{
if (allowedTo('calendar_post'))
{
echo '<tr><td colspan="7" class="'.$class_default.'" align="center" valign="middle">';
echo '<hr/ >';
echo '<a href="', $scripturl,  '?action=calendar;sa=post;month=', $month, ';year=', $year, ';sesc=', $context['session_id'], '">','<br />', create_button('calendar_post_event', 'calendar_post_event', 'align="middle"'), '</a>';
echo '</td></tr>';
}
}

echo '</table>';
 

Der alte Minikalender, ich hab ihn noch in einem unbenutzen Block gespeichert, wird mit diesem Code generiert:

Code: [Select]
global $scripturl, $smcFunc;

$now = mktime();
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array($today => array(NULL, NULL, '<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>'));

$day_name_length = 3;
$month_href = $scripturl . '?action=calendar';
$first_day = 1;
$pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);
//remember that mktime will automatically correct if invalid dates are entered
// for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
// this provides a built in "rounding" feature to generate_calendar()

$day_names = array(); //generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) //January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); //%A means full textual day name

list($month, $year, $month_name, $weekday) = explode(',', gmstrftime('%m,%Y,%B,%w', $first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title   = $smcFunc['htmlspecialchars'](ucfirst($month_name)).' '.$year;  //note that some locales don't capitalize month and day names

//Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn);
@list($n, $nl) = each($pn); //previous and next links, if applicable
if($p)
$p = '<span class="smalltext">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n)
$n = ' <span class="smalltext">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";

if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
//if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th class="smalltext" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';

$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}

if($weekday > 0)
$calendar .= '<td class="smalltext" colspan="'.$weekday.'"> </td>'; //initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content)) 
$content  = $day;
$calendar .= '<td "'.($classes ? ' class="'.htmlspecialchars($classes).'">' : '>').
($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td class=\"smalltext\" style=\"padding-right:4px;\"><a";
if(((($weekday+$first_day) % 7)==0)||((($weekday+$first_day) % 7)==6))
{
$calendar .= ' style="color:#C00000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=post;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7)
$calendar .= '<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; //remaining "empty" days

echo $calendar."</tr>\n</table>\n";

Nur das man es findet, bzw. vielleicht Vorlagen für Besseres hat.

Der alte Code produziert einen kleinen html-Fehler und das war eigentlich der Grund, warum ich da dann dazu gekommen bin. Konnte im Code nicht ganz erkennen woran es lag, aber ich denke, daß der Grund ist, das in den Tabelen keine Styles mehr zugelassen werden und da irgendwie ein " in einen Tag hineinrutscht. Im Übrigen ist damit und mit ein paar anderen Ausbesserungen, die Startseite zumindest, wieder oder vielleicht sogar erstmal: This document was successfully checked as XHTML 1.0 Transitional!  :)



 _/\_
Title: Re: [10] White screen - Weißer Bildschirm
Post by: Dhammañāṇa on March 21, 2014, 04:29:24 PM
Trotz dem uns unser Provider großzügiger Weise auf eine php-Rechnerleistung von 256MB hinaufgestetzt hat, besteht dieses Problem immer noch, wenn großer Anzahl von BBC verarbeitet werden müssen.

Soweit die Auskunft im Supportforum hat es mit dem Upgrade auf 2.0.7 zu tun, daß an die php5.5 Version angepasst wurde. Sollte es weiter zu Problemen führen, wäre die einfachste Lösung, die Version 2.0.7 wieder zu deinstallieren und auf php5.5 so lange es geht zu verzichten.

 _/\_
Title: Re: Kalender-Block
Post by: Administration on March 22, 2014, 11:44:40 PM
Schau hin und wieder in den Error log, besonders, wenn neue Dinge installiert sind. Da war eine Fehlermeldung und die hat sich offensichlich aus dem Probekalender ergeben (Behandlung im Thema im TP-Forum)

Hier jedenfalls das "ausgebesserte" php schnippsel für den Block:

Code: [Select]
/******************************************************************************************
* 'Mini' Calendar in phpblock -                                                           *
*                                                                                         *
* Program Parameters/Switches can be specified to change what is displayed and how.       *
*   If highlighting is turned on, only the types of entries which are selected to         *
*   be shown will be highlighted (and have to be shown to guests for guests to see        *
*   highlights). If option of linking the day numbers to calendar event posting form      *
*   is chosen ($date_links_to_posting = true), SMF permissions are in effect and only     *
*   those allowed to post events to the calendar will have this link in effect. For       *
*   $date_links_to_posting = false, and for those not permitted to post events, day       *
*   numbers will link to the full SMF Calendar page. Additionally, if option to show      *
*   a separate 'Post Event' button is chosen ($show_post_event_button = true), it will    *
*   only show for those permitted to post events to the calendar.                         *
*                                                                                         *
* Look for 'NON-ENGLISH' to see section for changing language. This is actually more      *
*   correctly referred to as 'language other than server default' as this Calendar will   *
*   use the server's default LOCALE language for Month and Day names unless overides      *
*   are specified in the code section labeled 'NON-ENGLISH  LABELS, MONTH & DAY NAMES',   *
*   below.                                                                                *
*                                                                                         *
* Once a given day is highlighted, the highlight will not be supplanted. That means       *
*   you may want to modify the order in which highlights are applied in order to set      *
*   desired 'precedence' (i.e. if b-days highlights are applied first, once a given       *
*   day is highlighted with b-day color, it will not be changed to be highlighted         *
*   with event color if an event occurs on the same day; you need to choose an order      *
*   of precedence and sequence the highlighting accordingly by changing the sequence      *
*   of sections in the $order_hilites array. Highlighting will be done in the given       *
*   order.                                                                                *
*                                                                                         *
* Also, if you want the individual B-day/Event/Holiday sections to be ordered in a        *
*   different sequence, you need to change the sequence of entries in the $order_lists    *
*   array.                                                                                *
*                                                                                         *
* Examples of highlighting can be seen in the section 'Highlight colors & backgrounds'    *
*   below. As given, highlighting is done by applying the admin specified calendar        *
*   entry color to the date, bolded, on the default background. Commented example given   *
*   of using bold white on a background box of the admin specified calendar entry color.  *
******************************************************************************************/
global $scripturl, $modSettings, $options, $context, $user_info, $sourcedir, $txt;

// Program Paramters/Switches Section

// use forum's date/time
// include user's time offset to forum date/time
$now = mktime() + (($user_info['time_offset'] + $modSettings['time_offset']) * 3600);

// Order to do highlightling - earlier have precedence
$order_hilites = array('Birthdays', 'Events', 'Holidays');

// Order to show calendar entry lists
$order_lists = array('Birthdays', 'Events', 'Holidays');

// Alignment of calendar entry lists
$align_list_entries = 'left';

// Use 'bordercolor' class for 'gridlines' (table background)
$bordercolor_gridlines = true; // Will 'show through' between table cells to act as 'grid lines'
$gridlines_thickness = 2;       // Pixel thickness for table "cellspacing" - only used w/ $bordercolor_gridlines = true;

// Letters to show on calendar for names of each of the days
$day_name_length = 2;

// Selection for first day of the week: 0-Sunday; 1-Monday
$first_day = !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0;

// Show B-Day list at all / to guests
$show_bdays = true;
$show_bdays_to_guests = true;

// Show Event list at all / to guests
$show_events = true;
$show_events_to_guests = true;

// Show Holiday list at all / to guests
$show_hdays = true;
$show_hdays_to_guests = true;

// If true, calendar date numbers link to calendar event posting form
// if not, links to full calendar page
$date_links_to_posting = true;

// Adds 'Post Event' button to bottom of block
$show_post_event_button = true;

// Highlight events, b-days, holidays (only if they're selected to show at all)
$show_hilites = true;

// Colors for saturday & sunday
$color_sunday = '#B8704D';    // comment out to use default text colors -
$color_saturday = '#B8704D';  //   can use hex codes with leading '#'

// Style to use for 'Today' highlight (color & background)
// example:
//  'color:#000000; background-color:#FFFFFF;';
$style_today = 'color:#B8704D; font-weight:bold; background-color:#D1D1D1;';
// and / or
// Class to use for 'Today' highlight
$class_today = 'tborder';

// Default class to use when no other class specified
$class_default = 'windowbg';

// Class to use for column top day names
$class_day_names = '';  // Ex.: titlebg, catbg, catbg2, catbg3, windowbg, windowbg2, windowbg3

// Class for 'cells' holding text labels on calendar entry lists
$list_label_class = 'bordercolor'; // Ex.: titlebg, catbg, catbg2, catbg3, windowbg, windowbg2, windowbg3

// Class for 'cells' holding calendar entry lists
//   use regular variable for all same class
//   use two-member array to alternate between the two
// examples:
//  $list_entry_class = 'windowbg';
//  $list_entry_class = array('windowbg2','windowbg3');
$list_entry_class = '';

// Highlight style (colors & backgrounds & font)
// example:
//  'font-weight:bold; color:#ff0000; background-color:#ffffff;';
// and / or
// Highlight class (a existing class name)
// example:
//  'myclassname';
$hilite_bday_style = 'font-weight:bold;';
$hilite_bday_class = 'birthday'; // default style

$hilite_hday_style = 'font-weight:bold;';
$hilite_hday_class = 'holiday'; // default style

$hilite_event_style = 'font-weight:bold;';
$hilite_event_class = 'event'; // default style

// Choose to show 'look-behind' for the various entry types
$show_bdays_past = false;
$show_events_past = false;
$show_hdays_past = false;

// For any of the above chosen, days prior to today to display -
//    use '0' (zero) to use beginning of current month
$past_look_behind_period = 0;

// Non-English Labels, Month and Day Names
// To use Month and Day names other than the default on your server,
//   remove the two asterisk '*******' lines (the first starts with '/***'
//   and the second ends '***/') and supply the List Section Labels and the
//   Month and Day names to use per instructions below.
$list_label_bdays = 'Birthdays';  // Change to labels in language of choice
$list_label_events = 'Events';
$list_label_hdays = 'Holidays';
// $list_label_bdays = 'Cumpleaños'; 
// $list_label_events = 'Fiestas';
// $list_label_hdays = 'Festivos';

// specify all the day names in desired language
// The Startday is set according the Firstday in the Member profile
$day_names = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// $day_names = array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado');

// setup the day_names array according the Memberprofile
$i = $first_day;
while(!empty($i))
{
$fd = array_shift($day_names);
array_push($day_names, $fd);
$i--;
}

// specify the month names in desired language
$month_nam = array();
$month_nam['01'] = 'January';       
$month_nam['02'] = 'February';
$month_nam['03'] = 'March';
$month_nam['04'] = 'April';
$month_nam['05'] = 'May';
$month_nam['06'] = 'June';
$month_nam['07'] = 'July';
$month_nam['08'] = 'August';
$month_nam['09'] = 'September';
$month_nam['10'] = 'October';
$month_nam['11'] = 'November';
$month_nam['12'] = 'December';

// $month_nam['01'] = 'Enero';       
// $month_nam['02'] = 'Febrero';
// $month_nam['03'] = 'Marzo';
// $month_nam['04'] = 'Abril';
// $month_nam['05'] = 'Mayo';
// $month_nam['06'] = 'Junio';
// $month_nam['07'] = 'Julio';
// $month_nam['08'] = 'Agosto';
// $month_nam['09'] = 'Septiembre';
// $month_nam['10'] = 'Octubre';
// $month_nam['11'] = 'Noviembre';
// $month_nam['12'] = 'Diciembre';

$month_name = $month_nam[date('m',$now)];
//NAMES (end)

//  Program Paramters/Switches Section - End
//    (modify below at your own risk!!!)

if (empty($class_default))
$class_default = 'windowbg';

if (empty($hilite_bday_style))
$hilite_bday_class = $class_default;

if (empty($hilite_hday_class))
$hilite_hday_class = $class_default;

if (empty($hilite_event_class))
$hilite_event_class = $class_default;

$table_bkgrd = 'class="'.$class_default.'" cellspacing="1" cellpadding="1" style="margin:0 auto; text-align:center;"';
if ($bordercolor_gridlines)
$table_bkgrd = 'cellspacing="'.$gridlines_thickness.'" cellpadding="1" style="margin:0 auto; text-align:center;"';

$today = strftime('%d', $now);
$year = date('Y',$now);
$month = date('n',$now);
$nowdate = strftime('%Y-%m-%d', $now);

$month_href = $scripturl . '?action=calendar;year='.$year.';month='.$month;

require_once($sourcedir . '/Subs-Calendar.php');

$low_date_base = strftime('%Y-%m-%d', $now - 24 * 3600);
$high_date_base = strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600);

$low_date = ($show_bdays_past || $show_events_past || $show_hdays_past) ? ( ($past_look_behind_period == 0) ? date('Y',$now).'-'.date('m',$now).'-01' : strftime('%Y-%m-%d', $now - (($past_look_behind_period + 1) * 24 * 3600)) ) : $low_date_base;
$high_date = $high_date_base;
$low_date_ts = strtotime($low_date);

if ($show_bdays)
{
$bdays = $show_bdays_past ? getBirthdayRange($low_date, $high_date) : getBirthdayRange($low_date_base, $high_date);
ksort($bdays);
}

if ($show_events)
{
$events = $show_events_past ? getEventRange($low_date, $high_date, false) : getEventRange($low_date_base, $high_date, false);
ksort($events);
}

if ($show_hdays)
{
$holidays = $show_hdays_past ? getHolidayRange($low_date, $high_date) : getHolidayRange($low_date_base, $high_date);
ksort($holidays);
}

$stub = '<a style="'.$style_today.'padding: 0px 2px 0px 2px;"';
// Highlighted 'Today' Box
if ($date_links_to_posting && allowedTo('calendar_post'))
$days = array($today => array(NULL, $class_today, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.date('j',$now).'</a>'));
else
$days = array($today => array(NULL, $class_today, $stub.' href="'.htmlspecialchars($month_href).'" target="_self">'.date('j',$now).'</a>'));

// HIGHLIGHTING (start)
if ($show_hilites)
{
foreach($order_hilites as $hilite_to_do)
{
$flag = strtoupper(substr($hilite_to_do,0,1));

// B-Day Highlighting
if ($flag == 'B')
{
if ($show_bdays)
{
if ($show_bdays_to_guests || !$user_info['is_guest'])
{
$stub = '<a style="'. $hilite_bday_style .'padding: 0px 2px 0px 2px;"';
foreach($bdays as $startdate => $value)
{
if(!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_bday_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_bday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_bday_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_bday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}

// Event Highlighting
if ($flag == 'E')
{
if ($show_events)
{
if ($show_events_to_guests || !$user_info['is_guest'])
{
$stub = '<a style="'. $hilite_event_style .'padding: 0px 2px 0px 2px;"';
foreach($events as $startdate => $value)
{
if(!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_event_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_event_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_event_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_event_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}

// Holiday Highlighting
if ($flag == 'H')
{
if ($show_hdays)
{
if ($show_hdays_to_guests || !$user_info['is_guest'])
{
$stub = '<a style="'. $hilite_hday_style .'padding: 0px 2px 0px 2px;"';
foreach($holidays as $startdate => $value)
{
if (!isset($days[substr($startdate,8)]) || !is_array($days[substr($startdate,8)]))
{
if (substr($startdate,0,7) == substr($nowdate,0,7))
{
if ($date_links_to_posting && allowedTo('calendar_post'))
$days[substr($startdate,8)] = array(NULL, $hilite_hday_class, $stub.' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($startdate,8).'" target="_self"><span class="'.$hilite_hday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
else
$days[substr($startdate,8)] = array(NULL, $hilite_hday_class, $stub.' href="'.htmlspecialchars($month_href).'" target="_self"><span class="'.$hilite_hday_class.'">'.sprintf('%d',substr($startdate,8)).'</span></a>');
}
}
}
}
}
}
}
}
// HIGHLIGHTING (end)

$first_of_month = gmmktime(0,0,0,$month,1,$year);
list($month, $year, $weekday) = explode(',',gmstrftime('%m,%Y,%w',$first_of_month));

if (!isset($month_nam['12']))
{
$day_names = array();                                      // generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400)    // January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t));           // %A means full textual day name
list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
}

$weekday = ($weekday + 7 - $first_day) % 7;                // adjust for $first_day
$title   = htmlentities(ucfirst($month_name)).' '.$year;   // note that some locales don't capitalize month and day names

$calendar = '<table '.$table_bkgrd.'>'.'<caption >'.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).'</caption><tr>';

if (empty($class_day_names))
$class_day_names = $class_default;

if($day_name_length)
{                                      #if the day names should be shown ($day_name_length > 0)
foreach($day_names as $d)
$calendar .= '<th class="'.$class_day_names.'" align="center" valign="middle" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= '</tr><tr style="text-align:right;">';
}

if($weekday > 0)
$calendar .= '<td class="'.$class_default.'" colspan="'.$weekday.'"> </td>'; #initial 'empty' days

for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++)
{
if($weekday == 7)
{
$weekday   = 0; #start a new week
$calendar .= '</tr><tr style="text-align:right;">';
}

$daynow = sprintf('%02d',$day);
$col_width = ' width="14%"';
if (((($weekday+$first_day) % 7) == 0) || ((($weekday+$first_day) % 7) == 0))
$col_width = ' width="15%"';

if(isset($days[$daynow]) && is_array($days[$daynow]))
{
@list($link, $classes, $content) = $days[$daynow];
if(is_null($content)) 
$content  = $daynow;
$calendar .= '<td'.$col_width.' align="center" valign="middle" '.($classes ? ' class="'.htmlspecialchars($classes).'" style="padding: 0px 0px 0px 0px;font-size: x-small;">' : '>').($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= '<td'.$col_width.' class="'.$class_default.'" align="center" valign="middle" style="padding: 0px 0px 0px 0px;font-size: x-small;"><a ';
if (((($weekday+$first_day) % 7) == 0) && isset($color_sunday))
$calendar .= ' style="color:'.$color_sunday.';"';
if (((($weekday+$first_day) % 7) == 6) && isset($color_saturday))
$calendar .= ' style="color:'.$color_saturday.';"';
if ($date_links_to_posting && allowedTo('calendar_post'))
$calendar .= ' href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$day.'" target="_self">'.$day.'</a></td>';
else
$calendar .= ' href="'.htmlspecialchars($month_href).'" target="_self">'.$day.'</a></td>';
}
}

if($weekday != 7)
$calendar .= '<td class="'.$class_default.'" colspan="'.(7-$weekday).'"> </td>'; #remaining "empty" days

echo $calendar.'</tr>';

foreach($order_lists as $list_to_do)
{
$flag = strtoupper(substr($list_to_do,0,1));

if (!isset($align_list_entries))
$align_list_entries = 'center';
elseif ($align_list_entries <> 'left')
$align_list_entries = 'center';

if (empty($list_label_class))
$list_label_class = $class_default;

if (empty($list_entry_class))
$list_entry_class = $class_default;

// BIRTHDAY SECTION
if(($flag == 'B') && $show_bdays)
{
if($show_bdays_to_guests || !$user_info['is_guest'])
{
if (!empty($bdays))
{
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" align="center" style="font-weight: bold;">'.$list_label_bdays.'</td></tr>';
$ctr = 0;

foreach($bdays as $startdate => $bday_date)
{
if (($startdate >= strftime('%Y-%m-%d', $low_date_ts)) && ($startdate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
foreach ($bday_date as $member)
{
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';
$birthdate = strtotime($startdate);
$text_start = !isset($month_nam['12']) ? date("M j",$birthdate) : substr($month_nam[strftime('%m', $birthdate)],0,3) . date(" j",$birthdate);

echo '<tr'.$class_to_use.'><td colspan="7" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . ':</strong></a> ';
echo '<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '">' . '<span class="'.$hilite_bday_class.'">' . ( ($nowdate == $startdate) ? '<b>' : '') . $member['name'] . (isset($member['age']) ? '(' . $member['age'] . ')' : '') . ( ($nowdate == $startdate) ? '</b>' : '') . '</span>' . '</a>';
echo '</td></tr>';
}
}
}
}
}
}

// EVENTS SECTION
if(($flag == 'E') && $show_events)
{
if($show_events_to_guests || !$user_info['is_guest'])
{
if (!empty($events))
{
$events_printed = array();
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" align="center" style="font-weight: bold;">'.$list_label_events.'</td></tr>';
$ctr = 0;

foreach ($events as $startdate => $evt_date)
{
if (($startdate >= strftime('%Y-%m-%d', $low_date_ts)) && ($startdate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
foreach ($evt_date as $event)
{
if (!in_array($event['id'],$events_printed))
{
$events_printed[] = $event['id'];
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';

$evt_start = strtotime($event['start_date']);
$evt_end = strtotime($event['end_date']);
$text_start = !isset($month_nam['12']) ? date("M j",$evt_start) : substr($month_nam[strftime('%m', $evt_start)],0,3) . date(" j",$evt_start);
$text_end = ($event['start_date'] == $event['end_date'] ? '' : '-'. (substr($event['start_date'],5,2) == substr($event['end_date'],5,2) ? date("j",$evt_end) : (!isset($month_nam['12']) ? date("M j",$evt_end) : substr($month_nam[strftime('%m', $evt_start)],0,3) . date(" j",$evt_start))));

$link = $event['topic'] == 0 ? '<span class="'.$hilite_event_class.'">'. $event['title'] .'</span>' : '<a href="' . $scripturl . '?topic=' . $event['topic'] . '.0' . '"><span class="'.$hilite_event_class.'">' . $event['title'] . '</span></a>';

echo '<tr'.$class_to_use.'><td colspan="7" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . $text_end . ':</strong></a> ';
echo  ( ($nowdate >= $event['start_date']) && ($event['end_date'] >= $nowdate) ) ? '<b>'.$link.'</b>' : $link;
echo '</td></tr>';
}
}
}
}
}
}
}

// HOLIDAY SECTION
if(($flag == 'H') && $show_hdays)
{
if($show_hdays_to_guests || !$user_info['is_guest'])
{
if (!empty($holidays))
{
echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" align="center" style="font-weight: bold;">'.$list_label_hdays.'</td></tr>';
$ctr = 0;

foreach ($holidays as $hDate => $hday)
{
if (($hDate >= strftime('%Y-%m-%d', $low_date_ts)) && ($hDate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600)))
{
$eventdate = strtotime(date("Y").substr($hDate, 4));
foreach ($hday as $holiday)
{
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';
$text_start = !isset($month_nam['12']) ? date("M j",$eventdate) : substr($month_nam[strftime('%m', $eventdate)],0,3) . date(" j",$eventdate);

echo '<tr'.$class_to_use.'><td colspan="7" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';
echo '<a href="', $scripturl, '?action=calendar;year=' . date("Y") . ';month=' . substr($startdate,5,2) . '"><strong>' . $text_start . ':</strong></a> ';
echo '<span class="'.$hilite_hday_class.'">'.$holiday.'</span>';
echo '</td></tr>';
}
}
}
}
}
}
}

if ($show_post_event_button)
{
if (allowedTo('calendar_post'))
{
echo '<tr><td colspan="7" class="'.$class_default.'" align="center" valign="middle">';
echo '<hr/ >';
echo '<a href="', $scripturl,  '?action=calendar;sa=post;month=', $month, ';year=', $year, ';sesc=', $context['session_id'], '">','<br />', create_button('calendar_post_event', 'calendar_post_event'), '</a>';
echo '</td></tr>';
}
}

echo '</table>';
 

 _/\_
(Johann im Arbeitsgewand)
Title: [11] Fehlende Seiten-Icons
Post by: Dhammañāṇa on September 20, 2014, 07:22:49 AM
Ein paar fehlende Bilder, die die Seiten aufrufen wollen, zur späteren Aufarbeitung.

http://forum.sangham.net/Themes/sangham/images/buttons/calendar_post_event
http://forum.sangham.net/Themes/default/images/post/theme.gif

(siehe blaue Fragezeichen auf Screenshot)

Hat Attma wahrscheinlich bei der letzten Layoutbearbeitung nicht alles vollständig in die passenden Ordner kopiert, und nicht aufgefallen, da Browser die Bilder aus dem Zwischenspeicher holte.
Title: [12] The email template "admin_register_activate" could not be found
Post by: Administration on April 12, 2015, 11:41:50 PM
   
Quote
Administration
Apply Filter: Only show the error messages of this IP address 115.178.26.161 
     Reverse chronological order of list Today at 05:19:06 pm
Apply Filter: Only show the error messages of this session 915c360472cf0bb38e920f0a5a9e14d5
Apply Filter: Only show the errors of this type Type of error: Template
Apply Filter: Only show the error messages of this URL
http://forum.sangham.net/index.php?action=admin;area=regcenter
Apply Filter: Only show the errors with the same message
The email template "admin_register_activate" could not be found

Diese Fehlermeldung cam mir unter, ist sicher nicht wichtig hat gefunkt aber es scheint mir, dass da das templet fehlt und noch nie genutzt wurde. Auch von Profis auf SMF nicht, da zu hoher Grundeinstieg und nicht getestet.

/me Weiter Mag der alte Admin, Johann unsere gute Dokumentation anführen und mitteilen, dass man die Behebung stets im SMF-Forum unter den sangham-Benutzkonto findet. (Sehen Sie nur die erfolgten Themen und Posts. Kann man sicher Verbesserungen finden und die Status hier kann mit den ICON leicht sichtbar gemacht werden.
Title: [13] Quick translation
Post by: Administration on April 25, 2015, 01:40:18 AM
 :o sorry I never use such google stuff only in emergency...

Quick tranlation, seem not to work any more and people who are not used to work, could have troubles since there have been no tranlations consequently (out of this reason, I hope you see the dependens problem of comfortable).

It could be that it works if we down grade to 2.0.8 again,  Attma had upgraded to 2.0.9 for a while quick inbetween.

So sorry if he had made troubles, I had no problem with it and maybe it good just to promote a linke like google-translate, that costumers and aspecially usually consumer feel feed well.

How ever you wish.

here a link to the supportforum:

http://www.simplemachines.org/community/index.php?topic=405224.new#new

Tell nobody about that, ok!!  :)

/me was für ein Zufall... und wer soll das jetz glauben? Jetzt wo da keiner schon lange was selbst gemacht hat?
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 25, 2015, 04:02:07 PM
That is really not the time of, "Current SMF version: SMF 2.0.10"... really!  :'(

it takes a li  tttlle ok... <.I.>

/me und yet smst mir da einer um die "150kg"-Bilder... die da igendwo sind... neinn

ok some that, brings me away from everything here till I am donw, from the 4 floor, to the ground again, at rest of secure, three days (not sure..)

yep:

Doing Time - Doing Vipassana In Hindi - Part 1
by VipassanaOrg
(http://)...no no no...

Quote
(https://forum.sangham.net/proxy.php?request=http%3A%2F%2FHOURS+Tibetan+Healing+Sounds+-+Singing+Bowls+-+%5Dhttps%3A%2F%2Fi.ytimg.com%2Fvi%2FOW7TH2U4hps%2Fmqdefault.jpg&hash=330254792c2cafe0a1bcd810f20281c3944a6b47) (https://www.youtube.com/watch?v=OW7TH2U4hps)

9 HOURS Tibetan Healing Sounds - Singing Bowls -
beside that , please no more wishes, 4,5 h thanks!!!  _/\_  _/\_  _/\_

 *sgift*

anumodana!

/me great, chiness cematory starts here at the same moment  *THUMB* :'( :-(

(https://forum.sangham.net/proxy.php?request=http%3A%2F%2FHOURS+Tibetan+Healing+Sounds+-+Singing+Bowls+-+%5Dhttps%3A%2F%2Fi.ytimg.com%2Fvi%2FOW7TH2U4hps%2Fmqdefault.jpg&hash=330254792c2cafe0a1bcd810f20281c3944a6b47) (https://www.youtube.com/watch?v=OW7TH2U4hps)

(https://forum.sangham.net/proxy.php?request=http%3A%2F%2FHOURS+Tibetan+Healing+Sounds+-+Singing+Bowls+-+%5Dhttps%3A%2F%2Fi.ytimg.com%2Fvi%2FOW7TH2U4hps%2Fmqdefault.jpg&hash=330254792c2cafe0a1bcd810f20281c3944a6b47) (https://www.youtube.com/watch?v=OW7TH2U4hps)




(https://forum.sangham.net/proxy.php?request=http%3A%2F%2FHOURS+Tibetan+Healing+Sounds+-+Singing+Bowls+-+%5Dhttps%3A%2F%2Fi.ytimg.com%2Fvi%2FOW7TH2U4hps%2Fmqdefault.jpg&hash=330254792c2cafe0a1bcd810f20281c3944a6b47) (https://www.youtube.com/watch?v=OW7TH2U4hps)









(https://forum.sangham.net/proxy.php?request=http%3A%2F%2FHOURS+Tibetan+Healing+Sounds+-+Singing+Bowls+-+%5Dhttps%3A%2F%2Fi.ytimg.com%2Fvi%2FOW7TH2U4hps%2Fmqdefault.jpg&hash=330254792c2cafe0a1bcd810f20281c3944a6b47) (https://www.youtube.com/watch?v=OW7TH2U4hps)

































(https://forum.sangham.net/proxy.php?request=http%3A%2F%2FHOURS+Tibetan+Healing+Sounds+-+Singing+Bowls+-+%5Dhttps%3A%2F%2Fi.ytimg.com%2Fvi%2FOW7TH2U4hps%2Fmqdefault.jpg&hash=330254792c2cafe0a1bcd810f20281c3944a6b47) (https://www.youtube.com/watch?v=OW7TH2U4hps)  :-|












(https://forum.sangham.net/proxy.php?request=http%3A%2F%2FHOURS+Tibetan+Healing+Sounds+-+Singing+Bowls+-+%5Dhttps%3A%2F%2Fi.ytimg.com%2Fvi%2FOW7TH2U4hps%2Fmqdefault.jpg&hash=330254792c2cafe0a1bcd810f20281c3944a6b47) (https://www.youtube.com/watch?v=OW7TH2U4hps)

 :)
Title: [14] Flow - Probleme im Layout
Post by: Dhammañāṇa on May 01, 2015, 12:15:31 PM
Attma hat Überlappungsprobleme was die Grafik betrifft entdeckt und weiß natürlich nicht, ob dies nur in seinem alten Browser passiert, bitte um feedback dazu!

Attma lässt dies mal für später so stehen um es aufzuarbeiten.

Erscheint nur, wenn man das Fenster des Windows kleiner macht als Bildschirm (max Auflösung)

In der Anlage ein Screenshot. Besonders unübersichtlich auf den Moderationsaktionsseiten.
Title: Re: [13] Quick translation
Post by: Dhammañāṇa on May 01, 2015, 12:17:26 PM
:o sorry I never use such google stuff only in emergency...

Quick tranlation, seem not to work any more and people who are not used to work, could have troubles since there have been no tranlations consequently (out of this reason, I hope you see the dependens problem of comfortable).


Scheint wieder zu funktionieren, für alle die es nutzen wollen. Warum auch immer es weg war und welche Devas es auch immer wieder möglich gemacht haben.

Sadhu!
Title: [15] Direkt aus dem Erstellen eines Download im TP ein Thema erstellen, nicht ok
Post by: Dhammañāṇa on May 04, 2015, 12:05:17 PM
Das Tinyportal und der Downloadbereich darin, hat eine herliche Funktion, die vieles leicht gemacht hatte, das gleichzeitige erstellen eines Themas in einem ausgewählten Forum beim beim Hochladen eines Download.

Attma ist nicht sicher ob er das schon erwähnt hatte, diese funktioniert schon lange nicht mehr und führt zu Aufwand, den man damit nicht hätte. Attma hat diese Sache, wenn er sich recht erinnert, auch auf im TP-Forum schon mal zum Thema gemacht. Wahrscheinlich waren da alle gerade mit anderem beschäftigt dort, wie auch immer, hier der Link dazu.

Attma denkt, das da "einfach" ein kleines script irgendwo ev. gelöscht wurde, oder durch das Updaten von SMF von damal 2.0.3 bis zum veränderten Punkt, ein Bezug verloren gegangen ist. und da eigentlich außer etwas neu suchen nicht viel zu machen wäre. Klingt einfach, kann aber Wochen kosten, wenn's nicht gerade wird/will.

Werde kurz ins TP-Forum sehen und den TP account von Sangham.net nutzen. Attma nimmt an, das dies da sicher recht ist.

"Create new topic" function for uploads does not work (http://www.tinyportal.net/index.php?topic=35164.msg280824#msg280824)
Title: Re: Kalender-Block
Post by: Dhammañāṇa on May 04, 2015, 12:45:58 PM
"Neues darüber aus dem TP-Forum

Quote from: http://www.tinyportal.net
Quote from: Johann, Today at 11:38:26 PM http://www.tinyportal.net/index.php?topic=33767.msg283960#msg283960
Quote from: ZarPrime on March 26, 2014, 06:50:00 AM, http://www.tinyportal.net/index.php?topic=33767.msg282107#msg282107
I looked at your site and the mini-calendar seems OK from what I can tell.  You could be right about issues with html 5 so I will take a look at that in the next week or so as I find time.  However, even if something in the code is deprecated in html 5, the code should still revert to showing everything OK.  As far as the button to post an event goes, you are aware that a non-admin who can't add events wouldn't even see the button, correct?

ZarPrime

Attma (me, Johann) guesses, he is now aware of what he sometimes just have been curious last time, Danke für all die Hilfe und Tipps ZarPrime.

Will forward you supports also to sangham.net's silent helpers.

Sadhu!
metta (goodwill/Wohlwollen) & mudita (sympathic joy/Mitfreunde an Geschicktem or appreciation/Anerkennung von Geschicktem)

May I turst that anything else if fine for all of you.

Gibt immer wieder Fehlermeldungen im Log, übrigens, dieser Tipp von werter/em ZarPrime, Helfer im TP-Forum.
Title: Sonderzeichenanzeige im Kalender ev. anderenorts
Post by: Dhammañāṇa on May 05, 2015, 10:45:21 AM
Attma gerade bemerkt, und noch nicht genauer gesucht. Beispiel in Anlage.
Title: Re: [14] Flow - Probleme im Layout
Post by: Administration on May 05, 2015, 11:09:59 PM
Attma hat Überlappungsprobleme was die Grafik betrifft entdeckt und weiß natürlich nicht, ob dies nur in seinem alten Browser passiert, bitte um feedback dazu!

Attma lässt dies mal für später so stehen um es aufzuarbeiten.

Erscheint nur, wenn man das Fenster des Windows kleiner macht als Bildschirm (max Auflösung)

In der Anlage ein Screenshot. Besonders unübersichtlich auf den Moderationsaktionsseiten.

Attma (im Arbeitsgewand) hat etwas herum gepastelt und zumindest im Bereich Moderation, denkt er, das es nun passt.
Weiters hat Attma versucht etwas mehr "Platz" und übersichtlichkeit im der Postansicht und was den Avatar-Bereich, Kopf und Fuß der Posts betrifft, etwas dezenter zu machen.

Sollten da irgendwelche Dinge auftauchen, bitte Bescheid geben und sicherheitshalter hier das css vor diesen Eingriffen:
Code: [Select]
/* Styles for the general looks for Sangham theme, originated from the Curve theme.
------------------------------------------------------- */

/* Normal, standard links. */
a:link, a:visited
{
   color: #B8704D;
   text-decoration: none;
}
a:hover
{
   text-decoration: underline;
   cursor: pointer;
}

/* Links that open in a new window. */
a.new_win:link, a.new_win:visited
{
   color: #346;
   text-decoration: none;
}
a.new_win:hover
{
   text-decoration: underline;
}

/* Tables should show empty cells. */
table
{
   empty-cells: show;
}

/* Set a fontsize that will look the same in all browsers. */
body
{
   background: #FFFFFF url(../images/theme/backdrop_sw1.png) repeat-x;
   font: 78%/130% "New Courier", "Verdana", "Arial", "Helvetica", sans-serif;
   margin: 0 auto;
   padding: 15px 0;
}

/* Help popups require a different styling of the body element. */
body#help_popup
{
   padding: 1em;
}

/* use dark grey for the text, leaving #000 for headers etc */
body, td, th, tr
{
   color: #444;
}

/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
   margin: 0 auto;
   min-width: 764px;
   max-width: 2300px;
}

/* lets give all forms zero padding/margins */
form
{
   padding: 0;
   margin: 0;
}

/* We can style the different types of input buttons to be uniform throughout different browsers and their color themes.
   .button_submit - covers input[type=submit], input[type=button], button[type=submit] and button[type=button] in all browsers
   .button_reset  - covers input[type=reset] and button[type=reset] throughout all browsers
   .input_check   - covers input[type=checkbox] throughout all browsers
   .input_radio   - covers input[type=radio] throughout all browsers
   .input_text    - covers input[type=text] throughout all browsers
   .input_file    - covers input[type=file] throughout all browsers
*/

input, button, select, textarea
{
   font: 95%/115% verdana, Helvetica, sans-serif;
   color: #000;
   background: #fff;
   border: 1px solid #7f9db9;
   padding: 2px;
}

/* Select elements look horrible with the extra padding, so leave them unpadded. */
select
{
   padding: 0;
}

/* Add some padding to the options instead. */
select option
{
   padding: 1px;
}

/* The font size of textareas should be just a little bit larger. */
textarea
{
   font: 100%/130% verdana, Helvetica, sans-serif;
}

/* Buttons should be styled a bit differently, in order to make them look more button'ish. */
.button_submit, .button_reset
{
   background: #cde7ff url(../images/theme/submit_bg1.png) no-repeat;
   border: 1px solid #aaa;
   cursor: pointer;
   font-weight: normal;
}
input:hover, textarea:hover, button:hover, select:hover
{
   border: 1px solid #454545;
}
.button_submit:hover, .button_reset:hover
{
   border: 1px solid #aaa;
   background: url(../images/theme/submit_bg1.png) no-repeat 0 -140px #cde7ff;
}
input:focus, textarea:focus, button:focus, select:focus
{
   border: 1px solid #454545;
}

/* All input elements that are checkboxes or radio buttons shouldn't have a border around them. */
input.input_check, input.input_radio
{
   border: none;
   background: none;
}
h3.catbg input.input_check
{
   margin: 9px 7px 0 7px;
}

/* Give disabled text input elements a different background color. */
input[disabled].input_text
{
   background-color: #eee;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{
   height: 1px;
   border: 0;
   color: #ccc;
   background-color: #ccc;
}

/* By default set the color on these tags as #000. */
h1, h2, h3, h4, h5, h6
{
   color: #000;
   font-size: 1em;
   margin: 0;
   padding: 0;
}

/* Fieldsets are used to group elements. */
fieldset
{
   border: 1px solid #c4c4c4;
   padding: 1em;
   margin: 0 0 0.5em 0;
}
fieldset legend
{
   font-weight: bold;
   color: #444;
}
/* No image should have a border when linked. */
a img
{
   border: 0;
}

/* Define strong as bold, and em as italics */
strong
{
   font-weight: bold;
}

em
{
   font-style: italic;
}
/* Alternative for u tag */
.underline
{
   text-decoration: underline;
}

/* Common classes to easy styling.
------------------------------------------------------- */

.floatright
{
   float: right;
}
.floatleft
{
   float: left;
}

.flow_auto
{
   overflow: auto;
}
.flow_hidden
{
   overflow: hidden;
}
.flow_hidden .windowbg, .flow_hidden .windowbg2
{
   margin-top: 2px;
}
.clear
{
   clear: both;
}
.clear_left
{
   clear: left;
}
.clear_right
{
   clear: right;
}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext, tr.smalltext th
{
   font-size: 0.85em;
   font-family: verdana, sans-serif;
}
.middletext
{
   font-size: 0.9em;
   line-height: 1em;
   font-family: verdana, sans-serif;
}
.normaltext
{
   font-size: 1em;
   line-height: 1.2em;
}
.largetext
{
   font-size: 1.4em;
}
.centertext
{
   margin: 0 auto;
   text-align: center;
}
.righttext
{
   margin-left: auto;
   margin-right: 0;
   text-align: right;
}
.lefttext
{
   margin-left: 0;
   margin-right: auto;
   text-align: left;
}
.double_height
{
   line-height: 2em;
}
/* some common padding styles */
.padding
{
   padding: 0.7em;
}
.main_section, .lower_padding
{
   padding-bottom: 0.5em;
}
/* a quick reset list class. */
ul.reset, ul.reset li
{
   padding: 0;
   margin: 0;
   list-style: none;
}

/* Some BBC related styles.
------------------------------------------------------- */

/* A quote, perhaps from another post. */
blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote
{
   font-size: x-small;
   color: #5F5F5F;
   line-height: 1.4em;
   background: url(../images/theme/quote.png) 0.02em 0.02em no-repeat;
   border-top: 2.5px solid #999;
   border-bottom: 1.5px solid #EAEAE5;
   border-left: 1.5px solid #999;
   border-right: 1.5px solid #EAEAE5;
   border-bottom-right-radius:0.5em;
   border-bottom-left-radius:0.5em;
   border-top-right-radius:0.5em;
   border-top-left-radius:0.5em;
   padding: 1.1em 1.4em;
   margin: 0.1em 0 0.3em 0em;
   overflow: auto;
}

/* Dhammaquote dquote. */
.dquote
{
   font-size: x-small;
   color: #5F5F5F;
   text-align: justify;
   background-color: #ffffff;
   line-height: 1.4em;
   border-top: 2.5px solid #999;
   border-left: 1.5px solid #999;
   border-right: 1.5px solid #999;
   border-bottom: 2.5px solid #999;
   border-top-right-radius:0.5em;
   border-top-left-radius:0.5em;
   border-bottom-right-radius:0.5em;
   border-bottom-left-radius:0.5em;
   padding: 1.1em 1.4em;
   margin: 1.1em 0 0em 0;
   overflow: auto;
}

/* Alterate blockquote stylings */
blockquote.bbc_standard_quote
{
   background-color: #F9F9F7;
}
blockquote.bbc_alternate_quote
{
   background-color: #ffffff;
}

/* A code block - maybe PHP ;). */
code.bbc_code
{
   display: block;
   font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
   font-size: x-small;
   background: #F9F9F7;
   border-top: 1px solid #999;
   border-bottom: 1px solid #999;
   border-left: 1px solid #999;
   border-right: 1px solid #999;
   border-bottom-right-radius:0.2em;
   border-bottom-left-radius:0.2em;
   border-top-right-radius:0.2em;
   border-top-left-radius:0.2em;
   line-height: 1.5em;
   padding: 3px 1em;
   overflow: auto;
   white-space: nowrap;
   /* Show a scrollbar after about 24 lines. */
   max-height: 24em;
}

/* The "Quote:" and "Code:" header parts... */
.codeheader, .quoteheader
{
   color: #666;
   font-size: x-small;
   font-weight: bold;
   padding: 0 0.3em;
}

/* The Dhammaquote "dquote:" header parts... */
.dquoteheader
{
   color: #999;
   font-size: x-small;
   text-align: center;
   font-weight: bold;
   padding: 0.3em 0.5em;
}

/* The Dhammaquote "dquote:" footer parts... */
.quotefooter
{
   color: #666;
   font-size: x-small;
   text-align: right;
   font-style:italic;
   padding: 0.3em 0.3em 0.3em 1.3em;
   line-height: 1.4em;
}

/* For links to change the code stuff... */
.codeoperation
{
   font-weight: normal;
}

/* Styling for BBC tags */
.bbc_link:link, .bbc_link:visited
{
   border-bottom: 1px solid #A8B6CF;
}
.bbc_link:hover
{
   text-decoration: none;
   border-bottom: 1px solid #346;
}
.bbc_size
{
   line-height: 1.4em;
}
.bbc_color a
{
   color: inherit;
}
.bbc_img
{
   border: 0;
}
.bbc_table
{
   font: inherit;
   color: inherit;
}
.bbc_table td
{
   font: inherit;
   color: inherit;
   vertical-align: top;
}
.bbc_u
{
   text-decoration: underline;
}
.bbc_list
{
   text-align: left;
}
.bbc_tt
{
   font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help
{
   cursor: help;
}

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
   color: green;
   text-align: right;
   font-style: italic;
   border-top: 1px solid #999;
   border-left: 1px solid #999;
   border-radius: 1em;
   padding: 0.5em 0.5em 0.5em 0.5em;
   margin: 1.1em 1em 1em 8em;
}

/* Highlighted text - such as search results. */
.highlight
{
   font-weight: bold;
   color: #ff7200 !important;
   font-size: 1.1em;
}

/* A more discreet highlight color, for selected membergroups etc. */
.highlight2
{
   background-color: #D1E1EF;
   color: #000 !important;
}

/* Generic, mostly color-related, classes.
------------------------------------------------------- */

.titlebg, .titlebg2, tr.titlebg th, tr.titlebg td, tr.titlebg2 td
{
   color: #222;
   font-family: arial, helvetica, sans-serif;
   font-size: 1.1em;
   font-weight: bold;
   background: #e3e9ef url(../images/theme/main_block3.png) no-repeat -10px -380px;
}
.catbg, .catbg2, tr.catbg td, tr.catbg2 td, tr.catbg th, tr.catbg2 th
{
   color: #fff;
   font-family: arial, helvetica, sans-serif;
   font-size: 1.1em;
   font-weight: bold;
   background: #a7b9cd url(../images/theme/main_block3.png) no-repeat -10px -280px;
}

/* adjust the table versions of headers */
tr.titlebg th, tr.titlebg2 th, td.titlebg, td.titlebg2, tr.catbg th, tr.catbg2 th, td.catbg, td.catbg2
{
   padding: 0 6px;
}
tr.titlebg th a:link, tr.titlebg th a:visited, tr.titlebg2 td a:link, tr.titlebg2 td a:visited
{
   color: #222;
}
tr.catbg th a:link, tr.catbg th a:visited, tr.catbg2 td a:link, tr.catbg2 td a:visited
{
   color: #fff;
}
.catbg select
{
   height: 1.5em;
   font-size: 0.85em;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg, #preview_body
{
   color: #000;
   background-color: #FBFBFA;
}
.windowbg2
{
   color: #000;
   background-color: #FEFEFE;
   border-bottom: 2px solid #fff;
}
.windowbg3
{
   color: #000;
   background-color: #cacdd3;
}

/* the page navigation area */
.pagesection
{
   font-size: 0.9em;
   padding: 0.2em;
   overflow: hidden;
   margin-bottom: 1px;
}
div.pagesection div.floatright input
{
   margin-top: 3px;
}

.pagelinks
{
   padding: 0.6em 0 0.4em 0;
}

/* Colors for background of posts requiring approval */
.approvebg
{
   color: #000;
   background-color: #ffeaea;
}
.approvebg2
{
   color: #000;
   background-color: #fff2f2;
}

/* Color for background of *topics* requiring approval */
.approvetbg
{
   color: #000;
   background-color: #e4a17c;
}
.approvetbg2
{
   color: #000;
   background-color: #f3bd9f;
}

/* Sticky topics get a different background */
.stickybg
{
   background: #e8d8cf;
}
.stickybg2
{
   background: #f2e3d9;
}

/* Locked posts get a different shade, too! */
.lockedbg
{
   background: #d4dce2;
   font-style: italic;
}
.lockedbg2
{
   background: #d8e1e7;
   font-style: italic;
}

/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
   overflow: auto;
   line-height: 1.4em;
   padding: 0.1em 0;
}

/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature, .attachments
{
   width: 98%;
   overflow: auto;
   clear: right;
   padding: 1em 0 3px 0;
   border-top: 1px solid #aaa;
   line-height: 1.4em;
   font-size: 0.85em;
}
.custom_fields_above_signature
{
   width: 98%;
   clear: right;
   padding: 1em 0 3px 0;
   border-top: 1px solid #aaa;
   line-height: 1.4em;
   font-size: 0.85em;
}

/* Sometimes there will be an error when you post */
.error
{
   color: red;
}

/* Messages that somehow need to attract the attention. */
.alert
{
   color: red;
}

/* Calendar colors for birthdays, events and holidays */
.birthday
{
   color: #DEB6ED;
}

.event
{
   color: #5CD65C;
}

.holiday
{
   color: #8080C0;
}

/* Colors for warnings */
.warn_mute
{
   color: red;
}

.warn_moderate
{
   color: #ffa500;
}

.warn_watch, .success
{
   color: green;
}

a.moderation_link, a.moderation_link:visited
{
   color: red;
   font-weight: bold;
}

.openid_login
{
   background: white url(../images/openid.gif) no-repeat;
   padding-left: 18px;
}

/* a descriptive style */
.description, .description_board, .plainbox
{
   padding: 0.5em 1em;
   font-size: 0.9em;
   line-height: 1.4em;
   border: 1px solid #bbb;
   background: #f5f5f0;
   margin: 0.2em 1px 1em 1px;
}
.description_board
{
   margin: 1em 1px 0 1px;
}

/* an informative style */
.information
{
   padding: 0.5em 1em;
   font-size: 0.9em;
   line-height: 1.3em;
   border: 1px solid #bbb;
   background: #f0f6f0;
   margin: 0.2em 1px 1em 1px;
}
.information p
{
   padding: 1em;
   margin: 0;
}
p.para2
{
   padding: 1em 0 3.5em 0;
   margin: 0;
}
/* AJAX notification bar
------------------------------------------------------- */
#ajax_in_progress
{
   background: url(../images/theme/loadingbar.png) repeat-x;
   color: #A34719;
   text-align: center;
   font-size: 16pt;
   padding: 8px;
   width: 100%;
   height: 66px;
   line-height: 25px;
   position: fixed;
   top: 0;
   left: 0;
}

#ajax_in_progress a
{
   color: orange;
   text-decoration: underline;
   font-size: smaller;
   float: right;
   margin-right: 20px;
}

/* Lists with settings use these a lot.
------------------------------------------------------- */
dl.settings
{
   clear: right;
   overflow: auto;
   margin: 0 0 10px 0;
   padding: 0;
}
dl.settings dt
{
   width: 40%;
   float: left;
   margin: 0 0 10px 0;
   padding: 0;
   clear: both;
}
dl.settings dt.settings_title
{
   width: 100%;
   float: none;
   margin: 0 0 10px 0;
   padding: 5px 0 0 0;
   font-weight: bold;
   clear: both;
}
dl.settings dt.windowbg
{
   width: 98%;
   float: left;
   margin: 0 0 3px 0;
   padding: 0 0 5px 0;
   clear: both;
}
dl.settings dd
{
   width: 56%;
   float: right;
   overflow: auto;
   margin: 0 0 3px 0;
   padding: 0;
}
dl.settings img
{
   margin: 0 10px 0 0;
}
/* help icons */
dl.settings dt a img
{
   position: relative;
   top: 2px;
}

/* Styles for rounded headers.
------------------------------------------------------- */
h3.catbg, h3.catbg2, h4.titlebg, h4.catbg
{
   overflow: hidden;
   height: 31px;
   line-height: 31px;
   font-size: 1.2em;
   font-weight: bold;
}
h3.titlebg
{
   overflow: hidden;
   height: 31px;
   line-height: 31px;
   font-size: 1.2em;
   font-weight: 600;
}
h3.catbg a:link, h3.catbg a:visited, h4.catbg a:link, h4.catbg a:visited, h3.catbg, .table_list tbody.header td, .table_list tbody.header td a
{
   color: #fff;
}
h3.catbg2 a, h3.catbg2
{
   color: #feb;
}
h3.catbg a:hover, h4.catbg a:hover, .table_list tbody.header td a:hover
{
   color: #fd9;
   text-decoration: none;
}
h3.catbg2 a:hover
{
   color: #fff;
   text-decoration: none;
}
h3.titlebg a, h3.titlebg, h4.titlebg, h4.titlebg a
{
   color: #222;
}
h3.titlebg a:hover, h4.titlebg a:hover
{
   color: #53616f;
   text-decoration: none;
}
h3.catbg img.icon, h4.titlebg img.icon
{
   vertical-align: middle;
   margin: -2px 5px 0 0;
}
h4.catbg a.toggle img
{
   vertical-align: middle;
   margin: -2px 5px 0 5px;
}
h4.catbg, h4.catbg2 , h3.catbg , h3.catbg2 , .table_list tbody.header td.catbg
{
   background: url(../images/theme/main_block3.png) no-repeat 100% -160px;
   padding-right: 9px;
}
h4.titlebg, h3.titlebg
{
   background: url(../images/theme/main_block3.png) no-repeat 100% -200px;
   padding-right: 9px;
}
h4.titlebg img.icon
{
   float: left;
   margin: 5px 8px 0 0;
}
div.cat_bar
{
   background: #ffffff url(../images/theme/main_block3.png) no-repeat 0 -160px;
   padding-left: 9px;
   height: 31px;
   overflow: hidden;
   margin-bottom: 1px;
}
div.title_bar
{
   background: #ffffff url(../images/theme/main_block3.png) no-repeat 0 -200px;
   padding-left: 9px;
   height: 31px;
   overflow: hidden;
   margin-bottom: 1px;
}

/* rounded bars needs a different background here */

div.roundframe div.cat_bar
{
   background: #99abbf url(../images/theme/main_block3.png) no-repeat 0 -240px;
   margin-bottom: 0;
}
div.roundframe div.cat_bar h3.catbg
{
   background: url(../images/theme/main_block3.png) no-repeat 100% -240px;
}
div.title_barIC
{
   background: #dadfe6 url(../images/theme/main_block3.png) no-repeat 0 -120px;
   padding-left: 9px;
   height: 31px;
   overflow: hidden;
   margin-bottom: 1px;
}
div.title_barIC h4.titlebg
{
   background: url(../images/theme/main_block3.png) no-repeat 100% -120px;
}
#upshrinkHeaderIC p.pminfo
{
   margin: 0;
   padding: 0.5em;
}
img#upshrink_ic, img#newsupshrink
{
   float: right;
   margin: 10px 5px 0 0;
}
table.table_list a.unreadlink, table.table_list a.collapse
{
   float: right;
}
table.table_list a.collapse
{
   margin: 10px 5px 0 1em;
   height: 31px;
   line-height: 31px;
}

/* The half-round header bars for some tables. */
.table_grid tr.catbg, .table_grid tr.titlebg
{
   font-size: 0.95em;
   border-bottom: 1px solid #fff;
}
.table_grid tr.catbg th, .table_grid tr.titlebg th
{
   height: 28px;
   line-height: 28px;
}
tr.catbg th.first_th
{
   background: #ffffff url(../images/theme/main_block3.png) no-repeat 0 -280px;
}
tr.catbg th.last_th
{
   background: #ffffff url(../images/theme/main_block3.png) no-repeat 100% -280px;
}
tr.titlebg th.first_th
{
   background: #ffffff url(../images/theme/main_block3.png) no-repeat 0 -380px;
}
tr.titlebg th.last_th
{
   background: #ffffff url(../images/theme/main_block3.png) no-repeat 100% -380px;
}
.table_grid th.last_th input
{
   margin: 0 2px;
}
.table_grid th.lefttext
{
   padding: 0 0.7em;
}

/* a general table class */
table.table_grid
{
   border-collapse: collapse;
   margin-top: 0.1em;
}
table.table_grid td
{
   padding: 3px;
   border-bottom: 1px solid #fff;
   border-right: 1px solid #fff;
}

/* GenericList */
.additional_row
{
   padding: 0.5em 0 0.5em 0;
}
table.table_grid thead tr.catbg th
{
   white-space: nowrap;
}

/* table_grid styles for Profile > Show Permissions. */
#permissions table.table_grid  td
{
   padding: 0.4em 0.8em;
   cursor: default;
}

/* Common styles used to add corners to divisions.
------------------------------------------------------- */
.windowbg span.topslice
{
   display: block;
   padding-left: 20px;
   background: url(../images/theme/main_block3.png) 0 -30px no-repeat;
}
.windowbg span.topslice span
{
   display: block;
   background: url(../images/theme/main_block3.png) 100% -30px no-repeat;
   height: 11px;
}
.windowbg span.botslice
{
   display: block;
   padding-left: 20px;
   background: url(../images/theme/main_block3.png) 0 -40px no-repeat;
   font-size: 5px;
   line-height: 5px;
   margin-bottom: 0.2em;
}
.windowbg span.botslice span
{
   display: block;
   background: url(../images/theme/main_block3.png) 100% -40px no-repeat;
   height: 11px;
}

.windowbg2 span.topslice
{
   display: block;
   padding-left: 20px;
   background: url(../images/theme/main_block3.png) 0 -60px no-repeat;
}
.windowbg2 span.topslice span
{
   display: block;
   background: url(../images/theme/main_block3.png) 100% -60px no-repeat;
   height: 11px;
}
.windowbg2 span.botslice
{
   display: block;
   padding-left: 20px;
   background: url(../images/theme/main_block3.png) 0 -71px no-repeat;
   font-size: 5px;
   line-height: 5px;
   margin-bottom: 0.2em;
}
.windowbg2 span.botslice span
{
   display: block;
   background: url(../images/theme/main_block3.png) 100% -71px no-repeat;
   height: 11px;
}
.approvebg span.topslice
{
   display: block;
   padding-left: 20px;
   background: url(../images/theme/main_block3.png) 0 0 no-repeat;
}
.approvebg span.topslice span
{
   display: block;
   background: url(../images/theme/main_block3.png) 100% 0 no-repeat;
   height: 11px;
}
.approvebg span.botslice
{
   display: block;
   padding-left: 20px;
   background: url(../images/theme/main_block3.png) 0 -11px no-repeat;
   margin-bottom: 0.2em;
}
.approvebg span.botslice span
{
   display: block;
   background: url(../images/theme/main_block3.png) 100% -11px no-repeat;
   height: 11px;
}
.postbg
{
   border-left: 1px solid #7f7f7f;
   border-right: 1px solid #7f7f7f;
}

/* Used for sections that need somewhat larger corners.
----------------------------------------------------------- */
.roundframe
{
   padding: 0 10px;
   background: #f5f5f5;
   border-left: 1px solid #c5c5c5;
   border-right: 1px solid #c5c5c5;
}
.roundframe dl, .roundframe dt, .roundframe p
{
   margin: 0;
}
.roundframe p
{
   padding: 0.5em;
}
span.upperframe
{
   padding: 0;
   display: block;
   background: url(../images/theme/main_block3.png) 0 -90px no-repeat;
   padding-left: 20px;
}
span.upperframe span
{
   padding: 0;
   height: 12px;
   display: block;
   background: url(../images/theme/main_block3.png) 100% -90px no-repeat;
}
span.lowerframe
{
   padding: 0;
   display: block;
   background: url(../images/theme/main_block3.png) 0 -102px no-repeat;
   padding-left: 20px;
}
span.lowerframe span
{
   padding: 0;
   height: 12px;
   display: block;
   background: url(../images/theme/main_block3.png) 100% -102px no-repeat;
}

/* The main content area.
------------------------------------------------------- */
.content
{
   padding: 0.5em 1.2em;
   margin: 0;
   border: none;
}
.content p
{
   margin: 0 0 0.5em 0;
}

/* Styles used by the auto suggest control.
------------------------------------------------------- */
.auto_suggest_div
{
   border: 1px solid #000;
   position: absolute;
   visibility: hidden;
}
.auto_suggest_item
{
   background-color: #ddd;
}
.auto_suggest_item_hover
{
   background-color: #888;
   cursor: pointer;
   color: #eee;
}

/* Styles for the standard dropdown menus.
------------------------------------------------------- */
#main_menu
{
   padding: 0 0.5em;
   float: left;
   margin: 0;
   width: 98%;
}

.dropmenu, .dropmenu ul
{
   list-style: none;
   line-height: 1em;
   padding: 0;
   margin: 0;
}
.dropmenu
{
   padding: 0 0.5em;
}
.dropmenu a
{
   display: block;
   color: #000;
   text-decoration: none;
}
.dropmenu a span
{
   display: block;
   padding: 0 0 0 5px;
   font-size: 0.9em;
}
/* the background's first level only */
.dropmenu li a.firstlevel
{
   margin-right: 8px;
}
.dropmenu li a.firstlevel span.firstlevel
{
   display: block;
   position: relative;
   left: -5px;
   padding-left: 5px;
   height: 22px;
   line-height: 19px;
   white-space: pre;
}
.dropmenu li
{
   float: left;
   padding: 0;
   margin: 0;
   position: relative;
}
.dropmenu li ul
{
   z-index: 90;
   display: none;
   position: absolute;
   width: 19.2em;
   font-weight: normal;
   border-bottom: 1px solid #999;
   background: url(../images/theme/menu_gfx1.png) 0 -130px no-repeat;
   padding: 7px 0 0 0;
}
.dropmenu li li
{
   width: 19em;
   margin: 0;
   border-left: 1px solid #999;
   border-right: 1px solid #999;
}
.dropmenu li li a span
{
   display: block;
   padding: 8px;
}
.dropmenu li ul ul
{
   margin: -1.8em 0 0 13em;
}

/* the active button */
.dropmenu li a.active
{
   background: url(../images/theme/menu_gfx1.png) no-repeat 100% 0;
   color: #fff;
   font-weight: bold;
}
.dropmenu li a.active span.firstlevel
{
   background: url(../images/theme/menu_gfx1.png) no-repeat 0 0;
}
/* the hover effects */
.dropmenu li a.firstlevel:hover, .dropmenu li:hover a.firstlevel
{
   background: url(../images/theme/menu_gfx1.png) no-repeat 100% -30px;
   color: #fff;
   cursor: pointer;
   text-decoration: none;
}
.dropmenu li a.firstlevel:hover span.firstlevel, .dropmenu li:hover a.firstlevel span.firstlevel
{
   background: url(../images/theme/menu_gfx1.png) no-repeat 0 -30px;
}
/* the hover effects on level2 and 3 */
.dropmenu li li a:hover, .dropmenu li li:hover>a
{
   background: #d4dbe4;
   color: #000;
   text-decoration: none;
}
.dropmenu li:hover ul ul, .dropmenu li:hover ul ul ul
{
   top: -999em;
}
.dropmenu li li:hover ul
{
   top: auto;
}
.dropmenu li:hover ul
{
   display: block;
}
.dropmenu li li.additional_items
{
   background-color: #fff;
}

/* The dropdown menu toggle image */
#menu_toggle
{
   float: right;
   margin-right: 10px;
   padding-top: 3px;
}
#menu_toggle span
{
   position: relative;
   right: 5000px;
}

/* Styles for the standard button lists.
------------------------------------------------------- */

.buttonlist ul
{
   z-index: 100;
   padding: 5px;
   margin: 0 0.2em 5px 0;
}
.buttonlist ul li
{
   margin: 0;
   padding: 0;
   list-style: none;
   float: left;
}
.buttonlist ul li a
{
   display: block;
   font-size: 0.8em;
   color: #000;
   background: #e8e8e8 url(../images/theme/menu_gfx1.png) no-repeat 0 -60px;
   padding: 0 0 0 8px;
   margin-left: 12px;
   text-transform: uppercase;
   cursor: pointer;
}
.buttonlist ul li a:hover
{
   background: url(../images/theme/menu_gfx1.png) no-repeat 0 0;
   color: #fff;
   text-decoration: none;
}
.buttonlist ul li a span
{
   background: url(../images/theme/menu_gfx1.png) no-repeat 100% -60px;
   display: block;
   height: 19px;
   line-height: 19px;
   padding: 0 8px 0 0;
}
.buttonlist ul li a:hover span
{
   background: #fff url(../images/theme/menu_gfx1.png) no-repeat 100% 0;
}
/* the active one */
.buttonlist ul li a.active
{
   background: #5a6c85 url(../images/theme/menu_gfx1.png) no-repeat 0 -90px;
   color: #fff;
   font-weight: bold;
}
.buttonlist ul li a.active span
{
   background: url(../images/theme/menu_gfx1.png) no-repeat 100% -90px;
}
.buttonlist ul li a.active
{
   font-weight: bold;
}
.buttonlist ul li a.active:hover
{
   color: #ddf;
}
.align_top ul li a, .align_bottom ul li a
{
   margin: 0 12px 0 0;
}

/* the navigation list */
ul#navigation
{
   margin: 0;
   font-size: 0.9em;
   padding: 1em 0.4em;
}
ul#navigation li
{
   float: none;
   font-size: 0.95em;
   display: inline;
}

#adm_submenus
{
   padding-left: 2em;
   overflow: hidden;
}

/* Styles for the general looks for the Curve theme.
------------------------------------------------------- */

/* the framing graphics */
#header
{
   background: url(../images/theme/main_block3.png) #fefefe no-repeat 0 -480px;
   padding-left: 20px;
}
#header div.frame
{
   background: url(../images/theme/main_block3.png) no-repeat 100% -480px;
   display: block;
   padding: 5px 20px 1em 0;
}
/* the content section */
#content_section
{
   background: #FFFFFF url(../images/theme/frame_repeat.png) repeat-y top left;
   padding-left: 20px;
}
#content_section div.frame
{
   background: url(../images/theme/frame_repeat.png) repeat-y top right;
   display: block;
   padding: 0 20px 0 0;
}
#main_content_section
{
   width: 100%;
   min-height: 200px;
}

/* the main title, always stay at 45 pixels in height! */
h1.forumtitle
{
   line-height: 45px;
   font-size: 1.8em;
   font-family: Geneva, verdana, sans-serif;
   margin: 0;
   padding: 0;
   float: left;
}
/* float these items to the right */
#siteslogan, img#smflogo
{
   margin: 0;
   padding: 0;
   float: right;
   line-height: 3em;
}
h3, h4
{
   padding-bottom: 3px;
}
/* the upshrink image needs some tweaking */
img#upshrink
{
   float: right;
   margin: 1em;
}
/* ..so does the SMF logo */
img#smflogo
{
   margin-left: 1em;
}
/* the upper_section, float the two each way */
#upper_section
{
   padding: 5px;
   margin-bottom: 1.5em;
}
#upper_section ul li.greeting
{
   font-size: 1.3em;
   font-weight: bold;
   line-height: 1.5em;
}
#upper_section div.news
{
   width: 50%;
   float: right;
   text-align: right;
}
#guest_form
{
   overflow: hidden;
}
#guest_form .info
{
   padding: 4px 0 ;
   line-height: 1.3em;
}
div#upper_section div.user
{
   width: 50%;
   float: left;
   overflow: auto;
}
div#upper_section div.user p
{
   float: left;
   margin: 0 1em 1em 0;
   padding: 0;
}
div#upper_section div.user ul
{
   margin: 0;
   padding-left: 10px;
}
div#upper_section div.user ul li
{
   margin-bottom: 2px;
}
div#upper_section div.news p
{
   display: inline;
}
div#upper_section div.news form
{
   padding-bottom: 10px;
}
/* clearing the floats */
#top_section
{
   min-height: 65px;
   overflow: hidden;
   margin-bottom: 3px;
}
#upper_section
{
   overflow: hidden;
}

/* The navigation list (i.e. linktree) */
.navigate_section
{
   padding: 0.5em;
   margin: 0 0 0 0;
}
.navigate_section ul
{
   display: block;
   margin: 0;
   font-size: 0.9em;
   padding: 1em 0 0.5em 0;
   border-top: 1px solid #ccc;
   overflow: hidden;
   list-style: none;
   clear: both;
   width: 100%;
}
.navigate_section ul li
{
   float: left;
   padding: 0 0.5em 0 0;
   font-size: 0.95em;
}
.navigate_section ul li a
{
   white-space: pre;
}

/* The footer wih copyright links etc. */
#footer_section
{
   text-align: center;
   background: url(../images/theme/main_block3.png) no-repeat 0 -820px;
   padding-left: 20px;
}
#footer_section span.smalltext
{
   font-size: 100%;
}
#footer_section div.frame
{
   background: url(../images/theme/main_block3.png) no-repeat 100% -820px;
   display: block;
   padding: 60px 0 0 0;
}
#footer_section ul li, #footer_section p
{
   font-size: 0.8em;
}
#footer_section ul li
{
   display: inline;
   padding-right: 5px;
}
#footer_section ul li.copyright
{
   display: block;
}
select.qaction, input.qaction
{
   font-size: 0.85em;
   padding: 0;
}
#mlist table tbody td.windowbg2
{
   text-align: center;
}

/* Styles for a typical table.
------------------------------------------------------- */
table.table_list
{
   width: 100%;
}
table.table_list p
{
   padding: 0;
   margin: 0;
}
table.table_list td, table.table_list th
{
   padding: 5px;
}
table.table_list tbody.header td
{
   padding: 0;
}
table.table_list tbody.content td.stats
{
   font-size: 80%;
   width: 12%;
   text-align: center;
   color: #808080;
}
table.table_list tbody.content td.lastpost
{
   line-height: 1.3em;
   font-size: 80%;
   width: 22%;
   text-align: left;
}
table.table_list tbody.content td.icon
{
   text-align: center;
   width: 4%;
}
table.table_list tbody.content td.info
{
   text-align: left;
}
table.table_list tbody.content td.info p
{
   padding-top: 5px;
   font-size: 90%;
   text-align: right;
}

/* Styles for the board index.
------------------------------------------------- */

/* the board title! */
.table_list tbody.content td.info a.subject
{
   font-weight: bold;
   font-size: 110%;
   color: #d97b33;
}
.table_list tbody.content td.info a.subject_de
{
   font-weight: bold;
   font-size: 110%;
   color: #E4A370;
}
.table_list tbody.content td.children
{
   color: #555;
   font-size: 90%;
}
p.moderators
{
   font-size: 0.8em;
   font-family: verdana, sans-serif;
}
/* hide the table header/footer parts - but its here for those needing to style it */
#boardindex_table .table_list thead, #boardindex_table .table_list tfoot
{
   display: none;
}

/* the posting icons */
#posting_icons
{
   padding: 0 1em 0.5em 1em;
   margin: 0 0 1em 0;
   line-height: 1em;
}
#posting_icons ul
{
   font-size: 0.8em;
}
#posting_icons img
{
   vertical-align: middle;
   margin: 0 0 0 4ex;
}
#postbuttons_upper ul li a span
{
   line-height: 19px;
   padding: 0 0 0 6px;
}
.nextlinks
{
   text-align: right;
   margin-top: -1px;
}
.nextlinks_bottom
{
   clear: right;
   text-align: right;
}
.mark_read
{
   padding: 0 0.5em;
}

/* the newsfader */
#newsfader
{
   margin: 0 2px;
}
#smfFadeScroller
{
   text-align: center;
   padding: 0 2em;
   overflow: auto;
   margin: 1em 0;
   color: #575757; /* shouldn't be shorthand style due to a JS bug in IE! */
}

/* Styles for the info center on the board index.
---------------------------------------------------- */

#upshrinkHeaderIC
{
   margin-top: 4px;
}
dl#ic_recentposts
{
   margin: 0 0 0.5em 0;
   padding: 0.5em;
   line-height: 1.3em;
}
dl#ic_recentposts dt
{
   float: left;
}
dl#ic_recentposts dd
{
   text-align: right;
}
#upshrinkHeaderIC p
{
   margin: 0 0 0.5em 0;
   padding: 0.5em;
}
#upshrinkHeaderIC p.last
{
   margin: 0;
   padding: 0.5em;
   border-top: 2px dotted #bbb;
}
#upshrinkHeaderIC p.inline
{
   border: none;
   margin: 0;
   padding: 0.2em 0.5em 0.2em 0.5em;
}
#upshrinkHeaderIC p.stats
{
   font-size: 1.1em;
   padding-top: 8px;
}
form#ic_login
{
   padding: 0.5em;
   height: 2em;
}
form#ic_login ul li
{
   margin: 0;
   padding: 0;
   float: left;
   width: 20%;
   text-align: center;
}
form#ic_login ul li label
{
   display: block;
}

/* the small stats */
#index_common_stats
{
   display: block;
   margin: 0 0 0.5em 0;
   text-align: right;
   font-size: 0.9em;
   position: relative;
   top: -20px;
   line-height: 1px;
}

img.new_posts
{
   padding: 0 0.1em;
}
/* Styles for the message (topic) index.
---------------------------------------------------- */
div.table_frame .table_list
{
   border-collapse: collapse;
   margin: 2px 0;
}
.table_frame .table_list td.icon, .table_frame .table_list td.info, .table_frame .table_list td.stats
{
   border-right: 2px solid white;
}
#messageindex
{
   clear: both;
}
/* the page navigation area */
.childboards
{
   margin-bottom: 0.2em;
}
#childboards h3
{
   padding-bottom: 0;
}
#childboards .table_list thead
{
   display: none;
}
#childboards .table_list
{
   margin-bottom: 1em;
}
.lastpost img
{
   float: right;
   padding: 4px;
}

/* Styles for the display template (topic view).
---------------------------------------------------- */

#postbuttons div.buttons
{
   padding: 0.5em;
   width: 40%;
   float: right;
}
#postbuttons div.middletext
{
   width: 60%;
}
#postbuttons span
{
   display: block;
   text-align: right;
}
#postbuttons span.lower
{
   clear: right;
}
#postbuttons .buttonlist
{
   float: right;
}
#postbuttons #pagelinks
{
   padding-top: 1em;
}
#moderationbuttons
{
   overflow: hidden;
}
/* Events */
.linked_events
{
   padding: 1em 0;
}
.edit_event
{
   margin: 0 1em;
   vertical-align: middle;
}
/* Poll question */
#poll
{
   overflow: hidden;
}
#poll .content
{
   padding: 0 1em;
}
h4#pollquestion
{
   padding: 0 0 0.5em 2em;
}

/* Poll vote options */
#poll_options ul.options
{
   border-top: 1px solid #9999aa;
   padding: 1em 2.5em 0 2em;
   margin: 0 0 1em 0;
}
#poll_options div.submitbutton
{
   border-bottom: 1px solid #9999aa;
   clear: both;
   padding: 0 0 1em 2em;
   margin: 0 0 1em 0;
}

/* Poll results */
#poll_options dl.options
{
   border: solid #9999aa;
   border-width: 1px 0;
   padding: 1em 2.5em 1em 2em;
   margin: 0 1em 1em 0;
   line-height: 1.1em !important;
}

#poll_options dl.options dt
{
   padding: 0.3em 0;
   width: 30%;
   float: left;
   margin: 0;
   clear: left;
}

#poll_options dl.options .voted
{
   font-weight: bold;
}

#poll_options dl.options dd
{
   margin: 0 0 0 2em;
   padding: 0.1em 0 0 0;
   width: 60%;
   max-width: 450px;
   float: left;
}

#poll_options dl.options .percentage
{
   display: block;
   float: right;
   padding: 0.2em 0 0.3em 0;
}

/* Poll notices */
#poll_options p
{
   margin: 0 1.5em 0.2em 1.5em;
   padding: 0 0.5em 0.5em 0.5em;
}

div#pollmoderation
{
   margin: 0;
   padding: 0;
   overflow: auto;
}

/* onto the posts */
#forumposts
{
   clear: both;
}
#forumposts .cat_bar
{
   margin: 0 0 2px 0;
}
/* author and topic information */
#forumposts h3 span#author
{
   margin: 0 7.7em 0 0;
}
#forumposts h3 img
{
   float: left;
   margin: 4px 0.5em 0 0;
}
#forumposts h3.catbg
{
   margin-bottom: 3px;
}
p#whoisviewing
{
   margin: 0;
   padding: 0.5em;
}
/* poster and postarea + moderation area underneath */
.post_wrapper
{
   float:right;
   width:100%;
}
.poster
{
   float: right;
   width: 11em;
   font-size: 90%;
}
.postarea, .moderatorbar
{
   margin: 0 11em 0 0.5em;
   clear: left;/* test */
}
.postarea div.flow_hidden
{
   width: 100%;
}

.moderatorbar
{
   clear: left;/* test */
}
/* poster details and list of items */
.poster h4, .poster ul
{
   padding: 0;
   margin: 0 1em 0 1.5em;
}
.poster h4
{
   margin: 0.2em 0 0.4em 1.1em;
   font-size: 120%;
}
.poster h4, .poster h4 a
{
   color: #c06002;
}
.poster ul ul
{
   margin: 0.3em 1em 0 0;
   padding: 0;
}
.poster ul ul li
{
   display: inline;
}
.poster li.stars, .poster li.avatar, .poster li.blurb, li.postcount, li.im_icons ul
{
   margin-top: 0.5em;
}
.poster li.avatar
{
   overflow: hidden;
}
.poster li.warning
{
   line-height: 1.2em;
   padding-top: 1em;
}
.poster li.warning a img
{
   vertical-align: bottom;
   padding: 0 0.2em;
}
.messageicon
{
   float: left;
   margin: 0 0.5em 0 0;
}
.messageicon img
{
   padding: 6px 3px;
}
.keyinfo
{
   float: left;
   width: 50%;
}
.modifybutton
{
   clear: right;
   float: right;
   margin: 6px 20px 10px 0;
   text-align: right;
   font: bold 0.85em arial, sans-serif;
   color: #334466;   
}

/* The quick buttons */
div.quickbuttons_wrap
{
   padding: 0.2em 0;
   width: 100%;
   float: left;
}

ul.quickbuttons
{
   margin: 0.9em 11px 0 0;
   clear: right;
   float: right;
   text-align: left;
   font: bold 0.85em arial, sans-serif;
}
ul.quickbuttons li
{
   float: right;
   display: inline;
   margin: 0 0 0 11px;
}
ul.quickbuttons li a
{
   padding: 0 0 0 20px;
   display: block;
   height: 20px;
   line-height: 18px;
   float: left;
}
ul.quickbuttons a:hover
{
   color: #a70;
}
ul.quickbuttons li.quote_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 0;
}
ul.quickbuttons li.remove_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -30px;
}
ul.quickbuttons li.modify_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -60px;
}
ul.quickbuttons li.approve_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -90px;
}
ul.quickbuttons li.restore_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -120px;
}
ul.quickbuttons li.split_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -150px;
}
ul.quickbuttons li.reply_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -180px;
}
ul.quickbuttons li.reply_all_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -180px;
}
ul.quickbuttons li.notify_button
{
   background: url(../images/theme/quickbuttons.png) no-repeat 0 -210px;
}
ul.quickbuttons li.inline_mod_check
{
   margin: 0 0 0 5px;
}

.post
{
   margin-top: 0.5em;
   clear: left;
}
.inner
{
   padding: 2.5em 1em 1em 0.7em;
   margin: 0 0.5em 0 0.5em;
   border-top: 1px solid #99a;
}
img.smiley
{
   vertical-align: bottom;
}
#forumposts .modified
{
   float: left;
}
#forumposts .reportlinks
{
   margin-right: 1.5em;
   text-align: right;
   clear: right;
}
#forumposts .signature, .post .signature
{
   margin: 1em 0 0 0;
}
#forumposts span.botslice
{
   clear: both;
}
.attachments hr
{
   clear: both;
   margin: 1em 0 1em 0;
}
.attachments
{
   padding: 1em 0 2em 0;
}
.attachments div
{
   padding: 0 0.5em;
}

/* Styles for the quick reply area.
---------------------------------------------------- */

#quickreplybox
{
   padding-bottom: 1px;
}
#quickReplyOptions .roundframe
{
   padding: 0 10%;
}
#quickReplyOptions form textarea
{
   height: 100px;
   width: 635px;
   max-width: 100%;
   min-width: 100%;
   margin: 0.25em 0 1em 0;
}
/* The jump to box */
#display_jump_to
{
   clear: both;
   padding: 5px;
   margin-top: 6px;
   text-align: right;
}

/* Separator of posts. More useful in the print stylesheet. */
#forumposts .post_separator
{
   display: none;
}

/* Styles for edit post section
---------------------------------------------------- */
form#postmodify .roundframe
{
   padding: 0 5%;
}
#post_header, .postbox
{
   padding: 0.5em;
   overflow: hidden;
}
#post_header dt, .postbox dt
{
   float: left;
   padding: 0;
   width: 15%;
   margin: .5em 0 0 0;
   font-weight: bold;
}
#post_header dd, .postbox dd
{
   float: left;
   padding: 0;
   width: 83%;
   margin: .3em 0;
}
#post_header img
{
   vertical-align: middle;
}
ul.post_options
{
   margin: 0 0 0 1em;
   padding: 0;
   list-style: none;
   overflow: hidden;
}
ul.post_options li
{
   margin: 0.2em 0;
   width: 49%;
   float: left;
}
#postAdditionalOptionsHeader
{
   margin-top: 1em;
}
#postMoreOptions
{
   border-bottom: 1px solid #cacdd3;
   padding: 0.5em;
}
#postAttachment, #postAttachment2
{
   overflow: hidden;
   margin: .5em 0;
   padding: 0;
   border-bottom: 1px solid #cacdd3;
   padding: 0.5em;
}
#postAttachment dd, #postAttachment2 dd
{
   margin: .3em 0 .3em 1em;
}
#postAttachment dt, #postAttachment2 dt
{
   font-weight: bold;
}
#postAttachment3
{
   margin-left: 1em;
}
#post_confirm_strip, #shortcuts
{
   padding: 1em 0 0 0;
}
.post_verification
{
   margin-top: .5em;
}
.post_verification #verification_control
{
   margin: .3em 0 .3em 1em;
}
/* The BBC buttons */
#bbcBox_message
{
   margin: 0.75em 0.5em;
}
#bbcBox_message div
{
   margin: 0.2em 0;
   vertical-align: top;
}
#bbcBox_message div img
{
   margin: 0 1px 0 0;
   vertical-align: top;
}
#bbcBox_message select
{
   margin: 0 2px;
}
/* The smiley strip */
#smileyBox_message
{
   margin: 0.5em;
}

/* Styles for edit event section
---------------------------------------------------- */
#post_event .roundframe
{
   padding: 0 12%;
}
#post_event fieldset
{
   padding: 0.5em;
   clear: both;
}
#post_event #event_main input
{
   margin: 0 0 1em 0;
   float: left;
}
#post_event #event_main div.smalltext
{
   width: 33em;
   float: right;
}
#post_event div.event_options
{
   float: right;
}
#post_event ul.event_main, ul.event_options
{
   padding: 0;
   overflow: hidden;
}
#post_event ul.event_main li
{
   list-style-type: none;
   margin: 0.2em 0;
   width: 49%;
   float: left;
}
#post_event ul.event_options
{
   margin: 0;
   padding: 0 0 .7em .7em;
}
#post_event ul.event_options li
{
   list-style-type: none;
   margin: 0;
   float: left;
}
#post_event #event_main select, #post_event ul.event_options li select, #post_event ul.event_options li .input_check
{
   margin: 0 1em 0 0;
}

/* Styles for edit poll section.
---------------------------------------------------- */

#edit_poll
{
   overflow: hidden;
}
#edit_poll fieldset
{
   padding: 0.5em;
   clear: both;
   overflow: hidden;
}
#edit_poll fieldset input
{
   margin-left: 8.1em;
}
#edit_poll ul.poll_main li
{
   padding-left: 1em;
}
#edit_poll ul.poll_main input
{
   margin-left: 1em;
}
#edit_poll ul.poll_main, dl.poll_options
{
   overflow: hidden;
   padding: 0 0 .7em .7em;
   list-style: none;
}
#edit_poll ul.poll_main li
{
   margin: 0.2em 0;
}
#edit_poll dl.poll_options dt
{
   width: 33%;
   padding: 0 0 0 1em;
}
#edit_poll dl.poll_options dd
{
   width: 65%;
}
#edit_poll dl.poll_options dd input
{
   margin-left: 0;
}

/* Styles for the recent messages section.
---------------------------------------------------- */

#readbuttons_top .pagelinks, #readbuttons .pagelinks
{
   padding-bottom: 1em;
   width: 60%;
}
#readbuttons .pagelinks
{
   padding-top: 1em;
}
#recent
{
   clear: both;
}

/* Styles for the move topic section.
---------------------------------------------------- */

#move_topic dl
{
   margin-bottom: 0;
}
#move_topic dl.settings dt
{
   width: 40%;
}
#move_topic dl.settings dd
{
   width: 59%;
}
.move_topic
{
   width: 710px;
   margin: auto;
   text-align: left;
}
div.move_topic fieldset
{
   padding: 0.5em;
}

/* Styles for the send topic section.
---------------------------------------------------- */

fieldset.send_topic
{
   border: none;
   padding: 0.5em;
}
dl.send_topic
{
   margin-bottom: 0;
}
dl.send_mail dt
{
   width: 35%;
}
dl.send_mail dd
{
   width: 64%;
}

/* Styles for the report topic section.
---------------------------------------------------- */

#report_topic dl
{
   margin-bottom: 0;
}
#report_topic dl.settings dt
{
   width: 20%;
}
#report_topic dl.settings dd
{
   width: 79%;
}

/* Styles for the split topic section.
---------------------------------------------------- */

div#selected, div#not_selected
{
   width: 49%;
}
ul.split_messages li.windowbg, ul.split_messages li.windowbg2
{
   margin: 1px;
}
ul.split_messages li a.split_icon
{
   padding: 0 0.5em;
}
ul.split_messages div.post
{
   padding: 1em 0 0 0;
   border-top: 1px solid #fff;
}

/* Styles for the merge topic section.
---------------------------------------------------- */
ul.merge_topics li
{
   list-style-type: none;
}
dl.merge_topic dt
{
   width: 25%;
}
dl.merge_topic dd
{
   width: 74%;
}
fieldset.merge_options
{
   clear: both;
}
.custom_subject
{
   margin: 0.5em 0;
}

/* Styles for the login areas.
------------------------------------------------------- */
.login
{
   width: 540px;
   margin: 0 auto;
}
.login dl
{
   overflow: auto;
   clear: right;
}
.login dt, .login dd
{
   margin: 0 0 0.4em 0;
   width: 44%;
   padding: 0.1em;
}
.login dt
{
   float: left;
   clear: both;
   text-align: right;
   font-weight: bold;
}
.login dd
{
   width: 54%;
   float: right;
   text-align: left;
}
.login p
{
   text-align: center;
}

/* Styles for the registration section.
------------------------------------------------------- */
.register_error
{
   border: 1px dashed red;
   padding: 5px;
   margin: 0 1ex 1ex 1ex;
}
.register_error span
{
   text-decoration: underline;
}

/* Additional profile fields */
dl.register_form
{
   margin: 0;
   clear: right;
}

dl.register_form dt
{
   font-weight: normal;
   float: left;
   clear: both;
   width: 50%;
   margin: 0.5em 0 0 0;
}

dl.register_form dt strong
{
   font-weight: bold;
}

dl.register_form dt span
{
   display: block;
}

dl.register_form dd
{
   float: left;
   width: 49%;
   margin: 0.5em 0 0 0;
}

#confirm_buttons
{
   text-align: center;
   padding: 1em 0;
}

.coppa_contact
{
   padding: 4px;
   width: 32ex;
   background-color: #fff;
   color: #000;
   margin-left: 5ex;
   border: 1px solid #000;
}

.valid_input
{
   background-color: #f5fff0;
}
.invalid_input
{
   background-color: #fff0f0;
}

/* Styles for maintenance mode.
------------------------------------------------------- */
#maintenance_mode
{
   width: 75%;
   min-width: 520px;
   text-align: left;
}
#maintenance_mode img.floatleft
{
   margin-right: 1em;
}

/* common for all admin sections */
h3.titlebg img
{
   vertical-align: middle;
   margin-right: 0.5em;
   margin-top: -1px;
}
tr.titlebg td
{
   padding-left: 0.7em;
}
#admin_menu
{
   min-height: 2em;
   padding-left: 0;
}
#admin_content
{
   clear: left;
   padding-top: 0.5em;
}
/* Custom profile fields like to play with us some times. */
#admin_content .custom_field
{
   margin-bottom: 15px;
}
#admin_login .centertext
{
   padding: 1em;
}
#admin_login .centertext .error
{
   padding: 0 0 1em 0;
}

/* Styles for sidebar menus.
------------------------------------------------------- */
.left_admmenu, .left_admmenu ul, .left_admmenu li
{
   padding: 0;
   margin: 0;
   list-style: none;
}
#left_admsection
{
   width: 160px;
   float: left;
   padding-right: 10px;
}
.adm_section h4.titlebg
{
   font-size: 95%;
   margin-bottom: 5px;
}
#main_container
{
   position: relative;
}
.left_admmenu li
{
   padding: 0 0 0 0.5em;
}
.left_admmenu
{
   margin-bottom: 0.5em;
}
#main_admsection
{
   position: relative;
   left: 0;
   right: 0;
   overflow: hidden;
}

tr.windowbg td, tr.windowbg2 td, tr.approvebg td, tr.highlight2 td
{
   padding: 0.3em 0.7em;
   text-align: left;
}

#credits p
{
   padding: 0;
   font-style: italic;
   margin: 0;
}

/* Styles for generic tables.
------------------------------------------------------- */
.topic_table table
{
   width: 100%;
}
.topic_table .icon1, .topic_table .icon2, .topic_table .stats
{
   text-align: center;
}
#topic_icons
{
   margin: 1em 0 0 0;
}
#topic_icons .description
{
   margin: 0;
}
.topic_table table thead
{
   border-bottom: 1px solid #fff;
}
/* the subject column */
.topic_table td
{
   font-size: 1em;
}
.topic_table td.subject p, .topic_table td.stats
{
   font-size: 0.80em;
   padding: 0;
   margin: 0;
}
.topic_table td.lastpost
{
   font-size: 0.80em;
   line-height: 1.3em;
   padding: 4px;
}
/* ------------ ausgeklammert, da überlappend und doppelt
.topic_table td.stickybg2
{
   background-image: url(../images/icons/quick_sticky.gif);
   background-repeat: no-repeat;
   background-position: 98% 4px;
}
.topic_table td.lockedbg2
{
   background-image: url(../images/icons/quick_lock.gif);
   background-repeat: no-repeat;
   background-position: 98% 4px;
}
.topic_table td.locked_sticky2
{
   background-image: url(../images/icons/quick_sticky_lock.gif);
   background-repeat: no-repeat;
   background-position: 98% 4px;
}------------------ */
.topic_table td.lastpost
{
   background-image: none;
}

/* Styles for (fatal) errors.
------------------------------------------------- */

#fatal_error
{
   width: 80%;
   margin: auto;
}

.errorbox
{
   padding: 1em;
   border: 1px solid #cc3344;
   color: #000;
   background-color: #ffe4e9;
   margin-bottom: 1em;
}
.errorbox h3
{
   padding: 0;
   margin: 0;
   font-size: 1.1em;
   text-decoration: underline;
}
.errorbox p
{
   margin: 1em 0 0 0;
}
.errorbox p.alert
{
   padding: 0;
   margin: 0;
   float: left;
   width: 1em;
   font-size: 1.5em;
}

/* Styles for the profile section.
------------------------------------------------- */

dl
{
   overflow: auto;
   margin: 0;
   padding: 0;
}

/* The basic user info on the left */
#basicinfo
{
   width: 20%;
   float: left;
}
#basicinfo .windowbg .content
{
   padding-left: 20px;
}
#detailedinfo
{
   width: 79.5%;
   float: right;
}
#basicinfo h4
{
   font-size: 135%;
   font-weight: 100;
   line-height: 105%;
   white-space: pre-wrap;
   overflow: hidden;
}
#basicinfo h4 span.position
{
   font-size: 80%;
   font-weight: 100;
   display: block;
}
#basicinfo img.avatar
{
   display: block;
   margin: 10px 0 0 0;
}
#basicinfo ul
{
   list-style-type: none;
   margin: 10px 0 0 0;
}
#basicinfo ul li
{
   display: block;
   float: left;
   margin-right: 5px;
   height: 20px;
}
#basicinfo span#userstatus
{
   display: block;
   clear: both;
}
#basicinfo span#userstatus img
{
   vertical-align: middle;
}
#detailedinfo div.content dl, #tracking div.content dl
{
   clear: right;
   overflow: auto;
   margin: 0 0 18px 0;
   padding: 0 0 15px 0;
   border-bottom: 1px #ccc solid;
}
#detailedinfo div.content dt, #tracking div.content dt
{
   width: 35%;
   float: left;
   margin: 0 0 3px 0;
   padding: 0;
   font-weight: bold;
   clear: both;
}
#detailedinfo div.content dd, #tracking div.content dd
{
   width: 65%;
   float: left;
   margin: 0 0 3px 0;
   padding: 0;
}
#detailedinfo div.content dl.noborder
{
   border-bottom: 0;
}
#detailedinfo div.content dt.clear
{
   width: 100%;
}
.signature, .custom_fields_above_signature
{
   border-top: 1px #ccc solid;
}
.signature h5
{
   font-size: 0.85em;
   margin-bottom: 10px;
}
#personal_picture
{
   display: block;
   margin-bottom: 0.3em;
}
#avatar_server_stored div
{
   float: left;
}
#avatar_upload
{
   overflow: auto;
}
#main_admsection #basicinfo, #main_admsection #detailedinfo
{
   width: 100%;
}
#main_admsection #basicinfo h4
{
   float: left;
   width: 35%;
}
#main_admsection #basicinfo img.avatar
{
   float: right;
   vertical-align: top;
}
#main_admsection #basicinfo ul
{
   clear: left;
}
#main_admsection #basicinfo span#userstatus
{
   clear: left;
}
#main_admsection #basicinfo p#infolinks
{
   display: none;
   clear: both;
}
#main_admsection #basicinfo .botslice
{
   clear: both;
}

/* Simple feedback messages */
div#profile_error, div#profile_success
{
   margin: 0 0 1em 0;
   padding: 1em 2em;
   border: 1px solid;
}
div#profile_error
{
   border-color: red;
   color: red;
   background: #fee;
}

div#profile_error span
{
   text-decoration: underline;
}

div#profile_success
{
   border-color: green;
   color: green;
   background: #efe;
}

/* Profile statistics */
#generalstats div.content dt
{
   width: 50%;
   float: left;
   margin: 0 0 3px 0;
   padding: 0;
   font-weight: bold;
   clear: both;
}
#generalstats div.content dd
{
   width: 50%;
   float: left;
   margin: 0 0 3px 0;
   padding: 0;
}

/* Activity by time */
#activitytime
{
   margin: 6px 0;
}
.activity_stats
{
   margin: 0;
   padding: 0;
   list-style: none;
}
.activity_stats li
{
   margin: 0;
   padding: 0;
   width: 4.16%;
   float: left;
}
.activity_stats li span
{
   display: block;
   border: solid #000;
   border-width: 1px 1px 0 0;
   text-align: center;
}
.activity_stats li.last span
{
   border-right: none;
}
.activity_stats li div.bar
{
   margin: 0 auto;
   width: 15px;
}
.activity_stats li div.bar div
{
   background: #6294CE;
}
.activity_stats li div.bar span
{
   position: absolute;
   top: -1000em;
   left: -1000em;
}

/* Most popular boards by posts and activity */
#popularposts
{
   width: 49.5%;
   float: left;
}
#popularactivity
{
   width: 49.5%;
   float: right;
}

#popularposts div.content dt, #popularactivity div.content dt
{
   width: 65%;
   float: left;
   margin: 0 0 3px 0;
   padding: 0;
   font-weight: bold;
   clear: both;
}
#popularposts div.content dd, #popularactivity div.content dd
{
   width: 35%;
   float: left;
   margin: 0 0 3px 0;
   padding: 0;
}

.profile_pie
{
   background-image: url(../images/stats_pie.png);
   float: left;
   height: 20px;
   width: 20px;
   margin: 0 1em 0 0;
   padding: 0;
   text-indent: -1000em;
}

/* View posts */
.topic .time
{
   float: right;
}

.counter
{
   margin: 0 0 0 0;
   padding: 0.2em 0.5em 0.1em 0.2em;
   font-size: 2.2em;
   font-weight: bold;
   color: #3f3f3f;
   float: left;
}
.list_posts
{
   border-top: 2px solid #b3b3bf;
   padding-top: 12px;
   margin-top: 6px;
   overflow: auto;
}

.core_posts
{
   margin-bottom: 3px;
}

.topic h4
{
   margin: 3px 0;
}

.topic .post
{
   margin: 0 1em;
   min-height: 80px;
   height: auto !important;
   height: 80px;
}

.topic .mod_icons
{
   text-align: right;
   margin-right: 1em;
}

#tracking div.content dl
{
   border-bottom: 0;
   margin: 0;
   padding: 0;
}

#creator dl
{
   margin: 0;
}
#creator dt
{
   width: 40%;
   float: left;
   clear: both;
   margin: 0 0 10px 0;
}
#creator dd
{
   float: right;
   width: 55%;
   margin: 0 0 10px 2px;
   overflow: auto;
}

.ignoreboards
{
   margin: 0 2%;
   padding: 0;
   width: 45%;
}
.ignoreboards a
{
   font-weight: bold;
   border-bottom: 1px solid #c4c4c4;
   padding: 0.1em 0;
}
.ignoreboards a:hover
{
   text-decoration: none;
   border-bottom: 1px solid #334466;
}
.ignoreboards ul
{
   margin: 0;
   padding: 0;
}
.ignoreboards li
{
   list-style: none;
   float: left;
   clear: both;
}
.ignoreboards li.category
{
   margin: 0.7em 0 0 0;
   width: 100%;
}
.ignoreboards li ul
{
   margin: 0.2em 0 0 0;
}
.ignoreboards li.category ul li.board
{
   width: 93%;
}

#theme_settings
{
   overflow: auto;
   margin: 0;
   padding: 0;
}

#theme_settings li
{
   list-style: none;
   margin: 10px 0;
   padding: 0;
}
/* Paid Subscriptions */
#paid_subscription
{
   width: 100%;
}
#paid_subscription dl.settings
{
   margin-bottom: 0;
}
#paid_subscription dl.settings dd, #paid_subscription dl.settings dt
{
   margin-bottom: 4px;
}
/* Pick theme */
#pick_theme
{
   width: 100%;
   float: left;
}
/*Issue a warning*/
#warn_body{
   width: 80%;
   font-size: 0.9em;
}

/* Styles for the statistics center.
------------------------------------------------- */
#statistics
{
   padding: 0.5em 0;
}
#statistics div.title_bar
{
   margin: 4px 0 -2px 0;
}
#statistics h3.catbg
{
   text-align: center;
}
#statistics div.content
{
   min-height: 210px;
}
#statistics div.top_row
{
   min-height: 150px;
}
#stats_left, #top_posters, #top_topics_replies, #top_topics_starter
{
   float: left;
   width: 49.5%;
}
#stats_right, #top_boards, #top_topics_views, #most_online
{
   float: right;
   width: 49.5%;
}
dl.stats
{
   clear: both;
   overflow: hidden;
   margin: 0;
   padding: 0;
}
dl.stats dt
{
   width: 49%;
   float: left;
   margin: 0 0 4px 0;
   line-height: 16px;
   padding: 0;
   clear: both;
   font-size: 1em;
}
dl.stats dd
{
   text-align: right;
   width: 50%;
   font-size: 1em;
   float: right;
   margin: 0 0 4px 0;
   line-height: 16px;
   padding: 0;
}
.statsbar div.bar
{
   float: left;
   background: url(../images/bar_stats.png) no-repeat;
   display: block;
   margin: 0 4px;
   height: 16px;
}
.statsbar div.bar div
{
   position: relative;
   right: -4px;
   padding: 0 4px 0 0;
   background: url(../images/bar_stats.png) no-repeat 100%;
   height: 16px;
}
tr.windowbg2 th.stats_month
{
   width: 25%;
   padding: 0 2em;
   text-align: left;
}
tr.windowbg2 td.stats_day
{
   padding: 0 3.5em;
   text-align: left;
}

/* Styles for the personal messages section.
------------------------------------------------- */

#personal_messages h3 span#author, #personal_messages h3 span#topic_title
{
   float: left;
}
#personal_messages h3 span#author
{
   margin: 0 0 0 0.5em;
}
#personal_messages h3 span#topic_title
{
   margin: 0 0 0 9em;
}
#personal_messages div.labels
{
   padding: 0 1em 0 0;
}
#personal_messages .capacity_bar
{
   background: #f0f4f7;
   display: block;
   margin: 0.5em 0 0 1em;
   height: 1em;
   border: 1px solid #adadad;
   width: 10em;
}
#personal_messages .capacity_bar span
{
   border-right: 1px solid #adadad;
   display: block;
   height: 1em;
}
#personal_messages .capacity_bar span.empty
{
   background: #a6d69d;
}
#personal_messages .capacity_bar span.filled
{
   background: #eea800;
}
#personal_messages .capacity_bar span.full
{
   background: #DB4D4D;
}
#personal_messages .reportlinks
{
   padding: 0.5em 1.3em;
}
#searchLabelsExpand li
{
   padding: 0.3em 0.5em;
}
#manrules div.righttext
{
   padding: 0.3em 0.1em;
}
dl.addrules dt.floatleft
{
   width: 15em;
   color: #333;
   padding: 0 1.25em 0.5em 1.25em;
}
#addrule fieldset
{
   clear: both;
}

/* Styles for the calendar section.
------------------------------------------------- */
.calendar_table
{
   margin-bottom: 0.7em;
}

/* Used to indicate the current day in the grid. */
.calendar_today
{
   background-color: #fff;
}

#month_grid
{
   width: 200px;
   text-align: center;
   float: left;
}
#month_grid div.cat_bar
{
   height: 25px;
}
#month_grid h3.catbg
{
   height: 25px;
   line-height: 27px;
}
#month_grid table
{
   width: 200px;
}
#main_grid table
{
   width: 100%;
   padding-bottom: 4px;
}
#main_grid table h3.catbg
{
   text-align: center;
   height: 29px;
   border-top: 2px solid #fff;
   border-bottom: none;
}
#main_grid table.weeklist td.windowbg
{
   text-align: center;
   height: 49px;
   width: 25px;
   font-size: large;
   padding: 0 7px;
   border-bottom: 2px solid #fff;
}
#main_grid table.weeklist td.weekdays
{
   height: 49px;
   width: 100%;
   padding: 4px;
   text-align: left;
   vertical-align: middle;
   border-bottom: 2px solid #fff;
}
#main_grid h3.weekly
{
   text-align: center;
   padding-left: 0;
   font-size: large;
   height: 29px;
}
#main_grid h3 span.floatleft, #main_grid h3 span.floatright
{
   display: block;
   font-weight: bold;
}
#main_grid table th.days
{
   width: 14%;
   padding: 4px 0;
}
#main_grid table.weeklist h4.titlebg
{
   margin: 0 0 0 0;
   height: 23px;
   line-height: 27px;
}
#main_grid table td.weeks
{
   vertical-align: middle;
   text-align: center;
   font-weight: bold;
   font-size: large;
}
#main_grid table td.days
{
   vertical-align: top;
   text-align: center;
}

a.modify_event
{
   color: red;
}

span.hidelink
{
   font-style: italic;
}

#calendar_navigation
{
   text-align: center;
}

/* Styles for the memberlist section.
------------------------------------------------- */
#mlist_search
{
   margin: auto;
   width: 500px;
}

/* Styles for the basic search section.
------------------------------------------------- */
#searchform, #simple_search p
{
   padding: 0.5em;
   margin: 0;
}
#simple_search, #simple_search p, #advanced_search
{
   text-align: center !important;
   margin: 0;
}
#search_error
{
   font-style: italic;
   padding: 0.3em 1em;
}
#search_term_input
{
   font-size: 115%;
   margin: 0 0 1em;
}

/* Styles for the advanced search section.
------------------------------------------------- */
#searchform fieldset
{
   text-align: left;
   padding: 0;
   border: none;
}
#advanced_search dl#search_options
{
   margin: 0 auto;
   width: 600px;
   padding-top: 1em;
   overflow: hidden;
}
#advanced_search dt
{
   clear: both;
   float: left;
   padding: 0.2em;
   text-align: right;
   width: 20%;
}
#advanced_search dd
{
   width: 75%;
   float: left;
   padding: 0.2em;
   margin: 0 0 0 0.5em;
   text-align: left;
}
#searchform p.clear
{
   clear: both;
}

/* Styles for the search results page.
------------------------------------------------- */
.topic_table td blockquote, .topic_table td .quoteheader
{
   margin: 0.5em;
}
.search_results_posts
{
   overflow: hidden;
}
.search_results_posts .buttons
{
   padding: 5px 1em 0 0;
}

/* Styles for the help section.
------------------------------------------------- */

#help_container
{
   margin: 4px 0 0 0;
   padding: 0 0 8px 0;
}
#helpmain
{
   padding: 0 1em;
}
#helpmain p
{
   margin: 0 0 1.5em 0;
   line-height: 1.5em;
}
#helpmain ul
{
   line-height: 1.5em;
}

/* Styles for print media.
------------------------------------------------------- */
@media print
{
   #headerarea
   {
      display: none;
   }

   .tborder
   {
      border: none;
   }
}

/* Auto resizing of images in posts and personal messages. */
/* Change sizing to suit your own preferences. */
.bbc_img{
/* This is just to keep images to a handy size, even on large screens. */
   max-height: 640px;
/* This prevents images breaking out of the post on small screens. */
   max-width: 95%;
}


/* Auto resizing of images in signatures. */
/* Change sizing to suit your own preferences. */
.signature .bbc_img {
   max-height: 120px;
   max-width: 95%;
}

#infotext a {
   text-align: right;
}
a.infotext:hover
{
   text-decoration: none;
   cursor: pointer;
   background: #F5EFE4
}
Title: [15] BBC [url] [iurl] [quote]
Post by: Administration on May 24, 2015, 07:55:16 PM
Atma hat das Einfügen der Codes für Externen-Link, Internen_Link, und Zitat verändert.

Statt wie bis her erscheint:

[url][/url] nun als [url=""][/url]

Der Intern-Link hat nun auch eine Button (Dank hier an Rumpa (http://"http://www.simplemachines.org/community/index.php?topic=531471.0") im SMF-Forum)

[iurl=""][/iurl]

[quote][/quote] nun [quote=""][/quote]

Das sollte etwas Arbeit einsparen.

Änderungen in Subs-iurlButton.php
Code: [Select]
		if (isset($tag['image']) && $tag['image'] == 'url')
{
$temp[] = array(
'image' => 'iurl',
'code' => 'iurl',
'before' => '[iurl=""]',
'after' => '[/iurl]',
'description' => $txt['iurl']
);

Änderung in
Code: [Select]
			array(
'image' => 'url',
'code' => 'url',
'before' => '[url=""]',
'after' => '[/url]',
'description' => $txt['hyperlink']
),
und
Code: [Select]
			array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote=""]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),
Title: [16] Buttons für Language und "me" (offtopic)
Post by: Administration on May 24, 2015, 10:47:09 PM
Atma hat Buttons für die drei neuen Sprach-Tags und für die "me" bzw. "Off-Topic"-Anzeige eingebaut. Die Buttons für "Schatten" und "Glimmer" wurden entfernt.

Ergänzung in Subs-Editor.php

Code: [Select]
		// The below array makes it dead easy to add images to this control. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();
$context['bbc_tags'][] = array(
array(
'image' => 'bold',
'code' => 'b',
'before' => '[b]',
'after' => '[/b]',
'description' => $txt['bold'],
),
array(
'image' => 'italicize',
'code' => 'i',
'before' => '[i]',
'after' => '[/i]',
'description' => $txt['italic'],
),
array(
'image' => 'underline',
'code' => 'u',
'before' => '[u]',
'after' => '[/u]',
'description' => $txt['underline']
),
array(
'image' => 'strike',
'code' => 's',
'before' => '[s]',
'after' => '[/s]',
'description' => $txt['strike']
),
array(),
array(
'image' => 'pre',
'code' => 'pre',
'before' => '[pre]',
'after' => '[/pre]',
'description' => $txt['preformatted']
),
array(
'image' => 'left',
'code' => 'left',
'before' => '[left]',
'after' => '[/left]',
'description' => $txt['left_align']
),
array(
'image' => 'center',
'code' => 'center',
'before' => '[center]',
'after' => '[/center]',
'description' => $txt['center']
),
array(
'image' => 'right',
'code' => 'right',
'before' => '[right]',
'after' => '[/right]',
'description' => $txt['right_align']
),
array(
'image' => 'move',
'code' => 'move',
'before' => '[move]',
'after' => '[/move]',
'description' => $txt['marquee']
),
array(
'image' => 'me',
'code' => 'me',
'before' => '[me=]',
'after' => '[/me]',
'description' => $txt['me_off']
),
);
$context['bbc_tags'][] = array(
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),
array(
'image' => 'img',
'code' => 'img',
'before' => '[img]',
'after' => '[/img]',
'description' => $txt['image']
),
array(
'image' => 'url',
'code' => 'url',
'before' => '[url=""]',
'after' => '[/url]',
'description' => $txt['hyperlink']
),
array(
'image' => 'email',
'code' => 'email',
'before' => '[email]',
'after' => '[/email]',
'description' => $txt['insert_email']
),
array(
'image' => 'ftp',
'code' => 'ftp',
'before' => '[ftp]',
'after' => '[/ftp]',
'description' => $txt['ftp']
),
array(),
array(
'image' => 'lde',
'code' => 'lde',
'before' => '[lde]',
'after' => '[/lde]',
'description' => $txt['langua_de']
),
array(
'image' => 'len',
'code' => 'len',
'before' => '[len]',
'after' => '[/len]',
'description' => $txt['langua_en']
),
array(
'image' => 'lkh',
'code' => 'lkh',
'before' => '[lkh]',
'after' => '[/lkh]',
'description' => $txt['langua_kh']
),
array(),
array(
'image' => 'sup',
'code' => 'sup',
'before' => '[sup]',
'after' => '[/sup]',
'description' => $txt['superscript']
),
array(
'image' => 'sub',
'code' => 'sub',
'before' => '[sub]',
'after' => '[/sub]',
'description' => $txt['subscript']
),
array(
'image' => 'tele',
'code' => 'tt',
'before' => '[tt]',
'after' => '[/tt]',
'description' => $txt['teletype']
),
array(),
array(
'image' => 'table',
'code' => 'table',
'before' => '[table]\n[tr]\n[td]',
'after' => '[/td]\n[/tr]\n[/table]',
'description' => $txt['table']
),
array(
'image' => 'code',
'code' => 'code',
'before' => '[ code]',//* ACHTUNG LEERZEICHEN ENTFERNEN
'after' => '[ /code]',//* ACHTUNG LEERZEICHEN ENTFERNEN
'description' => $txt['bbc_code']
),
array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote=""]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),
array(),
array(
'image' => 'list',
'code' => 'list',
'before' => '[list]\n[li]',
'after' => '[/li]\n[li][/li]\n[/list]',
'description' => $txt['list_unordered']
),
array(
'image' => 'orderlist',
'code' => 'orderlist',
'before' => '[list type=decimal]\n[li]',
'after' => '[/li]\n[li][/li]\n[/list]',
'description' => $txt['list_ordered']
),
array(
'image' => 'hr',
'code' => 'hr',
'before' => '[hr]',
'description' => $txt['horizontal_rule']
),
);

In allen Sprachdateien post. ... die Textstrings hinzugefügt:

Code: [Select]
$txt['langua_kh'] = 'Khmer language';
$txt['langua_kh'] = 'English language';
$txt['langua_kh'] = 'German language';
$txt['me_off'] = 'Off-Topic frame';
Deutsch
Code: [Select]
$txt['langua_kh'] = 'Khmer Sprache';
$txt['langua_kh'] = 'Englsiche Sprache';
$txt['langua_kh'] = 'Deutsche Sprache';
$txt['me_off'] = 'Off-Topic Rahmen';
Khmer
Code: [Select]
$txt['langua_kh'] = '​ភាសា​ខ្មែ';
$txt['langua_kh'] = 'ភាសា​អង់គ្លេស';
$txt['langua_kh'] = 'ភាសា​អាល្លឺម៉ង់';
$txt['me_off'] = 'ក្រប បិទ​ប្រធានបទ';
Title: [17] Personalized BBC
Post by: Administration on May 25, 2015, 05:25:39 PM
Diese Modification würde es ermöglichen, z.B Sprachbezogen zu posten und auszuwählen welche Sprachen man sehen möchte und vieles mehr.

Quote from: by Johann, Personalized BBC SMF-forum (http://www.simplemachines.org/community/index.php?topic=523396.msg3814315#msg3814315) in Regard of this mod (http://custom.simplemachines.org/mods/index.php?mod=3864)
Seems to be great Mod! Congratulation!

Thinking that Atma (me) had made some by hand... and today this.

A question, since I have add some BBC manually, would that be a problem if installed? How does this Mod handle existing codes?

I made changes and adds in subs and Subs-Post.php (SMF 2.0.10)

Althroug it is not so usual, Atma (I) would like to request the use of this modification for sangham.net and the Sangha.

Thanks a lot for your support!
Title: Re: [17] Personalized BBC
Post by: Dhammañāṇa on May 27, 2015, 04:50:04 PM
Diese Modification würde es ermöglichen, z.B Sprachbezogen zu posten und auszuwählen welche Sprachen man sehen möchte und vieles mehr.

Quote from: by Johann, Personalized BBC SMF-forum (http://www.simplemachines.org/community/index.php?topic=523396.msg3814315#msg3814315) in Regard of this mod (http://custom.simplemachines.org/mods/index.php?mod=3864)
Seems to be great Mod! Congratulation!

Thinking that Atma (me) had made some by hand... and today this.

A question, since I have add some BBC manually, would that be a problem if installed? How does this Mod handle existing codes?

I made changes and adds in subs and Subs-Post.php (SMF 2.0.10)

Althroug it is not so usual, Atma (I) would like to request the use of this modification for sangham.net and the Sangha.

Thanks a lot for your support!

Atma hat diese Modifikation nach Rücksprache mit dem Hersteller installiert und testen es gerade für die Sprach BBCs
Title: Re: [16] Buttons für Language und "me" (offtopic)
Post by: Dhammañāṇa on May 27, 2015, 04:56:37 PM
Atma hat Buttons für die drei neuen Sprach-Tags und für die "me" bzw. "Off-Topic"-Anzeige eingebaut. Die Buttons für "Schatten" und "Glimmer" wurden entfernt.

Ergänzung in Subs-Editor.php

Code: [Select]
		// The below array makes it dead easy to add images to this control. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();
$context['bbc_tags'][] = array(
array(
'image' => 'bold',
'code' => 'b',
'before' => '[b]',
'after' => '[/b]',
'description' => $txt['bold'],
),
array(
'image' => 'italicize',
'code' => 'i',
'before' => '[i]',
'after' => '[/i]',
'description' => $txt['italic'],
),
array(
'image' => 'underline',
'code' => 'u',
'before' => '[u]',
'after' => '[/u]',
'description' => $txt['underline']
),
array(
'image' => 'strike',
'code' => 's',
'before' => '[s]',
'after' => '[/s]',
'description' => $txt['strike']
),
array(),
array(
'image' => 'pre',
'code' => 'pre',
'before' => '[pre]',
'after' => '[/pre]',
'description' => $txt['preformatted']
),
array(
'image' => 'left',
'code' => 'left',
'before' => '[left]',
'after' => '[/left]',
'description' => $txt['left_align']
),
array(
'image' => 'center',
'code' => 'center',
'before' => '[center]',
'after' => '[/center]',
'description' => $txt['center']
),
array(
'image' => 'right',
'code' => 'right',
'before' => '[right]',
'after' => '[/right]',
'description' => $txt['right_align']
),
array(
'image' => 'move',
'code' => 'move',
'before' => '[move]',
'after' => '[/move]',
'description' => $txt['marquee']
),
array(
'image' => 'me',
'code' => 'me',
'before' => '[me=]',
'after' => '[/me]',
'description' => $txt['me_off']
),
);
$context['bbc_tags'][] = array(
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),
array(
'image' => 'img',
'code' => 'img',
'before' => '[img]',
'after' => '[/img]',
'description' => $txt['image']
),
array(
'image' => 'url',
'code' => 'url',
'before' => '[url=""]',
'after' => '[/url]',
'description' => $txt['hyperlink']
),
array(
'image' => 'email',
'code' => 'email',
'before' => '[email]',
'after' => '[/email]',
'description' => $txt['insert_email']
),
array(
'image' => 'ftp',
'code' => 'ftp',
'before' => '[ftp]',
'after' => '[/ftp]',
'description' => $txt['ftp']
),
array(),
array(
'image' => 'lde',
'code' => 'lde',
'before' => '[lde]',
'after' => '[/lde]',
'description' => $txt['langua_de']
),
array(
'image' => 'len',
'code' => 'len',
'before' => '[len]',
'after' => '[/len]',
'description' => $txt['langua_en']
),
array(
'image' => 'lkh',
'code' => 'lkh',
'before' => '',
'description' => $txt['langua_kh']
),
array(),
array(
'image' => 'sup',
'code' => 'sup',
'before' => '[sup]',
'after' => '[/sup]',
'description' => $txt['superscript']
),
array(
'image' => 'sub',
'code' => 'sub',
'before' => '[sub]',
'after' => '[/sub]',
'description' => $txt['subscript']
),
array(
'image' => 'tele',
'code' => 'tt',
'before' => '[tt]',
'after' => '[/tt]',
'description' => $txt['teletype']
),
array(),
array(
'image' => 'table',
'code' => 'table',
'before' => '[table]\n[tr]\n[td]',
'after' => '[/td]\n[/tr]\n[/table]',
'description' => $txt['table']
),
array(
'image' => 'code',
'code' => 'code',
'before' => '[ code]',//* ACHTUNG LEERZEICHEN ENTFERNEN
'after' => '[ /code]',//* ACHTUNG LEERZEICHEN ENTFERNEN
'description' => $txt['bbc_code']
),
array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote=""]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),
array(),
array(
'image' => 'list',
'code' => 'list',
'before' => '[list]\n[li]',
'after' => '[/li]\n[li][/li]\n[/list]',
'description' => $txt['list_unordered']
),
array(
'image' => 'orderlist',
'code' => 'orderlist',
'before' => '[list type=decimal]\n[li]',
'after' => '[/li]\n[li][/li]\n[/list]',
'description' => $txt['list_ordered']
),
array(
'image' => 'hr',
'code' => 'hr',
'before' => '[hr]',
'description' => $txt['horizontal_rule']
),
);

In allen Sprachdateien post. ... die Textstrings hinzugefügt:

Code: [Select]
$txt['langua_kh'] = 'Khmer language';
$txt['langua_kh'] = 'English language';
$txt['langua_kh'] = 'German language';
$txt['me_off'] = 'Off-Topic frame';
Deutsch
Code: [Select]
$txt['langua_kh'] = 'Khmer Sprache';
$txt['langua_kh'] = 'Englsiche Sprache';
$txt['langua_kh'] = 'Deutsche Sprache';
$txt['me_off'] = 'Off-Topic Rahmen';
Khmer
Code: [Select]
$txt['langua_kh'] = '​ភាសា​ខ្មែ';
$txt['langua_kh'] = 'ភាសា​អង់គ្លេស';
$txt['langua_kh'] = 'ភាសា​អាល្លឺម៉ង់';
$txt['me_off'] = 'ក្រប បិទ​ប្រធានបទ';

Atma hat die händische Änderung in subs-editor.php
Code: [Select]
array(
'image' => 'lde',
'code' => 'lde',
'before' => '[lde]',
'after' => '[/lde]',
'description' => $txt['langua_de']
),
array(
'image' => 'len',
'code' => 'len',
'before' => '[len]',
'after' => '[/len]',
'description' => $txt['langua_en']
),
array(
'image' => 'lkh',
'code' => 'lkh',
'before' => '[lkh]',
'after' => '[/lkh]',
'description' => $txt['langua_kh']
),
array(),

und subs.php

Code: [Select]
// <--ergänzt sangham
array(
'tag' => 'lde',
'before' => '<span style="color: gray;" class="bbc_lde">',
'after' => '</span>',
),
array(
'tag' => 'len',
'before' => '<span style="color: black;" class= "bbc_len">',
'after' => '</span>',
),
array(
'tag' => 'lkh',
'before' => '<span style="color: #673C3C; font-size: 1.4em;" class= "bbc_lkh">',
'after' => '</span>',
),// ergänzt sangham -->

Und testet gerade die Persönliche BBC funktion um diese gruppenabhängig anzeigen zu können.
Title: [18] log error im Bezug auf @mention im post-subs.php
Post by: Administration on June 18, 2015, 09:05:07 PM
Im Fehlerprotokoll kommt eine Anmerkung vor, die zur Modifikation @mentions führt.

Quote from: error-log
8: Undefined index: approved
Datei: /var/www/vhosts/sangham.net/httpdocs/Sources/Subs-Post.php
Zeile: 2419

und auf die Zeile hier zeigt:
Code: [Select]
2419: 	mentions_process_store($msgOptions['mentions'], $msgOptions['id'], $msgOptions['subject'], $msgOptions['approved']);

Atma hat dazu eine Anmerkung im Mod-Thema, im SMF-Forum (http://www.simplemachines.org/community/index.php?topic=522005.msg3819442#msg3819442) gemacht.
Title: [19] Fehlermeldung beim Ändern eines alten Post
Post by: Dhammañāṇa on September 05, 2015, 11:51:16 AM
Atma ist gerade diese Fehlermeldung untergekommen:

Quote from: ??
Duplicate entry '904057980-3242' for key 'PRIMARY'
File: /var/www/vhosts/sangham.net/httpdocs/Sources/Subs-Post.php
Line: 2591

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.10, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php.

Wenn jemand in Rücksprache mit dem SMF-Team dieses abklären möchte, wäre dies sicherlich gut. Mag man verstehen, das es Atma, im ungeladenen aufwarten Dritter, nicht wirklich möglich ist sich diesem anzunehmen.
Soweit dürfte jedoch alles funktionieren.
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on December 19, 2016, 08:49:43 AM
Quote from: bildschirmanzeige nach einloggen,  für http://forum.sangham.net/index.php?action=xmlhttp;sa=messageicons;board=31;xml
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<smf>
<icon value="xx" url="http://forum.sangham.net/Themes/sangham/images/post/xx.gif">
<![CDATA[ Standard ]]>
</icon>
<icon value="thumbup" url="http://forum.sangham.net/Themes/sangham/images/post/thumbup.gif">
<![CDATA[ Thumb Up ]]>
</icon>
<icon value="thumbdown" url="http://forum.sangham.net/Themes/sangham/images/post/thumbdown.gif">
<![CDATA[ Working place ]]>
</icon>
<icon value="exclamation" url="http://forum.sangham.net/Themes/sangham/images/post/exclamation.gif">
<![CDATA[ Info ]]>
</icon>
<icon value="question" url="http://forum.sangham.net/Themes/sangham/images/post/question.gif">
<![CDATA[ Question mark ]]>
</icon>
<icon value="lamp" url="http://forum.sangham.net/Themes/sangham/images/post/lamp.gif">
<![CDATA[ Solved ]]>
</icon>
<icon value="wink" url="http://forum.sangham.net/Themes/sangham/images/post/wink.gif">
<![CDATA[ sangham.net Info ]]>
</icon>
<icon value="sadhu_sangham" url="http://forum.sangham.net/Themes/sangham/images/post/sadhu_sangham.gif">
<![CDATA[ Sadhu! ]]>
</icon>
<icon value="smiley" url="http://forum.sangham.net/Themes/sangham/images/post/smiley.gif">
<![CDATA[ Smiley ]]>
</icon>
<icon value="angry" url="http://forum.sangham.net/Themes/sangham/images/post/angry.gif">
<![CDATA[ Angry ]]>
</icon>
<icon value="cheesy" url="http://forum.sangham.net/Themes/sangham/images/post/cheesy.gif">
<![CDATA[ Happy ]]>
</icon>
<icon value="grin" url="http://forum.sangham.net/Themes/sangham/images/post/grin.gif">
<![CDATA[ Grin ]]>
</icon>
<icon value="sad" url="http://forum.sangham.net/Themes/sangham/images/post/sad.gif">
<![CDATA[ Sad ]]>
</icon>
<icon value="shock_sangham" url="http://forum.sangham.net/Themes/sangham/images/post/shock_sangham.gif">
<![CDATA[ shocked ]]>
</icon>
</smf>

Diese "white screen info" ist Atma nach dem Befehl des Einloggens erschienen.  Kann sich aufgrund der schlechen Verbindung ergeben haben.  Wie auch immer hier zur Info und ggf.  Hilfe,  wenn da etwas eckt. (Soeine Anzeige kann auch kommen,  wenn man die php Fehlermeldungen,  weil gerade am werken,  kommen und generelle gute Info sein).  Atma hat sie noch nicht genau studiert,  nur schnell geteilt.

Nachtrag,  nach kurzen geistigen umsehen: Oh,  da sind gerade Devas am Werken.  Na hoffentlich hat sie das jetzt nicht gestört  :)
Sadhu.
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Sophorn on December 19, 2016, 10:06:44 AM
 _/\_ _/\_ _/\_

Werter Moritz,
kannst du dich bitte darum annehmen? Mit technischen Dingen bin ich vollkommen daneben.

 _/\_ _/\_ _/\_
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on January 03, 2017, 12:52:34 AM
Quote from: bildschirmanzeige nach einloggen,  für http://forum.sangham.net/index.php?action=xmlhttp;sa=messageicons;board=31;xml
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<smf>
<icon value="xx" url="http://forum.sangham.net/Themes/sangham/images/post/xx.gif">
<![CDATA[ Standard ]]>
</icon>
<icon value="thumbup" url="http://forum.sangham.net/Themes/sangham/images/post/thumbup.gif">
<![CDATA[ Thumb Up ]]>
</icon>
<icon value="thumbdown" url="http://forum.sangham.net/Themes/sangham/images/post/thumbdown.gif">
<![CDATA[ Working place ]]>
</icon>
<icon value="exclamation" url="http://forum.sangham.net/Themes/sangham/images/post/exclamation.gif">
<![CDATA[ Info ]]>
</icon>
<icon value="question" url="http://forum.sangham.net/Themes/sangham/images/post/question.gif">
<![CDATA[ Question mark ]]>
</icon>
<icon value="lamp" url="http://forum.sangham.net/Themes/sangham/images/post/lamp.gif">
<![CDATA[ Solved ]]>
</icon>
<icon value="wink" url="http://forum.sangham.net/Themes/sangham/images/post/wink.gif">
<![CDATA[ sangham.net Info ]]>
</icon>
<icon value="sadhu_sangham" url="http://forum.sangham.net/Themes/sangham/images/post/sadhu_sangham.gif">
<![CDATA[ Sadhu! ]]>
</icon>
<icon value="smiley" url="http://forum.sangham.net/Themes/sangham/images/post/smiley.gif">
<![CDATA[ Smiley ]]>
</icon>
<icon value="angry" url="http://forum.sangham.net/Themes/sangham/images/post/angry.gif">
<![CDATA[ Angry ]]>
</icon>
<icon value="cheesy" url="http://forum.sangham.net/Themes/sangham/images/post/cheesy.gif">
<![CDATA[ Happy ]]>
</icon>
<icon value="grin" url="http://forum.sangham.net/Themes/sangham/images/post/grin.gif">
<![CDATA[ Grin ]]>
</icon>
<icon value="sad" url="http://forum.sangham.net/Themes/sangham/images/post/sad.gif">
<![CDATA[ Sad ]]>
</icon>
<icon value="shock_sangham" url="http://forum.sangham.net/Themes/sangham/images/post/shock_sangham.gif">
<![CDATA[ shocked ]]>
</icon>
</smf>

Diese "white screen info" ist Atma nach dem Befehl des Einloggens erschienen.  Kann sich aufgrund der schlechen Verbindung ergeben haben.  Wie auch immer hier zur Info und ggf.  Hilfe,  wenn da etwas eckt. (Soeine Anzeige kann auch kommen,  wenn man die php Fehlermeldungen,  weil gerade am werken,  kommen und generelle gute Info sein).  Atma hat sie noch nicht genau studiert,  nur schnell geteilt.

Nachtrag,  nach kurzen geistigen umsehen: Oh,  da sind gerade Devas am Werken.  Na hoffentlich hat sie das jetzt nicht gestört  :)
Sadhu.
_/\_ _/\_ _/\_

Werter Moritz,
kannst du dich bitte darum annehmen? Mit technischen Dingen bin ich vollkommen daneben.

 _/\_ _/\_ _/\_


Ist dieses Problem noch einmal aufgetreten? Entschuldigung, dass ich jetzt erst dazu melde. Ich weiß nicht, welche Devas damals da am Werken waren. Es könnte Mara gewesen sein.
Ich habe bloß versucht, in dem Programmcode des Forums, den ich hier als Backup bei mir gespeichert hab, danach zu suchen, wie es zu so etwas kommen, konnte es aber nicht ganz durchblicken und enträtseln.
Da es aber offenbar nicht die Nutzung des Forums unmöglich gemacht hat, und gerade Vorweihnachtsstress war, habe ich da nicht viel weiter nachgeforscht.
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on January 03, 2017, 12:58:57 AM
Denke nicht wirklich der Forschung wert, da nicht mehr aufgetreten und sonst keinem anderen untergekommen. Sadhu für die Umsicht werter Moritz.
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on January 03, 2017, 01:00:26 AM
Okay. _/\_
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on January 21, 2017, 10:27:46 PM
Es scheint, dass der Recent-Topics-Block seit gestern nicht mehr richtig funktioniert. Er wird nun als leer angezeigt.
Hatte zu erst gedacht, dass es an meinem Computer liegen könnte, aber in drei Browsern auf zwei Geräten dasselbe Ergebnis.
Zwischenzeitlich wurde es auch heute Nacht wieder richtig angezeigt.
Wenn ich mir unter "Block bearbeiten" den Code ansehen, kann ich auf den ersten und zweiten Blick nichts offensichtliches entdecken, was da falsch sein sollte.
Haben Bhante irgendeine Idee, irgendetwas daran letztens verändert?

/me Denke aber, gestern Nacht irgendwann zwischendurch funktionierte es wieder. Hat vielleicht irgendetwas mit den zuletzt aufgespalteten Topics zu tun, dass davon etwas falsch verarbeitet wird.

/me Nach dem Posten dieses Beitrags funktioniert es offenbar wieder. Denke, es hat etwas mit gelöschten/verschobenen Themen/Posts zu tun, dass das System da etwas falsch verarbeitet, was mit einem neuen "normalen" Antwort-Post irgendwo wieder richtig gerückt wird.
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on January 22, 2017, 10:39:20 AM
Selbes beobachtet, Moritz . Könnte man nur vielleicht im TP forum fragen, oder im SMF-Forum (und das php posten). Atma kann sich eines vorstellen, daß so manche Codes Probleme mit der Khmer schrift haben, speziell, wenn eine bestimmte Zahl von Zeichen abgeschnitten wird. So wir vermehrt , Posts mit diesen Zeichen haben, könnten sich dadurch unlösbare codereste ergeben. Das ist soweit alles was Atma da erähnen kann. Kann auch sein, daß TP nach wie vor mit utf-8 Probleme hat, sich wieder oder noch immer Unicode Zeichen in der Datenbank da abspeichern... Schon länge nicht mehr die Datenbank in uft-8 umgewandelt...  :) Heiße Sache, und wirklich niemand kennt sich da aus. Hatte man Gespräch mit jemanden, der diese Dinge ernst nahm, auf SMF, aber jener ist natürlich schon länger aufgebrochen. Leute nehmen nur das was sie sehen können für wahr, und google macht die Arbeit für sie.
"Gelöscht" und verschoben wurde zuvor ja auch, aber kann schon sein. Vielleicht einfach mal in die Wartungszentale im Adminbereich gehen, und dort so Dinge wie "Zwischenspeicher löschen" und "Topics neu zählen" tun. Atma hatte da irgend wan mal begonnen ein Thema "Adminarbeiten" im Klosterhelferbereich, den Erfahrungen nach, zu Beginnen.
Von der SMF eigenen "recent Topic" anzeige weiß Atma nur, dass die Programmierer die Tiefe (Sub Foren) limitiert haben, da es offenbar zu potenzierend großen Rechenvorgängen kommt, wenn die Anfrage da nicht limitiert wird. Vielleicht ist ja auch ein zu großer Rechenprozess der Grund. Gut ist auch, wenn man die Anzeige der Fehlermeldungen (erscheint dann jedes mal beim Aufruf am Beginn der Seite) vorübergehend aktiviert und auch unter den Fehlerprotokollen nachsieht.
Sadhu für Umsicht.
Title: Antw:Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Administration on January 22, 2017, 05:51:05 PM
Es scheint bei Verschieben in Recycling-Platz verursacht zu werden.
Eine neue Nachricht hier geschrieben, und die Recent-Topic-Übersicht ist wieder in Ordnung.
Diese verschoben in Recycling-Platz und Übersicht ist wieder weg.
Wiederhergestellt aus Recycling-Platz, aber dadurch auch nicht wieder behoben.
Jetzt neue Nachricht hier schreibend, müsste es vorübergehend wieder funktionieren.

/me Ja, scheint so. Vielleicht am besten vorübergehend so Dinge wie "Thema wurde hier abgeschnitten und da und dort weitergeführt" nicht löschen bzw. in Recycling-Platz verschieben, bis da der Grund rausgefunden und vielleicht behoben ist. Wenn man zuletzt eine ganz normale Antwort in einem Thema schreibt (und vermutlich auch, wenn man ein neues eröffnet), ist die Recent-Topic-Übersicht erst mal wieder hergestellt.
Title: Post-History Fehlermeldung 500
Post by: Dhammañāṇa on March 14, 2017, 07:47:46 PM
Atma wollte sich hier im Thema (http://forum.sangham.net/index.php/topic,1966.msg11390.html#msg11390) gerade die Post-Geschichte ansehen und beim Vergleichen der letzten beiden Änderungen zur vorhergehenden erhält Atma eine 500 Errormeldung. Sonst scheint es überall kein Problem zu geben.

Vielleicht möcht jemand anderer au versuchen, ob selbiges passiert.

(Am Rande ist Atma aufgefallen, dass irgendwann in den letzten Wochen ein Einigetausendsprung in der Topic id war und diese leeren woll nicht genutz werden.)
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 28, 2018, 07:37:02 AM
New-icon scheint ein Pfadproblem zu haben, und wird nicht angezeigt. Screenshot in der Anlage:
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on April 28, 2018, 01:16:54 PM
New-icon scheint ein Pfadproblem zu haben, und wird nicht angezeigt. Screenshot in der Anlage:
Kann den Fehler hier nicht reproduzieren. "New"-Icon ist unterschiedlich je nach eingestellter Sprache:
http://forum.sangham.net/Themes/sangham/images/cambodian-utf8/new.gif
http://forum.sangham.net/Themes/sangham/images/chinese_simplified-utf8/new.gif
http://forum.sangham.net/Themes/sangham/images/czech-utf8/new.gif
http://forum.sangham.net/Themes/sangham/images/dutch-utf8/new.gif
http://forum.sangham.net/Themes/sangham/images/english-utf8/new.gif
http://forum.sangham.net/Themes/sangham/images/english-utf8/new.gif
http://forum.sangham.net/Themes/sangham/images/romanian-utf8/new.gif

Scheinen fast alle, soweit durchprobiert, zu funktionieren. Nur German-informal hat kein Icon.

Nur bei "Finnisch" kommt eine lustige Fehlermeldung:
Quote
Teeman jäsennysvirhe!

Ongelma ladatessa /Themes/default/languages/Modifications.finnish-utf8.php teema- tai kielitiedostoa. Tarkista koodi ja yritä uudelleen - muista, yksittäiset lainausmerkit (') on usein suojattava heittomerkillä (\). Nähdäksesi tarkemmat virheeseen johtaneet tiedot PHPsta, yritä suoraan tiedostosta.

Haluat varmaan yrittää päivittää sivun tai käyttää oletusteemaa.

Parse error: syntax error, unexpected 'permissionname_simple_posthist' (T_STRING) in .../Themes/default/languages/Modifications.finnish-utf8.php on line 34
25: $txt['permissionhelp_posthistory_view'] = 'Näkee viestin edelliset versiot jos niitä on muokattu';
26: $txt['permissionname_posthistory_view_own'] = 'Oma';
27: $txt['permissionname_posthistory_view_any'] = 'Kaikki';
28: $txt['permissionname_posthistory_restore'] = 'Vanhemman version palauttaminen';
29: $txt['permissionhelp_posthistory_restore'] = 'Sallii käyttäjän palauttaa aiemmen version viestistä.';
30: $txt['permissionname_posthistory_restore_own'] = 'Oma';
31: $txt['permissionname_posthistory_restore_any'] = 'Kaikki';
32: $txt['permissionname_simple_posthistory_view_own'] = 'Katsoa omien viestien muokkaushistoria';
33: $txt['permissionname_simple_posthistory_view_any'] = 'Katsoa kaikkien viestien muokkaushistoria
34: $txt['permissionname_simple_posthistory_restore_own'] = 'Palauttaa vanhempi versio omasta viestistä';
35: $txt['permissionname_simple_posthistory_restore_any'] = 'Palauttaa vanhempi versio kenen tahansa viestistä';
36:
37: $txt['cannot_posthistory_view_any'] = 'Et voi katsoa tämän viestin muokkaushistoriaa!';
38: $txt['cannot_posthistory_restore_own'] = 'Et voi palauttaa oman viestin vanhempaa versiota!';
Und dann, woher auch immer, kam eine Weiterleitung an an:
https://www.youtube.com/watch?v=VnNbddUMZQI&feature=youtu.be&t=32m37s

:?

Hmm... und jetzt geht der Fehler gar nicht mehr weg und das ganze Forum geht nicht mehr, wenn eingeloggt.
Wenn man Finnisch einstellt, macht man sich also wohl den Zugang zum Forum kaputt, weil da wohl was in den Sprachdateien kaputt ist. Kann man dann wohl auch nicht mehr umstellen als einfacher Nutzer, sondern muss das in der Datenbank für den Nutzer wieder auf was anderes zurücksetzen. Das muss man wohl mal reparieren.

Edit: Okay, da fehlte nur ein
Code: [Select]
';
am Ende der Zeile. Finnisch geht jetzt auch.
Aber auf welchen Button klick ich jetzt? Talleenna, Oikoluku oder Peruuta? Hmm...
"Peruuta" heißt wohl "Abbrechen" oder so. "Talleena" funktioniert. :)
Title: Re: Post-History Fehlermeldung 500
Post by: Moritz on April 28, 2018, 01:36:27 PM
Atma wollte sich hier im Thema (http://forum.sangham.net/index.php/topic,1966.msg11390.html#msg11390) gerade die Post-Geschichte ansehen und beim Vergleichen der letzten beiden Änderungen zur vorhergehenden erhält Atma eine 500 Errormeldung. Sonst scheint es überall kein Problem zu geben.

Vielleicht möcht jemand anderer au versuchen, ob selbiges passiert.
Hab gerade ausprobiert, und ich kann mir jede Einzelversion für sich allein ansehen.
Nur beim Vergleichen kommt manchmal ein leeres Fenster als Antwort. Es scheint nicht möglich, das Original mit der ersten oder zweiten Änderung zu vergleichen. Alle anderen Kombinationen scheinen zu funktionieren.

(Am Rande ist Atma aufgefallen, dass irgendwann in den letzten Wochen ein Einigetausendsprung in der Topic id war und diese leeren woll nicht genutz werden.)
Das war früher schon mal aufgefallen und die Erklärung liegt wohl hier: Gelöschtes Thema (http://forum.sangham.net/index.php/topic,2478) (was auch das letzte Thema vor dem Sprung ist).
Weiß nicht, warum der Sprung dann von ~2500 auf 7778 ging. Kann sein, dass ich damals dann ein Thema mit Nummer 7777 manuell angelegt hab, um irgendwas zu testen oder zu reparieren zu versuchen. Und das Forum hat dann wohl von dort aus weitergezählt.

_/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 28, 2018, 03:27:15 PM
Sadhu!

Quote from: Upasaka Moritz
Scheinen fast alle, soweit durchprobiert, zu funktionieren. Nur German-informal hat kein Icon.

Atma, wird später vielleicht das engliche, "New" in den Ordner hinein kopieren.

"Versionenvergleich", Atma denkt, es hatte/hat mit dem Löschen zu tun, und eben der Bezugskette im Datensatz, gegeben durch die zweite Datensatzreihe, durch einsetzen von, oder Fehlen von, und dadurch ist da kein Übergreifen über diesen Punkt mehr möglich. Ist jedoch nicht wichtig sich da viel Mühe anzutun, gar die ganze Datenbank aufzuarbeiten. Ist passiert und gelernt. Nichts wichtiges verloren gegangen.

Atma hackt die beiden Dinge ab.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 28, 2018, 03:46:52 PM

"Denkste" der Ordner themes/sangham/images/ enthält ja nur einige Sprachen, wohingegen themes/default/images/ alle enthält, so auch das logo für germ-inform. Wo wann zugegriffen wird, hat Atma noch nicht durchschaut, vermutet jetzt aber einfach einen Zwischenspeicher im eigenen Browser, wenn das für sonst alle paßt.

Korrekte und vollständige Dinge finden sich im default ordner.

(da auch eine index.php jeweils in den Sprachordnern ist läßt da Atma die Kopier- und Probierfinger besser weg.)
Title: Webspace issues and coordination
Post by: Dhammañāṇa on April 20, 2019, 01:29:37 PM

Aramika   *

Ein oder mehrer Beiträge wurden hier im Thema abgeschnitten und damit in neues Thema "Webspace issues and coordination (http://forum.sangham.net/index.php?topic=9248.0)" eröffnet, dem angehäng.
One or more posts have been cut out of this topic here. A new topic, based on it, has been created as "Webspace issues and coordination (http://forum.sangham.net/index.php?topic=9248.0)" or attached there.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on March 05, 2020, 09:03:59 PM
As You Y just informed, she tried to use the function to set a new password (forgotten the old one), but did not receive the confirmation e-mail.

The reason is that the new server is not yet set up to send e-mail (http://forum.sangham.net/index.php?topic=9578.msg22160#msg22160), so any mail functions (also mentions, and registration) would not work for now.
Not thought of it,  ^-^ that these important functions would of course need a workin e-mail set-up.
Another reason to get it done quickly.

_/\_ _/\_ _/\_

/me will see if I can manage to set a new password manually for now somehow.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Administration on April 19, 2020, 10:05:30 PM
This error came up again, Nyom Moritz , last when acti ating acounts shortly, not after clicking save after "modify post" of a welcomepost.

Quote from: software
Illegal mix of collations for operation ' IN '
File: /var/www/forum.sangham.net/Sources/Mentions.php
Line: 191

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.14, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php.
and would do so again (was possible before also in connection with this user acount) http://forum.sangham.net/index.php?action=post;msg=22317;topic=9798.0

Save worked them when actually having made small change. No, not possible to change/save/modify, so possible some worked out not well when activating acount manal some time ago on walk.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 19, 2020, 10:47:57 PM
Selbes nun auch mit Thema http://forum.sangham.net/index.php?topic=9815.0 (manuel erstellt, da wie ein paar andere Nutzen auch noch nicht, kein, Autobehrüßungsthema erfolgte bei der fehlerhaften freischaltung). Hier nun versucht Antwort zuposten, änder, doch sobalb mention verwendet wird Error (hier ohne viel Erklärung). Hat wohl mit Abfrage in Nutzertabelle zu tun und so einige andere mögen betroffen sein (Nyom mag sich erinnern, daß eine Upasaka, kurz gepostedvor Tagen, ebenfalls kein Wellcone thema bekam)

Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 26, 2020, 01:25:14 PM
It seems as if the css-file (grafic) would be not loaded, at least currently and for Atma (deleting cookies has been tried, but does not change the situation), Nyom Moritz .
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on April 26, 2020, 01:55:35 PM
Yes, it is because I have just changed to HTTPS (more "secure" protocol"), but CSS and images are still loaded via HTTP, which is then blocked by the browser.
I am trying to fix it. _/\_ _/\_ _/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 26, 2020, 06:30:17 PM
Sadhu
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on April 26, 2020, 09:54:08 PM
Yes, it is because I have just changed to HTTPS (more "secure" protocol"), but CSS and images are still loaded via HTTP, which is then blocked by the browser.
I am trying to fix it. _/\_ _/\_ _/\_

Should now be mostly okay. At least all CSS and Javascript references should now be okay, I hope.
There might appear some warning symbol still when there is an image, audio, etc... pointing to some "http://" source. For example: http://members.aon.at/lenninger/Reisbauer_aus_China.jpg (from the homepage of an Austrian artist, which is not available via https) included in the article "Arbeit macht frei" (https://forum.sangham.net/index.php?page=Arbeit-macht-frei). But for images and other media, it is just a warning - nothing serious. Different than with Javascript and CSS, which would be blocked and not loaded.

Hopefully nothing broken from inattentive replacements of http:// to https:// (and other things) in the database. (But I think I took good care.)

_/\_ _/\_ _/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 26, 2020, 10:22:40 PM
Sadhu, Sadhu
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on April 29, 2020, 07:18:10 AM
testing...
blackst
testing... Besfiord
testing... Taurenildo
testing... Twicslix
testing... Mail-Tester
testing... Starfin
testing... lindaween
testing... Serya
testing... SAVONGLON
testing... Mantoyery
testing... Brody
testing... Pearce

All these mentions seem to work fine.
The only problems were with Epä Järjestys and Räuber Hotzenplotz (both created by me for testing, and both containing an 'ä' in the name - which I assume is the cause of the problem with mention.)
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on April 29, 2020, 07:44:38 PM
Thats the link to the modification which Atma modified a little so that the @ would not be displayed: https://custom.simplemachines.org/mods/index.php?mod=3860
There is also a link to a topic. Not sure if it is still maintained.

In regard of registration and not able to post in topics of certain new registrations Atma does not think that it has to do much with the mod here but might be a issue of the new server, as Nyom told about the different database.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on May 01, 2020, 08:42:14 PM
Thats the link to the modification which Atma modified a little so that the @ would not be displayed: https://custom.simplemachines.org/mods/index.php?mod=3860
There is also a link to a topic. Not sure if it is still maintained.

In regard of registration and not able to post in topics of certain new registrations Atma does not think that it has to do much with the mod here but might be a issue of the new server, as Nyom told about the different database.

I wrote a question topic in the SimpleMachines support forum (https://www.simplemachines.org/community/index.php?topic=573021.0), thinking it has to do with an incomplete UTF8 setup.
Seeing that some tables are in utf8_general_ci and some in latin1_swedish_ci collation, and the database query which causes the problem involves tables of both types. The error seems to happen only when there are special characters like umlauts (ä ö ü) in the username or in the forum post not too long after the @...
In the welcome text, using three languages, it seems the Khmer text is "causing" the error.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on May 01, 2020, 08:48:21 PM
Sounds plausible, but why having the issue also in other topic of the last (at least 5) registrations when wishing to post in there topics, or resave a topic of them? And why the error when activating accounts, Nyom Moritz ? Maybe Atma had the issue only in welcome topics... At least the text of the welcome topics works like that since moee then a half year, so maybe a combination of small old errors in regard of utf-8 (smf-bug) and issue there because of different database not compensaring them, bringing the bug to be seen.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on May 01, 2020, 09:46:47 PM
Sounds plausible, but why having the issue also in other topic of the last (at least 5) registrations when wishing to post in there topics, or resave a topic of them?
Posting in a topic is not a problem, as far as I could see.
Resaving the welcome post could cause the problem when the "@..." is still in it. Same with quoting, if the "@..." is still in the quoted text.

There are several different welcome texts. In some of them, the problem does not occur. If I see correctly, then the problem only occurs if (the user has letters like 'ä' in their name or ...) the Khmer text follows the @..., without any [ tags ] in between, which clearly separate the name (things like comma, space and even new line are not interpreted as separators for the script trying to expand the name). As soon as a special character is interpreted as possibly belonging to a name, performing a database query with it, it would cause the error.

And why the error when activating accounts, Nyom Moritz ?
I don't know what other error there was?
I think it has not been made clear.

Maybe Atma had the issue only in welcome topics... At least the text of the welcome topics works like that since moee then a half year, so maybe a combination of small old errors in regard of utf-8 (smf-bug) and issue there because of different database not compensaring them, bringing the bug to be seen.
Yes, I think it all worked well before. So something must be wrong in the new database.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on May 03, 2020, 09:44:16 AM
I will try some experiments with UTF8 conversion, setting the server into maintenance for a short time.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on May 03, 2020, 10:43:18 AM
I will try some experiments with UTF8 conversion, setting the server into maintenance for a short time.

After doing a mysql dump, replacing "DEFAULT CHARSET=latin1;" with "DEFAULT CHARSET=utf8;" everywhere in it, and re-importing the database from the dump, nothing was changed in functionality. The mention problem still the same, everything else seeming fine.

But then, after performing the "convert database to utf8" function in admin settings, the Mention problem seems to be gone now.

However, it seems the only significant change made by the "convert database to utf8" function to resolve this problem was to add the line
Code: [Select]
$db_character_set = 'utf8';
in Settings.php.

Removing this line will let the mention error come up again. But whatever changes have been made in the database through the "conversion" do not really seem to matter. I can use the old un-converted database or the converted one, or the manual step in between (where I just manually replaced "DEFAULT CHARSET=latin1;" with "DEFAULT CHARSET=utf8;" ). And all three seem to work fine.

I decided to keep using the database with the "manual conversion" (just having replaced "DEFAULT CHARSET=latin1;" with "DEFAULT CHARSET=utf8;" ) now, which seems to have all tables and columns properly set to UTF8.

_/\_ _/\_ _/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on May 03, 2020, 02:47:35 PM
Sadhu, Sadhu
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on June 10, 2020, 12:59:46 AM
Since the upgrade to new forum version (2.0.17), the "quick edit" function does not work anymore, gives an error message "The message body was left empty."
I noticed the same error earlier in the official SimpleMachines forum and reported it there already, I think. Seems to be a bug in the new version.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on June 10, 2020, 10:06:59 AM
Sadhu (having posted this with quick replay and edited with "java" quick-edit!?, possible a device, browser issue?)

But the "history of edits" link is missing"?
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on June 10, 2020, 01:59:19 PM
Sadhu (having posted this with quick replay and edited with "java" quick-edit!?, possible a device, browser issue?)

Hmm... now I edited this message (https://forum.sangham.net/index.php?topic=9853.msg22861#msg22861) with quick-edit and it worked. Now using the Sangha laptop, yesterday using my own laptop when the error happened. Possibly device/browser version issue (Firefox 73.0 on Sangha laptop, not sure now which version on my own laptop). Or some other reason why it happens only sometimes. Needs some investigation.

But the "history of edits" link is missing"?

The history of edits link is missing normally just after using quick-edit. But it appears after having refreshed the page. This was also the case before the update. The Post History mod does not take the quick-edit action into account to update the "Last Edited" in-browser after quick-edit.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on June 10, 2020, 02:44:01 PM
Sadhu
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on June 11, 2020, 08:50:15 PM
Having just used quick-edit here https://forum.sangham.net/index.php?topic=2375.msg22873#msg22873 it seems to destroy the utf-8 in the subject line, maybe other things as well.

(not sure why the video there does not work there as well)
Title: image display issue
Post by: Dhammañāṇa on October 07, 2020, 10:53:42 AM

Aramika   *

Dieses neue Thema (bzw. diese/r Beitrag/e) wurde  aus abgetrennten Beiträgen, ursprünglich in Use and implementation of Telegram possible? (https://forum.sangham.net/index.php?topic=10010.0), hinzugefügt. Für ev. ergänzende Informationen zur sehen Sie bitte das Ursprugsthema ein. Anumodana!
The new topic (or post/s) here are originaly from Use and implementation of Telegram possible? (https://forum.sangham.net/index.php?topic=10010.0). For eventual additionally information: please visit also the Topic of origin. Anumodana!

[Original post:]


Other images (maybe a png-format issue with the resize modification?) seems also to be not displayed, seen here while looking for channel logo

https://forum.sangham.net/index.php?topic=30.msg22163#msg22163
Title: Re: image display issue
Post by: Moritz on October 07, 2020, 11:42:39 AM
Here it seems to work without probem, both on laptop and mobile.

Maybe just a temporary connection problem?

As the image address entered in the post starts with "http://accesstoinsight.eu/...", there is a lot of redirects happening:

1. The forum recognizes that it is a "http" (not "https" secure) address, which would be blocked by modern browsers inside a https website.
So, using the SMF image proxy function, the image is downloaded and saved locally inside forum.sangham.net, and the address transformed into:

https://forum.sangham.net/proxy.php?request=http%3A%2F%2Faccesstoinsight.eu%2F_media%2Fimg%2Ftestlogo.png&hash=922f713ba2467dedc22cc7f02bd668f01f692a9c

(which would then point to the local copy which was downloaded from http://accesstoinsight.eu and saved on forum.sangham.net)

2. While the forum downloads the image from http://accesstoinsight.eu, there is first also the redirect: http://accesstoinsight.eu => https://accesstoinsight.eu, and then https://accesstoinsight.eu => https://sangham.net

(Here it would be good if the image proxy would recognize that the final destination of redirects is actually an https address, so it could be used directly instead of saving a local copy. Good to report to SMF. Maybe I will do it later.)


I think it happens sometimes that such an image stored by the image proxy would not work when displayed for the first time (as it took too long to download and save the copy on forum.sangham.net before showing the result to the user), but then later would always work, after it is saved.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on October 07, 2020, 12:48:21 PM
All understandable. That requires a lot of sati and samadhi... burning, Jhean, Jhana... to stay alive. Now all displaying right (whats-app was already removed by Nyom? Seeing also corrected link-text comes now after the shared link)
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on October 07, 2020, 11:27:51 PM
Smiles wouldn't strangely partly now not displayed
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on October 17, 2020, 07:50:52 AM
In "Resent Topic" box, althought setting in code seems not to be changed, since some days, just a few instead of up to 100 links would be displayed, having got aware yesterday, Nyom Moritz . Just for info.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on October 17, 2020, 01:12:49 PM
I will look into it.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on October 17, 2020, 01:46:44 PM
I will look into it.

The reason is that the recent_topics query, even when the number parameter is set to a high value, will only look for max. the last 165 messages of the forum. So, if for 100 of the last messages were for example in Topic A, and 50 of the last messages were in topic B, and the remaining 15 were in different other topics [C, ... ,Q] then the query would still only get A, B, C, ..., Q for the recent topics result.

I think this makes not much sense, and the way the query is built seems much too complicated.
I will change it.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on October 17, 2020, 03:08:10 PM
Sadhu, Sadhu

(it was a snippet shared and certain co-developed in TP-forum, a female programmer used to seek always feedback on it, Nyom possible had contact, once he already modified it times ago)
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on October 17, 2020, 03:35:06 PM
It should now be working to set any limit as desired and get as many recent topics as result.
I changed SSI.php lines 457-459 from
Code: [Select]
		WHERE t.id_last_msg >= {int:min_message_id}
' . (empty($exclude_boards) ? '' : '
AND b.id_board NOT IN ({array_int:exclude_boards})') . '
to
Code: [Select]
		WHERE ' . /* 't.id_last_msg >= {int:min_message_id}' . */ '
' . (empty($exclude_boards) ? '' : '
' . /* 'AND' . */ ' b.id_board NOT IN ({array_int:exclude_boards})') . '
and line 471 from
Code: [Select]
			'min_message_id' => $modSettings['maxMsgID'] - 35 * min($num_recent, 5),
to
Code: [Select]
			// 'min_message_id' => $modSettings['maxMsgID'] - 35 * min($num_recent, 5),

removing this limitation of only looking for topics which had some of the last 165 messages, which I think does not make any sense and would not increase resource use much.

So it was a change in the internal SMF function, not in the snippet code.

_/\_ _/\_ _/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on October 17, 2020, 04:04:05 PM
Sadhu, sadhu
Title: Login, register problems, email - accessibility sangham.net
Post by: Dhammañāṇa on December 05, 2020, 02:31:39 PM

Aramika   *

Ein oder mehrer Beiträge wurden hier im Thema abgeschnitten und damit in neues Thema "Login, register problems, email - accessibility sangham.net (https://forum.sangham.net/index.php?topic=10174.0)" eröffnet, dem angehäng.
One or more posts have been cut out of this topic here. A new topic, based on it, has been created as "Login, register problems, email - accessibility sangham.net (https://forum.sangham.net/index.php?topic=10174.0)" or attached there.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Samnang on January 28, 2021, 11:56:05 AM
It seems as some are not able to use the talk box, Nyom @Moritz see attachment from Nyom Samnangs device.

Notification, mention, seems to also not work.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Administration on January 28, 2021, 12:34:41 PM
It seems as some are not able to use the talk box, Nyom Moritz see attachment from Nyom Samnangs device.

Notification, mention, seems to also not work.
Settings of permission allow only full members to use talk box, now generally allowed for Sanghamitta.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on February 03, 2021, 04:21:37 PM
Looking like a bug: Atma just tried to "shout" in the talk box "Blessed those who could about homeland, homes in this world. Dwelling at Dhammadathu, where all arising & decay had found an end." and it seems as if all after "&" is cut away by the progress.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on February 04, 2021, 07:11:57 AM
Looking like a bug: Atma just tried to "shout" in the talk box "Blessed those who could about homeland, homes in this world. Dwelling at Dhammadathu, where all arising & decay had found an end." and it seems as if all after "&" is cut away by the progress.

_/\_ _/\_ _/\_

Yes, the shoutbox handles the message very naively as a URL parameter, so everything is cut off after '&'.

I am working on trying to integrate DeltaChat as replacement for the shoutbox.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on February 04, 2021, 07:39:52 AM
That sounds like a "revolutionary" (in good sense) undertaking. Sadhu
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 10, 2022, 06:33:13 PM
I just came across this error on sangham.net DokuWiki when trying to edit a page:
(https://forum.sangham.net/index.php?action=dlattach;topic=487.0;attach=9009)

Just wondering why this suddenly appears, not seen it before. Did Bhante Johann encounter this error before?
I will try and find the cause to see if I can fix it. Maybe I will also try and do some upgrades to newer version of DokuWiki, since there are already many update notices.

Editing still works, however. But after editing there appears another error message, about a problem sending out the notification e-mail. The e-mail server seems to suddenly reject the IPv6 address from the DokuWiki server:
(https://forum.sangham.net/index.php?action=dlattach;topic=487.0;attach=9011)

I will try to fix that as well. But no idea yet why this happens suddenly.

_/\_ _/\_ _/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on September 10, 2022, 06:49:07 PM
I just came across this error on sangham.net DokuWiki when trying to edit a page:
(https://forum.sangham.net/index.php?action=dlattach;topic=487.0;attach=9009)

Just wondering why this suddenly appears, not seen it before. Did Bhante Johann encounter this error before?
I will try and find the cause to see if I can fix it. Maybe I will also try and do some upgrades to newer version of DokuWiki, since there are already many update notices.

Editing still works, however. But after editing there appears another error message, about a problem sending out the notification e-mail. The e-mail server seems to suddenly reject the IPv6 address from the DokuWiki server:
(https://forum.sangham.net/index.php?action=dlattach;topic=487.0;attach=9011)

I will try to fix that as well. But no idea yet why this happens suddenly.

_/\_ _/\_ _/\_

That's till longer, maybe a year, Nyom. The special editor does not work well, at least on mobil devices jumps...

But over all, this error, sometime, sometimes not, maybe related to a load issue, causes no trouble.

The second error: never had such appearing till some hours ago.

But since a longer the notification mail sometimes come sometimes not... no idea (maybe getting no infos about such errors.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 10, 2022, 07:06:10 PM
Thanks. I will try and investigate.

_/\_ _/\_ _/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 11, 2022, 02:14:18 PM
The e-mail issue is fixed. There was an error in the SMTP plugin which caused mail sending to fail if the visitor was connecting via IPv6. I submitted a patch (https://github.com/splitbrain/dokuwiki-plugin-smtp/pull/51/commits/ae907de1f1f7424d2984dffc04bc413eb0a30567) to the maintainer, Andreas Gohr.
So this could possibly explain why notification e-mails were only sent out sometimes, when edits were made through an IPv4 connection.

The other issue, and possible upgrades, I have not looked at yet.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on September 11, 2022, 07:48:59 PM
The e-mail issue is fixed. There was an error in the SMTP plugin which caused mail sending to fail if the visitor was connecting via IPv6. I submitted a patch (https://github.com/splitbrain/dokuwiki-plugin-smtp/pull/51/commits/ae907de1f1f7424d2984dffc04bc413eb0a30567) to the maintainer, Andreas Gohr.
So this could possibly explain why notification e-mails were only sent out sometimes, when edits were made through an IPv4 connection.

The other issue, and possible upgrades, I have not looked at yet.

Sadhu & Mudita
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on September 17, 2022, 09:29:37 PM
Thought just to mention that pages at sangham.net server seems to be not easy to reach today, given sometimes 504-gateway error as well.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 18, 2022, 02:31:34 AM
Thought just to mention that pages at sangham.net server seems to be not easy to reach today, given sometimes 504-gateway error as well.

Vandami Bhante _/\_ _/\_ _/\_

This might be related to constant sending of DokuWiki edit notification e-mails, since these work now, and there seem to have been some BatchEdits earlier today.
Since this morning around 9:30 German time I have received hundreds or thousands of notifications.

Not sure if I had set it for myself to notify me on changes for all pages without being aware. I changed the setting to notify me only with a daily summary, without knowing what the setting for my account was before.
But that was not enough to stop the already ongoing notification flood.

I thought it might be good to just wait and was away from the computer for some hours. But it has not stopped yet for me.

I checked and searched now what notification subscriptions are activated for different users.
Currently there is only the daily digest for my account and notification on all changes in the namespace user:Johann for Bhante. These should not cause floods anymore, no large namespaces with receiving all changes.

I deactivated now also the general notifications to wiki-notes at sangham net, which probably also received all change notifications, and also restarted the webserver process. But probably all a bit too late. The flood has probably already been all sent out. Now the e-mail server will be quite busy for some time still processing all the mail. Not sure how to interrupt this safely.

Meanwhile I just deleted the address wiki-notes at sangham net from postfix admin (made a backup of the mailbox before, so it could be restored).
But that has not stopped the mail server from being busy yet. Probably all notification mails are there already in a long queue to be processed.

Maybe best to first just wait until tomorrow and see if the mail flood has finished then. The websites so far seem to work fine for me.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 18, 2022, 03:37:20 AM
I checked and searched now what notification subscriptions are activated for different users.
Currently there is only the daily digest for my account and notification on all changes in the namespace user:Johann for Bhante. These should not cause floods anymore, no large namespaces with receiving all changes.

Actually, there were more. I did not search right.

Here is the list of all active subscriptions, for possible restoring later. I will delete them all for now.
Code: [Select]
pt
Johann list 1661481044
=========================================
en:tech:delta-chat
Johann list 1661446626
=========================================
en:tech
Johann digest 1661928947
=========================================
en
Johann list 1663436305
=========================================
km:lib:authors:%E1%9E%A2%E1%9E%B6%E1%9E%85%E1%9E%B6%E1%9E%9A%E1%9F%92%E1%9E%99%E1%9E%90%E1%9E%B6%E1%9E%93
Johann every 1549780665
=========================================
km:dictionary:%E1%9E%9C%E1%9E%85%E1%9E%93%E1%9E%B6%E1%9E%93%E1%9E%BB%E1%9E%80%E1%9F%92%E1%9E%9A%E1%9E%98_%E1%9E%87%E1%9E%BC%E1%9E%93%E2%80%8B%E1%9E%8E%E1%9E%B6%E1%9E%8F.mlist
Cheav%20Villa every 1547731912
=========================================
km:dictionary
Johann list 1661239640
=========================================
km:tipitaka:book_001.mlist
Cheav%20Villa every 1539744586
=========================================
km:tipitaka
Johann list 1663413500
=========================================
de
Johann list 1663250379
=========================================
index.mlist
Moritz digest 1663399917
=========================================
.mlist
tester digest 1663305122
=========================================
user:moritz
Moritz every 1609230664
=========================================
user:khemakumara
Khemakumara list 1591918361
=========================================
user:cheav_villa
Cheav%20Villa every 1546928607
=========================================
user:johann:index.mlist
Johann every 1529920866
=========================================
user:johann
Johann list 1663413437
=========================================
user:ratthapala
Johann list 1638015498
But having deleted those all now will not stop the running flood.

What I just noticed is also that very much mail is being sent from dokuwiki at sangham net to forumadmin at sangham net (which forwards to moritz at sangham net and sophorn at sangham net)

But for forumadmin at sangham net (user "tester") there was only the DokuWiki subscription for the daily digest. So it should not receive floods of mail for all changes.
So I don't understand that.

I will wait now until tomorrow and then see what I can do. (Also removed the forward [forumadmin -> moritz, sophorn] for now, but no immediate effect)

_/\_ _/\_ _/\_
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on September 18, 2022, 06:18:21 AM
Atma edited about 5000 pages yesterday via batch-edit.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on September 18, 2022, 10:12:59 AM
It seems as if other mails aren't delivered for now. While sending from device works, they are not forther send to the recipient. No incoming mails since yesterday after this report.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 18, 2022, 10:44:24 AM
It seems as if other mails aren't delivered for now. While sending from device works, they are not forther send to the recipient. No incoming mails since yesterday after this report.

Ah yes. They stay in the queue while the flood is still on-going.
I am already looking for ways to somehow filter and clear the mail queue of the notifications, so it returns to normal. But not sure if possible.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on September 18, 2022, 12:20:33 PM
Atma saw that admin... gets "Grand Totals" periodical, giving statistic an traffic, Nyom Moritz . (address is now disabled). Not sure whether Nyom has those posdible helpful reports.

Code: "begin of report 17.9.2022" [Select]
11807 received
14258 delivered
0 forwarded
5 deferred (23 deferrals)
6 bounced
28 rejected (0%)
0 reject warnings
0 held
0 discarded (0%)

137514k bytes received
396554k bytes delivered
17 senders
9 sending hosts/domains
85 recipients
26 recipient hosts/domains....


seemingly dokuwiki produces most.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 18, 2022, 05:58:44 PM
Atma saw that admin... gets "Grand Totals" periodical, giving statistic an traffic, Nyom Moritz . (address is now disabled). Not sure whether Nyom has those posdible helpful reports.

Ah, yes.
I also forgot to mention: I changed the password for admin as well, because I had forgotten it as well.
I also sent it to Bhante via DeltaChat now. (maybe still queued, but sent)
Sorry for the overlook.

Yes, the numbers have gone up by factor 10 or so compared to previous peaks, caused by DokuWiki notifications.

I have found how to delete messages directly from the queue. Seemingly successfully done now deleting all dokuwiki notifications, and mail is delivered quickly again.
I think in total deleted at least 100000 notifications. Had fallen asleep in between.
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Moritz on September 18, 2022, 07:21:55 PM
I have restored the individual user subscriptions, except for forumadmin.

I left the e-mail for general notification receiver under general settings here empty: https://sangham.net/index?do=admin&page=config#_notifications
In general it is probably not good to have any address receive notifications on every single, because it could cause problems like yesterday with large batchedits.

But I still don't understand why forumadmin received notice of every change.

Also now it seems the subscriptions don't work right. I edited my user page where I should get notified, but no notification arrives.
The SMTP test e-mail here works: https://sangham.net/index?do=admin&page=smtp
Title: Re: Technical problems & issues - Offene technische Probleme & Angelegenheiten
Post by: Dhammañāṇa on September 18, 2022, 07:46:48 PM
Sadhu

I have restored the individual user subscriptions, except for forumadmin.

I left the e-mail for general notification receiver under general settings here empty: https://sangham.net/index?do=admin&page=config#_notifications
In general it is probably not good to have any address receive notifications on every single, because it could cause problems like yesterday with large batchedits.

It happened once that robots used an open function to get pages changed (Atma saw that this security issue was solved with the current new version)

Sure better as long much activity. When large edits are done, possible good that those online might know, if wishing to care on.

Quote
But I still don't understand why forumadmin received notice of every change.

Also now it seems the subscriptions don't work right. I edited my user page where I should get notified, but no notification arrives.
The SMTP test e-mail here works: https://sangham.net/index?do=admin&page=smtp
That issue exists since longer. Sometimes working, sometimes not. No pattern traced.
Title: [ati] upgrade dokuwiki to 'Igor'
Post by: Dhammañāṇa on September 22, 2022, 11:09:06 AM

Aramika   *

Ein oder mehrer Beiträge wurden hier im Thema abgeschnitten und damit in neues Thema "[ati] upgrade dokuwiki to 'Igor' (https://forum.sangham.net/index.php?topic=10801.0)" eröffnet, dem angehäng.
One or more posts have been cut out of this topic here. A new topic, based on it, has been created as "[ati] upgrade dokuwiki to 'Igor' (https://forum.sangham.net/index.php?topic=10801.0)" or attached there.