Not logged in. · Lost password · Register
Page:  1  2  3  4  5  next 

All posts by iGEL (68)

topic: Quarantäne für Beiträge möglich?  in the forum: Customising UNB Modifications and plug-ins
iGEL #1
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Quarantäne für Beiträge möglich?
Moin!

Da langsam Spambots anfangen, mein Forum unsicher zu machen (trotz CAPTCHA!), würde ich gern ein Anti-Spam-System integrieren, indem ich die Beiträge zur Kontrolle zu Akismet schicke. Nun wäre aber interessant, ob es möglich wäre, die als Spam bewerteten Beiträge in Quarantäne zu schieben, bis ich sie selbst gelesen habe. Einfach löschen möchte ich sie nicht. Oder muss ich mir das selbst Programmieren?

Gruß, iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Google Sitemaps  in the forum: Customising UNB Modifications and plug-ins Plug-in gallery
iGEL #2
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Google Sitemaps
Hi!

I've created a plugin, which generates sitemaps for Google (and possibly other search engines). Here the content of the README:

== What are Google Sitemaps? ==

Google Sitemaps are a way to tell Google about all your pages and when they
will change. By that, Google can crawl your site more efficently.

Read more here: https://www.google.com/webmasters/sitemaps/docs/en/about.h…

== What does this package? ==

This package creates an Google Sitemap for your UNB forum. This sitemap
contains all public readable topics, forums and the front site. Other pages
like user profiles, the register page or custom pages are not included in this
sitemap.

For now, no priorities are given to the distinct pages.

== How do I install it? ==

Just copy all gsitemap.* files to your /unb_lib/plugins/ folder. Then
go to https://www.google.com/webmasters/sitemaps/ and follow the instructions.
You need an Google or Gmail account to use Google Sitemaps, which you can
register for free at that webpage.

You'll find the URL to your sitemap in the "configuration" for this plugin,
which is available here: Settings -> Plug-ins -> gsitemap Settings.

Have fun,

Johannes

I've attached my plugin, which I release under the terms of the GNU GPL 2.0 or newer. Comments are welcome (in English or German).

Johannes
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
The author has attached one file to this post:
gsitemap.tar.gz 2.4 kBytes
You have no permission to open this file.
topic: Statistik falsch (Neue Themen: -2)  in the forum: Support Bug reports and troubleshooting
iGEL #3
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Statistik falsch
Moin!

Ich hab ein merkwürdiges Problem:
[Image: http://img146.imageshack.us/img146/3166/statistik7uu.png]

Ich habe garantiert keine Themen gelöscht und sonst kann es niemand. Auch sind gestern nicht 6 neue Themen eröffnet worden, sondern 2. Da scheint also was schief zu laufen. Auffällig ist, dass ich sowohl gestern 2 Themen verschoben habe als auch irgendwann anfang letzter Woche eins.

Gruß, iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Hook benötigt  in the forum: Customising UNB Modifications and plug-ins
iGEL #4
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Hook benötigt
Moin!

Ich habe mir einen Hook gebaut, der vor (und nach) jedem Posting aufgerufen wird.

common_out.lib.php, Zeile 1145:
  1. $plugin_data_before = $plugin_data_after = Array(
  2.                 "num" => $tpitem["numAll"],
  3.                 "numTotal" => $post_count,
  4.                 "page" => $page,
  5.                 "numOnPage" => $tpitem["num"],
  6.                 "numOnPageTotal" => (($page -1) * $posts_per_page > $post_count ? $post_count : $posts_per_page),
  7.                 "post" => $post,
  8.                 "thread" => $thread);
  9.  
  10.             UnbCallHook("post.before", $plugin_data_before);
  11.             $tpitem["text_before"] = $plugin_data_before["text"];
  12.             UnbCallHook("post.after", $plugin_data_after);
  13.             $tpitem["text_after"] = $plugin_data_after["text"];

Sowie postlist.html, Zeile 47:
        {$post.text_before}
        {include "post.html"}
        {$post.text_after}

Ich benutze bisher nur den post.before-Hook und darin auch nur das $data["numOnPage"]. Ich fände es gut, wenn dieser Hook in zukünftige Versionen aufgenommen wird. Die restlichen Sachen können natürlich gern modifiziert werden, macht sicherlich Sinn, das Post und Thread-Objekt (wenn überhaupt) als Referenz zu übergeben.

Verwenden tue ich es übrigens für eine modifizierte Version des adsense-Plugins. Das funktioniert aber noch nicht so gut, dass ich es zur allgemeinen Verwendung weitergeben könnte (und es ist fraglich, ob ich es überhaupt noch weiterprogrammiere, da es das tut, was ich will). Wenn jemand interesse an meiner Entwicklerversion hat, kann er mich ja über das Forum anschreiben.

Achja, noch ein Kommentar zum Code allgemein: Ich finde, die Übersichtlichkeit könnte deutlich gesteigert werden, wenn Funktionen als Parameter ein Array akzeptieren würden, in dem alle Parameter enthalten sind.

Dann sähe ein Aufruf von UnbLink etwa so aus:
  1. UnbLink('@post', null, true); // alt. Was machen null und true gerade noch?
  2. UnbLink(Array('url' => '@post', 'html' => true)); // neu. Wenn einen der hinteren Parameter ändern möchte, ist sogar der Schreibaufwand geringer.

Gruß, iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Fix: Scrollbar of the input field flickers in the Internet Explorer  in the forum: Support Bug reports and troubleshooting
iGEL #5
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Fix: Scrollbar of the input field flickers in the Internet Explorer
Hi!

While typing, the the vertical scrollbar keeps hiding and reappearing the whole time. This is pretty annoying, especially if a word in a previous line keeps wraping one line to the next and back. I located the problem and made a fix, but many input boxes won't fill the hole width anymore in the internet explorer afterwards. But I'm to lazy to modify the hole layout and I think, this is much better than the flickering.

Modify this code in line 473 of unb_lib/designs/modern/css/common.css.php:
Old:
div.outerTextarea100pc textarea
{
    margin-right: -4px;
    width: 100%;
}

New:
div.outerTextarea100pc textarea
{
    margin-right: -4px;
<?php if (!$ie) { ?>
    width: 100%;
<?php } ?>
}

Modify this code in line 439 of unb_lib/designs/modern/css/post.css.php

Old
textarea.reply_message
{
    width: 100%;
    height: 120px;
}

New
textarea.reply_message
{
<?php if ($ie) { ?>
    width: 733px;
<?php } else { ?>
    width: 100%;
<?php } ?>
    height: 120px;
}

Gruß, iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Kein Unicode im Forumstitel möglich  in the forum: Support Bug reports and troubleshooting
iGEL #6
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5689
Moin!

Danke. War zwar nicht einfach, den BOM zu setzen, aber nun geht es. Hab die Datei schließlich runtergeladen, unter Windows mit dem Notepad als utf-8 gespeichert und wieder hochgeladen.  Manchmal gar nicht schlecht, dass Microsoft sich einen Dreck um Standards kümmert, recode und vim haben zwar munter konvertiert, aber keinen BOM gesetzt. :rolleyes:  

Gruß, iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Kein Unicode im Forumstitel möglich  in the forum: Support Bug reports and troubleshooting
iGEL #7
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Kein Unicode im Forumstitel möglich
Moin!

Es ist offenbar nicht möglich, im Forumstitel etwa koreanische Zeichen einzugeben. Ich habe es auch mit HTML-Entities probiert, was im Browser auch korrekt angezeigt wird, nur als E-Mail-Absender natürlich schlecht aussieht.

iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: "Dieser Beitrag wurde automatisch verändert, um Darstellungsfehler zu vermeiden." (Was ist das?)  in the forum: Support General support
iGEL #8
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: "Dieser Beitrag wurde automatisch verändert, um Darstellungsfehler zu vermeiden."
Moin!

Was bedeutet diese Meldung? Was für Fehler werden dabei behoben?

Übrigens: Danke nochmal für das Forum. Ich habe es endlich geschafft, mein Forum umzustellen (1.5.4 auf 1.6.1) und es sieht echt gut aus.

Gruß, Johannes
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Ankündigungen als gelesen markieren  in the forum: Support Ideas and suggestions
iGEL #9
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Ankündigungen als gelesen markieren
Moin!

Ich würde vielleicht die Beschriftung des Links ändern, mit dem man Ankündigungen als gelesen markieren kann. Ich habe seit mehreren Monaten Ankündigungen, aber bisher hat es noch niemand ausgeblendet, trotz 131 registrierten Benutzern und über 500 neuen Beiträgen im letzten Monat. Ein Grund kann natürlich sein, dass ich diese so platzsparend wie möglich formuliere, aber ich denke, es liegt auch daran, dass keiner weiß, dass die Ankündigungen weg sind, wenn man auf "gelesen" klickt". Daher würde ich den Link vielleicht mit "Ankündigung ausblenden" oder so beschriften.

Gruß, iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Frage zum Copyright (Darf das Copyright im Footer geändert werden)  in the forum: Support General support
iGEL #10
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5414
Moin

INAL = I'm not a liar lawyer.

Johannes
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Frage zum Copyright (Darf das Copyright im Footer geändert werden)  in the forum: Support General support
iGEL #11
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5379
Moin!

INAL, aber so wie ich die GPL verstanden habe, darf man den Hinweis entfernen (ich lasse ihn drin). Im Quelltext muss er drin bleiben, also in dem Kommentar im Kopf, aber nicht in der Ausgabe des Forums.

iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: How to move threads??  in the forum: Support General support
iGEL #12
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5345
Hi!

I have this problem (topic is moved, but no dummy) in 1.6, too. But isn't so serious in my opinion.

iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Fix für named_urls ([Resolved])  in the forum: Support Bug reports and troubleshooting
iGEL #13
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Fix für named_urls
Moin!

In meinem Test-Forum habe ich die Titel der Foren in koreanisch und deutsch. Dadurch enthalten die Urls nun sehr viele Bindestriche, die nicht nur etwas blöd aussehen, sondern offensichtlich auch Probleme machen, wenn die URL irgendwo in einem Kommentar steht. Ich denke mal, dass -- irgendwie als Kommentarende gewertet wird. Jedenfalls hat sich der Firefox öfter mal über XML-Fehler beschwert.

Der Fix ist simpel, einfach in der commons.lib.php (So bei Zeile 1270) das hier:

function UnbTextToURL($str)
{
    $str = '-' . substr(UnbToANSI($str), 0, 50);
    $str = preg_replace('_[^a-z0-9]_i', '-', $str);
    $str = str_replace('--', '-', $str);
    $str = str_replace('--', '-', $str);
    $str = preg_replace('_-$_', '', $str);
    return $str;
}

durch das hier:

function UnbTextToURL($str)
{
    $str = '-' . UnbToANSI($str);
    $str = preg_replace('_[^a-z0-9]_i', '-', $str);
    $str = preg_replace('_-+_', '-', $str);
    $str = preg_replace('_-$_', '', substr($str, 0, 50));
    return $str;
}

ersetzen. Dadurch werden mehrere aufeinander folgende Bindestriche entfernt.

iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Suggestion: Auth from another Database  in the forum: Support Ideas and suggestions
iGEL #14
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 5022
Hi!

I think, some kind of standard for user/session management for webapps would be great. But I guess, it's quite a big task, if you want to make it right (seemless login, programming language independent (= implementations for the most common languages), maybe rights management).

For the UNB, sharing the same login data with some other application without remembering the login between these apps would be enougth for now.

iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
topic: Add Clickable Overview to the Path  in the forum: Customising UNB Modifications and plug-ins
iGEL #15
Member since May 2005 · 68 posts
Group memberships: Members
Show profile · Link to this post
Subject: Add Clickable Overview to the Path
Hi!

If you want to have the overview clickable and always visible in the path (look a the attached picture, if you arn't sure, what I'm talking about), you have to modify the unb_lib/commons_out.php.

Line 2469:
    if ($path == '')
        $path = /*'<a href="' . UnbLink('@main', null, true) . '">' .*/
            $UNB_T['overview'] . /*'</a>' .*/ $rsslink . (($path == '') ? '' : $sep) . $path;

Replace all three line it with this one:
    $path = '<a href="' . UnbLink('@main', null, true) . '">' . (($path == '') ? '<b>' : '') .$UNB_T['overview'] . (($path == '') ? '</b>' : '') . '</a>' . (($path == '') ? $rsslink : $sep) . $path;

iGEL
Tetris is so unrealistic. :(
meet-korea.de -  Das deutsch-koreanische Forum
The author has attached one file to this post:
screen.png 10.5 kBytes
You have no permission to open this file.
Close Smaller – Larger + Reply to this post:
Special characters:
Page:  1  2  3  4  5  next 
Special queries
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 268.2 ms (203.2 ms) · 147 database queries in 134.3 ms
Current time: 2013-05-23, 16:11:32 (UTC +02:00)