{TEASER_EX} Replacement tag v1.90 - 10.1.2007

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Teaser_Ex 1.7

Post by erich_k4 »

New Version of Teaser_Ex is out:

Version 1.7:

Whats new:

+ added option to display the articles in horizontal or vertical direction
+ option to hide the pagination

Details:
http://www.phpwcms.de/forum/viewtopic.php?t=7503
Erich
ssyfrig
Posts: 364
Joined: Tue 2. Mar 2004, 17:01
Location: Zürich / Switzerland
Contact:

Post by ssyfrig »

Hey ERICH

thanks man !!!!!!!

Greez Sven
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

Erich - thank you

and please remove the Spaces and Linefeeds after the closing php-Tag at the end. This generates a empty Line befor the <! DOC-Type ....> Line and this causes a Validation Error and if you use a Header like I do

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
IE shows the Site as XML-Code :(
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
albu
Posts: 22
Joined: Sat 31. Dec 2005, 18:06
Location: Germany
Contact:

Post by albu »

also: ich habe folgendes festgestellt: teaser_ex scheint zu funktionieren, wenn ich den Artikel 1 Level unter den teaser stelle (warum auch immer - steht doch in einer Datenbank...). sobald der Artikel einen Level tiefer steht - kein Resultat..

Hier das Beispiel: {TEASER_EX:einsaetze|5;abeinsaetze|5:5:default|ASC:1:Seite | von:2::default:-1::0:0::0:vert}
wobei einsaetze und abeinsaetze noch 4 Sublevel haben!
das ganze ist bei mir lokal installiert (kann ich schneller testen). Der code scheint auch keinen Fehler zu haben...bin etwas ratlos

....aber als Programmierer (COBOL... :D ) lässt mir das keine Ruhe - und siehe da...gefunden!
Ist auch KEIN Fehler - sondern liegt an der Datenbank von PHPWCMS...
Also:
1. Es wird im Select mit "IN" gesucht...besser wäre mit LIKE, denn dann kann man mehrere Level gleich benennen und durch den automatischen Anhang macht das PHPWCMS automatisch!
2. Jede Kategorie bekommt eine Nummer - der jeweilige Artikel steht nun in Verbindung mit dieser Nummer, d.h. es können NIE Artikel aus anderen Kategorien (Level spielt keine Rolle!) auftauchen.

Ich habe jetzt FÜR MICH folgende Änderungen am Code gemacht:
A: $sql = "SELECT acat_id, acat_name FROM ".DB_PREPEND."phpwcms_articlecat WHERE acat_alias LIKE 'text%';"; - ist natürlich nur zum Testen gedacht!!!!
B: Die AliasID in der Tabelle Article habe ich auf die Kategorie-ID gesetzt und im code die Änderung gemacht:
$sql .= " WHERE article_aliasid = '".$alias[0]['acat_id']."'";

Und dann gehts...
Jenne20
Posts: 184
Joined: Fri 31. Mar 2006, 08:46
Location: Lindhorst/LK Schaumburg
Contact:

teaser_ex - -date article, etc.

Post by Jenne20 »

HI,

i installed the great teaser-ex reptag. It works fine, but now I have one question.

Is it possible, that articles could be showed depending the date. I mean, for example, all the articles from june, out of different categorys?

thanks for your answers.

Jenne

Hallo,

habe den reptag "Teaser-Ex" installiert - funzt sowiet ganz gut. Ist es möglich, daß er Artikel, abhängig vom Datum, aus verschiedenen KAtegorien, anzeigt?

Thx

Jenne
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Re: teaser_ex - -date article, etc.

Post by erich_k4 »

Jenne20 wrote:HI,

i installed the great teaser-ex reptag. It works fine, but now I have one question.

Is it possible, that articles could be showed depending the date. I mean, for example, all the articles from june, out of different categorys?

thanks for your answers.

Jenne

Not at the moment, but with the next version.... ;)
Erich
Jenne20
Posts: 184
Joined: Fri 31. Mar 2006, 08:46
Location: Lindhorst/LK Schaumburg
Contact:

Post by Jenne20 »

@erich_k4

thank you for that information.

When do you release the new version?
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

Jenne20 wrote:@erich_k4

thank you for that information.

