71
trspice
Re: Need a hack to use HTML editor for Xcgal
  • 2007/9/25 20:01

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Just checking in to see if anyone has figured this. If it can't be done, is there a bbcode that I can use to add HTML to the DHTML editor?
There's nothing but science....
The Reggae Album



72
trspice
Need a hack to use HTML editor for Xcgal
  • 2007/9/25 2:38

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Does anyone know how to hack Xcgal so that the HTML editor (tinyeditor) show as the images text editor instead of the DHTML editor?
There's nothing but science....
The Reggae Album



73
trspice
Re: How can I add an include file to module template?
  • 2007/9/25 2:30

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


rasme.. thanks for the correction :)
There's nothing but science....
The Reggae Album



74
trspice
Re: How can I add an include file to module template?
  • 2007/9/24 20:26

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I've figured it out. I had to add it to the template list in file xoops_info.php of the module and then update the module in the admin.
There's nothing but science....
The Reggae Album



75
trspice
How can I add an include file to module template?
  • 2007/9/24 20:04

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I want to add an include file command to a template of xcgal module but can't figure it out. I tried the standard XOOPS method but the page won't show. It seems the file must be registered with the module first but I don't know where to register it.

This is the code I see being used to include file <{include file="db:xcgal_thumb.html" thumb=$thumbs[i]}>

Please inform how to do this. Thanks
There's nothing but science....
The Reggae Album



76
trspice
Re: Catalog module search - Any available?
  • 2007/9/22 19:31

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Billy, I haven't yet looked through your 2005 posts but will certainly make the time to search.

Xman04, I did experiment with Mastop Publish but it required manual creation of many pages and also manual linking.

The XCgal module has turned out to be very effective and very simple. The built in search tool is perfect as it searches only within xcgal and looks at image name, assigned keywords and description. The negative though is since there is no crosslinking, when I add same events to multiple categories, the search returns multiple results of the same event. I can live with that though.

A problem I now have is I have TinyEditor module installed but it won't show as the text editor in xcgal. Only the DHTML editor is available and I need to place an IFRAME within the description. Is there a method to post HTML using the DHTML editor or is there a hack to make TinyEditor show up? I tried [html]code[/html] but nothing happend.
There's nothing but science....
The Reggae Album



77
trspice
Re: Catalog module search - Any available?
  • 2007/9/22 1:35

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Billy, that is what I was trying to achieve. Only I want it to work with Xoops. Does it cross list?

I have done some layman hacking and got the thumb image to be bigger.

I need the feature thumb to be 244px wide so I increased the value in the xcgal admin. Ofcourse that brought all thumbs to that size so I had to apply a style attribute to the other thumb display templates of xcgal which keeps them at 80x100.

There are negatives with this though. The page which displays an album's thumbnails has increased load time due to bigger file sizes of the thumbs though visually small. Because of this I would still like to properly hack the operational coding to make just that feature block show bigger images, so if someone has a solution please let it be known.

You can take a looksee at how it is functioning. The left top column has the xcgal Static Thumbnals block displaying 2 images randomly on each page load. The top center has the Meta albums block. It is not yet live so there is no domainhttp://69.72.214.2/~thatswzu/index.php
There's nothing but science....
The Reggae Album



78
trspice
Re: Catalog module search - Any available?
  • 2007/9/21 22:05

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Well Formulize was turning out to be a lot of work and to modify the zencart module is out of my capabilities so I went with a cloned XCgal module.

It does most of what I need including adding keywords and description for each event but I have to add events multiple times to related categories to appear as crosslinked. A bit tedious but I can live with that until the ideal module is produced.

I would like to do a little hack though. XCgal has a feature that displays a block which shows a random thumbnail and I want to increase the size of just those images, separately from the config settings in the xcgal admin which is 100px.

I looked at xcgal/blocks/xcgal_blocks.php and see the following
$module_handler= & xoops_gethandler('module');
    
$eventModule $module_handler->getByDirname('event');
    
$config_handler =& xoops_gethandler('config');
        
$eventConfig =& $config_handler->getConfigsByCat(0$eventModule->mid());
        
$block = array();
        if (
count($pic_datas) > 0) {
                foreach (
$pic_datas as $key => $row) {
                        
$i++;

                        
//$image_size = compute_img_size($row['pwidth'], $row['pheight'], $xoopsModuleConfig['thumb_width']);

                        
$thumb_list[$i]['pos'] = $key $key $i $options[5];
                        
$thumb_list[$i]['image'] = "<img src="".XOOPS_URL ."/modules/event/".$eventConfig['fullpath'].str_replace("%2F","/",rawurlencode($row['filepath'].$eventConfig['thumb_pfx'].$row['filename']))."" class="image" border="0" alt="{$row['filename']}" />";
                        
$thumb_list[$i]['caption'] = $row['caption_text'];
                        
$thumb_list[$i]['pid'] = $row['pid'];
                        
$thumb_list[$i]['link_tgt']="displayimage.php?pid={$row['pid']}&amp;album={$album}&amp;pos={$key}&amp;cat=";
                    
$thumb_list[$i]['i']= $i;

                }

                
//$xoopsTpl->assign('no_img',0);
                //theme_display_thumbnails($thumb_list, $thumb_count, $album_name, $album, $cat, $page, $total_pages, is_numeric($album), $display_tabs);
                
$block['pics'] = $thumb_list;
                
$block['position'] = $options[2];
                
$block['wh'] = $options[3];
        }
        return 
$block;
}


It seems to relate to the thumb sizes but it is affecting all thumb sizes and I don't want to increase any other. Does anyone have any expertise on this module and can give a suggestion how to make this work? Thanks.
There's nothing but science....
The Reggae Album



79
trspice
Re: How to add addtional link
  • 2007/9/21 1:23

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


There's nothing but science....
The Reggae Album



80
trspice
Re: Making tiny the default xoops editor...
  • 2007/9/21 1:08

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


gandalf29, do you have the TinyEditor complete package installed. It's not just the module. You need class/xoopseditor/tinyeditor.
There's nothing but science....
The Reggae Album




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 19 »



Login

Who's Online

104 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 104


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