Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
March 21, 2010, 09:40:24 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
WebsiteBaker Community Forum
English
Modules
(Moderators:
Argos
,
BerndJM
)
New Module - Page Tags
Pages:
[
1
]
Author
Topic: New Module - Page Tags (Read 2217 times)
Ruud
Development Team
Offline
Posts: 1273
[[droplets]]
New Module - Page Tags
«
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
Show your WB site in the WebsiteBaker Professionals Showcase
|
ALLWWW Webdesign Oosterhout
|
WB Module ontwikkeling
Argos
Forum administrator
Offline
Posts: 1349
Re: New Module - Page Tags
«
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
Posts: 1738
Re: New Module - Page Tags
«
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
Search on
All Modules And Snippets Project (AMASP)
Be part of the
Tutorials-Project
vyni
Offline
Posts: 566
Re: New Module - Page Tags
«
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
Posts: 473
Re: New Module - Page Tags
«
Reply #4 on:
September 26, 2008, 01:48:14 AM »
Very nice - thanks!
Logged
My Blog
,
My Site
sparkdigital
Offline
Posts: 254
Once a baker, always a baker!
Re: New Module - Page Tags
«
Reply #5 on:
September 26, 2008, 11:33:21 AM »
Thanks Ruud, brilliant as usual
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
Posts: 3203
Re: New Module - Page Tags
«
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:
Notice
:
Undefined variable
:
MOD_TAGS in C
:
xampphtdocswb
-
27modulestagsview
.
php on line 61
B-End:
Notice
:
Undefined variable
:
opt 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
Posts: 1273
[[droplets]]
Re: New Module - Page Tags
«
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
Quote from: sparkdigital on September 26, 2008, 11:33:21 AM
Thanks Ruud, brilliant as usual
Thanks
Quote from: sparkdigital on September 26, 2008, 11:33:21 AM
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
Show your WB site in the WebsiteBaker Professionals Showcase
|
ALLWWW Webdesign Oosterhout
|
WB Module ontwikkeling
aldus
Addons Team
Offline
Posts: 1018
Re: New Module - Page Tags
«
Reply #8 on:
September 26, 2008, 01:13:25 PM »
Quote from: Stefek on September 26, 2008, 11:53:23 AM
Hoi Ruud!
Nice Idea!
Unfortunately I get some error in front- and backend.
F-End:
Notice
:
Undefined variable
:
MOD_TAGS in C
:
xampphtdocswb
-
27modulestagsview
.
php on line 61
B-End:
Notice
:
Undefined variable
:
opt 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
.
" "
;
// **!
}
}
?>
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
Posts: 101
Re: New Module - Page Tags
«
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
Posts: 1273
[[droplets]]
Re: New Module - Page Tags
«
Reply #10 on:
October 03, 2008, 11:57:33 AM »
Quote from: bgg on October 03, 2008, 08:21:09 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
Show your WB site in the WebsiteBaker Professionals Showcase
|
ALLWWW Webdesign Oosterhout
|
WB Module ontwikkeling
bgg
Offline
Posts: 101
Re: New Module - Page Tags
«
Reply #11 on:
October 03, 2008, 12:03:49 PM »
Thanks Ruud
Logged
luckyfish
Offline
Posts: 3
Re: New Module - Page Tags
«
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
Posts: 18
Re: New Module - Page Tags
«
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
Posts: 1273
[[droplets]]
Re: New Module - Page Tags
«
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
Show your WB site in the WebsiteBaker Professionals Showcase
|
ALLWWW Webdesign Oosterhout
|
WB Module ontwikkeling
Pages:
[
1
]
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
Loading...