Search found 136 matches

by JensZ
Thu 15. Sep 2005, 15:22
Forum: hacks & enhancements
Topic: {SHOW_CONTENT} Show content of a particular content part
Replies: 68
Views: 61338

Hey jsw_nz!

I'm glad the repl tag was appreciated by others. Check out http://www.phpwcms.de/forum/viewtopic.php?t=8521 for my news flash content part that will take article flexibility even further, at least for me...

Regards,

JZ
by JensZ
Thu 15. Sep 2005, 15:17
Forum: hacks & enhancements
Topic: News Flash Content Type [Updated 2.0.4]
Replies: 40
Views: 33201

News Flash Content Type [Updated 2.0.4]

Hi all, New update of the newsflash content part available: v2.0.4 . It can be used to display article listings in any block and even inside other articles. The code can be downloaded from: http://www.ikfrej.se/index.php?downloads Here's the readme file: ---------------------------------------------...
by JensZ
Tue 13. Sep 2005, 15:00
Forum: hacks & enhancements
Topic: new content type "three column"
Replies: 10
Views: 5677

Hi,

What is it used for? Is it just used instead of having a template with three custom blocks, say {col1}, {col2}, and {col3}?

Jens
by JensZ
Tue 13. Sep 2005, 14:49
Forum: hacks & enhancements
Topic: {VTS_USERS_ONLINE} Updated!!
Replies: 3
Views: 3160

Hi, For all you people that use VTS (visitor tracking system/phpOpenTracker), I have updated the set of replacement tags that use VTS. Now it can be used to show the number of people that have visited your website (specified by range "today", "current_month", etc), the number of ...
by JensZ
Wed 27. Jul 2005, 12:23
Forum: sites you are proud of (made with phpwcms only)
Topic: www.fullhw.com
Replies: 1
Views: 1564

Hi

A little too much for my taste. I get a little stressed, especially with the moving animations.

Jens
by JensZ
Thu 7. Jul 2005, 18:02
Forum: hacks & enhancements
Topic: {SHOW_CONTENT} Show content of a particular content part
Replies: 68
Views: 61338

Hi jsw_nz,

Sure, the current article id is stored in a global variable:

Code: Select all

$GLOBALS["content"]["article_id"]
Hope that helps!

Jens
by JensZ
Wed 15. Jun 2005, 16:56
Forum: hacks & enhancements
Topic: {NAV_MENUBAR} Dropdown menubar
Replies: 68
Views: 50566

About opening only when you click: The whole idea is that it behaves like a windows menu. Personally, I like when things only happen when I request it to happen, not when I roll over something and all of a sudden a drop down comes down. Just personal preference. Maybe you can ask Oliver to make that...
by JensZ
Wed 15. Jun 2005, 10:50
Forum: hacks & enhancements
Topic: {NAV_MENUBAR} Dropdown menubar
Replies: 68
Views: 50566

Pico, I am going to try to fix it as soon as I get a moment. I don't have the same situation on my site structure, so I don't have the same problem. I'll make a post when I've fixed it...
by JensZ
Wed 15. Jun 2005, 10:18
Forum: hacks & enhancements
Topic: {NAV_MENUBAR} Dropdown menubar
Replies: 68
Views: 50566

by JensZ
Tue 14. Jun 2005, 09:30
Forum: hacks & enhancements
Topic: {SHOW_CONTENT} Show content of a particular content part
Replies: 68
Views: 61338

{SHOW_CONTENT} Show content of a particular content part

Hello, Another replacement tag to show the contents of a particular content part. Can be very useful. It hasn't been tested for all content parts, but should work for most of them. Put the following in a php file (for example show_content.php) in frontend_render. <?php //----------------------------...
by JensZ
Mon 13. Jun 2005, 22:51
Forum: hacks & enhancements
Topic: {NAV_MENUBAR} Dropdown menubar
Replies: 68
Views: 50566

I have updated the script, and I think it works as it should.

Jens
by JensZ
Mon 13. Jun 2005, 14:43
Forum: hacks & enhancements
Topic: {ART_READ} Display number of times an article has been read
Replies: 24
Views: 15141

Sorry for the trouble. I don't know what could be the problem. Try putting an echo statement in the function to see that it actually enters the function and go from there, for example:

Code: Select all

echo "article: " . $art_id . " category: " . $cat_id;
/jens
by JensZ
Mon 13. Jun 2005, 13:06
Forum: hacks & enhancements
Topic: {ART_READ} Display number of times an article has been read
Replies: 24
Views: 15141

frold, You'll need to supply it with an article_id and category_id: {ART_READ:article_id:cat_id} You can use php variables if you put it in the article itself: {ART_READ:<?php echo $GLOBALS["content"]["article_id"];?>:<?php echo $GLOBALS["content"]["cat_id"];?...
by JensZ
Mon 13. Jun 2005, 12:02
Forum: hacks & enhancements
Topic: {ART_READ} Display number of times an article has been read
Replies: 24
Views: 15141

Strange that you cannot do a simple insert. What does the mysql_error() return?

Jens
by JensZ
Sun 12. Jun 2005, 12:45
Forum: hacks & enhancements
Topic: {ART_READ} Display number of times an article has been read
Replies: 24
Views: 15141

Hi frold, Did you add the table phpwcms_article_read_count to your mysql database? I noticed that I added an ID column with autoincrement to the table as I was getting an error of duplicate records. See if that solves it. That also requires that you specify which columns you are inserting in content...