CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Remove the advertising button.

by zsleo » 01 May 2013 01:55

How do I remove the "WDB Fancy Capture" advertising button on the top right hand corner?

TIA

Zane
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by zsleo » 02 May 2013 08:23

Any solution?
I want to deploy app next week.

TIA

Zane
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 02 May 2013 09:43

Hi Zane

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

By your own or a blank image

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by zsleo » 27 Aug 2013 07:19

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
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by zsleo » 29 Aug 2013 15:00

Any answer for this?

TIA
ZaNE
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 29 Aug 2013 15:45

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by kmccoy » 17 Sep 2013 20:34

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?
Best Regards,

Kevin G. McCoy
kmccoy
 
Posts: 90
Joined: 08 Oct 2012 13:01

by Jorge Sousa » 17 Sep 2013 23:05

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by jredoc » 13 Feb 2014 22:39

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
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34

by Jorge Sousa » 14 Feb 2014 18:47

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';
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Next

Return to JQFancyCaptcha

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.