Welcome, Guest. Please login or register.
November 22, 2008, 02:20:17 PM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) veröffentlicht!
Nähere Informationen findet ihr hier.
Das Diskussionsboard findet ihr hier.
68089 Posts in 10810 Topics by 6527 Members
Latest Member: borut
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Help/Support
| | |-+  Comments function for WYSIWYG Module?
Pages: [1] Go Down Print
Author Topic: Comments function for WYSIWYG Module?  (Read 732 times)
cvfriend
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« on: June 07, 2007, 08:28:50 AM »

I successfully installed Web Site Baker an hour ago and have had fun playing around and building my first site.

I noticed that with the "News" module, I have the ability to offer comments.

However, "comments" are not available in any other module. Is there:

1. a "Comments" specific module (similar to guestbook) but allows only my registered users to leave comments?

or

2. A simple way to use the comments code from the News module in the WYSIWYG module?

Thank you.
Logged
ruebenwurzel
Leaders Team
A Baker's Baker
*****
Offline Offline

Posts: 6515


Keep on Rockin


WWW Email
« Reply #1 on: June 07, 2007, 08:55:37 AM »

Hello,

welcome to the WB community. I hope you will like this tool.

To your questions. Both can be answered with no. There is ne especially comments modul and also the comments code from the news can only be used within the news modul.

But as an idea. With a few tricks, the news modul can be integrated to only show the long text page. This is a normal WYSIWYG page with the comments under it. Is this what you want?

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
cvfriend
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« Reply #2 on: June 07, 2007, 06:25:51 PM »

Matthias, thanks for the quick reply.

I was going to modify the news module, it looks fairly straightforward as the code is presented in WB. However, if I do so, I then lose the ability to have a blog on my site. So, it looks like I can't have my cake and eat it too.

Perhaps I'll make a copy of the news module, change the references to the "news" directory to "news2" and then make my modifications on that module.

I'll start digging into the PHP code (my first time doing so) to see if that is possible. Any of suggestions would be appreciated.
Logged
Panther
Senior Baker
*****
Offline Offline

Posts: 168



WWW
« Reply #3 on: June 07, 2007, 07:14:46 PM »

Perhaps I'll make a copy of the news module, change the references to the "news" directory to "news2" and then make my modifications on that module.

Yes, you can do that... start with the info.php file, that's the file that tells WB the name of the module, the folder to install it in, and other important information about the module.

But like was said, you can insert a news section on a page, put all your text in the "long" box, make it a hidden page then create a menu link to the static address of the page.

If you want multiple pages, make them all on the same hidden news page, and use menu links to them.

You can edit the settings so the bread crumbs and such are not shown.

One problem, is that every page like this would have the same page title.. unless 1) you change your template, or 2) I ended up creating a page and changed the page title to a single space (can't have it be blank) so it uses the "new title" like the page title. Though it does throw the formatting off a bit.

You may be better off if this does not work, is looking at modifying the GuestBook module rather than the news module... then your pages would have a WYSIWYG followed by a modified Guestbook section for making the comments.

There has to be a way to check if someone is logged in or not that should be fairly easy to add in there.



« Last Edit: June 07, 2007, 07:21:15 PM by Panther » Logged
pcwacht
Guest
« Reply #4 on: June 07, 2007, 07:42:13 PM »

Start your ftp client, down the news module

then
1 - open info.php and change the references to news to a name of your choice
2 - change the needed files,
- - install.php, this generally installs the mysql tables etc
- - view.php, this generates the output in the frontend
- - add, edit, delete - does that for the pages where you need the module
- - add_post etc changes posts
3 - zip it up
4 - install into websitebaker like every other module
5 - If you like the outcome and want it to share, place the module here for all to see and use Wink



John
PS, PM me with specific questions, I tinkered some with the news module so I might be of some help
Logged
Panther
Senior Baker
*****
Offline Offline

Posts: 168



WWW
« Reply #5 on: June 07, 2007, 11:03:49 PM »

I've got a sort of working version of what you might be looking for, based on the Guestbook module...

see: http://forum.websitebaker.org/index.php/topic,6454.0.html
Logged
cvfriend
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« Reply #6 on: June 08, 2007, 05:51:04 AM »

I've got a sort of working version of what you might be looking for, based on the Guestbook module...

see: http://forum.websitebaker.org/index.php/topic,6454.0.html

Panther, that's really cool. I'll go check this out. Thanks!
Logged
Pages: [1] Go Up Print 
Jump to:  

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