1
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/29 19:51

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


Have just found an alternative method which may work better:

I Moved the slider code into a separate file then enclosed it like this in the main theme.html file so it only appears on the home page
<!-- Slider -->
<{if 
$smarty.server.PHP_SELF=='/index.php'}>
<{include 
file="$theme_name/theme_slider.html"}>
<{/if}>
<!-- 
END Slider -->

I then removed this line from the <head> section of theme.html
<script src="<{xoImgUrl js/jquery.jcarousel.js}>" type="text/javascript"></script>

and added it to the end of the slider file (after the last </div>
</div>
<
script src="<{xoImgUrl js/jquery.jcarousel.js}>" type="text/javascript"></script>

This should allow any module to work (I hope!!!)

Alan



2
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/29 19:26

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


Just tried something 'simple' and seems to work.

In the theme.html file locate this
<!-- customized header contents -->
<{
$xoops_module_header}>


Simply move this above the Jquery calls in the theme so it looks like this
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />         
<!-- 
customized header contents -->     
<{
$xoops_module_header}>   
<
script src="<{xoImgUrl js/jquery-1.7.min.js}>" type="text/javascript"></script>   
<
script src="<{xoImgUrl js/prettyCheckboxes.js}>" type="text/javascript"></script>

Not sure if this the best way but it works for the modules I'm using so far.

Alan



3
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/29 19:04

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


OK - I think the Jgrowl redirect is overwriting the theme Jquery.

I get this error with Jgrowl enabled
Quote:
$("#slider").jcarousel is not a function
onAfterAnimation: function(c, o, i, s)
functions.js (line 21)

As #slider IS a function (that works with Jgrowl off) there must be something overwriting the theme Jquery or the theme Jquery is using the same Id as Jgrowl for something.

Anyone have any ideas on a solution or how to check the Id's and change them - my Jquery knowledge is very limited.

I will 'muck about' with this but any help would be greatly appreciated.

Thanks
Alan



4
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/27 20:55

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


@Mamba

Quote:
I am not a guru in this area, but it seems to me that the other way around would be better, i.e. to adjust the theme so it would use the XOOPS jQuery, instead of the one from slider.

Totally agree. This is very much a 'quick fix' at the moment as I'm being pushed to get a site launched ASAP.
I am looking at 'fixing' the theme side - this 'breaking' of the jquery actually lets the site run in the meantime.

Already have turned Jquery off in Extgallery.



5
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/27 20:24

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


Well some good news on this (sort of!)

I tweaked the file core.php located in \modules\system\preloads.

By commenting out this line:
$GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js');

found under the following 2 functions:-
function eventCoreHeaderAddmeta($args)
function eventSystemClassGuiHeader($args)

This stopped the Jgrowl reloading Jquery and overwriting the theme Jquery for the slider.

Not pretty but seems to work.
I'm sure there is a guru who can do a much better job than I can.

Alan

EDIT: doing this also affects the admin side - no jgrowl messages
still a little more work to do.......



6
Alanbax
Re: Host Change problems
  • 2012/6/27 19:25

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


@spyblaster91
I had a similar issue a while back.
Discovered that the template had corrupted and part of the file was missing.

Try pasting this into the file extgallery_index.html and see if it helps.
Alan

<div class="extgallery">   <a title="<{$extgalleryName}>" href="<{xoAppUrl modules/extgallery/}>"><{$extgalleryName}></a>    <table class="outer">     <tr>       <th><{$lang.categoriesAlbums}></th>       <th class="txtcenter"><{$lang.nbAlbums}></th>       <th class="txtcenter"><{$lang.nbPhotos}></th>     </tr>     <{foreachq item=child from=$cats}>     <tr class="<{cycle values="even,odd"}>">       <{if $child.cat_nb_album == 0}>         <td colspan="2">       <{else}>         <td>       <{/if}>        <!-- Category/album image -->       <{if $disp_cat_img == }>         <{if $child.cat_imgurl != "" }>           <div class="catThumb">             <{if $child.cat_isalbum}>               <a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-<{$display_type}>.php?id=<{$child.cat_id}>"><img src="<{$child.cat_imgurl}>" alt="<{$child.cat_name}>" title="<{$child.cat_name}>" /></a>             <{else}>               <a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-categories.php?id=<{$child.cat_id}>"><img src="<{$child.cat_imgurl}>" alt="<{$child.cat_name}>" title="<{$child.cat_name}>" /></a>             <{/if}>           </div>         <{else}>           <{if $child.photo}>             <div class="catThumb">               <{if $child.cat_isalbum}>                 <a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-<{$display_type}>.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_title}>" title="<{$child.photo.photo_title}>" /></a>               <{else}>                 <a title="<{$child.cat_name}>" href="pu<{$extgalleryName}>blic-categories.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_title}>" title="<{$child.photo.photo_title}>" /></a>               <{/if}>             </div>           <{/if}>         <{/if}>       <{else}>         <{if $child.photo}>           <div class="catThumb">             <{if $child.cat_isalbum}>               <a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-<{$display_type}>.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_title}>" title="<{$child.photo.photo_title}>" /></a>             <{else}>               <a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-categories.php?id=<{$child.cat_id}>"><img src="<{$xoops_url}>/uploads/extgallery/public-photo/thumb/thumb_<{$child.photo.photo_name}>" alt="<{$child.photo.photo_title}>" title="<{$child.photo.photo_title}>" /></a>             <{/if}>           </div>         <{/if}>       <{/if}>        <{if $child.cat_isalbum}>         <h2><a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-<{$display_type}>.php?id=<{$child.cat_id}>"><{$child.cat_name}></a></h2><br /><h3><{$child.cat_desc}></h3></td>       <{else}>         <h2><a title="<{$child.cat_name}>" href="<{xoAppUrl modules/extgallery/}>public-categories.php?id=<{$child.cat_id}>"><{$child.cat_name}></a></h2><br /><h3><{$child.cat_desc}></h3></td>       <{/if}>       <{if $child.cat_nb_album != 0}>       <td class="txtcenter"><{$child.cat_nb_album}></td>       <{/if}>       <td class="txtcenter"><{$child.cat_nb_photo}></td>     </tr>     <{/foreach}>       <!--<tr class="even">       <td><a href="user-categories.php">User categories</a><br />You can find here all user categories</td>     </tr>-->   </table>    <{if $show_rss}>   <div id="rss">     <a href="<{xoAppUrl modules/extgallery/public-rss.php}>" title="<{$smarty.const._MD_EXTGALLERY_RSS}>">       <img src="<{xoAppUrl modules/extgallery/images/feed.png}>" alt="<{$smarty.const._MD_EXTGALLERY_RSS}>" />     </a>   </div>   <{/if}>    <{include file='db:system_notification_select.html'}> </div>



7
Alanbax
Re: smartfaq 1.11 & Xoops 2.5.5
  • 2012/6/25 20:59

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


Hi amin_ts

Could you turn on debugging and post the errors.
Will help in trying to resolve this issue.




8
Alanbax
Re: Smallworld and XIM - features not working
  • 2012/6/25 20:08

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


Culex

I've just finished testing and all seems well.

Very many thanks for all your help and patience with this.
Both modules are now running well.

Alan



9
Alanbax
Re: problems in the slide of XDScheme theme "using images"
  • 2012/6/20 22:37

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


There also appears to be an issue with the slider and jgrowl redirect.
Sometimes it looks like with jgrowl active the slider 'breaks'. Turning jgrowl off stopped this behaviour.

I'll look at this but I'm not a jquery expert so may take a while.



10
Alanbax
Re: Smallworld and XIM - features not working
  • 2012/6/18 20:42

  • Alanbax

  • Just popping in

  • Posts: 23

  • Since: 2012/4/21


Great

Thanks Culex.

Link sent

Alan




TopTop
(1) 2 »



Login

Who's Online

152 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

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

Latest GitHub Commits