211
ajaxbr
Re: Fixing error in
  • 2004/3/10 6:56

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


/language/english/search.php



212
ajaxbr
Re: dictionary modules
  • 2004/3/10 6:49

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Ok, got this working with a bit of javascript.
Check http://www.zoologia.bio.br/dicts.html.
Feel free to combine those forms, make'em pretty, etc.
My part of the job is being released to the Public Domain and I'm not liable for copyright violations or any kind of damage or mass destruction resulting from the use of this code

Now...
I guess this could be done very quickly in PHP (perhaps with XOOPSForm ) so that people with javascript off (do they still make those?) could use the service.

Perhaps this could result in a nice module:
A "Search" block, a stats one, and an admin interface with blacklisted words and stats info. Ideally, tons of search engines/databases/dictionaries should be included, with all sorts of search-engine-specific functions, and the admin would set which ones are available (user options to search using more than one would be nice). An interface to add your own search engines would be cool, but would have to be very foolproof.
The module could count queries (like in MyLinks visit.php) and have statistics of the most popular words, most searchy users , preferred engines, etc. Oh, and if there's a way to include referrer info in the queries*, people searching from your site would be spreading your url on referrer lists

*Just tried it... how about sending searches like
Quote:
search terms searchterms -"Referring Page: http://www.xoopssearch.module.com"
?
I know I would spot this kind of thing on my server logs



213
ajaxbr
Re: dictionary modules
  • 2004/3/10 3:12

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Well, although it's not actually what you asked for...
You could use a custom block with a form that has a text field (tf) and a submit button. Set form action to Quote:
http://www.google.com/search?q=define:(tf.value)
(not sure about sintax, probably needs javascript or php, but you get the idea).
You'd need to adapt your code to solve "word word" queries (usually sent as word+word).
Lots of different resources can be accessed this way:
Quote:
I believe you shouldn't have any kind of copyright issues using their content this way.

[edit]
I guess it'll be easier to put this stuff in a block than it was to get this post to display properly [/edit]



214
ajaxbr
Re: xoopsheadlines bug?
  • 2004/3/10 0:14

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Same here, but the feed is there, it just won't appear inside XOOPS.
I can see the raw RSS but Headlines module wont render it in
http://news.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss091.xml and
http://bnhm.berkeley.museum/rss/BNHM.xml

BTW, I've just made the RSS url field larger and if anyone have to do this, here's the trick:
First thing to do is change the field type in MySQL: it's set as VARCHAR(255) (255 characters) and you should set it to TEXT, which allows 65535 chars (unfortunatelly, there's no intermediate value).

Then you have to change two module's files:
Open /modules/xoopsheadline/admin/index.php and find and replace
Quote:
$form->addElement(new XoopsFormText(_AM_URLEDFXML, 'headline_rssurl', 50, 255, 'http://'), true);
(which appears, and has to be replaced, twice) with
Quote:
$form->addElement(new XoopsFormText(_AM_URLEDFXML, 'headline_rssurl', 50, XYZ, 'http://'), true);
, XYZ being the new size in bytes for your RSS url field.
In /modules/xoopsheadline/class/headline.php, find
Quote:
$this->initVar('headline_rssurl', XOBJ_DTYPE_TXTBOX, null, true, 255);
and replace "255" with the same value used before. This might be handy if you want to display customized Amazon RSS feeds



215
ajaxbr
Re: Redirect
  • 2003/12/6 13:28

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


The best way to do a simple redirect, IMHO, is to put an index.php file in your base directory with Quote:You might want to add the "Permanent redirect" code too:
header("HTTP/1.1 301 Moved Permanently");

Or you might simply set News as your start module




216
ajaxbr
Re: Note to Self: Important Xoops Information
  • 2003/12/6 12:56

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Actually read your error messages and security advisories before contacting developers about (inexistent) bugs



217
ajaxbr
Re: How do i change the maximum signature length??
  • 2003/12/5 13:41

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Quote:
Changing from tinytext to medium text gives the user a lot more space to add stuff which might not be a good idea. Shame there isn't an inbetweenie.

TINYTEXT == 257 bytes
TEXT == 65538 bytes (64KB)
MEDIUMTEXT == 16777219 bytes (16MB!)
LONGTEXT == 4294967300 bytes (4GB!!!)
So... hmmm... TEXT is way too big, MEDIUMTEXT makes no sense at all. Perhaps a nice way to avoid nasty things (like someone using their 64KB to store random data instead of a sig) would be retrieving the sig with a SUBSTRING query, so that the admin can have a granular control of the amount of data retrieved (also, limiting the post operation seems worthy). I'd say we're talking about a max of 500 - 2k bytes here, right?



218
ajaxbr
Re: Agenda-X 2.0 wish list
  • 2003/12/5 10:34

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


* A block with "Next X events", titles only

* RSS feed of the content of the "Next X events" block (so other sites can display it)
* Count down block also exporting RSS

* "This day in history": Examples (1) (2) (3). Not sure about the best way to implement this... perhaps a default external link to empty days? Or better, each day could have "events" and "facts" or "info", i.e., things that will not happen but that are related to that day. Filters like those for events categories would be great (say someone wants to see all holidays or all curious facts).

* A simple way to add multiple events (or "infos"), like importing from a text file. Anything that would allow us to submit lots of different info would be great, just like it would for lots of modules (like Links or Downloads).




219
ajaxbr
Re: Headlines Archive
  • 2003/12/5 9:29

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Herko you make me soooo happy
I'll contact him, last I recall I was lost inside a template file



220
ajaxbr
Re: Headlines Archive
  • 2003/12/5 9:07

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Slowly, slowly... Ok, this is ugly and very very crude, but I can't do better (yet?)... hopefully someone with the skills will get interested

In the XooPSHeadline .sql file, I added Quote:
headline_arch mediumtext NOT NULL default '',
FULLTEXT KEY `search` (`headline_arch`)

Inside class XoopsheadlineHeadline, function XoopsheadlineHeadline() Quote:

$this->initVar('headline_arch', XOBJ_DTYPE_SOURCE, null, false);

Added a "var $_arch;" in class XoopsHeadlineRenderer and a "$this->_arch = $items;" in it's function renderFeed. Down there, I added a Quote:
function &getArch()
{
return $this->_arch;
}
to retrieve just the items for a channel. Now I'll try to figure out how to get $_arch appended to the "headline_arch" field, then what is needed to make it searchable, then... hmmm... parsing headline_arch to display. Oh, and I have to figure out when or where getArch() is called. What a mess




TopTop
« 1 ... 19 20 21 (22) 23 24 25 26 »



Login

Who's Online

211 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 211


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