Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 06:30:49 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.
155442 Posts in 21702 Topics by 7733 Members
Latest Member: DarrellDD
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: New Module - Page Tags  (Read 4501 times)
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« on: September 24, 2008, 10: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 24, 2008, 11:12:13 PM by Ruud » Logged

Professional WebsiteBaker Solutions
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #1 on: September 24, 2008, 11:52:13 PM »

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

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
erpe

Offline Offline

Posts: 2077


WWW
« Reply #2 on: September 25, 2008, 12: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


« Reply #3 on: September 25, 2008, 09: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, 09: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: 519


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

Very nice - thanks!
Logged

My Blog, My Site
sparkdigital

Offline Offline

Posts: 348



WWW
« Reply #5 on: September 26, 2008, 10: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
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



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

Hoi Ruud!
Nice Idea!

Unfortunately I get some error in front- and backend.

F-End:
NoticeUndefined variableMOD_TAGS in C:\xampp\htdocs\wb-27\modules\tags\view.php on line 61

B-End:
NoticeUndefined variableopt in C:\xampp\htdocs\wb-27\modules\tags\modify.php on line 62

The module seems to work properly though.

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #7 on: September 26, 2008, 11:16:28 AM »

@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

Professional WebsiteBaker Solutions
aldus

Offline Offline

Posts: 1238


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

Hoi Ruud!
Nice Idea!

Unfortunately I get some error in front- and backend.

F-End:
NoticeUndefined variableMOD_TAGS in C:\xampp\htdocs\wb-27\modules\tags\view.php on line 61

B-End:
NoticeUndefined variableopt in C:\xampp\htdocs\wb-27\modules\tags\modify.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
bgg

Offline Offline

Posts: 101



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

Looks very mice and useful.

Can u pls reupload the final version here
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #10 on: October 03, 2008, 10: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

Professional WebsiteBaker Solutions
bgg

Offline Offline

Posts: 101



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

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
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



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

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1705



« Reply #15 on: July 17, 2011, 05:56:54 PM »

Its a bit outdated but I am considering to use it.. Im using v0.17

What are the groups for ? You can create group or tag, then check group or tag in be, but what are the groups for.. There is no relation between groups and tags and when you check the groups in be I dont see anything happens ??

could you please explain me this ?
Ivan
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #16 on: July 17, 2011, 10:08:41 PM »

Not sure what you mean by the groups and tags.
You can create tags, link them at a page. these pages will be grouped by a tagname in the page output.
That is the best explanation I can come up with at this time.  smiley
Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1705



« Reply #17 on: July 18, 2011, 09:06:29 AM »

Yes I know about tags, but I see that you can also create groups and ckeck/uncheck them in BE like tags. But when you see that page in frontend, you see only tags list and not groups, so I am wondering what are groups for ?
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #18 on: July 18, 2011, 01:49:16 PM »

I think that what you see as categories are tags that were created before.
You can link multiple tags to a single page that way.
All tags will become the "categories" in the frontend with all pages listed that will have that tag/category enabled.
Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1705



« Reply #19 on: July 18, 2011, 03:02:22 PM »

Maybe this is lame, but I still dont understand Smiley

could you please help me understand on example.. For example at all pages I have checked in BE:

groups: Group1, Group2

tags: car, house, hotel, ball

now In FE, I see only list like this:
car (2)
house (5)
hotel (1)
ball (10)

but I dont see anywhere Group1 and Group2 appearing ?

So I dont understand point of groups.. Maybe you forgot something when you develop this ?

cheers
Ivan
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #20 on: July 19, 2011, 11:50:46 AM »

Ok, I had to install the mod myself again to find out smiley

The idea is that tags are listed only for pages that have the same group (as on the current page) activated.
So that way you can have the same tags in different groups.

Switching on "All Groups" is creating a sort of menu, It iwill list just about everything.
Selecting only one or more groups will create a "More like this.." type of menu.

I agree, it is a bit hard to explain/understand, but by that it is a very powerful method of creating browsing/clicking routes through a website.

Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1705



« Reply #21 on: July 19, 2011, 10:09:57 PM »

si if I have 3 pages and checked tags amd groups:

Page1 tags: football, basketball, golf Groups: Group1
 
Page2 tags: football, basketball, golf Groups: Group1

Page3 tags: football, basketball, golf Groups: Group2

So if I am on Page1 it will show

football (2) - {Page 1 and Page 2}
basketball (2) - {Page 1 and Page 2}
golf (2) - {Page 1 and Page 2}

And it will not show page 3 because it is not in same group right ?
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #22 on: July 19, 2011, 10:12:54 PM »

Yep, that's the idea.

Of-course it makes more sense with multiple pages having the same group linked.
Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1705



« Reply #23 on: July 20, 2011, 02:59:46 PM »

Tnx Ruud, I tried example and it is great Smiley my intention is to use your code on news module to create news tags Smiley

all best,
Ivan
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!