21
ianez
fmcontent 1.02 Rc2
  • 2011/4/19 17:48

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


first of all.. thanx Voltan for the fixings..
following the comments on the the release news I continue here the debug..

-About missing space..
Quote:
I have it. for example I have title like this : Test topic : Test content
can you shear a photo from your problem?

the missing space is fmcontent_legacy_content.html template line 34

-Breadcrumb
Actually to have somenthing similar to breadcrumb it's enough to create a first line in page with home : topic_title : Page_title and then in the following line a bigger page_title with headings.. I think some template change is enough for the moment,
could be great to have an option in topic management to decide if showing or not showing breadcrumb

-topic index page layout look messy
it looks messy in the sense that if you have a page with image inside the topic index shows the default page and then the following item (news, photo, or list view) breaks into the previous div..
this happen with floating objects inside divs.. I think a clearing div is missing.. but anyway there's a css hack for this..

- content page block shows a static page even if that page has become dynamic
actually I have a page showed in this block.. this page was static and later I've changed it into dynamic.. and it stil shows.. as you said I was expecting that only static page where loaded here..

-Module index page, Default topic page and Topic url rewrite
I put all togheter because if this has to be a plain content module topic is not only a container but can also be a part of the site structure.. and it could be great if admin could choose if the topic page is a page made of content or simply a list of the content it holds..
So talking practically there should be an option to use a page as the module index page different from the option to set it as default for the topic..
Actually for example I was not able to show a full page for a topic index without any other page
For this reason also I think that if you work on rewrite also topic should be rewritten.. it may be confusing that category is rewritten only in page url

-About url rewrite..
with a small hack I've reached an url rewrite like:
mysite.com/topic_title/page_title
so I've cleared any extension (html) and page-id number..
the url are written rightly in page but when I click on link it says I dont' have the permission to see that page.. probably I'm missing something in the htaccess rule.. any idea?

this post is so long so I'll tell you later about templates ideas and more about url rewrite
is actual fmcontent package upadated in tne release news?

thanx
Ian






22
ianez
Re: jquery being loaded multiple times
  • 2011/4/19 16:26

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


yeah I've done all thise step...
I was trying to find a solution which did not need manual hacking..
I think superfish menu has anyway some conflicts with lightbox..

I can't manually add
$xoTheme->addScript("browse.php?Frameworks/jquery/pluginsjquery.ui.js");
to menu theme because the path is written in skin_version.php file and then processed by /blocks/mymenus_block.php and this path is processed correctly using addScript method..
as a partial solution I've written in skin_version.php a path like
../../../../browse.php?Frameworks/jquery/jquery.js
this works but return a very strange path in the source..

my impression is that when using the module_header injection of jquery each module request came before the theme request, infact the other jscript need for menu are loaded 'before' the jquery declaration.. this leading to errors..

ps Voltan.. in fmcontent when opening a dynamic page all jscript is broken and I receive the error from firebug:
$("#content_1").editable is not a function (where 1 is the id of the page as you know..), can't understand why jquery is not working here.. even if I disable mymenu module..

Ian



23
ianez
Re: jquery being loaded multiple times
  • 2011/4/19 15:08

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


I've discovered that the jscript are loaded via addScipt method..
so I've changed the path of the mentioned skin to go on browse.php?Frameworks/jquery/jquery.js..
(this should be used for avoiding duplicates and corrected in all mymenu skins..)
but with fmContent the lightbox is not working anyway..

Ian



24
ianez
Re: jquery being loaded multiple times
  • 2011/4/19 14:23

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


hi Voltan,
the problem is exactly that the code of mymenu skins call a jquery instance improperly inserting a link to a js folder in the module not using the addScript method..
so when I use a mymenu block with jquery and I open a fmcontent page with uses lightbox the result is this

<script src="http://localhost/xoops250/include/xoops.js" type="text/javascript"></script>

<
script type="text/javascript" src="http://localhost/xoops250/class/textsanitizer/image/image.js"></script>
<
script src="http://localhost/xoops250/modules/mymenus/skins/superfish/../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<
script src="http://localhost/xoops250/modules/mymenus/skins/superfish/../../js/hoverIntent.js" type="text/javascript"></script>
<
script src="http://localhost/xoops250/modules/mymenus/skins/superfish/../../js/superfish.js" type="text/javascript"></script>
<
script src="http://localhost/xoops250/browse.php?Frameworks/jquery/jquery.js" type="text/javascript"></script>
<
script src="http://localhost/xoops250/browse.php?Frameworks/jquery/plugins/jquery.lightbox.js" type="text/javascript"></script>
<
script src="http://localhost/xoops250/browse.php?Frameworks/jquery/plugins/jquery.ui.js" type="text/javascript"></script>


as you may see the jquery instance of the skin breaks the following.. (lightbox is not working in this case..).. how can I call jscriptin mymenuskin using the right addScript method?

Ian



25
ianez
Re: jquery being loaded multiple times
  • 2011/4/19 8:06

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


the code works but I've a problem with mymenu module...
the code for the jscript menu in the module's header is loaded before the jquery call made by theme..
this creating an error in page loading..

I think it's a 'bug' related to how the skins load jscript code (which is not via the addScript method,
any idea on how can I solve this?

Ian



26
ianez
Re: Jquery check on xoops 2.5.x
  • 2011/4/19 7:55

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


thanx for the suggestion,
I'll continue that discussion

Ian



27
ianez
Re: javascript calendar date format localization
  • 2011/4/18 18:12

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


done
https://sourceforge.net/tracker/?func=detail&aid=3288975&group_id=41586&atid=430840



28
ianez
file repository? any idea?
  • 2011/4/18 16:11

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


Hi,
it's any blue move planned for classic repository manager as mylink or pddownloads (which works with 2.5.x as far as I know..)
is TDMDonwloads supported/developed anymore?

Thanx
Ian



29
ianez
Jquery check on xoops 2.5.x
  • 2011/4/18 15:12

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


Hi there,
in the last days I've had some problem on a new site I'm working on because many modules and themes in xoops are now loading jquery and some of them the jquery UI also..
Infact it may happen that jquery is called in a theme, for some special blocks or in modules.. this may lead to conflict or malfunctioning of the jscript codes..
for example using fmcontent wth a page holding an image with the suico theme lead to malfunction in lightbox..

so there's a way, or is planned a way, for xoops to avoid double instantion/request of jquery?

Ian



30
ianez
javascript calendar date format localization
  • 2011/4/7 15:34

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


don't know if this is the right place for posting..
This is a sort of bug report and a solution proposal at the same time.

Actually the jscript calendar shows a date in the american format: y-mm-dd
I was not able to find where to change language files for having other format like for example: dd-mm-y
Now I've find a fix that works for me and may be could be inserted in the next to come 2.5.1 release.

A)in include/calendarjs.php changed lines 86/87 from:
Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd";
Calendar._TT["TT_DATE_FORMAT"] = "y-mm-dd";


to
Calendar._TT["DEF_DATE_FORMAT"] = "<?php echo _CAL_DEF_DATE_FORMAT;?>";
Calendar._TT["TT_DATE_FORMAT"] = "<?php echo _CAL_TT_DATE_FORMAT;?>";


B) in language/[my_language_name]/calendar.php
added in the end two lines
define("_CAL_DEF_DATE_FORMAT""dd-mm-y");
define("_CAL_TT_DATE_FORMAT""dd-mm-y");


this will give a clean localization option to all translators also for jscript calendar, provided that no other solution has been developed

let me know your opinion
Ian




TopTop
« 1 2 (3) 4 5 6 ... 12 »



Login

Who's Online

217 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits