61
jurgis
Re: Searching in comments
  • 2004/2/16 0:32

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


well I would try to write some "comments search" hack
I looked around, and as I understand it's the issue of /modules/system

I see 2 alternatives:
1) to add search as in usual module via ./include/search.inc.php

2) to hack recent_comments block in blocks/system_blocks.php
function b_system_comments_show


so now I am confused..

1st way seems to bee more common and systematic
2nd would be faster if I would know where to put query params (I get mixed up among all kinds of handlers )

3) hey, now I remembered xoopsmembers - so probably what I (we) want is xoopscomments module ;).
in members it seems to be
$foundusers =& $member_handler->getUsers($criteriatrue);

in recent coment block important lines I guess are
$criteria = new CriteriaCompo(new Criteria('com_status'
XOOPS_COMMENT_ACTIVE));
    
$criteria->setLimit(intval($options[0]));
    
$criteria->setSort('com_created');
    
$criteria->setOrder('DESC');
    
$comments =& $comment_handler->getObjects($criteriatrue);

but I don't know how to set keyword search criteria
a big "PLEASE" to all experienced-clever-guys



62
jurgis
Re: Searching in comments
  • 2004/2/11 0:05

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


I have the same question ??
in System -> search prefs theres nothing about it..



63
jurgis
Re: error trying to clone a block
  • 2004/2/9 21:29

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


fanx, it helped (at least to go on the ridht way).
and it's not the issue of unique file but of unique function. Because I kept getting "Cannot redeclare b_news_top_show() " untill
I tried to make a wrapper- show and edit functions, like

function b_news_top_show2(($options)) {
b_news_top_show($options);
}

and then assign them. and it worked :).
but only when I reinstalled the module, updates still showed templates generation errors and similar stuff. (maybe, because my testing/hacking site is on XOOPS 2.0)


but I see in news v1.13
the same file and functions for "top read .." and "recent .." blocks
Quote:

$modversion['blocks'][3]['file'] = "news_top.php";
$modversion['blocks'][3]['name'] = _MI_NEWS_BNAME4;
$modversion['blocks'][3]['description'] = "Shows top read news articles";
$modversion['blocks'][3]['show_func'] = "b_news_top_show";
$modversion['blocks'][3]['edit_func'] = "b_news_top_edit";
$modversion['blocks'][3]['options'] = "counter|10|25";
$modversion['blocks'][3]['template'] = 'news_block_top.html';

$modversion['blocks'][4]['file'] = "news_top.php";
$modversion['blocks'][4]['name'] = _MI_NEWS_BNAME5;
$modversion['blocks'][4]['description'] = "Shows recent articles";
$modversion['blocks'][4]['show_func'] = "b_news_top_show";
$modversion['blocks'][4]['edit_func'] = "b_news_top_edit";
$modversion['blocks'][4]['options'] = "published|10|25";
$modversion['blocks'][4]['template'] = 'news_block_new.html';

I am still curious
I looked at wiki HackABlock, but its about some other aspects..
fanx in adwance 4any1 who calms my curiosity



64
jurgis
error trying to clone a block
  • 2004/2/9 13:22

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


ok, I just want the same block on the left column just in other modules.

so I:
1) copy templates/blocks/block.html -> block_clone.html
2) edit in xoops_version (for the sake of clearer understanding - news)
$modversion['blocks'][5]['file'] = "news_top.php";
$modversion['blocks'][5]['name'] = _MI_NEWS_BNAME5."_clone";
$modversion['blocks'][5]['description'] = "Shows recent articles"."_clone";
$modversion['blocks'][5]['show_func'] = "b_news_top_show";
$modversion['blocks'][5]['edit_func'] = "b_news_top_edit";
$modversion['blocks'][5]['options'] = "published|10|25";
$modversion['blocks'][5]['template'] = 'news_block_new.html';

3)update Module

4) go to Admin->System->templates... News -> see a new block in yellow - press "Generate" and get
"Selected file does not exist)" in red

I also tried Uploading it instead of Generating, but then i got Template file news_block_top_clone.html does not need to be installed (PHP files using this template file does not exist).

maybe I shoud read wiki, but I think I'am quite close to doing things well, just dont know some little thing.. please help or link



65
jurgis
probl with WF General Config access
  • 2004/2/5 22:34

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


I am in the group of webmasters, but XOOPS says
Quote:
Sorry, only the Webmaster can change WF-Section's configuration

??
ok, I can go directly to mysql, but ..



66
jurgis
relative positioning with Tigra Menu
  • 2004/2/4 22:02

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


I found Positioning Tigra menu a problem, because U have to give absolute values.
a little hack helped in Opera (
AnchorPosition_getPageOffsetLeft stuff from www.mattkruse.com ) but in Mozilla it still does some unpleasant fun,
and I feel like my way is not the best, because after resizing U have to refresh in order to put it into right place

any suggestions ?

fanx in adwance

ok, I edit my post, 'cause I found some good example, how to deal with (pseudo)relative positioning
http://www.brainjar.com/dhtml/menubar/demo2.html
there is also a very explanatory step-by step tutorial :)

4 others to find this post searching keywords:
dynamic, drop-down, pull-out, pop-up dyna , cascading



67
jurgis
Templates Light (minimalistic templates)
  • 2004/1/24 21:08

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


hi,

1) maybe smb has a set of templates just for essential information:
when date, author, stats, additional descriptios and other meta-data are not needed.
for example, Links item - name (which usually describes well enough) and main stats fit in one row
extra info could be presented in a ToolTip-manner (using title_attribute or like it's done here, here or here)

2) some(or all) blocks could have ability to collaps-expand (js: display = none/block), managed in admin->system->blocks.
for example, on a site where news come once per week "Recent Comments" or "Top Articles" are not interesting for every-day visitors, but it is good to keep them (headers visible) somewhere on Top-page - so You can quickly see it if U want. According to frequecy of visiting, one part tends to be interested in "Recent .. items" and other in "Top .. items".

It makes a site more attractive as not overloaded with data. Many people (who are not very curiuos, but time-conserning) say they get lost in much infomation.

this is not a big thing, but it would increase XOOPS popularity among simple www-users



68
jurgis
WYSIWYG not only 4IE available
  • 2004/1/24 18:43

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


this is tal not about IE
as it is in mosthttps://xoops.org/search.php?action=results&query=WYSIWYG

WYSIWYG html editor in some new CMS are cross-platform! They support Mozilla 1.3 :
Back-end & angelineCms @ www.opensourcecms.com , are helping to save some time in easy Content publishing

i guess they are based on
http://www.interactivetools.com/products/htmlarea/documentation.html
live example @http://dynarch.com/mishoo/htmlarea.epl
and some more cool things to this direction:
http://dynapi.sourceforge.net/dynapi/article.php?sid=58

I also learned, that there can be alternatives with Flash or Java.

what I want to say (emm, ask), when could we expect it WYSIWYG editor included in the core? I know catzwolf is doing sth (but, I guess IE..)?
and it would be nice to have it in Opera ... some day.

well, and when it is available, there should be an easy way to choose whether to ues it, because sometimes it lags or causes other small problems.

ps.: strangely my previous post didn't reach the audience: maybe my login session expired in an hour, or what could it be??



69
jurgis
screenshots ??
  • 2004/1/19 2:15

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


well, when I gues there is a mis-link with "Screen Shots"
evidence here:
http://dz0.tinkle.lt/xoops/uploads/bad_link_or_sth.jpg
Resized Image




TopTop
« 1 ... 4 5 6 (7)



Login

Who's Online

168 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 168


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