Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
Posted:
Mon Mar 02, 2009 8:10 pm
and in admin/language/lang-english.php before the ?> add
Code:
/* Added by Sommaire Paramétrable (Customize Menu) v2.0 installation script */
define("_SOMMAIRE","Menu");
define("_SOMADMINTITLE","Administration Menu");
define("_SOMMSGNOTNUM","The value of this field must be numeric, please modify.");
define("_SOMMSGVOID","You must enter a value for this field !");
define("_SOMATTNSUPPRCAT","Attention !! You cannot cancel if you delete a category ! (The 'Cancel' button does not re-create the deleted category)");
define("_SOMWEIGHT","Weight");
define("_SOMCATEGORIES","Categories");
define("_SOMCATNAME","Category's name");
define("_SOMIMGNAME","Image file's name");
define("_SOMCATLINK","Link on this category");
define("_SOMCATMODS","Modules in this category");
define("_SOMNOIMG","[No image]");
define("_SOMHR","Horizontal rule");
define("_SOMCENTER","Center title");
define("_SOMBGCOLOR","Background color");
define("_SOMEXTLINK","External link");
define("_SOMMISEENPAGE","Display");
define("_TARGETBLANK","Open in a new window");
define("_SOMACTION","Action");
define("_SOMSUPPR","[Delete]");
define("_SOMADDCAT","Add a new category");
define("_SOMNEWCATEGORY","Add a new category :");
define("_SOMCANCEL","CANCEL");
define("_SOMPOST","SAVE YOUR MODIFICATIONS");
define("_SOMREMARKS","<strong>Remarks :</strong><br><br>"
."- The WEIGHT is used to order categories (categories with a lower WEIGHT are displayed first). [number between 0 and 98]<br><br>"
."- You can create a category without a name : in this case, the image will not be displayed.<br>"
." (useful if you are using only horizontal rules to separate categories)<br><br>"
."- The IMAGE FILE'S NAME (for the category) is an image file inside /images/sommaire/. You can also put a FLASH file (.swf)."
."<br> The IMAGE (for category's content) is an image file inside /images/sommaire/categories/."
."<br> When you add an image file in these folders, it is automatically added in its list box.<br>"
." If you don't want to display an image before a category's name, put 'null.gif' (transparent 20x20 px image) in the field.<br><br>"
."- THE LINK ON THE CATEGORY could be any internet url or an url relative to your site.<br>"
." If you put an external link (beginnning with 'http://' or 'ftp://'), the link will be opened in a new window.<br>"
." If you put a relative url ('modules.php?name=Your_Account&op=new_user'), the link will open in the current window.<br>"
." To open an internal link in a new window, put the exact, full url of your site.<br>"
." To open an external link in the current window, type 'HTTP://' (in uppercase).<br><br>"
."- The BACKGROUND COLOR must be a color code or a standard color name.<br>"
." ex: 'red' : <font color=\"red\">RED</font> -- '#ff0000' : <font color=\"#ff0000\">RED</font><br><br>"
."- The CLASS used to display categories' names msut be an existing class in all your themes.<br>"
." The classes are in the file /themes/YOURTHEME/style/style.css.<br>"
." You can add your own class, for example you can add this line in the style sheets of your themes :<br>"
." <i>.sommaire {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 12px; COLOR: #363636; FONT-WEIGHT: bold} </i><br>");
define("_SOMCATCONTENT","Category's content");
define("_SOMLINKURL","link's URL");
define("_SOMLINKTEXT","link's text");
define("_SOMIMAGE","Image");
define("_SOMINVALIDWEIGHT","The WEIGHT value is invalid for the category");
define("_SOMMUSTBENUM"," This value MUST be a number between 0 and 98 !!");
define("_SOMCATS","The categories");
define("_SOMAND","and");
define("_SOMSAMEWEIGHT","have the same WEIGHT !!");
define("_SOMMODIFWEIGHT","Return back to the previous page and modify the WEIGHT value of one of these categories.");
define("_SOMBACKADMIN","Back to Menu administration");
define("_SOMSUCCESS","Your block has been successfully updated !");
define("_SOMGOADMIN","Configure your Menu");
define("_SOMUPGRADESUCCESS","Your Menu was successfully upgraded !!");
define("_SOMV1DETECTED","Sommaire parametrable v.1.0 detected !");
define("_SOMCLICKTOUPGRADE","To upgrade your menu, click");
define("_SOMHERE","HERE");
define("_SOMWARNINGDELETECAT","Are you sure you want to delete the category");
define("_SOMGENERALOPTIONS","General Options");
define("_SOMDISPLAYMEMBERSONLYMODULES","Display of 'members only' modules");
define("_SOMCATEGORIESCLASS","Class for categories' names");
define("_SOMDISPLAYMODULENORMAL","Normal (always displayed)");
define("_SOMDISPLAYMODULEWITHICON","Displayed with icon");
define("_SOMDISPLAYMODULEWITHICONFORVISTORS","for visitors");
define("_SOMDISPLAYMODULEINVISIBLE","Invisible for visitors");
define ("_SOMYES","Yes");
define ("_SOMNO","No");
/* Added by Sommaire Paramétrable (Customize Menu) v2.1 installation script */
define("_SOMMAIREREMARKSTWO","<br>- You can create a popup, to do so, enter in the field 'url' of external link :<br>"
." <i>javascript:window.open('http://www.url.com','popup_sommaire','directories=no,menubar=no,status=no,location=no,scrollbars=no,resizable=no')</i><br>"
."<br> You can modify display options (display scrollbars, etc...)<br>"
." See <a href=\"http://www.toutjavascript.com/savoir/savoir15.php3\">Tout Javascript - les popups</a> for more details.<br><br>");
define("_SOMMAIREHR","Horiz. rule");
define("_SOMBOLD","Bold");
define("_SOMLISTBOX","Drop down box");
define("_SOMSENDTOHAVEMORE","Save your modifications to add new links.");
define("_SOMDISPLAYCLASSES","Display :");
define("_SOMMODULESCLASS","CSS class used for modules/external links");
define("_SOMAUTODETECTNEW","Automatic detection of news");
define("_SOMSINCE","New for");
define("_SOMNBDAYS","days");
define("_SOMDYNAMICMENU","Dynamic menu");
define("_SOMJSSAVEBEFORE","Do you want to save your modifications before deleting this category ?");
define("_SOMEDITLINKTITLE","Edit a link...");
define("_SOMMOREOPTIONS","More options");
define("_SOMCLASS","CSS class");
define("_SOMATTENTIONMOREOPTIONS","<strong>Attention !</strong><br>If you modify in sommaire's admin panel the general CSS class for categories, or for modules/links, or the time 'New!' icon is displayed, the specific values of a category or a module/link will be overwritten.");
define("_SOMMOREOPTIONSUCCESS","Your modifications are applied !");
define("_SOMSENDTOVALIDATE","(You should validate all modifications in the main sommaire panel for your modifications to be finally confirmed)");
define("_SOMCLOSE","Close the window");
define("_SOMTARGETBLANK","Link opened in a new window. To open in the same window, begin url with HTTP:// (uppercase)");
define("_SOMTARGETNONE","Link opened in the same window. To open in a new window, begin url with http:// (lowercase)");
define("_SOMNOTABLEPB","Sommaire Parametrable is unable to access its database tables.Please verify that you have installed correctly, and READ THE FAQ !");
/* End of Sommaire Paramétrable v2.1 modifications */
/* Sommaire Parametrable v3.0 */
define("_SOMIMGNEWTITLE","Click to Show/Hide the NEW icon");
define("_SOMADMINIMGDROPDOWN","Click to choose an image for this category");
define("_SOMADMINIMGDROPDOWNCAT","Click to choose an image for this link");
define("_SOMJSFIXFORIE1","The drop-down lists below disappear on Internet Explorer. This is NORMAL : it's a workaround to avoid an IE bug. For the sake of the web and a better internet experience, please use another browser (Opera, Firefox,...)");
define("_SOMHIDE","Hide");
define("_SOMMOVEUP","Click to move the link upwards");
define("_SOMMOVEDOWN","Click to move the link downwards");
define("_SOMREMOVESUBLEVEL","Click to remove this sublevel");
define("_SOMADDSUBLEVEL","Click to add a sublevel");
define("_SOMSCHEDULETITLE","Schedule the display");
define("_SOMSCHEDULE","Click to hide or schedule the display");
define("_SOMTEXTONLY","Text without url");
define("_SOMMONDAY","Monday");
define("_SOMTUESDAY","Tuesday");
define("_SOMWEDNESDAY","Wednesday");
define("_SOMTHURSDAY","Thursday");
define("_SOMFRIDAY","Friday");
define("_SOMSATURDAY","Saturday");
define("_SOMSUNDAY","Sunday");
define("_SOMDISPLAYFROM","Display from");
define("_SOMDISPLAYTO","to");
define("_SOMSCHEDULEIT","Schedule");
define("_SOMDISPLAYONLYTHESEDAYS","Only on");
define("_SOMSHOWADMIN","Extended Administrator view");
define("_SOMNOTDYNAMICCAT","Always open");
define("_SOMCENTER25","Center");
/* End of Sommaire Parametrable v3.0 modifications */
Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
Posted:
Tue Mar 03, 2009 4:10 pm
The correct fix would be to go into install-sommairev3.php and find
Code:
/* Installation script for Sommaire Paramétrable v3.0 by
Only registered users can see links on this board! Get registered or login to the forums!
*/
require("config.php");
change to
Code:
/* Installation script for Sommaire Paramétrable v3.0 by
Only registered users can see links on this board! Get registered or login to the forums!
*/
define('INCLUDE_PATH', '');
require("config.php");
then run the install script and install. This will add the language edits for you. I was just thinking about defining the include_path and I realized I had over complicated the process. Old age and late nights tend to mess with memory.
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Wed Mar 04, 2009 6:44 am
Pretty sure the version off my site works as I use it.
I am just glad there are some developers working on creating replacements for this thing. I love the tool, have used it for over 5 years, but its just way too old and clunky now and no support. I think we'll see a few good competing replacements this year.
Pretty sure the version off my site works as I use it.
I am just glad there are some developers working on creating replacements for this thing. I love the tool, have used it for over 5 years, but its just way too old and clunky now and no support. I think we'll see a few good competing replacements this year.
Thanks montego!
I hope you are right about competing replacements!
I see on your website that your Sommaire wraps the titles and categories as well.
I have to work on this as I was able to get an earlier version not to wrap through the theme css, but haven't been able to do so with 3.0, but I am sure there is a way.
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Thu Mar 05, 2009 6:52 am
It is because Sommaire isn't using what it really should be, the <ul></ul> tags. If it was, that could all be controlled via CSS, even the image being used. Like I said, this thing is way old and way out-of-date with the times. But, its still the best thing out there that I know of to do what I need it to do. I will switch in a heartbeat once someone has created a replacement written in jQuery and related plug-ins with the same functionality.
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Thu Mar 05, 2009 8:21 pm
If you can figure out where and how and still maintain all the flexibility that the block has built in, all power to you. I, for one, don't have time to figure out all the variable names and comments that are written in French. I'd rather re-write the thing and use a more contemporary JS library that would eliminate about 70% of the code...
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum