Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 08:47:35 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
.
149626
Posts in
21098
Topics by
7537
Members
Latest Member:
lotte2
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Manual Module
Pages:
1
...
5
6
[
7
]
Go Down
Author
Topic: Manual Module (Read 36413 times)
aldus
Offline
Posts: 1238
Re: Manual Module
«
Reply #150 on:
November 18, 2008, 04:10:09 PM »
@vyni
I've download and tested - haven't work ... reason as you have descripe "../../../../" ...
So i've modify the line that throws the error/bug ... that's all.
MAMP 1.7 / MacOS 10.5.5
Also - you will have to delete the "old" bugy files ones, iow: throw the manual away ...
and yes: you can also wrote "WB_PATH."/conf.php" in the line 190 (?) instead of
Code:
require("'.$index_location.'config.php");
so
Code:
<?php
require(
"'.WB_PATH.'/config.php"
);
<?
will also work ...
Regards
Aldus
Logged
erpe
Offline
Posts: 2077
Re: Manual Module
«
Reply #151 on:
November 18, 2008, 05:20:28 PM »
Thanks for helping.
The module does work fine now.
Regarding to Vyni's post the output of title and short-description should be modified to table rows.
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
pcwacht
AddOn Development
Offline
Posts: 2814
Re: Manual Module
«
Reply #152 on:
November 18, 2008, 06:31:38 PM »
counting the /'s -
in windows (xampp) the wbpath = d:\xampp\htdocs\ etc
in linux the path is /var/www/html/ etc
difference lies in / and \
Now I know where to look I can and shall fix it.
@Aldus,
Quote
Also - you will have to delete the "old" bugy files ones, iow: throw the manual away ...
Then we need to rewrite a whole new one, I am not that good
The manual mod seems to fill some needs. One of them is me.
The
Code:
<?php
require(
"'.WB_PATH.'/config.php"
);
?>
will only work if WB_PATH is defined wich isn't if you start your browser and start with the direct link to an article. (WB_PATH could be cached in SESSION)
That's why the config.php needs to be included so the WB variables will work
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
aldus
Offline
Posts: 1238
Re: Manual Module
«
Reply #153 on:
November 18, 2008, 07:03:36 PM »
Quote from: pcwacht on November 18, 2008, 06:31:38 PM
counting the /'s -
in windows (xampp) the wbpath = d:\xampp\htdocs\ etc
in linux the path is /var/www/html/ etc
difference lies in / and \
Now I know where to look I can and shall fix it.
@Aldus,
Quote
Also - you will have to delete the "old" bugy files ones, iow: throw the manual away ...
Then we need to rewrite a whole new one, I am not that good
The manual mod seems to fill some needs. One of them is me.
The
Code:
<?php
require(
"'.WB_PATH.'/config.php"
);
?>
will only work if WB_PATH is defined wich isn't if you start your browser and start with the direct link to an article. (WB_PATH could be cached in SESSION)
That's why the config.php needs to be included so the WB variables will work
John
Ups ... my foul ... i don't mean the module at it self .... i mean the "used" //manual// within the
wrong path to the "config.php" ... so i must apologize for my poor english here ...
Edit:
John - you are right ... it can't work ... as for me
first read, then test and then write ...
At the time the generated .php file is called the constants aren't defined at all ...
Edit 2:
Hm ... could work like this one:
Code:
<?php
$file_content
=
''
.
'<?php
$page_id = '
.
$page_id
.
';
$section_id = '
.
$section_id
.
';
$chapter_id = '
.
$chapter_id
.
';
define("CHAPTER_ID", $chapter_id);
require("'
.
WB_PATH
.
'/config.php");
require(WB_PATH."/index.php");
?>
';
?>
not sure if it is display(-ed)[?] correct here ... it isn't ... a missing ' before "config.php"!
Kind regards
Aldus
«
Last Edit: November 18, 2008, 07:36:59 PM by aldus
»
Logged
pcwacht
AddOn Development
Offline
Posts: 2814
Re: Manual Module
«
Reply #154 on:
November 18, 2008, 10:55:18 PM »
Code:
<?php
$file_content
=
''
.
'<?php
$page_id = '
.
$page_id
.
';
$section_id = '
.
$section_id
.
';
$chapter_id = '
.
$chapter_id
.
';
define("CHAPTER_ID", $chapter_id);
require("'
.
WB_PATH
.
'/config.php");
require(WB_PATH."/index.php");
?>
';
?>
Can't work, if this access file is called directly, without wb variables, it won't know the WB_PATH
I wish it did, would make life so much easier
The fault in manual mod lies in the counting of '/'s never thought of windows '\ ' variant.
Will think of something or look i the admin/pages module there it was solved....
Don't have time tonight, maybe will have some time tomorrow evening ...
When the ../../ count is solved I can move to next phase, templating output in view.php
(Oh and look why the wysiwyg output isn't correct.)
I need this mod, didn't need 3 levels though, but I like to puzzle
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
vyni
Offline
Posts: 566
Re: Manual Module
«
Reply #155 on:
November 18, 2008, 11:03:11 PM »
Äääähhhmmmmm,
but You recognized, Aldus posted a working solution - did You?
It is already solved!
So just put it in Your package!
This -
the first correction
- works.
«
Last Edit: November 18, 2008, 11:06:13 PM 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.
pcwacht
AddOn Development
Offline
Posts: 2814
Re: Manual Module
«
Reply #156 on:
November 18, 2008, 11:23:48 PM »
Didn't have time to try it, but I sure will...
Think Aldus solved it, but I need to test it... both on widows and linux, if it is ok, I will move to the next issue,
wysiwyg, can't be much, I hope
Then the templating and looking at the output
Will have some puzzling time ahead...
btw, manual mod isn't my package, it was written ages ago and I had some bugs solved as many others have
I am only trying to make it a better module then it was before, oh and wb2.7 compliant. since I can use this mod.
Have fun, as allways,
John
PS Sorry Aldus, the
Code:
require("'.WB_PATH.'/config.php");
must work since it will put the content of the variable instead of the variablename there, but it wil create an absolute url.
Can't hurt normal installs but if you move from one place to another...
So you are right, I am wrong in this....
John
«
Last Edit: November 18, 2008, 11:29:36 PM by pcwacht
»
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
pcwacht
AddOn Development
Offline
Posts: 2814
Re: Manual Module
«
Reply #157 on:
November 21, 2008, 01:33:13 PM »
fixed '/' problem allso should work in linux
fixed wysiywg color problem
think I fixed the link problem as viny pointed out ->
http://www.websitebaker2.org/forum/index.php/topic,308.msg71371.html#msg71371
Am not sure about the last, so please do have a look to see if it is correct
fixed search results pointing to correct chapter
If the above is corect then next phase will be templating output
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
erpe
Offline
Posts: 2077
Re: Manual Module
«
Reply #158 on:
November 21, 2008, 02:09:01 PM »
Hi John,
the link is working.
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
vyni
Offline
Posts: 566
Re: Manual Module
«
Reply #159 on:
November 21, 2008, 02:31:44 PM »
Hi John,
I installed this version
in web
.
Please read this.
regards from Himberg
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.
spida
Offline
Posts: 203
Re: Manual Module
«
Reply #160 on:
January 22, 2009, 02:03:47 PM »
Hi,
after upgrading to WB 2.7 and installing the newest version of "manual" which was attached some posts earlier, my manual is not available anymore. It consisted of a number of chapters and pages with quite a lot of data in it, thus the loss would be awful.
The manuals starting page is still in the pages list, yet when I open it there are none of the chapters available anymore. I can (theoretically) add new chapters, but haven't done so since I hope to get back my old manual data.
The frontend only displays "In Bearbeitung".
Where is the manual data stored?
EDIT: I found that the manual chapters and pages are just stored in pages/manual
What might have happend during the upgrade? Any help is very appreciated.
Best regards,
spida
«
Last Edit: January 22, 2009, 02:24:11 PM by spida
»
Logged
pcwacht
AddOn Development
Offline
Posts: 2814
Re: Manual Module
«
Reply #161 on:
January 22, 2009, 03:04:35 PM »
I think the upgrade of wb went fine, but the upgrade of the latest manual module didn't, there is ( as fas as I know) no upgrade routine built into the manualmodule
What you can do,
per ftp, empty the directory modules/manual
unzip the old version you used before and upload the content to /modules/manual
this way you restore the previous version.
Good luck,
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
spida
Offline
Posts: 203
Re: Manual Module
«
Reply #162 on:
January 22, 2009, 04:20:16 PM »
Hi John,
thank you for your help.
I did as you suggested. As the result I am now getting "Page not found" (no regular 404, just this text) when trying to start the manual over the navigation. The same happens when I manually type in the URL of a manual deep link.
I guess, my structure is lost, huh?
Best regards,
spida
Logged
pcwacht
AddOn Development
Offline
Posts: 2814
Re: Manual Module
«
Reply #163 on:
January 22, 2009, 05:15:24 PM »
I am afraid it did
In that case, if you want the latest manual mod, delete the odl one and install the new one and start typing...
If you know some DB (phpmyadmin for example) you can salvage the content in the manual tables and copy paste the content into the manual pages
Do this BEFORE you delete / install the manual mod!
in other words, fire up your phpmyadmin and fetch the content, copy paste them to a texteditor like notepad t osecure your work.
Good luck,
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
spida
Offline
Posts: 203
Re: Manual Module
«
Reply #164 on:
January 22, 2009, 05:40:10 PM »
Thank you, John. I will do that.
Regards,
spida
Logged
Innocence
Offline
Posts: 11
Re: Manual Module
«
Reply #165 on:
May 20, 2009, 09:01:32 PM »
Hi people !
My question: Is there a way to SORT the elements list I´ve been creating inside this Manual module ?
I have now a lot of items created inside this module but, (my question again): when I create a new item, it appears at the bottom of the list, and I have to sort by some orden manually. Is there a way to solve that automatically ? Some sorting system, for example "by date", "alphabetically", etc etc
Sorry about my poor english. Thanks in advance, nice people !!!
Logged
tugboat
Offline
Posts: 39
Re: Manual Module
«
Reply #166 on:
June 05, 2009, 10:04:09 PM »
I am getting this, probably something posted before but I cannot seem to get it to read the page.. the content page shows, but I cannot click into the chapters...
Warning: require(../../../../../config.php) [function.require]: failed to open stream: No such file or directory in /home/thewings/public_html/pages/manual/media.php on line 6
Fatal error: require() [function.require]: Failed opening required '../../../../../config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thewings/public_html/pages/manual/media.php on line 6
Logged
i2Paq
Offline
Posts: 507
Re: Manual Module
«
Reply #167 on:
July 19, 2009, 05:11:32 PM »
When creating a manual the code comes up with a self made name, in my case chapter7.
Where does it get this from and where can I change it so it will use a name that I made.
I have a work arroun by editting the database for each document but it would be nicer (and easyer) to have it done by the code.
Thanks
Logged
Opensource is my life, but then elsewhere.
Pages:
1
...
5
6
[
7
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...