Search found 48 matches

by kees
Mon Nov 23, 2009 10:35 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

The inserted code at step 3a should be:

Code: Select all

<script type="text/javascript">
 if (top != self) top.location = self.location;
 var file = location.search ? unescape(location.search.substring(1)) : "./Velkommen/Velkommen.php";
</script>
by kees
Mon Nov 23, 2009 5:21 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

FAVTdk wrote:what have I done wrong
Can you give the exact url of the main page (with the iframe)?
by kees
Fri Jun 05, 2009 2:13 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

Patr100 wrote:Does the following code need to be modified?

Code: Select all

onLoad = "self.IFrameName.location.href = file"
Yes.
IFrameName should be changed to the name of your Inline Frame.
by kees
Thu Jun 04, 2009 10:39 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

Patr100 wrote:Right thanks I think I just need the script on the sub pages so anyone finding them on Google will get taken to a navigation page.
... and did not get the page they were looking for :?

I would advice to perform the modifications on the main page as described.
by kees
Thu Jun 04, 2009 8:09 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

If you only add the code on the subpage, then the main page will be loaded plus the default subpage.

If you want the chosen subpage in the Inline Frame, then you should perform the steps for the main page.
by kees
Sun Apr 26, 2009 5:30 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

and how to use this code in several pages ? Step 1 should be done for all sub-pages. And if have more than one inlineframe, do i have the code to each iframe ?. Yes. The name of the concerning Inline Frame should be adapted in step 3b. But mind this solution does not work for multiple Inline Frames ...
by kees
Thu Apr 23, 2009 10:19 pm
Forum: Share self-made extensions with other users of WYSIWYG Web Builder
Topic: NEWS LETTER & MAILING LIST Extension!
Replies: 41
Views: 157286

PHP Notice: Undefined variable: HTTP_SERVER_VARS in E:\home\c2service.nl\public_html\ccmail\config.php on line 48 It mean your php version is too old, I think. No, the script is too old. In PHP 5 the variable $_HTTP_SERVER_VARS is no longer defined. Actually, if this extension works fine on your ...
by kees
Sun Apr 19, 2009 7:18 pm
Forum: Share self-made extensions with other users of WYSIWYG Web Builder
Topic: MySQL Members System - v1.0 BETA FULL VERSION!
Replies: 21
Views: 43287

No bug! :wink: But it isn't valid php, unfortunately. I think you mean: <?php $showusericon = "No"; if($showusericon == "Yes") {... Please put this code at the start of any php page and fix all errors before you publish it: <?php ini_set('display_errors', 1); error_reporting(E_ALL); ?>
by kees
Sun Apr 19, 2009 5:39 pm
Forum: Share self-made extensions with other users of WYSIWYG Web Builder
Topic: MySQL Members System - v1.0 BETA FULL VERSION!
Replies: 21
Views: 43287

madjamonline wrote:Might be a few bugs...
For example:
<?php
$showusericon = No;
if($showusericon = "Yes")
{...
by kees
Tue Mar 24, 2009 3:06 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

At the end of the tutorial there is a download link for a working example. Does that help you?
by kees
Mon Mar 16, 2009 6:31 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

In step 3b you inserted this:

Code: Select all

onLoad = "self.IFrameName.location.href = file"
But the name of your Inline Frame is not IFameName. Your Inline Frame is named InlineFrame1.

The name in the code must be the same as the Inline Frame name.
by kees
Mon Mar 16, 2009 3:07 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

The 'Member System' and the 'News Writer' have no relationship, they work independent.
by kees
Mon Mar 16, 2009 2:51 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

genieuk wrote:Is it possible for it, when it takes you to the page the iframe is on for it to select the page the person originall wanted to see?
That's exactly how it works. Doesn't it work that way on your site?
by kees
Mon Mar 16, 2009 6:33 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

genieuk wrote:now is this tip suppose to when someone tries accessing the page directly redirect them to tutorials.php in my example so they cannot view the page directly with no navigation menu etc
Yes.

What is the url of your site? Then we can take a look at what you did.
by kees
Sun Mar 15, 2009 5:18 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

My inline frame is on a page called tutorials.php so do i replace index.html with tutorials.php ? Yes. also what about the ? after the .html do i need to keep that there? Yes, of course. Why else should it be there? where it says sub_1.html do i replace that with the main webpage page name that is ...
by kees
Tue Jan 27, 2009 11:45 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

PHP can not protect folders, just single pages.

For all pages that need 'protection' you should follow step II-1 (A protected page).
by kees
Mon Jan 19, 2009 5:13 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

Yes, it will work.

One remark about your form: Using the built-in form processor, you should have a field named email (lower case). Yours is named Email.
by kees
Sun Jan 04, 2009 9:04 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

When I call captcha.php directly in the url bar it shows this error message: Warning: imagettftext(): Could not read font in /home/content/d/o/n/donnajarrett/html/ttmptest/captcha.php on line 29 Warning: imagettftext(): Could not read font in /home/content/d/o/n/donnajarrett/html/ttmptest/captcha ...
by kees
Sat Jan 03, 2009 10:36 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

I think you forgot to upload the font file.

Or the font file is not spelled correctly. The font name must be spelled exactly as in the script.
by kees
Sat Jan 03, 2009 8:20 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

The Edit Box name should be named captcha_code, but in your form is has an extra space (shown as #): captcha_code#.

Please remove that extra space.
by kees
Sat Jan 03, 2009 7:03 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

There is no need to quote the complete topic starting message. In most cases a link is enough, for instance: http://www.wysiwygwebbuilder.com/forum/viewtopic.php?p=25616#25616 I looked into the html and saw no errors. It's clear that the file captcha.php does not work well. Did you try any of the ...
by kees
Mon Oct 27, 2008 7:11 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

Wait!

There is a way. You can add a 'target' attibute to the login form.

How?
1. Bring up the Form's Object HTML dialog.
2. Select 'Inside Tag' and insert:

Code: Select all

target="InlineFrame1"
by kees
Mon Sep 08, 2008 10:07 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

1. The 'Click for new image' function is working correctly! The text doesn't show up on the form, but pops up as a tooltip when your mouse is over the image. 2. The entered code in not verified, that's a problem. I assume you used the built-in form processor from the Form Properties dialog. Did you ...
by kees
Sat Sep 06, 2008 11:06 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

Eddy, thanks for discovering that error. I adjusted the form processing page code (step VI-2) to: <?php session_start(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST['captcha_code'],$_SESSION['random_txt']) && md5($_POST['captcha_code']) == $_SESSION['random_txt']) { unset($_POST ...
by kees
Sat Sep 06, 2008 9:24 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

...it redericts every time to the index.html page or another page what I type for header location. Then it didn't pass the first check: was the script triggered by a form with 'post' method? Have you tested the captcha code with the inbuild php formprosessor from the formwizard ? Yes I think the ...
by kees
Sun Aug 24, 2008 10:10 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

You cannot link your iframe to WWW.GOOGLE.COM or WWW.MICROSOFT.COM because the rest of your website is not hosted on the microsoft.com servers. I didn't follow the recent discussion between Eddy and dangermouse, so maybe this is an irrelevant comment. Links to external pages must have the http ...
by kees
Tue Jul 08, 2008 11:05 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

Re: this works BRILLIANTLY

this really works! ... thanks so much for this. Thank you. ... now i won't be getting invites to look at dodgy people doing whatnot! No, this is an attempt to block automated spam bots. It will not stop people from sending unwanted messages. CAPTCHA : C ompletely A utomated P ublic T uring test to ...
by kees
Fri Jul 04, 2008 5:42 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

dangermouse wrote:Is it possible for this concept to work with php and can i instead of calling an inline frame call a html box with some php code in it will that work ?
This concept is based on an Iframe and only works with an Iframe.

PHP is not involved in this concept, but can be added (as in any page).
by kees
Thu Jun 19, 2008 9:55 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

A few days ago there were new updates of FireFox (3.0) and Opera (9.50). I tested the original example from rockman's message ( http://www.wysiwygwebbuilder.com/forum/viewtopic.php?p=16739#16739 ) with these latest versions and found that it works fine. That means that my 'fix' ( http://www ...
by kees
Sun Jun 15, 2008 12:12 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: One Link changes Two Iframes
Replies: 1
Views: 55461

One Link changes Two Iframes

This article describes how one Link can change the contents of two Inline Frames. The link can be a text link, an image link, a menu link, in short: any type of link. 1. Bring up the Page HTML dialog, select Between Head Tag and insert:: <script type="text/javascript"> function change_frames(url1 ...
by kees
Mon May 26, 2008 10:17 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

... what's wrong with using a GetElementByID ? If we can avoid 'GetElementById' (or other references to object names or id's) we have a generic script, that works on any Iframe. Otherwise the script has to be adjusted to each specific Iframe. Agree? That's why I replaced ' IframeName.document.body ...
by kees
Sun May 25, 2008 11:02 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

Just to clearify: a warning isn't an error. A warning is an advice, a recommendation.

For WebBuilder users I try to avoid getElementById(), because it's far beyond the WebBuilder concept.

Thanks for your feedback anyway.
by kees
Sun May 25, 2008 10:13 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

To test my solution, you can download the fixed *.wbs file from here.

It was tested in IE6/7, FF2 and Opera9 (all latest versions at the moment).

Comments are appreciated.
by kees
Sun May 25, 2008 8:01 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

Do you mean that this solution can fix the problem?
by kees
Sun May 25, 2008 7:46 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

But does the Iframe height change on every new choise? That's the point in this discussion. The JavaScript code used to work in IE6/7 and FF2, but not in Opera. The JavaScript in the url above has some improvements, to make it work in Opera. But does it work in FF3 as well? Does the Iframe resize in ...
by kees
Sun May 25, 2008 7:17 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Dynamic Web Page Lengths
Replies: 51
Views: 172453

Does it work with FF3 with this url: <...link removed...>

EDIT
See my message at viewtopic.php?p=43231#43231
by kees
Wed Apr 30, 2008 10:50 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

This is an example of another captcha image code. It can be used as a replacement for 'captcha.php' in the original article. The generated image shows a simple addition sum like this: http://i30.tinypic.com/rlbxmu.jpg In this example 5 must be entered in order to submit the form. How to proceed ...
by kees
Tue Apr 29, 2008 8:44 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

You can name the login page as you like.

Note that 'login.php' also exists (twice) in the protected page script. So if you name your login page 'video1login.php', this name should also entered in the protected page script.
by kees
Mon Apr 07, 2008 6:12 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

...nothing is safe in this world anymore... there will always be a way. I always make sure that my pwds in php are MD5'd. madjamonline, I agree that hashing passwords (md5, sha1) is more secure. I didn't use this technics in order to keep it clear for WebBuilder users. Of course I and you will ...
by kees
Mon Mar 24, 2008 12:11 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

If the concerning page is a sub-page (shown in the Inline Frame), then you must insert the code at step 1.
This code must be placed between <head> and </head>.

If the concerning page is in a folder, then replace

Code: Select all

./index.html
with

Code: Select all

/index.html
by kees
Thu Feb 07, 2008 9:19 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

There are a lot of possibilities if you want to password protect (parts of) your site. If your are confident about your method, please be happy :D

If you want to try one of the other ways, just try it and decide what's the best for you.
by kees
Tue Jan 15, 2008 8:15 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

The member system in this topic was based on http://www.wysiwygwebbuilder.com/password_protect.html Several times on this forum there was this question: how can I redirect each member to his own page? That's what my script does. I know that there are very many login sytems available around the ...
by kees
Sun Dec 16, 2007 12:12 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

This is an example of another captcha image code. It can be used as a replacement for 'captcha.php' in the original article. The generated image looks like this: http://i41.tinypic.com/15ev6ud.png How to proceed? - Use this php code in step I-1: <?php $width = 100; $height = 38; $font = 'verdana.ttf ...
by kees
Sun Dec 02, 2007 12:35 am
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

You can create your own error page. Use this code at step IV-2: <?php session_start(); if ($_SERVER['REQUEST_METHOD'] != 'POST') { header('Location: /index.html'); exit; } if (isset($_POST['captcha_code'],$_SESSION['random_txt']) && md5($_POST['captcha_code']) == $_SESSION['random_txt']) { unset ...
by kees
Sat Nov 24, 2007 5:47 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: CAPTCHA protection using PHP
Replies: 27
Views: 217350

CAPTCHA protection using PHP

This article describes how to add CAPTCHA protection with WebBuilder (for advanced users). It can be integrated in existing forms. The generated image looks like this: http://i16.tinypic.com/8e8wby0.png Requirements: PHP support with installed GD library. Four files are needed: - a PHP file that ...
by kees
Sun Nov 04, 2007 3:18 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: A Member System in PHP with some extras
Replies: 36
Views: 258465

A Member System in PHP with some extras

This article describes a login/member system using PHP. Some characteristics are: - No database needed; - Each member can be redirected to a specified page; - Members can be assigned to hierarchical levels; - Editable guiding messages. At least two pages are needed: the login page and a protected ...
by kees
Fri Oct 13, 2006 4:02 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Password Protected Pages - Easy and Flexible
Replies: 0
Views: 12636

Password Protected Pages - Easy and Flexible

This article describes two methods of Password Protected Pages using JavaScript. The methods work almost identically: the filename is the password. For example: your secret page is 'ABC123.html', then the password is 'ABC123'. The code is placed on the calling page. Only when the visitor types the ...
by kees
Wed May 24, 2006 10:34 pm
Forum: WYSIWYG Web Builder Tips, Tricks, Tutorials and Code Examples
Topic: Sub-pages should open in an Inline Frame
Replies: 29
Views: 182962

Sub-pages should open in an Inline Frame

Suppose you create your site using an Inline Frame with several sub-pages. How can you assure that the sub-pages are always opened inside the Inline Frame? Let's assume that the main-page is called index.html , the Inline Frame is called IFrameName , the default sub-page is called sub_1.html and ...