Welcome, Guest. Please login or register.
March 21, 2010, 06:47:57 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.
110567 Posts in 15967 Topics by 9310 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  New Post-Its module
Pages: 1 [2] Go Down Print
Author Topic: New Post-Its module  (Read 20072 times)
Rahya

Offline Offline

Posts: 64



WWW
« Reply #25 on: March 19, 2008, 12:21:22 PM »


Sorry Guys, i think i'm just confused  rolleyes

Was my mistake, 90% all of my mistakes are wrong typing  embarassed

This should be:
Quote
<script type="text/javascript" src=" <?php echo WB_URL;
?>/modules/post_its/js/wz_dragdrop.js"></script>

and this was:
Quote
<script type="text/javascript" src=" <?php echo WB_URL;
?>/modules/post/its/js/wz_dragdrop.js"></script>

i think the other two guys have same mistakes, but wasn't to shy to tell about  grin

Very nice mod, thx to developer wink
Logged

Meine Rüstung ist die Ironie, mein Schild der Zynismus und mein Schwert der Sarkasmus...
erpe

Offline Offline

Posts: 1738



WWW
« Reply #26 on: April 10, 2008, 01:26:46 PM »

Sorry, but on my website no messages are displayed.
Fresh installation on local xammp, wb 2.7 rc 3a
template = allcss
template update with code from the pdf instruction file

result: backend seems to be good, messages could be sent
but no messages were displayed in the frontend,
but the list of unread messages is displayed (if logged in as the sender)

Any idea of what is wrong?

erpe
Logged

doc

Offline Offline

Posts: 3581


« Reply #27 on: April 10, 2008, 01:51:44 PM »

Hello,

without a link to your homepage it is not possible to help. Most likely the error is due to wrong implementation of the required code in the index.php of your template.

Regards Christian

Logged
erpe

Offline Offline

Posts: 1738



WWW
« Reply #28 on: April 13, 2008, 11:09:44 AM »

Hello,

please find code in the attached file.
Thanks

erpe
Logged

doc

Offline Offline

Posts: 3581


« Reply #29 on: April 13, 2008, 11:52:59 AM »

Hello,

you do not have an dummy div container in the <body> area which is required to show the Post its. So add the following code to the body area in the index.php file of your template.
Code:
<div id="postits"></div>

Regards Christian
Logged
erpe

Offline Offline

Posts: 1738



WWW
« Reply #30 on: April 13, 2008, 12:33:37 PM »

Perfect!
But where was this info?
Where should I have seen it?

Thanks for your help.

erpe
Logged

doc

Offline Offline

Posts: 3581


« Reply #31 on: April 13, 2008, 01:07:16 PM »

Hello,

the module ships with a PDF manual which describes all the required steps to run the module.
In addition the PDF document (page 3) is linked in the WB download area of the addons repository.

All this information are provided in the very first post in this thread.

Christian
« Last Edit: April 13, 2008, 01:10:03 PM by doc » Logged
erpe

Offline Offline

Posts: 1738



WWW
« Reply #32 on: April 13, 2008, 01:21:41 PM »

I'm so sorry.
I read the document I think 10 times, but I havn't seen this.
But now it is standing there.............. ........!!!???!
I think somestimes it is better to stop working an start again the next day.

Thank you.

erpe
Logged

SchilderTeam

Offline Offline

Posts: 12


« Reply #33 on: September 25, 2008, 03:23:55 PM »

Post It = klasse Sache

... gibt´s eine Möglichkeit ein PostIt für alle nicht angemeldeten Besucher ( @all ) zu erstellen?

Wäre auch ne schöne Sache um eine besondere Mitteilung / News an den Besucher weiterzugeben...

DANKE



Logged
doc

Offline Offline

Posts: 3581


« Reply #34 on: September 25, 2008, 03:31:10 PM »

Hallo,

ja das wäre möglich, eventuell in einer nächsten Version des Moduls.

Gruss Christian
Logged
Aaaarco

Offline Offline

Posts: 25


« Reply #35 on: November 29, 2008, 11:38:10 AM »

I have slightly modified the post-it mdule so that the post-its can be send from the frontend of the site

basically what I did was not much more than copying a modify.php and renaming it to view.php

but I do not know how to settle the following:

when a post it is send the succesmessage adapts the layout from the backend, I guess it has to do with the lines at the top of the modify.php

Code:
if (isset($_POST["postit_action"]) && ($_POST["postit_action"] == "create")){
  // include global settings and admin class if page was reloaded from postit formular
  require_once("../../config.php");
  require_once(WB_PATH .'/modules/admin.php');

but I do not have a clue how to make the form action open as 'normal page with the template layout, menu etc

Code:
<form name="postit_form_send" method="post" action=" <?php echo WB_URL ."/modules/post_its/view.php?page_id=$page_id&action=create_postit" ?>">
(line 115)





- - - -

in line 70 I changed the code for the 'back' link to
Code:
   echo "<a href=\"#\" onclick=\"javascript: window.location = '" .WB_URL ."/pages/post-its.php'\" />" .$TEXT['BACK'];

so that works fine now
« Last Edit: November 29, 2008, 11:52:07 AM by Aaaarco » Logged
Aaaarco

Offline Offline

Posts: 25


« Reply #36 on: December 05, 2008, 01:30:12 PM »

is there really nobody there that knows how to solve this?

jammer...
Logged
chabar2000

Offline Offline

Posts: 118


« Reply #37 on: January 28, 2009, 09:26:43 AM »

Post It = klasse Sache
... gibt´s eine Möglichkeit ein PostIt für alle nicht angemeldeten Besucher ( @all ) zu erstellen?

Good idea, send Post its to all registered users or to a specific group of users

(Gute Idee, interessant wäre vielleicht auch die Möglihckeit, ein Post-It nur an *eine* bestimmte Benutzergruppe zu schicken.)

Karl
« Last Edit: January 28, 2009, 10:53:59 PM by chabar2000 » Logged
doc

Offline Offline

Posts: 3581


« Reply #38 on: March 08, 2009, 05:51:21 PM »

Hello,

just finished the first release candidate v0.33 RC1 of the updated Postits module.

What is it all about?
The PostIts module allows you to send short messages (PostIts) to certain users or groups. The PostIts will show up in the frontend part of your Website Baker installation, if the specified user is loged in.

This version uses the jQuery framework instead of the Xajax framework as it was before to deal with AJAX calls and to manipulate the DOM (e.g. adding/removing Divs on the fly etc.). Main intention of the update was to play around with jQuery library on a "real" project.

Modifications with respect to previous version:
 + basically the module was re-written from scratch except the CSS stuff which is as in the previous version
 + replaced Xajax with jQuery
 + replaced wz_dragdrop.js with jQueryUI effect library
 + easier integration (only include one file to the head section of your index.php template file to get it work)
 + Postits can be send to multiple users and/or multiple groups at one time
 + integrated template class to seperate HTML and PHP code
 + added help file and removed the outdated PDF
 + re-aranged the database and language file handling
 + code clean-up

Installation:
Sorry, the changes were simply too big to allow for an upgrade script, so you have to delete an existing version of PostIts first, which means all Postits not yet read will get lost.

Step 1: Delete old PostIts module
Remove all old function calls (PHP, Javascript) and HTML elements (Postit divs) from the index.php file of your template. Then uninstall the old PostIt module via the WB backend

Step 2:
Install the new PostIts module via the WB backend. Then add one single line of code to the index.php file of your template (between <head> and </head>).
Code:
<?php include_once(WB_PATH '/modules/postits/postits.inc.php'); ?>
Once that is done, create a new page of type Postit and play around to see what happens.

Requirements:
 + Requires Website Baker 2.7 or higher (not tested with WB 2.6.x and I will not support those outdated versions)
 + Requires Javascript enabled
 + Tested with Firefox 3.0.7 and Internet Explorer 6 on WinXP

As usual, your feddback, suggestions etc. are welcome.

Regards Christian
« Last Edit: March 08, 2009, 08:27:20 PM by doc » Logged
doc

Offline Offline

Posts: 3581


« Reply #39 on: March 14, 2009, 01:12:20 PM »

Hi,

version v0.40 RC2 of the PostIts module is available for download on the Website Baker Addons repository.

Modifications with respect to previous version:
 + moved Postits settings (position, color) from postits.js to frontend.css
 + modified Postits include routine to allow display Postits in the backend
 + reworked Readme file to show modifications to get PostIts working in both, frontend and backend

If you are using v0.33 RC1 of the Postits module, you need to change the following code in the index.php of your template from:
Code:
<?php include_once(WB_PATH '/modules/postits/postits.inc.php'); ?>

into:
Code:
<?php 
// write Postits code to the head section
include_once(WB_PATH '/modules/postits/postits.inc.php');
if (
function_exists('createPostitsCode')) echo createPostitsCode();
?>


Have fun Christian
« Last Edit: March 14, 2009, 01:20:32 PM by doc » Logged
snoork

Offline Offline

Posts: 268



« Reply #40 on: March 14, 2009, 07:02:36 PM »

Quote
+ reworked Readme file to show modifications to get PostIts working in both, frontend and backend

you mean also send from out of the frontend?

cannot look into the stuff right now but thanks in advance


Logged
doc

Offline Offline

Posts: 3581


« Reply #41 on: March 14, 2009, 07:56:33 PM »

Hi,

Quote from: snark
you mean also send from out of the frontend?
No. Postits can only be sent from the Website Baker backend. But it is possible to display Postits in both, Frontend and Backend. The Readme explains the steps required.

Regards Christian
Logged
snoork

Offline Offline

Posts: 268



« Reply #42 on: March 14, 2009, 10:21:52 PM »

a few months ago I modifies it into a version where registered users could send post its from the front end... I just could not figure out how to change the targetpage after submitting the port it

what I did: i changed the view page to contain the info from the ad a post it admin page... problem was that it kept sending people to the admin page.
Logged
doc

Offline Offline

Posts: 3581


« Reply #43 on: March 14, 2009, 10:31:13 PM »

Hi,

do not really understand why users have to be able to send PostIts from the frontend. Users have to login anyway so Postits is aware of the sender. As you need to have a WB login in order to use Postits, it doesn´t matter (at least to me) if I can send Postits via the frontend or the backend. An easy way is to provide a link on the Postits frontend site for user loged in which redirects them to the backend dialogue to send Postits. Is that what you are after?

One has to be very carefull when providing functions with access to the database to the frontend to avoid XSS, SQL Injections etc. This is especially true when using Ajax frameworks. Those "goodies" should only be added if you know exactly what the impact may be  wink

Regards Christian
« Last Edit: March 15, 2009, 07:04:36 AM by doc » Logged
snoork

Offline Offline

Posts: 268



« Reply #44 on: March 15, 2009, 10:19:36 AM »

Point is: I am creating a website for a company mainly used as their own information bank, to be able to see the website the company members have to log in. Their specific question was to have some sort of a private message tool.

Since the company members only have the rights to reply on the several available blogs and feedback elements in the site and have no acces to the adminpart I hoped the post-it module would give me this option.
Logged
doc

Offline Offline

Posts: 3581


« Reply #45 on: March 15, 2009, 10:46:48 AM »

Hi,

Quote from: snark
...I hoped the post-it module would give me this option.
Sorry but what you want is currently not on my list for the next releases. However, feel free to modfiy the Post-its module to fit the needs of your customer. Are they willing to pay for a working solution?

Regards Christian
Logged
snoork

Offline Offline

Posts: 268



« Reply #46 on: March 15, 2009, 12:28:44 PM »

okay but maybe you can help me out a bit though ....


I mageged to get the  send a postit page into the frontend quite easy, I also have set the
url for when a postiti is send to a front end page
Code:
$url_back = WB_URL . '/pages/posit-verzonden.php';

but the store-postit.php whicht has the admin theme shows up beweteen those two pages....

Can someone tell me how to set this in a way that the store-post-it.php has the template of the frontend

« Last Edit: March 15, 2009, 03:10:14 PM by snark » Logged
doc

Offline Offline

Posts: 3581


« Reply #47 on: June 01, 2009, 07:31:01 PM »

Hello,

please note that I have suspended my support for the "Postits" module effective June 01, 2009. If someone wants to develop or maintain this module any further, please feel free to do so, but keep in mind  that the module is licensed under GNU GPL.

The last stable version of the module can be found on the Website Baker Addons Repository.

Regards Christian (doc)
« Last Edit: June 01, 2009, 09:22:13 PM by doc » Logged
Marcus70

Offline Offline

Posts: 28



« Reply #48 on: September 08, 2009, 10:26:19 PM »

Hi folks,

I took over the support of the module "Post Its" officially. Thanks at Doc for the pieces of advice and the well documented code!

I will also publish the newest versions of the module in the future on the AMASP side. ( Thanks to erpe cheesy )

Sorry for starting problems, I must get along here first (and I have to warn you... my English is not the best grin)

Regards,
Marcus

P.S. The newest version postits_v0.61.zip is now available at AMASP
Logged

...man weiß nie, wie tief eine Pfütze ist, bevor man nicht hineingetreten ist... (Murphy's Law)
doc

Offline Offline

Posts: 3581


« Reply #49 on: September 08, 2009, 10:31:48 PM »

Hi Marcus,

thanks for maintenance and further development of the Postits module. Have uploaded your latest version (v0.61 stable) also to the WB Add-ons repository.

Have fun and keep up your good work.

Doc
« Last Edit: September 08, 2009, 10:34:15 PM by doc » Logged
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!