ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:State/Province dropdown (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:State/Province dropdown
#8431
kai920 (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Re:State/Province dropdown 2 Months ago Karma: 0  
Hi Bob,

Thanks for the hint.

I set error_reporting = E_ALL and display_errors = On and finally got a meaningful error msg.

Fatal error: Class 'mosHTML' not found in /home/joomla/components/com_chronocontact/chronocontact.html.php(83) : eval()'d code on line 10

I assume Joomla 1.5.x still uses moSHTML?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8436
GreyHead (Admin)
Support
Admin
Posts: 2905
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:State/Province dropdown 2 Months ago Karma: 62  
Hi kai920,

I must have Legacy mode on. Try JHTML instead see here for docs.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8438
kai920 (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Re:State/Province dropdown 2 Months ago Karma: 0  
Ah-ha! Thanks for the clarification once again

I turned on the legacy bot and it works nicely now.

I did come across the api link, but found it strange there was no "selectList". Is it hidden under another class?

Never mind, found something HERE!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8440
kai920 (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Re:State/Province dropdown 2 Months ago Karma: 0  
So following on the previous link, I tried to use the JHTMLSelect class... but it was giving me a "class not found error". So I thought I had to access the file /joomla/html/html/select.php somehow. I then tried all sorts of stuff, took a long time (very long time it seems, but it's nice to try to figure out things on your own once in a while). I finally figured out to do this:

include_once JPATH_ROOT . "libraries/joomla/html/html/select.php";

Code:

<?php $Category = Array( 'Audio' => 'Audio', 'Blog' => 'Blog' ); $options = array(); if ( !isset($_POST['category']) ) { $_POST['category'] = ""; } include_once JPATH_ROOT . "/libraries/joomla/html/html/select.php"; foreach ( $Category as $cat => $category ) { $options[] = JHTMLSelect::option($cat, $category); } $select = JHTMLSelect::genericlist($options, 'category[]', 'size="1"', 'value', 'text', $_POST['category']); echo $select; ?>
Woohoo. This works for 1.5 w/o legacy mode! But is this the best way, i.e. acceptable practice? BTW - it seems SAVE and APPLY on the form has the same effects? They both bring me out to the list of forms... it would be nice if APPLY would just save and keep you at the same screen..
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/15 11:03 By kai920.
  The administrator has disabled public write access.
#8474
GreyHead (Admin)
Support
Admin
Posts: 2905
graph
User Offline Click here to see the profile of this user
Gender: Male bobjanes Location: Brittany
Re:State/Province dropdown 2 Months ago Karma: 62  
Hi kai920,

Well done, I'm sure that there is some *magic* way of loading the JHTML libraries but I don't know what it is . . .

And, yes 'Apply' is broken in CF for J1.5 and it's very frustrating!!

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8478
kai920 (User)
Senior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Re:State/Province dropdown 2 Months ago Karma: 0  
Hi Bob,

Couldn't have done it without your patient guidance, so many thanks for that

I found the "proper" way is supposedly using jimport("joomla.html.html.select); but I also got a class not found with this. investigating why...

It's amazing how frustrating just a couple extra clicks can be
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials