Skip to Content Skip to Menu

Trouble installing customized cblogin module

  • sfraise
  • sfraise
  • OFFLINE
  • Posts: 219
  • Thanks: 14
  • Karma: 4
12 years 3 days ago #200923 by sfraise
I added a customized modal registration to the cblogin module and everything seems to work fine with the files directly overwritten on an installed module.

The problem is after adding the extra files and changing what I needed to on the mod_cblogin.php file I get an error when trying to install saying it's for an older version and I need to turn on legacy mode.

I'm building this on joomla 1.5 if that makes any difference and am customizing the version 1.8 module using the same xml and files from that module.

Here's my xml file, maybe something will pop out at you there:
Code:
<?xml version="1.0" encoding="UTF-8"?> <mosinstall type="module" version="1.0.0"> <name>CB Login</name> <creationDate>2012-02-20</creationDate> <author>Beat and JoomlaJoe</author> <copyright>(C) 2005-2012 Joomlapolis.com. This module is released under the GNU/GPL v2 License</copyright> <authorEmail>beat@joomlapolis.com</authorEmail> <authorUrl>www.joomlapolis.com</authorUrl> <version>1.8</version> <description>Login module to be used with Community Builder instead of the Login module.</description> <files folder="files"> <filename module="mod_cblogin">mod_cblogin.php</filename> <filename>mod_cblogin/index.html</filename> <filename>mod_cblogin/edit_profile.png</filename> <filename>mod_cblogin/forgot.png</filename> <filename>mod_cblogin/login.png</filename> <filename>mod_cblogin/logout.png</filename> <filename>mod_cblogin/mail.gif</filename> <filename>mod_cblogin/password.png</filename> <filename>mod_cblogin/register.png</filename> <filename>mod_cblogin/username.png</filename> <filename>mod_cblogin/users.gif</filename> <filename>mod_cblogin/js/city.php</filename> <filename>mod_cblogin/js/functions.js</filename> <filename>mod_cblogin/js/state.php</filename> <filename>mod_cblogin/colorbox/colorbox.ai</filename> <filename>mod_cblogin/colorbox/colorbox.css</filename> <filename>mod_cblogin/colorbox/README.md</filename> <filename>mod_cblogin/colorbox/colorbox/addfriend.js</filename> <filename>mod_cblogin/colorbox/colorbox/classes.php</filename> <filename>mod_cblogin/colorbox/colorbox/jquery.colorbox.js</filename> <filename>mod_cblogin/colorbox/colorbox/jquery.colorbox-min.js</filename> <filename>mod_cblogin/colorbox/images/border.png</filename> <filename>mod_cblogin/colorbox/images/controls.png</filename> <filename>mod_cblogin/colorbox/images/loading.gif</filename> <filename>mod_cblogin/colorbox/images/loading_background.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderBottomCenter.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderBottomLeft.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderBottomRight.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderMiddleLeft.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderMiddleRight.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderTopCenter.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderTopLeft.png</filename> <filename>mod_cblogin/colorbox/images/ie6/borderTopRight.png</filename> </files> <params> <param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="A suffix to be applied to the css class of the module (mod_login), this allows individual module styling" /> <param name="horizontal" type="list" default="0" label="Module orientation" description="Default orientation is vertical for left or right module positions (recommended when displaying avatar). The horizontal orientation is for a compact horizontal module position and does NOT support avatar display."> <option value="0">Vertical</option> <option value="1">Horizontal</option> </param> <param name="compact" type="list" default="0" label="Display type" description="By default, the field names are displayed outside the boxes: username: [___] password: [___]. In compact mode, field names are inside fields: [username___] [xxx___] and texts are shorter."> <option value="0">Default</option> <option value="1">Compact</option> </param> <param name="pretext" type="textarea" cols="20" rows="5" default="" label="Login Pre-text" description="This is the Text or HTML that is displayed above the login form. HINT: you can use language definition." /> <param name="posttext" type="textarea" cols="20" rows="5" label="Login Post-text" description="This is the Text or HTML that is displayed below the login form. HINT: you can use language definition." /> <param name="logoutpretext" type="textarea" cols="20" rows="5" default="" label="Logout Pre-text" description="This is the Text or HTML that is displayed above the logout form. HINT: you can use language definition." /> <param name="logoutposttext" type="textarea" cols="20" rows="5" label="Logout Post-text" description="This is the Text or HTML that is displayed below the logout form. HINT: you can use language definition." /> <param name="login" type="text" default="" label="Login Redirection URL" description="What page will the login redirect to after login. If let blank will reload current page" /> <param name="logout" type="text" default="index.php" label="Logout Redirection URL" description="What page will the logout redirect to after logout. With a double-cross (#) it will reload current page. If let blank or set to index.php , it will go to home-page, avoiding unauthorized access messages." /> <param name="show_lostpass" type="radio" default="1" label="Lost password" description="Show/Hide the lost password? link"> <option value="0">Hide</option> <option value="1">Show</option> </param> <param name="show_newaccount" type="radio" default="1" label="Create account" description="Show/Hide the create account text and link. This is not to disable registration (this is done in CB configuration and Joomla/Mambo configuration), but simply to hide it if you have a separate link for that."> <option value="0">Hide</option> <option value="1">Show</option> </param> <param name="show_username_pass_icons" type="list" default="0" label="Display username/password labels as" description="You can display labels for the username and password fields as text (outside the box in normal mode, inside the box in compact mode) or as icons (outside the box in normal mode, inside the box in compact mode)."> <option value="0">Text</option> <option value="1">Icons and texts</option> <option value="2">Icons</option> </param> <param name="name_lenght" type="text" default="14" label="Username length" description="The length in characters the textbox should have not max. characters the box may contain." /> <param name="pass_lenght" type="text" default="14" label="Password length" description="The length in characters the textbox should have not max. characters the box may contain." /> <param name="show_buttons_icons" type="list" default="0" label="Display login/logout button as" description="You can display text 'Login'/'Logout' or an icon for the login and logout buttons, or as both icon and text."> <option value="0">Button with text</option> <option value="1">Button with icon and text</option> <option value="2">Icon only</option> </param> <param name="show_remind_register_icons" type="list" default="0" label="Display login reminder / register as" description="You can display login reminder and register items as text links or icons."> <option value="0">Text Link</option> <option value="1">Icons and texts</option> <option value="2">Icons</option> </param> <param name="login_message" type="radio" default="0" label="Login Message" description="Show/Hide the javascript Pop-up indicating Login Success"> <option value="0">Hide</option> <option value="1">Show</option> </param> <param name="logout_message" type="radio" default="0" label="Logout Message" description="Show/Hide the javascript Pop-up indicating Logout Success"> <option value="0">Hide</option> <option value="1">Show</option> </param> <param name="remember_enabled" type="list" default="1" label="Remember-me checkbox" description="Show/Hide the standard Remember-me checkbox. It is possible to have it checked or unchecked by default or always"> <option value="1">Show unchecked</option> <option value="3">Show checked</option> <option value="0">Hide unchecked</option> <option value="2">Hide checked</option> </param> <param name="greeting" type="radio" default="1" label="Greeting" description="Show/Hide the simple greeting text"> <option value="0">No</option> <option value="1">Yes</option> </param> <param name="name" type="list" default="0" label="Name/Username" description="Choose what to display with the greeting text"> <option value="0">Username</option> <option value="1">Name</option> <option value="2">First Name</option> </param> <param name="show_avatar" type="list" default="0" label="Show avatar when logged-in" description="Only for Vertical orientation: Select \'Show always\' to show avatar of the logged-in user or \'no image\' picture if none to encourage users to choose avatar. Select \'Show avatar only if chosen\' to avoid \'No image\' display. The \'Pending approval\' image is always displayed."> <option value="0">Hide</option> <option value="1">Show only if chosen</option> <option value="2">Show always</option> </param> <param name="avatar_position" type="list" default="default" label="Avatar position" description="Default position means centered alone on a line. Left (recommended with avatar if enough space in template) means text flows on the right side of it. Right means the opposite."> <option value="default">Default</option> <option value="left">Left</option> <option value="right">Right</option> </param> <param name="text_show_profile" type="text" default="" label="Profile link text" description="A text or HTML to display in a link to user's profile which displays in login module when user is logged in. WARNING: you always need to create a public menu item to CB Profile (see README file). HINT: you can use language definition. Leave empty to not display. It will follow icons settings for register/login reminder." /> <param name="text_edit_profile" type="text" default="" label="Profile edit link text" description="A text or HTML to display in a link to user's edit profile screen which displays in login module when user is logged in. WARNING: you always need to create a public menu item to CB Profile (see README file). HINT: you can use language definition. Leave empty to not display. It will follow icons settings for register/login reminder." /> <param name="pms_type" type="list" default="0" label="Private Messaging System" description="Choose the system you have installed." > <option value="0">No system installed</option> <option value="1">PMS Open Source</option> <option value="2">PMS Pro</option> <option value="4">PMS Enhanced 1.x</option> <option value="6">PMS Enhanced 2.x</option> <option value="3">uddeIM</option> <option value="5">Clexus PMS</option> <option value="7">Missus PMS</option> <option value="8">JIM</option> <option value="9">Primezilla</option> <option value="10">JAM (Joomla Advanced Message)</option> </param> <param name="show_pms" type="list" default="0" label="Private Messages Notification" description="Choose if you want to display count of unread PMS messages. PMS integration must be activated in CB configuration." > <option value="0">Do not show</option> <option value="1">Show only if messages</option> <option value="2">Show also if no messages</option> </param> <param name="show_connection_notifications" type="list" default="0" label="Connections Notification" description="Choose if you want to display Connections notifications for pending approvals etc. Connections must be activated in CB configuration." > <option value="0">Do not show</option> <option value="1">Show only if pending notifications</option> </param> <param name="https_post" type="list" default="0" label="HTTPS (encrypted) login, register and lost password" description="You need https configured on your host for this. This feature is only in Joomla 1.0.13 + Joomla 1.5 and higher" > <option value="0">same as page (default)</option> <option value="1">use https for posting login then same</option> <option value="2">use https (encrypted) for login and after login</option> </param> <param name="cb_plugins" type="list" default="0" label="CB Plugins integration" description="Choose if you want to use CB events for CB plugins integration. Plugins must be installed and configured in CB plugins management. Warning: this loads CB plugins on each page where this module is displayed, consuming memory and processing power." > <option value="0">No</option> <option value="1">Yes</option> </param> </params> <!-- J1.6 of course doesn't understand the above so let it repeat once more: --> <config> <fields name="params"> <fieldset name="basic"> <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="A suffix to be applied to the css class of the module (mod_login), this allows individual module styling" /> <field name="horizontal" type="list" default="0" label="Module orientation" description="Default orientation is vertical for left or right module positions (recommended when displaying avatar). The horizontal orientation is for a compact horizontal module position and does NOT support avatar display."> <option value="0">Vertical</option> <option value="1">Horizontal</option> </field> <field name="compact" type="list" default="0" label="Display type" description="By default, the field names are displayed outside the boxes: username: [___] password: [___]. In compact mode, field names are inside fields: [username___] [xxx___] and texts are shorter."> <option value="0">Default</option> <option value="1">Compact</option> </field> <field name="pretext" type="textarea" filter="raw" cols="20" rows="5" default="" label="Login Pre-text" description="This is the Text or HTML that is displayed above the login form. HINT: you can use language definition." /> <field name="posttext" type="textarea" filter="raw" cols="20" rows="5" label="Login Post-text" description="This is the Text or HTML that is displayed below the login form. HINT: you can use language definition." /> <field name="logoutpretext" type="textarea" filter="raw" cols="20" rows="5" default="" label="Logout Pre-text" description="This is the Text or HTML that is displayed above the logout form. HINT: you can use language definition." /> <field name="logoutposttext" type="textarea" filter="raw" cols="20" rows="5" label="Logout Post-text" description="This is the Text or HTML that is displayed below the logout form. HINT: you can use language definition." /> <field name="login" type="text" default="" label="Login Redirection URL" description="What page will the login redirect to after login. If let blank will reload current page" /> <field name="logout" type="text" default="index.php" label="Logout Redirection URL" description="What page will the logout redirect to after logout. With a double-cross (#) it will reload current page. If let blank or set to index.php , it will go to home-page, avoiding unauthorized access messages." /> <field name="show_lostpass" type="radio" default="1" label="Lost password" description="Show/Hide the lost password? link"> <option value="0">Hide</option> <option value="1">Show</option> </field> <field name="show_newaccount" type="radio" default="1" label="Create account" description="Show/Hide the create account text and link. This is not to disable registration (this is done in CB configuration and Joomla/Mambo configuration), but simply to hide it if you have a separate link for that."> <option value="0">Hide</option> <option value="1">Show</option> </field> <field name="show_username_pass_icons" type="list" default="0" label="Display username/password labels as" description="You can display labels for the username and password fields as text (outside the box in normal mode, inside the box in compact mode) or as icons (outside the box in normal mode, inside the box in compact mode)."> <option value="0">Text</option> <option value="1">Icons and texts</option> <option value="2">Icons</option> </field> <field name="name_lenght" type="text" default="14" label="Username length" description="The length in characters the textbox should have not max. characters the box may contain." /> <field name="pass_lenght" type="text" default="14" label="Password length" description="The length in characters the textbox should have not max. characters the box may contain." /> <field name="show_buttons_icons" type="list" default="0" label="Display login/logout button as" description="You can display text 'Login'/'Logout' or an icon for the login and logout buttons, or as both icon and text."> <option value="0">Button with text</option> <option value="1">Button with icon and text</option> <option value="2">Icon only</option> </field> <field name="show_remind_register_icons" type="list" default="0" label="Display login reminder / register as" description="You can display login reminder and register items as text links or icons."> <option value="0">Text Link</option> <option value="1">Icons and texts</option> <option value="2">Icons</option> </field> <field name="login_message" type="radio" default="0" label="Login Message" description="Show/Hide the javascript Pop-up indicating Login Success"> <option value="0">Hide</option> <option value="1">Show</option> </field> <field name="logout_message" type="radio" default="0" label="Logout Message" description="Show/Hide the javascript Pop-up indicating Logout Success"> <option value="0">Hide</option> <option value="1">Show</option> </field> <field name="remember_enabled" type="list" default="1" label="Remember-me checkbox" description="Show/Hide the standard Remember-me checkbox. It is possible to have it checked or unchecked by default or always"> <option value="1">Show unchecked</option> <option value="3">Show checked</option> <option value="0">Hide unchecked</option> <option value="2">Hide checked</option> </field> <field name="greeting" type="radio" default="1" label="Greeting" description="Show/Hide the simple greeting text"> <option value="0">No</option> <option value="1">Yes</option> </field> <field name="name" type="list" default="0" label="Name/Username" description="Choose what to display with the greeting text"> <option value="0">Username</option> <option value="1">Name</option> <option value="2">First Name</option> </field> <field name="show_avatar" type="list" default="0" label="Show avatar when logged-in" description="Only for Vertical orientation: Select \'Show always\' to show avatar of the logged-in user or \'no image\' picture if none to encourage users to choose avatar. Select \'Show avatar only if chosen\' to avoid \'No image\' display. The \'Pending approval\' image is always displayed."> <option value="0">Hide</option> <option value="1">Show only if chosen</option> <option value="2">Show always</option> </field> <field name="avatar_position" type="list" default="default" label="Avatar position" description="Default position means centered alone on a line. Left (recommended with avatar if enough space in template) means text flows on the right side of it. Right means the opposite."> <option value="default">Default</option> <option value="left">Left</option> <option value="right">Right</option> </field> <field name="text_show_profile" type="text" default="" label="Profile link text" description="A text or HTML to display in a link to user's profile which displays in login module when user is logged in. WARNING: you always need to create a public menu item to CB Profile (see README file). HINT: you can use language definition. Leave empty to not display. It will follow icons settings for register/login reminder." /> <field name="text_edit_profile" type="text" default="" label="Profile edit link text" description="A text or HTML to display in a link to user's edit profile screen which displays in login module when user is logged in. WARNING: you always need to create a public menu item to CB Profile (see README file). HINT: you can use language definition. Leave empty to not display. It will follow icons settings for register/login reminder." /> <field name="pms_type" type="list" default="0" label="Private Messaging System" description="Choose the system you have installed." > <option value="0">No system installed</option> <option value="1">PMS Open Source</option> <option value="2">PMS Pro</option> <option value="4">PMS Enhanced 1.x</option> <option value="6">PMS Enhanced 2.x</option> <option value="3">uddeIM</option> <option value="5">Clexus PMS</option> <option value="7">Missus PMS</option> <option value="8">JIM</option> <option value="9">Primezilla</option> <option value="10">JAM (Joomla Advanced Message)</option> </field> <field name="show_pms" type="list" default="0" label="Private Messages Notification" description="Choose if you want to display count of unread PMS messages. PMS integration must be activated in CB configuration." > <option value="0">Do not show</option> <option value="1">Show only if messages</option> <option value="2">Show also if no messages</option> </field> <field name="show_connection_notifications" type="list" default="0" label="Connections Notification" description="Choose if you want to display Connections notifications for pending approvals etc. Connections must be activated in CB configuration." > <option value="0">Do not show</option> <option value="1">Show only if pending notifications</option> </field> <field name="https_post" type="list" default="0" label="HTTPS (encrypted) login, register and lost password" description="You need https configured on your host for this. This feature is only in Joomla 1.0.13 + Joomla 1.5 and higher" > <option value="0">same as page (default)</option> <option value="1">use https for posting login then same</option> <option value="2">use https (encrypted) for login and after login</option> </field> <field name="cb_plugins" type="list" default="0" label="CB Plugins integration" description="Choose if you want to use CB events for CB plugins integration. Plugins must be installed and configured in CB plugins management. Warning: this loads CB plugins on each page where this module is displayed, consuming memory and processing power." > <option value="0">No</option> <option value="1">Yes</option> </field> </fieldset> </fields> </config> </mosinstall>

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
12 years 3 days ago #200931 by krileon
Support does not include custom development or assistance with custom development and certainly does not include breaking login and registration (we do not support editing of either processes). You'll need to review the XML and make changes where it seams necessary, sorry. The XML you're editing is the J1.0/Mambo XML; the J1.5+ is in the "files" folder of the modules package.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn