KeyCloud v1.7 for phpwcms 1.3.3+

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

KeyCloud v1.7 for phpwcms 1.3.3+

Post by Jensensen »

new version, new code, new stuff.
Last edited by Jensensen on Mon 2. Nov 2015, 00:33, edited 18 times in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: KeyCloud v1.1 for phpwcms

Post by update »

great stuff!! :D
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: KeyCloud v1.1 for phpwcms

Post by sustia »

Hi Jensensen, great feature, thanks! :D
Campeones del mundo!
Vegetables!
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: KeyCloud for phpwcms [Update v1.2]

Post by Jensensen »

/******************************************************************
this posting is outdated
******************************************************************/
Last edited by Jensensen on Fri 13. Mar 2009, 00:09, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

KeyCloud for phpwcms [Update v1.3]

Post by Jensensen »

changelog: [FIX] optimized handling of URLs (thanks Oliver)

Strongly recommended:
A) Use the actual version 1.3!
B) Save the SOURCE FILE 'keycloud_v1.3.php' with the same encoding that you've been using for your WEB PAGES (see config)!


Once you've added the needed expressions to these settings

Code: Select all

// keywords to EXCLUDE from the cloud. Example: array("this","that");
$kw_exclude = array();

// keywords to INCLUDE to the cloud.
// When you want to minimize all keywords to just the following ones.
$kw_include = array("Lorem","product","française","versão","rømø");
save [upload] the file with the appropriate character encodings!

Note: By DEFAULT the SOURCE FILE is encoded as ==> UTF-8 (no BOM).


Appreciate your feedback! Thank you!
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

KeyCloud for phpwcms [Update v1.4]

Post by Jensensen »

When you are frequently working with META keywords, KeyCloud for phpwcms could be your friend.


changelog:
[FIX] - partly rewritten
[FIX] - variables have been renamed!!!


recommended use for version 1.3.5++
a fall back has been implemented for older versions but it won't be available in all case. ==> response needed!

Remember also, it can be good for http://forum.phpwcms.org/viewtopic.php?f=2&t=17805 too.


Appreciate your feedback! Thank you!
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
larmann
Posts: 311
Joined: Thu 23. Jun 2005, 10:51
Location: Hamburg
Contact:

Re: KeyCloud for phpwcms [Update v1.4]

Post by larmann »

Really nice tool, very pretty. But I wonder how I could get a landing page like this: By hitting a keyword in the keycloud I'd like to be directed to a landing page, where all the teasers are shown which are containing the focal keyword. This might look similar to a category named by that that keyword. How could I archive this?
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: KeyCloud for phpwcms [Update v1.4]

Post by Jensensen »

Thank you larmann for your interest!
You are right. I'm sorry. I forgot to explain it here.
A description can be found also in the source code.

It has not (yet) been built for a conjunction with any CP Teaser.
(but should be possible ==> for example: You need an individual template (CP "teaser") with an anchor hard coded for each keyword.)


==> Landing Page
Landing Page means, that you have more controls but you get less automation. You also must have to manually add the links (anchors).

Explanation:

Later, when you have optimized the cloud's output (min, del_chars, ID, include-exclude...) you can add another article (page) somewhere (but outside of the site structure levels x,y,z that you have in the RT-tag!!!!)

Note the ID of this article (or keep in mind), because L:ID will be your landing page.

Then prepare this article L:ID landing page with as many anchors as you need:
<a name="KEYWORD" id="KEYWORD"></a>
[MY_CONTENTPART]<p>... KEYWORD...</p>[/MY_CONTENTPART]

KEYWORD = placeholder for an expression of the "keycloud" to be USED AS --> ANCHOR!
[MY_CONTENTPART] = can be any CP



confused? (I'am!)

In brief:
A "landing page" (keycloud/tagcloud) is just another article with html-anchors (ALWAYS must be prepared manually) for each "KEYWORD".



In other words: When you are using mode L:
--> the link comes with an anchor (KEYWORD)


/index.php?ARTICLE_ALIAS#KEYWORD

That's why you SHOULD HAVE an anchor
<a name="KEYWORD" id="KEYWORD"></a>

on your L:PAGE-id in front of --> article CONTENT (whatever stuff or CP part)
AS ==> KEYWORD-explanation.


NOTE that
[instead L:mode]
for convenience [that's why] == the easiest way (keycloud/tagcloud) ==> S:mode == searchpage[ID] is recommended.
S:mode does it automatically [SEO]

but still you can use both...SL... either... or.

Be careful, when you read/thinking about this post with your ipod while driving. You better have a ==> KIT KAT ==> pause. Enjoy, have a break with Knoppers, raiders twix on the right trace (autobahn) or the parking place.

xcuse me. I'm a little bit [itsy-bitsy] out of order [crazy], these days, because I can't be there.

Any more questions?
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
larmann
Posts: 311
Joined: Thu 23. Jun 2005, 10:51
Location: Hamburg
Contact:

Re: KeyCloud for phpwcms [Update v1.4]

Post by larmann »

Hi Jensensen,

well, I try to phrase my request in other words: Would you might to add to those functions L and S a third function, which is producing such a link?

index.php?keyword

That would be nice!
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

KeyCloud for phpwcms [Update v1.5]

Post by Jensensen »

Hi larmann,
Hi folks,

The script contains also error messages being displayed when the setup is wrong. See {try} yourself.
The programming wasn't easy as I want the logic functions remain. And that's why it took longer than expected, sorry,

But indeed, now there are three parameters. Use it to define the "Landing Page":
L = landing page (a page with anchors)
S = search page (built in)
A = standard --> index.php?alias (NEW since v1.3.9 and higher. THIS CAN BE ANY/BOTH article OR category!)

New output: index.php?keyword
KEYWORD that way is used as --> an ALIAS!


Usage: example of the new RT:
{KEYCLOUD:I:0,4,56:A}

{KEYCLOUD:I:1,9,78:A:68} is working too (but ID = 68 will be ignored :wink: )

Keep in mind:
Unlike "A-mode", with L or S the ID of the "Landing Page" IS VERY IMPORTANT!
.......14:L:174}
.......21:S:15}
Last edited by Jensensen on Fri 20. Nov 2009, 00:38, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
larmann
Posts: 311
Joined: Thu 23. Jun 2005, 10:51
Location: Hamburg
Contact:

Re: KeyCloud for phpwcms [Update v1.5]

Post by larmann »

Thank you, that's great!

So what I just did is this:

1.) I use the A-mode and I'm getting the alias attached, so I receive index.php?keyword

2.) For each keyword I'm using in my website (e.g. apple, banana, food, fruits) I created an article with that keyword as an alias. So I got those articles:
index.php?apple
index.php?banana
index.php?food
index.php?fruits

3.) To each of those articles I added an html-contentpart. In that html-contentpart I used a old replacement tag called RELATED_SUMMARY: http://forum.phpwcms.org/viewtopic.php? ... 05&p=50546

4.) Now the system is listing all articles about bananas in the article banana, in the article food and in the article fruits.

Just see the keycloud on my website: http://www.veit-larmann.de

Any comments?
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

KeyCloud for phpwcms [Update v1.6]

Post by Jensensen »

NEW UPDATE: new version, new code, new stuff.

jieper EOF




.LF
.
Attachments
keycloud_for_phpwcms_v1.6.zip
(486 Bytes) Downloaded 644 times
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

Re: KeyCloud for phpwcms [Update v1.6]

Post by phalancs »

Hey Larman, since you are using this script, and since the original has been deleted. Could it be possible for you to reupload the file again?

Thanx in advance :)
2008
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: KeyCloud for phpwcms [Update v1.6]

Post by Jensensen »

phalancs wrote:Hey Larman, since you are using this script, and since the original has been deleted. Could it be possible for you to reupload the file again?

Thanx in advance :)
Hi phalancs.
No, he can't do! Are you mad?
Please ask someone by --> Private Message.
The development of KeyCloud has been neglected. endeausdiemausgibtsnichmehr.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: KeyCloud v1.7 for phpwcms 1.3.3+

Post by Jensensen »

{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply