{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.
cbmr777
Posts: 11
Joined: Thu 25. Aug 2005, 21:25
Location: U.S.
Contact:

Post by cbmr777 »

volkman wrote:i am not sure if this matters, but klicking on your site always givs me endings like /christine.phtml. Shouldnt this be like /index.php?christine.
Is rewirte on (.htaccess active)?
It was but I turned them off to fool with one problem at a time. :D
volkman wrote:You are working on a mac like me, so opening a folder like the one you have in your screenshot always produces Files named .DS_Store. Delete them if your server is non-mac. Its mac-only information about filesystem and unixes are sometimes confused by files starting with ".".

volkman
Deleted all .DS_Store files. I'm on a Linux PC server. Still the same...
Christine
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

Christine,
the only problem people usually have is the syntax, but your's looks correct.
All the articles and alias exist, so that should be ok aswell.
You use MySQL >4.0 (if you use older versions, the tag is not executed, just showing the reptag-text like in your example).
If you like I could take a look in your installation if you like. Just send me a pm for login. Wont be checking before in 7 hours, its 1 am over here and I need a nap :wink:

volkman
cbmr777
Posts: 11
Joined: Thu 25. Aug 2005, 21:25
Location: U.S.
Contact:

Post by cbmr777 »

MySQL is 4.0.25-std

You need a nap? :lol:

Sending login info...

Thank you so very much!
Christine
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

@Christine

check your syntax
{TEASER_EX:god|1;family|1;christine|1:3:article_tstamp|DESC:0::1}
exclude_articles value is missing!

try this one

{TEASER_EX:god|1;family|1;christine|1:3:article_tstamp|DESC:0::1:}

Erich
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

hi erich,
this one gave an error. i think the last value "1" is for excluding, we counted it.
Its really strange, I tried to help christine, but still...

volker
tinoo
Posts: 311
Joined: Thu 16. Jun 2005, 11:16
Location: Zürich, Switzerland
Contact:

Post by tinoo »

volkman wrote:hi erich,
this one gave an error. i think the last value "1" is for excluding, we counted it.
Its really strange, I tried to help christine, but still...

volker
Nope, the last one is either empty or the article-id of the article you like to
exclude. This is useful if the article containing the teaser_ex tag is in the
same category like the articles you like to show. If you don't use the exlude
option, in this case, the teaser_ex will show himself in the listing....
Greetz, tinoo
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

If we include the : like erich said, there is an sql-error

line 145 at the teaser-script

volkman
tinoo
Posts: 311
Joined: Thu 16. Jun 2005, 11:16
Location: Zürich, Switzerland
Contact:

Post by tinoo »

volkman wrote:If we include the : like erich said, there is an sql-error

line 145 at the teaser-script

volkman
...and "1" is probably not a valid article-id...
Greetz, tinoo
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

tinoo,
if i count right, the 1 stands for colums.
even if not: if i use an artcle-id from an article that definitely is never been used in the teaser, it wont work.
i use the teaser on three sites, no problem, have no clue...

volkman
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

@christine
as far as I learned in this thread, you upgraded from an earlier version of phpwcms to DEV 1.2.5.
If so: did you aswell update the database-structure?

See
http://www.phpwcms-docu.de/index.php?update_1.x.x_en

for details.

volkman
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Posting again :roll:
I guess my previous post got lost :lol:
erich_k4 wrote:Remove the html_specialchars function or split it ( #346 )
$tmpl = render_cnt_template($tmpl, 'TITLE', html_specialchars($article_list[$key]["article_catname"])." <br> ".html_specialchars($article_list[$key]["article_title"]));
Thank you Erich. That did the trick 8)
Now that I have the category name isolated on it's own line...
I am trying to find the necessary hack, to give it, it's own css style formatting. In fact I wish to make it small, just as a quick eye reference to which category it's been classified... No rush on this... :wink:
I sincerly beleive that this great RT ought to be integrated in the next release. It really opens up brand new possibilities. :D

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
cbmr777
Posts: 11
Joined: Thu 25. Aug 2005, 21:25
Location: U.S.
Contact:

Post by cbmr777 »

http://www.hoguechronicle.com/index.php?teststructure

Yes... in one way I am happy, someone else looked at what was going on and can't figure out what is wrong either! :lol - I thought I was going nuts - in another way I am more perplexed!

I originally had an older version phpwcmsfrom Fantastico. When I learned I needed the newest version of phpwcms to get the teaser tag to work, I tried to upgrade. I had so many problems, that I uninstalled everything and downloaded 1.2.5dev from sourceforge and just started anew. The database from the previous version had been deleted. Do you think there could be unseen residual effects left?

Since I have a fresh new install (not upgrade), should I try a DB update anyway?
Christine
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

@erich, cc:christine
We have set up a new structure, template, article on christines site at http://www.hoguechronicle.com/index.php?teststructure
inserted the teaser-tag i had (displayed as text)
{TEASER_EX:god|1;christine|1:2:article_tstamp|DESC:0::1}
and yours
{TEASER_EX:god|1;christine|1:2:article_tstamp|DESC:0::1:}
alias and articles of "god" and "christine exist. The page loads slow and shows up an error for half a second before loading the page.
After several attempts I was able to capture it, here it is.

Image

We have checked the installation, seems to be ok. Do you have any idea???

best regards
volkman
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post by erich_k4 »

@christine, volkmann

Hmm?

Insert the following on #142 (before $result = mysql_query($sql, $db); )

Code: Select all

echo "<hr>".$sql."<hr>";
to get the SQL-Code and post it here...

Erich
volkman
Posts: 179
Joined: Wed 13. Jul 2005, 12:52
Location: Hamburg, Germany

Post by volkman »

Inserted we see an enhanced errorpage

Image

maybe this helps...

volkman
Post Reply