Welcome, Guest
Username Password: Remember me

Possible bug in v2.1.7 Date and Time module
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Possible bug in v2.1.7 Date and Time module

Possible bug in v2.1.7 Date and Time module 2 years, 6 months ago #176

  • moderntalking
Hi, first of all congratulation for this module.

I am a problem with text color.
On another post you suggest to add this line on CSS:

#ty2udate {color:#fff;}

but it not work.

After an ispection with firebug/firefox, i see this:
----------------------------
<span id="ty2udate10022"/>
Venerdi, 30 Ottobre 2009
----------------------------

If Pre-text and Post-text parameters contain "a" and "b"
respectively, the result is:

----------------------------
a
<span id="ty2udate10022"/>
bVenerdi, 30 Ottobre 2009
----------------------------

To resolve, i am modified your code in this manner:

....original
echo $pretext."<span id=\"ty2udate" . $module->id . "\"></span>".$posttext;
....modified
echo $pretext."<span id=\"ty2udate" . $module->id . "\">";

and
....original
if($align != "0"){
echo "</div>";
}
....modified
echo "</span>".$posttext;
if($align != "0"){
echo "</div>";
}

The line on the CSS file is modified
#ty2udate10022 {color:#fff;}

and now the date-time text are of desidered color.

After an ispection with firebug/firefox, now i see this:
----------------------------
<span id="ty2udate10022"Venerdi, 30 Ottobre 2009</span>
----------------------------
If Pre-text and Post-text parameters contain "a" and "b"
respectively, the result is:
----------------------------
a
<span id="ty2udate10022"Venerdi, 30 Ottobre 2009</span>
b
----------------------------

Excuse me for a bad english.
Many tanks for your attention.
Michele

Re: Possible bug in v2.1.7 Date and Time module 2 years, 6 months ago #177

  • ryan
  • OFFLINE
  • Administrator
  • Posts: 178
  • Karma: 8
In the module I had to add a # to the end of everything in order to allow for multiple instances of the module. Therefore you will have a different number after ty2udate for every instance of the module that you create. I will try to make this more clear to begin with.

Alternatively you could add pretext and post text params such as <div class="date"></div> And then add CSS such as .date span {color:#fff;} it will make your date white... unless you have the #ty2udate10022 in there still but you can remove that from the CSS.

So in the end the output code will be something like this:

<div class="date">
<span id="ty2udate10022">30th October 2009</span>
</div>

That way you could copy as many date div tags as prefix and postfix as you wanted to and it wont conflict because you can have multiple of the same class on a page which CSS can address but you can only have one of any id for the purposes of javascript.

So thats why it has unique number ids in the first place on the end of each ty2udate.
Joomla template developer, Joomla enthusiast, Linux user, programmer, artist

Re: Possible bug in v2.1.7 Date and Time module 2 years, 6 months ago #178

  • ryan
  • OFFLINE
  • Administrator
  • Posts: 178
  • Karma: 8
And thank you for fixing the PHP output!!! I will add that in and make a new release with it for you.
Joomla template developer, Joomla enthusiast, Linux user, programmer, artist

Re: Possible bug in v2.1.7 Date and Time module 2 years, 6 months ago #181

  • moderntalking
Hi, Ryan

Ryan wrote:
Alternatively you could add pretext and post text params such as <div class="date"></div> And then add CSS such as .date span {color:#fff;} it will make your date white... unless you have the #ty2udate10022 in there still but you can remove that from the CSS.


I am modified my pre-post-text and my css, and is great.


Ryan wrote:
And thank you for fixing the PHP output!!! I will add that in and make a new release with it for you.


Thank you
Michele

Re: Possible bug in v2.1.7 Date and Time module 2 years, 5 months ago #182

  • ryan
  • OFFLINE
  • Administrator
  • Posts: 178
  • Karma: 8
Hey FYI I released a new version 2.1.8 =)
Joomla template developer, Joomla enthusiast, Linux user, programmer, artist

Re: Possible bug in v2.1.7 Date and Time module 2 years, 5 months ago #183

  • moderntalking
Hi Ryan

Thank You for citation on changelog.

Have a nice day.

Michele
  • Page:
  • 1
Time to create page: 0.16 seconds

Live Chat Offline

Blogging with Joomla just got easier...
Try EasyBlog for Joomla! Click the link above to buy EasyBlog Pro for Joomla. Enter your information to pay, then download it and install. There are a bunch of extra modules you can install for it too. There are plenty of options for customization and integration and themes to match your site. They will even help you if you get stuck and install it for you. There are more versions of EasyBlog available here.
Read my review of EasyBlog