Welcome, Guest. Please login or register.
March 21, 2010, 09:40:24 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110574 Posts in 15968 Topics by 9312 Members
Latest Member: rumarsies
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  New Module - Page Tags
Pages: [1] Go Down Print
Author Topic: New Module - Page Tags  (Read 2217 times)
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« on: September 24, 2008, 11:56:37 PM »

In this thread Konrad (sparkdigital) was looking for a module for tagging and listing tagged pages.

I found this a good idea so I made a module that allows you to add one or more tags to a page, and optionally display in the frontend the list of tags combined with links to all other pages with those tags.

Install the module as an extra section on every page you want to be tagged and look in the frontend what happens.
Optionally you can use the module to create a list of all tags with their linked pages as an overview page.

Current version (v0.14) is still in alpha testing mode.
Since a next install might mean you need to uninstall first (and therefore remove all Page Tags sections manually), don't use it on a live server yet.

Any comments are welcome.

Ruud
« Last Edit: September 25, 2008, 12:12:13 AM by Ruud » Logged

Argos
Forum administrator
*****
Offline Offline

Posts: 1349


WWW
« Reply #1 on: September 25, 2008, 12:52:13 AM »

Nice one Ruud! I'll test it one of these days.
Logged

Jurgen Nijhuis
Argos Media
www.argosmedia.nl/portfolio (mostly WB sites)
----------------------------------------------------------------
Please don't request personal support, use the forums!
erpe

Offline Offline

Posts: 1738



WWW
« Reply #2 on: September 25, 2008, 01:36:57 AM »

Hi Ruud,

nice module.

See a test page here:
http://www.rvb.bplaced.net/pages/player/video-gallery.php?lang=EN

I will open a new page at AMASP.

rgds

erpe
Logged

vyni

Offline Offline

Posts: 566



WWW
« Reply #3 on: September 25, 2008, 10:04:45 AM »

As usual,
Mr. Ruud is doing great!

For the german users I made the language-file ready.
Just copy this file to the folder languages in modules/tags and rename it to DE.php and You are done.


regards from Himberg, next to Vienna


Edit: I extended the file to german description aswell.
« Last Edit: September 25, 2008, 10:17:28 AM by vyni » Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
bupaje

Offline Offline

Posts: 473


WWW
« Reply #4 on: September 26, 2008, 01:48:14 AM »

Very nice - thanks!
Logged

sparkdigital

Offline Offline

Posts: 254


Once a baker, always a baker!


WWW
« Reply #5 on: September 26, 2008, 11:33:21 AM »

Thanks Ruud, brilliant as usual  cool

Some input from my end:

  • Would it be possible to add more than one tag at once, using comma separated? That would save some time!
  • Would it be possible to have an amend / delete existing tags?
  • Would it be possible to build in a feature where it looks at parent / child relation and it would only list tagged child pages rather than all tagged pages? For instance, there would be 5 cottages with the tag 'cottages with an open fire' but only 3 of those are in The Lake District so when on the Lake District parent page I only want to display the 3 cottages that are child pages.

Hope this makes sense!

Thanks so much for your hard work!

Konrad
Logged
Stefek
Backend Theme Team
******
Offline Offline

Posts: 3203



WWW
« Reply #6 on: September 26, 2008, 11:53:23 AM »

Hoi Ruud!
Nice Idea!

Unfortunately I get some error in front- and backend.

F-End:
NoticeUndefined variableMOD_TAGS in C:xampphtdocswb-27modulestagsview.php on line 61

B-End:
NoticeUndefined variableopt in C:xampphtdocswb-27modulestagsmodify.php on line 62

The module seems to work properly though.

Regards,
Stefek
Logged

Bowling in Kiel Halle Aschaffenburg

"Es gibt viele Pfade am Fuße des Berges,
doch von der Spitze aus, erblicken wir alle den selben Mond."
jap. Sprichwort
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« Reply #7 on: September 26, 2008, 12:16:28 PM »

@Stefek, You are using the v0.11 version.
That one was a bit too buggy. (it hasn't been online that long)
Use the current version (v0.14), that should solve it and give some extra options.

@Sparkdigital
Thanks Ruud, brilliant as usual  cool
Thanks wink

Some input from my end:

  • Would it be possible to add more than one tag at once, using comma separated? That would save some time!
  • Would it be possible to have an amend / delete existing tags?
  • Would it be possible to build in a feature where it looks at parent / child relation and it would only list tagged child pages rather than all tagged pages? For instance, there would be 5 cottages with the tag 'cottages with an open fire' but only 3 of those are in The Lake District so when on the Lake District parent page I only want to display the 3 cottages that are child pages.

It makes sense..
I will put it on the whish-list for the next version.

Ruud
Logged

aldus
Addons Team
******
Offline Offline

Posts: 1018



« Reply #8 on: September 26, 2008, 01:13:25 PM »

Hoi Ruud!
Nice Idea!

Unfortunately I get some error in front- and backend.

F-End:
NoticeUndefined variableMOD_TAGS in C:xampphtdocswb-27modulestagsview.php on line 61

B-End:
NoticeUndefined variableopt in C:xampphtdocswb-27modulestagsmodify.php on line 62

The module seems to work properly though.

Regards,
Stefek
As for the line 62 Warning in "modify.php" the var "$opt" isn't declared before the ".=" , so you
have to place a single "$opt = '';" befor the "while"-loop. e.g.
Code:
<?php
$opt 
""// **!

$result $database->query("SELECT * FROM `" .TABLE_PREFIX ."mod_tags_names`");
if (
$result && $result->numRows() > 0) {
    while(
$tag $result->fetchRow()){
        
$this_tag htmlspecialchars($tag['tag_name']);
        
$this_tag_id $tag['tag_id'];

        
$value in_array$this_tag_id$the_tags) ? " checked" "";
        
        
$opt .= "<input type='checkbox' name='tag_id_".$this_tag_id."'".$value.">".$this_tag." &nbsp;"// **!
    
}
}

?>


Regards
Aldus
Logged



57 65 62 73 69 74 65 20 42 61 6B 65 72 20 72 6F 63 6B 73 21
bgg

Offline Offline

Posts: 101



« Reply #9 on: October 03, 2008, 08:21:09 AM »

Looks very mice and useful.

Can u pls reupload the final version here
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« Reply #10 on: October 03, 2008, 11:57:33 AM »

Looks very mice and useful.

Can u pls reupload the final version here

The current version is linked in the first message of this thread.
There will be a new version, with lots of improvements, but that might still take a few weeks before it is ready for publication.
When it is ready it will be put in the same first post of this thread. (just keep the notification email on this thread active to get a warning whenever something changes)

Ruud
Logged

bgg

Offline Offline

Posts: 101



« Reply #11 on: October 03, 2008, 12:03:49 PM »

Thanks Ruud Smiley
Logged
luckyfish

Offline Offline

Posts: 3


« Reply #12 on: February 01, 2009, 05:16:04 AM »

Thanks for the module.

Question: Instead of revealing a list of links, could each tag could open a new page that displays these links? (similar to the way Categories function within the News template)

This is my first post within the community - Hopefully I don't come off as a stupid designer.

matt
Logged
SlaY3R

Offline Offline

Posts: 18


« Reply #13 on: March 21, 2009, 09:15:22 AM »

Hi guys,

I'm trying to add this little script on my webpage. but got 2 questions:

1. How can i add the menu inside my template (instead of only 1 page)?
2. And how can i add tags to existing pages?
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« Reply #14 on: March 21, 2009, 12:07:30 PM »

Hi

Both questions will have the same answer.

Every page where you add the tags module will display links to other pages with the same tags. (unless you tell it not to show)
Just add an extra "Tags" section to every page and activate the tags. (Help on sections here)

You could also try the Droplet MoreLikeThis.
It uses the keyword list in every page to build a list of links that have one or more similar keywords.
Read more about Droplets here

Ruud

Logged

Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!