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

TOPIC: Terms and conditions window

Terms and conditions window 15 years 11 months ago #2959

  • evildrq
  • evildrq's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 62
  • Thank you received: 0
Is there a way to change the size of the terms and conditions window? We have several T&C\'s and the text goes off the screen. There is no way to see them all and no way to scroll down to see them. Is there a way to make the window wider or add a scroll bar?

Thanks.

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

Terms and conditions window 15 years 11 months ago #3041

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
In the 2.3.5 release, some work was done towards this. The scrollbar was added when your text goes bigger than the box. To change the size of the box, open this file:
/components/com_dtregister/dtregister.php

Around line 3998, you\'ll find this:

jQuery.blockUI({ message: jQuery(\'#term_msg\'),cursor:\'default\',css:{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 152 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 is helpful!

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

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