Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 23, 2012, 12:01:27 PM
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
.
155408
Posts in
21698
Topics by
7731
Members
Latest Member:
elwin90
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
news module: internal link [wblink] in short description not working
Pages: [
1
]
Go Down
Author
Topic: news module: internal link [wblink] in short description not working (Read 2239 times)
Boudi
Addon Team
Offline
Posts: 815
news module: internal link [wblink] in short description not working
«
on:
July 23, 2008, 03:13:48 PM »
hi,
I noticed that when you create a news item in the long news section the internal link is working nicely but not in the short news section. This will end up into an error.
Is this a know problem?
greetz
Knert
Logged
...:: Bake the Unbakable ::...
aldus
Offline
Posts: 1238
Re: news module: internal link [wblink] in short description not working
«
Reply #1 on:
July 23, 2008, 03:36:49 PM »
Sorry - try to reproduce the problem without luck, will say: can't produce it here.
So - what's the error-message saying?
Regards
Aldus
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7972
Re: news module: internal link [wblink] in short description not working
«
Reply #2 on:
July 23, 2008, 03:38:10 PM »
Hello,
tested with WB 2.7 and the latest FCKEditor modul and all works as aspected. Wich version of WB and wich WYSIWYG Editor did you use?
Matthias
Logged
Boudi
Addon Team
Offline
Posts: 815
Re: news module: internal link [wblink] in short description not working
«
Reply #3 on:
July 23, 2008, 03:46:16 PM »
Strange?
I use:
WB 2.7
Editor: 2.85
Logged
...:: Bake the Unbakable ::...
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7972
Re: news module: internal link [wblink] in short description not working
«
Reply #4 on:
July 23, 2008, 04:16:33 PM »
Hello,
2.86 is the latest version of FCK Modul for WB.
http://addons.websitebaker.org/pages/modules/wysiwyg-editors.php
Matthias
Logged
Boudi
Addon Team
Offline
Posts: 815
Re: news module: internal link [wblink] in short description not working
«
Reply #5 on:
July 23, 2008, 05:04:18 PM »
Hello,
Thnq for quick responding. I downloaded the FCKeditor 2.86 and:
- Deleted all cookies
- Upgraded to 2.86
- Got a successfull message
- Reload the addons
- But it says it is still 2.85
Doing something wrong up here?
Besides that: the error is only on a section at the website where i put the code of the anynews module. Not on the mainpage itself. I think this is the issue?
«
Last Edit: July 23, 2008, 05:11:00 PM by knert
»
Logged
...:: Bake the Unbakable ::...
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7972
Re: news module: internal link [wblink] in short description not working
«
Reply #6 on:
July 23, 2008, 09:55:56 PM »
Hello,
As the FCKEditor is a core file from WB 2.7, you have uploaded them together with the WB package with your ftp client. This means that the files are owned by ftpuser. Depending on your server config, the WB admin deletscript wich runs under the wwwrun user has no permissions to delete this modul.
Please do the following:
1.) Delete with ftp the whole Modules/fckeditor folder with all files in it
2.) Unzip the package from the newer Modulversion
3.) Upload the newer fckeditor with ftp in modules/fckeditor (Folder structure should be the same as before)
4.) Go in WB admi to admin tools and reload the modules.
As our help page is based on WB 2.6.x we need to update this point. Sorry for the circumstances.
Matthias
Logged
pcwacht
AddOn Development
Online
Posts: 2855
Re: news module: internal link [wblink] in short description not working
«
Reply #7 on:
July 23, 2008, 10:00:54 PM »
Maybe thi is it:
Quote
where i put the code of the anynews module
Could be the anynews snippet doens't translate the wblink
john
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Boudi
Addon Team
Offline
Posts: 815
Re: news module: internal link [wblink] in short description not working
«
Reply #8 on:
July 23, 2008, 10:44:12 PM »
@ Matthias,
Thnq, worked perfect. 2.82 is running now.
@ John,
I think this could be the case. When you normally read the newspage (short/long story) itself than there is no problem. When you put the anynews snippet in a code into a section of a template (which normally gives a redirect to the above page) then the wblink seems not to work.
I leave this topic open. May be I didn't searched well or does anybody know a solution for this
Thnq 4 your responses.
Logged
...:: Bake the Unbakable ::...
pcwacht
AddOn Development
Online
Posts: 2855
Re: news module: internal link [wblink] in short description not working
«
Reply #9 on:
July 23, 2008, 11:12:07 PM »
To make sure I downed anynews just now and had a look into the include.php
There is no $wb->preprocess there, so the wblink never gets translated
I think a line must be added in include.php for it to work
Line 88 and 89 reads:
Code:
while($data = $result->fetchRow()) {
// strip tags if specified
Think it is best to add lines between line 88 and 89
Code:
while($data = $result->fetchRow()) {
// Replace [wblink--PAGE_ID--] with real link
$data['content_short'] = $wb->preprocess($data['content_short']);
// strip tags if specified
Mind you , I haven't tested this but think it'll work
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2294
Re: news module: internal link [wblink] in short description not working
«
Reply #10 on:
July 23, 2008, 11:20:36 PM »
Anynews does not translate internal links.
The quick solution is to use the last (strip_tags) parameter in the display_news_items() call in your template (Anynews snippet).
Setting that to
false
will not display the link at all. That makes it will not link to a /pages/[wblinknnn] url.
From the README file:
Code:
<?php display_news_items
(
$group_id
,
$max_news_items
,
$max_news_length
,
$display_mode
,
$header_text
,
$readmore_text
,
$no_news_text
,
$strip_tags
);
?>
Ruud
Logged
Professional WebsiteBaker Solutions
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2294
Re: news module: internal link [wblink] in short description not working
«
Reply #11 on:
July 23, 2008, 11:25:10 PM »
Quote from: pcwacht on July 23, 2008, 11:12:07 PM
Mind you , I haven't tested this but think it'll work
Just tested, wouldn't work.
Is the $wb frontend available within snippet includes?
Code:
PHP Fatal error: Call to a member function on a non-object in /www/wb-sandbox/modules/anynews/include.php
Ruud
Logged
Professional WebsiteBaker Solutions
Boudi
Addon Team
Offline
Posts: 815
Re: news module: internal link [wblink] in short description not working
«
Reply #12 on:
July 24, 2008, 09:02:12 AM »
thnq you for your quick responding!
@ pcwacht,
Like Ruud said, unfortunately this does not work.
@ Ruud,
Even when you set the parameter to
true
the wblink does not appear. (at least over here)
Besides that images does not show up when setting the parameter to true so a wblink behind an image is not possible. (and that is the wish from the customer)
Greetz
Logged
...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2294
Re: news module: internal link [wblink] in short description not working
«
Reply #13 on:
July 24, 2008, 09:11:12 AM »
The strip_tags removes all html tags. So it will strip the links out, but also the images.
Last modifications to anynews were made by me (new WB2.7 publish settings), I will have a look and see if I can make a fix for this tonight.
Ruud
Logged
Professional WebsiteBaker Solutions
Boudi
Addon Team
Offline
Posts: 815
Re: news module: internal link [wblink] in short description not working
«
Reply #14 on:
July 24, 2008, 09:39:29 AM »
Ok, would be great if you could get it done
thnq again
Logged
...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2294
Re: news module: internal link [wblink] in short description not working
«
Reply #15 on:
July 25, 2008, 08:55:35 PM »
Quote from: Boudi on July 24, 2008, 09:39:29 AM
Ok, would be great if you could get it done
thnq again
Sorry, it took a day longer. (must be the very nice weather)
The version in
this post
will display your links as it should. (Don't forget to set strip_tags to false again)
Ruud
Logged
Professional WebsiteBaker Solutions
Boudi
Addon Team
Offline
Posts: 815
Re: news module: internal link [wblink] in short description not working
«
Reply #16 on:
July 25, 2008, 10:45:04 PM »
What can I say...the weather was indeed very nice
and your new version does the trick!!
Thank you for your quick solution! It works like a charm
Logged
...:: Bake the Unbakable ::...
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> 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
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> 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
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...