Not logged in. · Lost password · Register

All posts by kalinrow (4)

topic: 1 Antwort von 2 Benutzern (logikfehler in der Statusanzeige?)  in the forum: Support Bug reports and troubleshooting
kalinrow #1
Member since May 2009 · 4 posts · Location: Fell
Group memberships: Members
Show profile · Link to this post
Hallo Yves,
hatte ich mir, bzw. meinen Benutzern,  auch so erklärt, was natürlich die ungereimtheit nicht eliminiert.
Die Lösung von Dogge finde ich allerdings auch recht elegant. Dann hat man den 'Ersteller' gleich mitgezählt...:-).
Grüße
Frank
topic: 1 Antwort von 2 Benutzern (logikfehler in der Statusanzeige?)  in the forum: Support Bug reports and troubleshooting
kalinrow #2
Member since May 2009 · 4 posts · Location: Fell
Group memberships: Members
Show profile · Link to this post
Subject: 1 Antwort von 2 Benutzern
Unter Themen und Foren kann man  Zusätzliche Zähler in der Themanliste auswählen. Dann werden nicht nur die Anzahl der Aufrufe und Antworten, sondern auch noch die Anzahl der Benutzer angezeigt.
Bei den Antworten wird aber der Ersteller des Themas mitgezählt. Dann findet man in der Forenübersicht hinter dem Thema folgendes:

2 Antworten von 3 Benutzern

Das sollte aber doch eigentlich 2 Antworten von 2 Benutzern heißen, oder?
Der Fehler, so es den als solcher gesehen wird, müßte in der function UnbCountReplyUsers in der Datei common.lib.php stecken, ich steig aber zur Zeit nicht ganz durch den Code durch.

Würde es reichen hier
    if ($record = $UNB['Db']->FastQuery('Posts', 'Thread, count(distinct User) as cnt', 'Thread in (' . $ids . ')', '', '', /*group*/ 'Thread')) do
    {
        $a[$record['Thread']] = $record['cnt'];
    }

einfach ein abzuziehen?

Danke schonmal für evtuelle hilfen.
topic: ABBC table tag: colspan and rowspan problem  in the forum: Support Bug reports and troubleshooting
kalinrow #3
Member since May 2009 · 4 posts · Location: Fell
Group memberships: Members
Show profile · Link to this post
Subject: ABBC table tag: colspan and rowspan problem
When you use the ABBC [table] it is not possible to use the second parameter for rowspan.

Here is the original souce code:
  1. 'col' => array(
  2. 'htmlopen0'  => '<td style="padding-right:8px;">',
  3. 'htmlcont0'  => '$1',
  4. 'htmlclose0' => '</td>',
  5. 'textcont0'  => '$1  ',
  6. 'htmlopen1'  => "~'<td colspan=\"'.abbcq('$1').'\" style=\"padding-right:8px;\">'.",
  7. 'htmlcont1'  => "abbcs('$2').",
  8. 'htmlclose1' => "'</td>'",
  9. 'textcont1'  => '$2 | ',
  10. 'htmlopen2'  => "~'<td colspan=\"'.abbcq('$1').'\" rowspan=\"'.abbcq('$1').'\" style=\"padding-right:8px;\">'.",
  11. 'htmlcont2'  => "abbcs('$1').",
  12. 'htmlclose2' => "'</td>'",
  13. 'textcont2'  => '$2 | ',
  14. 'htmlblock'  => true,

It seems the lines for parameter 2 handling are simply copy&past and it was forgotten to adopt some parameters.
Change the parameter for rowspawn from $1 to $2 and for the htmlcont2/extcont2 from $2 to $3 and everything will be fine.

See code:

  1. 'htmlopen2'  => "~'<td colspan=\"'.abbcq('$1').'\" rowspan=\"'.abbcq('$2').'\" style=\"padding-right:8px;\">'.",
  2. 'htmlcont2'  => "abbcs('$3').",
  3. 'htmlclose2' => "'</td>'",
  4. 'textcont2'  => '$3 | ',
topic: abbc table support  in the forum: Customising UNB Modifications and plug-ins Plug-in gallery
kalinrow #4
Member since May 2009 · 4 posts · Location: Fell
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7871
I tried that with the latest 1.6_dev version. It seems that there are two small things to change:

  • one have to add after line 15 in abbctable.php
    1. global $ABBC;

  • one have to change the tag name, because the tag table is already used now in the ABBC shipped with the forum software. I changed it for example to simpletable, because is a really easy way to create tables, compared to the intregrated one.

Thanks for that peace of code.
This post was edited on 2009-11-10, 14:05 by kalinrow.
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 174.1 ms (121.6 ms) · 63 database queries in 110.9 ms
Current time: 2013-05-19, 00:50:55 (UTC +02:00)