When do you release the new version?
:D 26.7.2006, 20:00 :D, ... maybe before this date...
Erich
Jenne20
Posts: 184
Joined: Fri 31. Mar 2006, 08:46
Location: Lindhorst/LK Schaumburg
Contact:

Post by Jenne20 »

@erich

Thank you - i hope my problems will be solved then.

Have a nice day :)
tinoo
Posts: 311
Joined: Thu 16. Jun 2005, 11:16
Location: Zürich, Switzerland
Contact:

Re: teaser_ex - -date article, etc.

Post by tinoo »

Jenne20 wrote:Hallo,
habe den reptag "Teaser-Ex" installiert - funzt sowiet ganz gut. Ist es möglich, daß er Artikel, abhängig vom Datum, aus verschiedenen KAtegorien, anzeigt? Thx
Jenne
Habs grad selbst ausprobiert - du kannst bei jedem Artikel angeben "Anzeige von ..... bis". Damit werden Artikel nur in einem gewissen Zeitrahmen angezeigt. Wenn nun ein Artikel aus dem Zeitrahmen fällt, wird er in Teaser_ex auch nicht mehr dargestellt. Vielleicht hilft dir das?

You can set a timeframe for every article (show from ..... to). Then the article is shown by teaser_ex only when in timeframe. If the article is out of the dates you defined, teaser_ex wont show the article anymore... maybe this helps?
Greetz, tinoo
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Greetings tinoo !
NICE idea for consideration - that would be "handy" in some circumstances! :idea:

BUT, I think maybe Jenne20 was hoping for a way to bring together, in one place, all content from different categories that were made between 1 June and 30 June (for example). Kind of like a WordPress blog separates each month's postings into archives that can be browsed by choosing which month!

@Jenne20
Is that close to what you mean ? :?
tinoo
Posts: 311
Joined: Thu 16. Jun 2005, 11:16
Location: Zürich, Switzerland
Contact:

Post by tinoo »

@DeXXus

Hm, maybe you're right... But makes that sense? Teaser_ex would become a blog-mod, and for that we have already a reptag...

It could be usefull to sort the article by a date in the articles subtitle, for example for an annual program of a soccer club:

Example (Article title / subtitle):
New Years Party / 01.01.2007
Bowling-Night / 18.02.2007
Match us vs. them / 13.03.2007
World Championships Togo / 18.04.2007

Then you could use teaser_ex for a box called "actual program". If we are
in january, teaser_ex shows all events for january. if we are in february teaser_ex show all event in february and so on... Old events and events in future are still accessible through the "All"-button and their details/descriptions/informations can be red...

Of course this can also be done with the calendar-hack... But teaser_ex would be much easier to install and handle...

Just another idea... :lol:
Greetz, tinoo
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Yep, those sound workable, yeah baby! Speaks well to the idea conceived by this MOD, right? :wink: 8)
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post by fopulu »

"Categoryname - Show the Categoryname"

What does this fiel mean in the Generator?
I saw, that it switches between 0 and 1 after the DESC or ASC field. But nothing changes in my frontend...
Can somebody explain me this field please?
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

fopulu wrote:"Categoryname - Show the Categoryname"

What does this fiel mean in the Generator?
I saw, that it switches between 0 and 1 after the DESC or ASC field. But nothing changes in my frontend...
Can somebody explain me this field please?
Sample Template:

Code: Select all

<div style="margin-bottom:10px;">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td>
[CATNAME]<b>{CATNAME}</b> -><br>[/CATNAME]
{DATE:d.m.Y:DE}<br>
[TITLE]<a href="{ARTICLELINK}">{TITLE}</a>[/TITLE]
[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]
</td>
</tr>
<tr>
<td valign="top">
<div style="float:left; margin-right:6px;">
[IMAGE]<a href="{ARTICLELINK}">{IMAGE}</a>[/IMAGE]
[CAPTION]<div align="center">{CAPTION}</div>[/CAPTION]
</div>
[SUMMARY]{SUMMARY}[/SUMMARY]<br>
[MORE]<a href="{ARTICLELINK}">more...</a>[/MORE]
</td>
</tr>
</table>
</div>
look at the line "[CATNAME]<b>{CATNAME}</b> -><br>[/CATNAME]"

insert this in your *.tmpl-file :idea:

after that the "Show the Categoryname"-Switch will/should work as expected
Erich
Post Reply