Welcome, Guest. Please login or register.
March 18, 2010, 04:51:51 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.
110327 Posts in 15933 Topics by 9291 Members
Latest Member: topwzp
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Sitemap module: new modified/fixed version
Pages: [1] 2 Go Down Print
Author Topic: Sitemap module: new modified/fixed version  (Read 17719 times)
Woudloper
Guest
« on: November 17, 2005, 11:31:42 PM »

Since I was busy working on some websites tonight I also thought I needed to update the 'Sitemap' module (of raoulduke and Ryan), since:

  • The settings where not logical ordened
  • The admin console layout looked different in relation to some other module (I am using)
  • There was no seperate language file
  • No help file was available for this module
  • The template content was rendered incorrect on the modification page (htmlspecialchars was not used)
  • There where some warning message with error reporting on 'E_ALL'. Some variables where not declared when they where called/used in the code
  • Changed/updated the way the settings are saved

If some people want to try this version, see  the attaced file. If no comment is being made about this module I will also put it in the 'completed modules' list.

Download:
If you want to download this module visit the completed modules thread here over at the forum.
« Last Edit: November 24, 2005, 10:10:25 PM by Woudloper » Logged
Hans

Offline Offline

Posts: 498


« Reply #1 on: November 17, 2005, 11:57:07 PM »

This is really great Woudloper, I think I gonna use this as a menu too (in blocks)
Thanks, works fine.
Hans
Logged

Hans - Nijmegen - The Netherlands
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #2 on: November 18, 2005, 04:51:15 PM »

Woooow,

you seems to be a modul developer machine  grin. Works great. But you know me. Good enough is not good enough for me  grin grin grin. Found a very little thing that could be changed. Would be nice when you replace in modify.php in line 106
Code:
value="Cancel"
with
Code:
value="<?php echo $TEXT['CANCEL']; ?>"

Thanks and keep on that good work

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
Woudloper
Guest
« Reply #3 on: November 18, 2005, 11:47:43 PM »

I have fixed the problem you described. You can download the adjusted version in the 'completed modules' thread. For the ones who need to be convinced of this module I have also added some screenshots. One for the frontpage and another of the admin console...

I am not really a module developer machine. I have only created one myself. The others I worked on where more modifications which where also needed for my website I am designing. What I really want for all the modules is that the layout can be modified from the admin console, so everyone can adjust this for there own website! Furthermore I like the fact that each module will have a seperate help file in order the help future webdevelopers who need to maintain the website I am building. I will hope other people who are also using modules will do the same as I did/do for the modules.

So that was a long text for only saying that I adjusted the module with your suggestion.
Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #4 on: November 24, 2005, 11:04:23 AM »

@woudloper
Found a little bug. Uninstall the modul don't delete table "mod_sitemap". Uninstall.php failed in the modul.

For all who use the sitemap Module please download the attached file, rename to uninstall.php and copy to modules/sitemap in your WB installation. Uninstall then works.

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #5 on: November 25, 2005, 11:00:06 PM »

@woudloper

See you have fixed the help file issue and released a new version of sitemap modul in Completed modules. Done today some work on this modul too. In the attachment you find the version 2.6.2 of the sitemap modul. Have a look at it and if its ok please release it at completed modules.

Version 2.6.2. (11-25-2005) by Ruebenwurzel
  • Added: Language file works with help file
  • Changed: Minor layout changes in admin Interface
  • Fixed: Code cleaning and all files stored UNIX konform

Have fun

Matthias

Version 2.6.1. (11-24-2005) by Woudloper
  • Added: Uninstall functionality for the module
  • Fixed: Layout of the help.php file within Internet Explorer
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
Woudloper
Guest
« Reply #6 on: November 25, 2005, 11:31:57 PM »

@ ruebenwurzel: Your file has been put in the 'completed modules' thread! Looking good this team effort on the module development  cool
Logged
watermelon

Offline Offline

Posts: 25


« Reply #7 on: November 29, 2005, 04:49:02 AM »

Hello.
I must ask a silly question. I have installed this module and it shows up in my modules list in the admin drop-down, but I don't know how to use it or access the configuration settings or any of that. How may I do that?

Thanks!
 

« Last Edit: November 29, 2005, 05:07:24 AM by watermelon » Logged
Woudloper
Guest
« Reply #8 on: November 29, 2005, 06:25:42 AM »

I must ask a silly question. I have installed this module and it shows up in my modules list in the admin drop-down, but I don't know how to use it or access the configuration settings or any of that. How may I do that?

After installing the module you must navigate to the 'pages' section within the 'Website Baker' administration console. There you can create a new page with as type 'sitemap'.
Logged
watermelon

Offline Offline

Posts: 25


« Reply #9 on: November 29, 2005, 07:07:32 AM »

aha. this works perfectly. Thanks
Logged
Hans

Offline Offline

Posts: 498


« Reply #10 on: December 21, 2005, 12:32:48 AM »

I installed the sitemap module 262 and it works perfect in a separate page. The settings work fine (display all, children, peers).
But I wanted to use the sitemap for a link to the children of a page:

Menu:
Camera
-----------Analogue
-----------Digital

On page Camera I made a new section: sitemap and in settings I choosed Children of this page. That way I could make a "see more on camera's" list.

But this doesn't work: all pages are displayed. (see [edit])

I thought this was a perfect way to make navigation easier.

Is this a bug or did I something wrong here?

Sections are enabled in settings.
Hans

[EDIT]

Looked into this further. All works fine now. It only seems to be a problem on the first page ("Welcome" or so, the first page I made). When I make a section with sitemap-module and this page has children all level 1-pages are shown with the sitemap module, not the children). When I make such a section on one of the other pages it works fine.

« Last Edit: December 21, 2005, 11:11:54 PM by Hans » Logged

Hans - Nijmegen - The Netherlands
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #11 on: January 03, 2006, 11:05:12 PM »

Version 2.7 of Image sitemap modul released

you can download it at completed modules.

Quote
v2.7  December 28, 2005
 - Added new multilanguage support
 - Layout changes in admin interface

Attention:
  • This modul is designed for WB 2.6.1. It is not recommanded to use this for WB 2.5.x or less.
  • This modul includes the languages EN and DE. You can add your own language in the languages dir of the modul.

How to update:
Copy all files to modules/sitemap, overwrite the existing ones.

Have fun

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
Woudloper
Guest
« Reply #12 on: January 03, 2006, 11:26:46 PM »

Thanks for this update. You really done a great job updating all those different modules!!

I thought of an extra idea for a possible future release of the sitemap module. Currently only the pages are listed, but couldn't it be possible when you have e.g. a news page that you also show the 5 latest news posts? Or will this be to much work since this is set within the sections of a page?
Logged
zaggi

Offline Offline

Posts: 56


« Reply #13 on: January 03, 2006, 11:43:51 PM »

Woudloper ; Wont a 5 last news post make it more than a sitemap ?

I was wondering, is it possible to get "hidden" pages showed in the Sitemap? .. im using hidden pages to child pages - but I don't want them in the menu. (I Link to them on the showed pages)

So. Just wondering. Any way to get "hidden"  pages in the sitemap ?
And still hold the:

Link1
 |--Link1-1
 |--Link1-2
 |--Link1-3
Link2

--------------
Thise Pages:
 |--Link1-1
 |--Link1-2
 |--Link1-3
Are the hidden onec..

Thx Smiley
Logged
N1l3Z

Offline Offline

Posts: 21


Gotta keep on bakin'


« Reply #14 on: February 28, 2006, 10:45:15 AM »

Just one little thing now..

How do I get it to put out valid xhtml? U know where
Code:
<li></li><li><ul></ul></li>
and not
Code:
<li></li><li><ul></li></ul>

cheers!

N1L3Z
Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #15 on: March 04, 2006, 12:22:58 PM »

Version 2.8 of Image sitemap modul released

based on this thread i created a new version wich fixes this issues.

Changelog:
  • Renamed databasefield 'loop' to 'sitemaploop' to be compatible to MySQL 5.x
  • Added update_sitemap script to update from previous versions
  • Updated all copyright notices includes now 2006
  • Added default value  to all varchar and text fields

How to Update:
Overwrite all files with the new ones and run once the update script. (http://your.domain.com/modules/sitemap/update_sitemap.php)

Have fun

Matthias

Edit:
Newer version some posts below
« Last Edit: May 08, 2006, 08:11:46 PM by ruebenwurzel » Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
N1l3Z

Offline Offline

Posts: 21


Gotta keep on bakin'


« Reply #16 on: March 09, 2006, 04:13:17 PM »

Hey..

I'm sorry to say, there is still some bugs left..

1) It still doesn't format the sitemap according to standard xhtml (see my last post here). 

2) the field loop doesn't get saved.. To fix this edit line 98 in modules/sitemap/modify.php from:
Code:
<textarea name="loop" style="width: 98%; height: 80px;">
to
Code:
<textarea name="sitemaploop" style="width: 98%; height: 80px;">

(since save.php relies on this fieldname to be "sitemaploop")

cheers.
NileZ
Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #17 on: March 09, 2006, 05:08:36 PM »

Hello N1|3Z

Thanks for the fix in modify.php. Added it to the modul and updated the version in the thread above. Seems i have it overseen as there where to many places where "loop" has to be changed to "sitemaploop".

I'm according to you, that next point should be to get the output xhtml compatible.

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
N1l3Z

Offline Offline

Posts: 21


Gotta keep on bakin'


« Reply #18 on: March 10, 2006, 12:34:19 PM »

Cool m8!

I will look into it and see if I can manage to figure out what to do about it..  grin

I am fairly new to wb but not to php and I find the structure of WB so simple that it is really easy to mod the modules to do what you want..

Do you have any ideas? As far as I can see, the problem is with the way the loop is made, but I'm not really sure...

I am currently looking into the way the menu is made from framework/class.frontend.php in the function show_menu(), because that one produces the list according to standards... .. But thats a bit complicated.. Or My skills arent yet sufficient.. sad

If you have suggestions, you can let me know. If I come up with a solution, I will let you know...

/N1|3Z

Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #19 on: March 10, 2006, 01:32:56 PM »

Hello,

Thanks for helping WB getting better and better. The only thing what need to be changed is the view.php from the sitemapmodul.

Sitemap is build there from level_header (<ul>) sitemaploop (<li> sites </li>) and level_footer (/ul>). To get the output you want this should be reorganized in view.php to show on every level depth the right syntax. Shouldn't be not too difficult.

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
N1l3Z

Offline Offline

Posts: 21


Gotta keep on bakin'


« Reply #20 on: March 10, 2006, 02:42:41 PM »

Hello again..

The trouble is that the sitmap-loop closes the li again..

I didn't want to fix it within view.php because I didn't want to put any list-html in the source since that would break the module if a user decided that they'd remove the <ul>-header and the <li></li> loop.. and replace the list with something else..  rolleyes

Now I got it to validate, but its kind of a cheasy solution:

I set the settings to:
header: <h1>sitemap</h1><ul>
level-header: <li><ul>
level-loop: <li><a href="[LINK]" target="[TARGET]">[PAGE_TITLE]</a></li>
level-footer: </ul></li>
footer: </ul>

This will result in the sitemap beeing within a list itself, but will get the validation.. The rest is just styling.. wink

Semantically however, this is not the same as a list without beeing nested in an empty list..   undecided

I can manage to hack the module to fit my needs (putting the ul and li like I want it in the source, but it will ruin the module for others if they don't want a list, and I will not be happy about that. 

The trouble seems to be that the sitemaploop should only close the li-element if it doesn't have any sub-pages.. If sub-pages are present it should close the li-element when the sub-pages are displayed within another ul..

Maybe I'm just not thinking straight this mornin..

/N1|3Z


Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #21 on: March 10, 2006, 03:18:55 PM »

Hello,

Quote
If sub-pages are present it should close the li-element when the sub-pages are displayed within another ul..

Why not only put this as an php if question in the view.php.

I think about the following about using the fields

I set the settings to:
header: textfield for header
level-header: stylesheet informations for ul, li, and the start tag for the sitemaparea f.e. <p> or <div> or <table>
level-loop: <a href="[LINK]" target="[TARGET]">[PAGE_TITLE]</a> or the additional fields wich are described in help.php
level-footer: end tag for sitmaparea in order to level header </p> or </div> or </table>
footer: textfield for footer

view.php then can generate a validiate list with ul and li ant the wright places.

Just an idea

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
N1l3Z

Offline Offline

Posts: 21


Gotta keep on bakin'


« Reply #22 on: March 13, 2006, 12:05:13 PM »

Hi!

Sounds like you have some good ideas.
Quote
Why not only put this as an php if question in the view.php.

That was my original plan... grin

I will look into is soon, post back here with another version of the sitemap where view.php makes the list happen correct.. wink

/N1|3Z
Logged
slavoa

Offline Offline

Posts: 1


« Reply #23 on: April 11, 2006, 02:33:14 PM »

Hello

I instalated Sitemap modul ver.2.7  on WB 2.6.2  with some ERROrs ...

... Fatal error: Call to a member function on a non-object in c:\appserv\www\others\wb\modules\sitemap\view.php on line 26

>> view.php
line 26 ...   $fetch_settings = $get_settings->fetchRow();

what Do i do wrong?

Thank you for help.

Slav
Logged
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #24 on: April 11, 2006, 02:53:45 PM »

Hello,

try the Version 2.8 from here


Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
Pages: [1] 2 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!