51
playsome
Re: Trying to get extcal minical block template to validate
  • 2011/12/31 19:29

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hi peekay, thanks for your reply

heres the full code for the minical template

<div id="miniCalWrapper">
<
table class="calMinical" style="width:100%; text-align:center; vertical-align:middle;" summary="Events for this month">
    <
tr class="miniCalNavigMonth">
        <
td colspan="7"><h3 class="miniCalNavigMonthName"><a href="<{$xoops_url}>/modules/extcal/calendar-month.php?<{$block.navig.uri}>"><{$block.navig.name}></a></h3></td>
    </
tr>
    <
tr class="miniCalWeekDays">
        <{foreach 
item=day from=$block.weekdayNames}>
        <
th><{$day}></th>
        <{/foreach}>
    </
tr>
    <{foreach 
item=weeks from=$block.tableRows}>
    <
tr class="miniCalDates">
        <{foreach 
item=day from=$weeks.week}>
        <
td>
            <{if !
$day.isEmpty}>
                <{if 
$day.haveEvents}>
                    <
a href="<{$xoops_url}>/modules/extcal/day.php?year=<{$weeks.weekInfo.year}>&amp;month=<{$weeks.weekInfo.month}>&amp;day=<{$day.number}>"><{/if}><{$day.number}><{if $day.isEvent}></a>
                <{/if}>
            <{else}>
                &
nbsp;
            <{/if}>
        </
td>
        <{/foreach}>
    </
tr>
    <{/foreach}>
</
table>
<
div id="miniCalMoreLinks">
<
a href="<{xoAppUrl /modules/qpages/}>">What's On</a> | <a href="<{xoAppUrl /modules/extcal/}>">All Events</a>
</div>
</div>


I have modified the template so it is possible I have messed soemthing up but usually if there is an opening or closing <{if}> missing I usually get a smarty error but there is no errors in this case except when validating.

Thanks for your help and happy new year.



52
playsome
Trying to get extcal minical block template to validate
  • 2011/12/31 0:10

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hi All,

I am in the process of trying to get my site to validate as xhtml transitional, I think my theme is fine but I am having trouble with the extcal_block_minical.html template.

When i run the validator I get a lot of end tag for 'a' omitted errors but when I look at the source of the page using firebug I can see that table cells with events (the date is a link) are fine and the closing </a> does not appear to be missing.

I think the problem stems from this piece of code:

<a href="<{$xoops_url}>/modules/extcal/day.php?year=<{$weeks.weekInfo.year}>&amp;month=<{$weeks.weekInfo.month}>&amp;day=<{$day.number}>"><{/if}><{$day.number}>
                    <{if 
$day.isEvent}></a>


and more specifically the smarty tag <{if $day.isEvent}>, by the looks of it the code is saying if the day is an event then close the a tag, looking at the rest of the code I cant seem to work out what the smarty tag does, however removing it and the closing if or putting the tag after the closing </a> seems to break the layout of the table and strethches the table cells.

It seems as if the smarty tag is causing the closing </a> to not show to the validator but I can see it in the source code. Take a look for yourself at www.whitlawburncrc.org.uk run the homepage through the markup validator.

Does anyone know of a solution to fix this problem or know what that smarty tag is for and a way to remove it without breaking the entire layout?

Thanks




53
playsome
Make a custom static content module searchable
  • 2011/11/5 3:32

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hello all,

I have a quick question. I have a couple of static content modules created using the dummy module, the content of the modules is not in the database and there for not searchable, is there a quick way to add the module into the DB to make it searchable by title? so that the title and link to the module comes up in the search results if a user searches for the name of the module?

Thanks



54
playsome
Re: News Module - Facebook like Button under text
  • 2011/9/22 16:12

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


You can add a FB Like button directly into the module template, this is the code I have for adding a like button to the article module

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<{$xoops_url}>/modules/article/view.article.php<{$smarty.const.URL_DELIMITER}><{$article.id}>" layout="button_count" show_faces="false" width="80"></fb:like>


To use FBML i believe you need a developer account or you can use iframe version
so for the news module you would have something like this:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" layout="button_count" show_faces="false" width="80"></fb:like>


just replace the smarty tags with actual news module smarty tags to build the URL of the article.



55
playsome
Re: pictures in news not appear in blocks
  • 2011/9/18 15:02

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hi, you can use the Article Module for news also and it has functionality you desire, article picture in blocks, index page, article page, you can see a working example on my site here



56
playsome
Re: HEEEELP! [customization]
  • 2011/9/2 22:45

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Personally, I think article is the superior module for news, mainly based on its features and layout. Like having an article image which can display in the block, image caption, choice of different layouts, etc. I don't think the news module has the article image thing like article does, look at news and blog sites most have images displaying next to the title of the article in some sort of block.

Alas like so many good xoops modules it was left in RC stage with bugs and incomplete features, sadly this seams to be the story of xoops modules but instead of a developer taking the initiative to fix the article module what we get is numerous clones of the news module with very little added features or useful functionality.



57
playsome
Re: HEEEELP! [customization]
  • 2011/9/1 15:20

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Hello,

for news I would take a look at the article module

I have used it on this site http://www.whitlawburncrc.org.uk as you can see it shows image s next to the article, I have customised most of the templates to display the news/images as I wanted, it is not difficult to do just html and css.

The article module has blocks, for example recent news block, which you could customise then clone via xoops backend and show article from each category in the cloned blocks.

There is probably documentation/tutorials somewhere but im not sure where, the best thing to do is to install wamp or xamp for local testing and edit templates and css till you get what you want.

As for a theme take a look at the default xoops theme and practice modifying that, thats how i started doing custom themes.



58
playsome
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2011/8/21 21:54

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Heres my wishlist for a 2.6 branch

1. URL rewriting in core, at least removal of /modules/ but must be simple (radio button) and not have to still hack any files.
2. Better image manager with search functionality, option to insert images as HTML as you cant insert alt attribute with bbcode (i dont think), no alt tags is not good for seo or accessiblity.
3. Add description to custom block, for example if you dont add a title it can be difficult to find that block in the list of you have a lot of custom blocks
4. Perhaps a way to append a class to a block & title from the admin side to create custom css rules for a specific block.

That's all I can think of right now.



59
playsome
Re: Xoops cache and stylesheets :-(
  • 2011/8/18 18:29

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


I would like to know an ETA on a fix for this issue as well, it still happens with xcgal even if only cached for 30 seconds.

It does not seem to happen with all modules only some so perhaps it is the way in which developers are inlcuding the css file in php code?

One solution is to use @import in the theme css file as mentioned above, another one is to search the modules files for the included css file, remove all reference to the external css files from the module code and include something like this in the main theme.html

<{if $xoops_dir == 'module_name'}>
<
link href="path/to/module/cssfile" type="text/css" rel="stylesheet" />
<{/if}>


Could a xoops developer provide the absolute definate way to include an external css file in a modules php code?

Cheers



60
playsome
Re: Re-designed website for a local community organisation
  • 2011/8/6 13:43

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Of course I'll share them, as soon as i get home I'll zip them up.

I'll include css files and images ive used, only thing is the CSS for the modified extcal module is in the theme folder along with the images but im sure it would be easy enough to integrate into another site.




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 17 »



Login

Who's Online

84 user(s) are online (32 user(s) are browsing Support Forums)


Members: 0


Guests: 84


more...

Donat-O-Meter

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

Latest GitHub Commits