Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 25, 2012, 09:36:19 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
.
155484
Posts in
21709
Topics by
7735
Members
Latest Member:
love7ddora
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
New Module - MultiPart Page
Pages: [
1
]
2
Go Down
Author
Topic: New Module - MultiPart Page (Read 6085 times)
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
New Module - MultiPart Page
«
on:
March 28, 2009, 12:03:24 AM »
Presenting a new module:
The MultiPart Page
.
I am still not sure if this is the best name but it is a module that allows multiple items to be shown on a page.
Based on the
portfolio module
methods for adding fields and templates this module allows you to create pages with extra fields/template/css to use.
To have a look what this means just go to
http://multipage.allwww.nl
and see the demo pages.
You can view and download the module there, and read about the options in the help pages.
Enjoy this new module
Ruud
Logged
Professional WebsiteBaker Solutions
erpe
Offline
Posts: 2077
Re: New Module - MultiPart Page
«
Reply #1 on:
March 28, 2009, 10:52:34 AM »
Hi Ruud,
installed the module without errors.
When I tried to add a new pagetype, the following error appears:
Code:
Parse error: syntax error, unexpected $end in /var/kunden/webs/test3/modules/multipage/addpagetype.php on line 64
rgds
erpe
Edit: all other things are working well, nice module
«
Last Edit: March 28, 2009, 11:15:15 AM by erpe
»
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #2 on:
March 28, 2009, 05:00:57 PM »
Hi Erpe,
I found the problem. It was no issue on my test server, but there was a typo. (one ' missing)
It is fixed now in
version 0.1.1
I hope people will create nice pagetypes and maybe publish them here in this thread
Ruud
Logged
Professional WebsiteBaker Solutions
erpe
Offline
Posts: 2077
Re: New Module - MultiPart Page
«
Reply #3 on:
March 28, 2009, 05:10:15 PM »
Hi Ruud
installed new release, when I tried to add a new pagetype, the following error appears:
Code:
Warning: Cannot modify header information - headers already sent by (output started at /var/kunden/webs/test3/include/phplib/template.inc:666) in /var/kunden/webs/test3/modules/multipage/addpagetype.php on line 63
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #4 on:
March 28, 2009, 05:47:19 PM »
Quote from: erpe on March 28, 2009, 05:10:15 PM
Hi Ruud
installed new release, when I tried to add a new pagetype, the following error appears:
Ok, tried to fix that in
v0.1.2
Please let me know if that worked.
My server doesn't give me those errors.
I can imagine why the errors are happening, but for some reason I cannot reproduce them.
Ruud
Logged
Professional WebsiteBaker Solutions
erpe
Offline
Posts: 2077
Re: New Module - MultiPart Page
«
Reply #5 on:
March 28, 2009, 05:57:01 PM »
Hi Ruud
Release 0.12 works fine
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #6 on:
May 06, 2009, 10:23:02 AM »
Created a
version 0.1.3
There was a problem with restricted fieldnames on certain MySQL versions. (same problem occurred in the
Portfolio
module)
Ruud
Logged
Professional WebsiteBaker Solutions
Gerben de G.
Offline
Posts: 24
Re: New Module - MultiPart Page
«
Reply #7 on:
May 22, 2009, 08:17:46 PM »
Hi Ruud,
today is was thinking about a module wich could make it easier to have page templates in your website templates.
Guess what?
I've found it.
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #8 on:
May 22, 2009, 08:25:44 PM »
Cool
Can't wait to see what you built with it.
Ruud
Logged
Professional WebsiteBaker Solutions
Lomex
Offline
Posts: 50
Re: New Module - MultiPart Page
«
Reply #9 on:
August 12, 2009, 10:51:35 AM »
Hi Ruud,
The Multipage Module is very good.
But, on a simple WYSIWYG page I can add more sections.
The multipage module does not. When I click on "Add Section" (choose multipart page) is always already created section called.
I use the version 0.1.3, sorry for my bad english.
Lomex
Logged
Der Kopf ist rund, damit das Denken die Richtung wechseln kann.
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #10 on:
August 12, 2009, 11:29:50 AM »
Quote from: Lomex on August 12, 2009, 10:51:35 AM
The multipage module does not. When I click on "Add Section" (choose multipart page) is always already created section called.
Sorry for that.
The module was just not designed to be used multiple times on one page.
Ruud
Logged
Professional WebsiteBaker Solutions
koeleman
Offline
Posts: 1
Re: New Module - MultiPart Page
«
Reply #11 on:
August 19, 2009, 09:24:56 PM »
I changed some small things in the script so the module will work as a multipart page
that means multiple multiparts on one page.
I came to this issue because the aggregator would not work with this page type. that frustrated me, simply because in combination with aggregator this multipage is perfect for displaying portfolios etc. etc.
The changes I made:
modify.php
There was a problem with showing multiple instances of the multipart module, this is due to the serialize function:
So I changed:
=========================
Code:
function __unserialize($sObject) { // found in php manual :-)
$__ret =preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $sObject );
return unserialize($__ret);
}
into:
Code:
if (!function_exists('__unserialize')) {
function __unserialize($sObject) { // found in php manual :-)
$__ret =preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $sObject );
return unserialize($__ret);
}
}
That seems to work
=======================
Furthermore there was a problem with changing the template for another multipage instance, that is due to javascript
For that I changed:
Code:
$olist = "<select style=\"width:100%;\" name=\"pagetype\" onchange=\"if(!confirm('".$MPP['WARNSWITCH']."')) {document.forms[0].reset();}else{document.forms[0].submit();};\">";
into:
Code:
$docname ='';
$docname = "wysiwyg";
$docname .= $section_id;
$olist = "<select style=\"width:100%;\" name=\"pagetype\" onchange=\"if(!confirm('".$MPP['WARNSWITCH']."')) {document.$docname.reset();}else{document.$docname.submit();};\">";
found that on:
http://www.quirksmode.org/js/forms.html
======================
view.php
Another unserialize function giving the same problem.
Code:
if (!function_exists('__unserialize')) {
function __unserialize($sObject) { // found in php manual :-)
$__ret =preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $sObject );
return unserialize($__ret);
}
}
I am sure there are many more improvements for this script, whoever started this one portfolio, multipart etc.
Please try and update your scripts with this information so the next version is again a little better than they already are!
Anyone of course feel free to edit, change comment, improve on this.
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #12 on:
August 19, 2009, 11:11:01 PM »
Hi Koeleman,
Thanks for your improvements. Looking through them, they are looking good.
It might take a few days but I will certainly make these changes in the module, and announce the next version in this thread.
Thanks,
Ruud
Logged
Professional WebsiteBaker Solutions
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #13 on:
September 07, 2009, 09:53:03 AM »
As promised, it took some time.
A
new version
is now available.
With this one it is possible to use multiple multipart sections on a single page.
@Koeleman: Thanks again. Nice improvement.
Ruud
Logged
Professional WebsiteBaker Solutions
snark
Guest
Re: New Module - MultiPart Page
«
Reply #14 on:
September 07, 2009, 09:58:17 AM »
in the new version of the members module you can configure if the fields should contain a wysywyg editor, is this something that could be useful for this module?
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #15 on:
September 07, 2009, 10:08:34 AM »
Hmm.. That is not really the idea behind this module.
There is one standard (always there) WYSIWYG part to use. The main idea is to have a list of fields that can be used to fill the templatefields (and optionally even fields in the WYSIWYG block)
Having 2 (or 10) WYSIWYG blocks seems a bit overdone to me..
And yes, it might also be just a bit too difficult to do now
Ruud
Logged
Professional WebsiteBaker Solutions
snark
Guest
Re: New Module - MultiPart Page
«
Reply #16 on:
September 07, 2009, 10:32:28 AM »
I know, but as I guess the new option for members will not be noticed by everyone I thought I could mention it...
Logged
Daddy
Offline
Posts: 11
Re: New Module - MultiPart Page
«
Reply #17 on:
September 08, 2009, 09:01:23 PM »
Hey there, is there a way to get multiple WYSIWYG blocks on one page?
When I change your demo template from
Code:
<table class="multipage_data">
<tr>
<td valign="top">
<table class="multipage_wysiwyg">
<tr>
<td>{WYSIWYG}</td>
</tr>
</table>
</td>
<td valign="top">
<table class="multipage_extra">
<tr>
<td>Name:</td><td><strong>{NAME}</strong></td>
</tr>
<tr>
<td>Website:</td><td><a href="{WEBSITE}" target="_blank">{WEBSITE}</a></td>
</tr>
<tr>
<td>Email:</td><td>{EMAIL}</td>
</tr>
</table>
</td>
</tr>
</table>
to
Code:
<table class="multipage_data">
<tr>
<td valign="top">
<table class="multipage_wysiwyg">
<tr>
<td>{WYSIWYG}</td>
</tr>
</table>
</td>
<td valign="top">
<table class="multipage_extra">
<tr>
<td>Name:</td><td><strong>{NAME}</strong></td>
</tr>
<tr>
<td>Website:</td><td><a href="{WEBSITE}" target="_blank">{WEBSITE}</a></td>
</tr>
<tr>
<td>Email:</td><td>{EMAIL}</td>
</tr>
</table>
</td>
<td valign="top">
<table class="multipage_wysiwyg">
<tr>
<td>{WYSIWYG}</td>
</tr>
</table>
</td>
</tr>
</table>
it just gives me one WYSIWYG and posts its content of that at the two locations...
I need up to 3 WYSIWYG fields for my content each should be able to be designed via css, and I don't really know how it could be done.
I'm searching the forums for about two days now, and your module atm is as close as I could get...
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #18 on:
September 08, 2009, 09:10:13 PM »
The only solution I can think of is to simply add 2 extra WYSIWYG sections to the page.
The bad part is that you cannot position them using the page-template, but you might be able to do something with section-blocks.
Ruud
Logged
Professional WebsiteBaker Solutions
Vitor
Offline
Posts: 2
Re: New Module - MultiPart Page
«
Reply #19 on:
September 14, 2009, 12:50:30 AM »
Hi,
Love the Multipart Module. Great work guys.
Question: is there a way to insert a variable or constant such as WB_URL in the HTML template?
Cheers
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: New Module - MultiPart Page
«
Reply #20 on:
September 14, 2009, 08:45:51 AM »
You could create a Droplet for that.
[[WB_URL]]
The droplet code would be nothing more than:
Code:
return WB_URL;
Ruud
Logged
Professional WebsiteBaker Solutions
Vitor
Offline
Posts: 2
Re: New Module - MultiPart Page
«
Reply #21 on:
September 15, 2009, 12:54:21 AM »
Thanks Ruud. Worked beautifully.
Logged
snark
Guest
Re: New Module - MultiPart Page
«
Reply #22 on:
September 24, 2009, 06:21:10 PM »
vvrong tipoc
«
Last Edit: September 24, 2009, 07:24:49 PM by snark
»
Logged
vysser
Offline
Posts: 28
Re: New Module - MultiPart Page
«
Reply #23 on:
March 11, 2010, 06:20:55 PM »
Hello, I'm trying to use the MultiPart Page to insert an ad linking to another website. When I add a URL for some reason the "
http://
" part of it dissapears. That wouldn't be a problem, I can just write http://{URL} and that would do it, but in my case the URL I try to introduce is:
http://
ad.zanox.com/ppc/?14891036C923401352&ULP=[[
http://
cine.fnac.es/a142881/Al-final-de-la-escapada-Jean-Paul-Belmondo-sin-especificar-?&zparam_fnac]]
Both "http://" parts dissapear, and the link doesn't work. What can I do not to miss this part in the URL?
Logged
http://www.vyxer.com
http://www.cequiel.com
http://www.elespectadorimaginario.com
oeh
Offline
Posts: 190
Re: New Module - MultiPart Page
«
Reply #24 on:
March 11, 2010, 08:28:01 PM »
Quote from: vysser on March 11, 2010, 06:20:55 PM
........ but in my case the URL I try to introduce is:
http://
ad.zanox.com/ppc/?14891036C923401352&ULP=[[
http://
cine.fnac.es/a142881/Al-final-de-la-escapada-Jean-Paul-Belmondo-sin-especificar-?&zparam_fnac]]
Workaround 1.
Maybe this would work http://{URL1}http://{URL2}
Thus would in your case be.
{URL1}= ad.zanox.com/ppc/?14891036C923401352&ULP=[[
{URL2}= cine.fnac.es/a142881/Al-final-de-la-escapada-Jean-Paul-Belmondo-sin-especificar-?&zparam_fnac]]
Workaround 2.
Ore simply tinyurl might do the the trick?
The above url in tinyurl, gives:
http://tinyurl.com/ykvwroc
The code:
Code:
<form action="http://tinyurl.com/create.php" method="post" target="_blank">
<table align="center" cellpadding="5" bgcolor="#E7E7F7">
<tr>
<td>
<b>Enter a long URL to make <a href="http://tinyurl.com">tiny</a>:</b><br />
<input type="text" name="url" size="30">
<input type="submit" name="submit" value="Make TinyURL!">
</td>
</tr>
</table>
</form>
in a wysiwyg page will give you a tinyurl url generation box on your site.
Workaround 3.
There is also a module called
Short Link
by Ralf (Berlin)
which will let you make short links in your WB.
If you use this mod an calls the link:
cine.fnac.es_1
your link in WB will be like.
http://www.yoursite.com/link.php?name=cine.fnac.es_1
This tool is no more than genius.
Regards
oeh
«
Last Edit: March 11, 2010, 09:00:26 PM by oeh
»
Logged
Good bye ;-{(
oeh ;-}>
Pages: [
1
]
2
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...