Page 1 of 2

Remove the advertising button.

PostPosted: 01 May 2013 01:55
by zsleo
How do I remove the "WDB Fancy Capture" advertising button on the top right hand corner?

TIA

Zane

Re: Remove the advertising button.

PostPosted: 02 May 2013 08:23
by zsleo
Any solution?
I want to deploy app next week.

TIA

Zane

Re: Remove the advertising button.

PostPosted: 02 May 2013 09:43
by Jorge Sousa
Hi Zane

Replace wwwroot\css\FancyCaptcha\imgs\wdb.png

By your own or a blank image

Best Regards

cgdevtools

Re: Remove the advertising button.

PostPosted: 27 Aug 2013 07:19
by zsleo
I knew it would eventually happen....

How do I remove the on click event from the top corner"

A "happy clicker" clicked on my blanked out png file and was redirected to http://www.webdesignbeach.com/.

Or maybe there is a way to redirect to a URL of my choosing?

TIA

Zane

Re: Remove the advertising button.

PostPosted: 29 Aug 2013 15:00
by zsleo
Any answer for this?

TIA
ZaNE

Re: Remove the advertising button.

PostPosted: 29 Aug 2013 15:45
by Alexander Bulei
Hi,

zsleo wrote:Any answer for this?

TIA
ZaNE


You can hide it with css:

- Create your own css file and put this code:

css code
#ajax-fc-right a {
display: none;
}


- Load css file (IWForm.ContentFiles)

Best Regards.

Re: Remove the advertising button.

PostPosted: 17 Sep 2013 20:34
by kmccoy
cgdevtools wrote:
- Load css file (IWForm.ContentFiles)



I don't see ContentFiles property for TIWCGJQFrame. How do I add this FancyCaptcha CSS to a frame?

Re: Remove the advertising button.

PostPosted: 17 Sep 2013 23:05
by Jorge Sousa
Hi Kevin

You can use (WebApplication.ActiveForm as TIWAppForm).ContentFiles inside the frame class.

or, if when you create the frame, you pass an IWForm as Owner in TIMyWCGFrame.Create

you can use (Owner as TIWAppForm).ContentFiles

Best Regards

Re: Remove the advertising button.

PostPosted: 13 Feb 2014 22:39
by jredoc
Hello

I have been unable to remove the advertising button on the FancyCaptcha component using the above instructions. The steps that I have implemented are given below. The project is modeled after the cgDevTools demo 2, i.e. a single "main page" with multiple replaceable frames.

Step 1:
create a css file named fancycaptchaloadblank.css which contains the following text
#ajax-fc-right a {
display: none;
}

Step 2:
In MainPage.OnCreate event place the following code

var
tempImagePath: String;
tempCSSPathAndFile: String;
begin
tempExePath := ExtractFilePath(Application.ExeName);
tempCSSPathAndFile := ExpandFileName(tempEXEPath + '..\ContentFiles\fancycaptchablanklogo.css');
ContentFiles.Add('tempCSSPathAndFile');


Step 3:
In the OnCreate event of the frame which contains the fancyCaptcha I add the following line of code
IWCGJQFancyCaptcha.Css := 'fancycaptchablanklogo.css';


The above steps do not remove the advertising button. Does anyone have an idea as to what I am doing wrong?


TIA

John

Re: Remove the advertising button.

PostPosted: 14 Feb 2014 18:47
by Jorge Sousa
Hi jredoc

As we said before:

- Create your own css file and put this code:

css code

#ajax-fc-right a {
display: none;
}



To make Intraweb load a css file, you can use ServerController.Stylesheet or IWForm.Stylesheet (using either Url or FileName).
to add by ContentFiles you have to pass the url

ContentFiles.Add('/fancycaptchablanklogo.css');

assuming that tempEXEPath + '..\ContentFiles' is your ServerController.ContentPath

In this case you dont have to do set the .Css property, because FancyBox already this css class

But the property .Css is to be assigned to a css class not to a css file name

ie, this can never be used:

WCGJQFancyCaptcha.Css := 'fancycaptchablanklogo.css';


Only this, for instance:

myclass {
color: red;
}

WCGJQFancyCaptcha.Css := 'myclass';