Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Pop Up Screen for Terms and Conditions

Pop Up Screen for Terms and Conditions 15 years 2 days ago #5566

  • FH45
  • FH45's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Is there any way I can increase the size of the pop up for Terms and Conditions?

Please Log in or Create an account to join the conversation.

Pop Up Screen for Terms and Conditions 15 years 2 days ago #5573

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Hello. To change the size of the popup box, open this file:
/components/com_dtregister/dtregister.php

Around line 5461, you'll find this:
jQuery.blockUI({ message: jQuery('#term_msg'),cursor:'default',css:{top:'100px',right:'200px',float:'left',height:'400px',width:'600px',overflow:'auto'} });

You can modify the height and width here.

Then, IF needed after changing the size of the window, you can also limit how far the text goes in the box before wrapping. Do that here:

/components/com_dtregister/terms.php

Around line 164 you'll find:
<p class="lbText"><pre><?php echo wordwrap(str_replace('-','&ndash;',stripslashes($showTerms)), 80, "\n"); ?></pre></p>

You'll see "80" towards the end of that line. This represents the number of "columns" wide your text will display.

Hope this helps :)

Please Log in or Create an account to join the conversation.

Pop Up Screen for Terms and Conditions 15 years 2 days ago #5575

  • FH45
  • FH45's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Thanks. That helps a lot.

Please Log in or Create an account to join the conversation.

Pop Up Screen for Terms and Conditions 15 years 2 days ago #5576

  • FH45
  • FH45's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
I have managed to make the changes to allow the screen to be larger and also extended the number of columns to 100.

But somehow the display is still not correct. Lines are cut off where they should not.

For example:

Race
Rules

instead of Race Rules.

I attach herewith a partial screenshot of the terms shown. The live site is http://events.intraflash.com

I have copied the html from the article I use to create the terms and conditions. The article is showing it properly but not in the popup. Can you please let me know what other changes I should be looking at?
Attachments:

  • Rendering Error in layout Attachment/Item: Property "protected" is not defined. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.305 seconds