11
ajaxbr
Re: Crude doxygen API doc
  • 2005/1/14 6:14

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Thanks Giba (manda a lista ou te dou as dicas, o que o freguês preferir)

Now I've suceeded (and it as a PITA) to generate a PHPDoc version, much like that XOOPS API link over there, but using 2.0.9 (as opposed to 2.0.6) and the same random modules as above (and forgeting to request a nice output format, sigh)
Click this link to visit a Crude XOOPS 2.0.9 PHPDoc API.

So, if anyone is interested in discussing what output format(s), modules, hacks, etc., would be interesting for a more serious API documentation, I'd be glad to try to produce it (them?).

If you want the whole thing, here's a 3MB zip containing the PHPDoc stuff.

Edit: Previous .chm and .chi files taken offline, try these if you want to sample that format:http://www.zoo.bio.br/xoops209.chi
http://www.zoo.bio.br/xoops209.chm

And this is the same version but uncompressed, in Brazilian Portuguese:http://www.zoo.bio.br/xbr/



12
ajaxbr
Re: Crude doxygen API doc
  • 2005/1/4 6:29

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Bumpty-boo
Using neato now:
Resized Image

Resized Image

Resized Image



13
ajaxbr
Crude doxygen API doc
  • 2005/1/3 6:31

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25



Resized Image

Hi,
If you'd have any interest in a crude, half-baked XOOPS 2.0.9 + random modules .chm documentation made using doxygen, download the following files:
http://www.zoo.bio.br/xoops.chm (17,6MB)
http://www.zoo.bio.br/xoops.chi (1,5MB)



14
ajaxbr
Re: Drag & Drop Contents Editing
  • 2005/1/2 17:17

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


I know of a way to have that working with bookmarklets, but that'd depend on each user installing them. If that interests you I can provide links.



15
ajaxbr
Re: PHP vulnerabilities - unserialize() function
  • 2004/12/18 1:21

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Yes it uses, and I'd guess it's vulnerable due to the kind of use it has. Damn it, PHP



16
ajaxbr
Re: Spidering and Indexing the Content of a Folder?
  • 2004/12/17 15:31

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


What format will the emails be in? I've seen perl scripts to parse, index and search .mdb files... and PHPDig can index HTML files, but I wonder whether a email/thread-aware app wouldn't be better.

Take a look at Lurker, sounds interesting.



17
ajaxbr
Re: Make backend.php pretty with CSS and/or XSL
  • 2004/12/16 18:28

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Quote:

LazyBadger wrote:
Quote:

ajaxbr wrote:
Yep, and AFAIK there's no way to solve that with CSS only

I'm not so sure - at least RSSFit generates nice and 100% valid RSS using css only. You can it see at my feed
Looks great, but I guess the keyword here is "generates": if you look at your feed's source, there's no ugly HTML tags in descriptions. So backend.php could have a tag stripping function, but for our out-of-the-box XOOPS feeds CSS isn't enough to clean that.

OTOH, since RSSFit generates such an elegant XML, you can present it better with XSL: clickable links, custom text, TOC, whatever.



18
ajaxbr
Re: Make backend.php pretty with CSS and/or XSL
  • 2004/12/16 17:43

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Quote:

LazyBadger wrote:
Good, but unfinished attempt... At least dirty HTML-tags on page seems ugly
Yep, and AFAIK there's no way to solve that with CSS only (but IE6 will render the HTML instead of showing the tags ). Peter's link is very interesting, but as you can see it uses JavasScript to clean you RSS, so the result isn't RSS anymore. I believe that XSL can clean the feed for display while keeping it valid XML and RSS, but my first experience with it was yesterday

So... anyone interested in XSLing?



19
ajaxbr
Re: secondary pages
  • 2004/12/16 7:57

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Perhaps a/some dummy module(s)?



20
ajaxbr
Re: Make backend.php pretty with CSS and/or XSL
  • 2004/12/16 7:48

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


XSL is a bit more complex, but seems to be very powerful. Both XSL and CSS will keep your RSS feed valid and won't change the way it's shown in a news aggregator AFAIK, while both can make RSS a little less ugly in browsers.

To use XSL, you'd have to include a line with
<?xml-stylesheet type="text/xsl" href="<{xoops_url}>/backend.xsl"?>
in your system_rss.html template as above, making it the second line (you can also use CSS and XSL simultaneously).

Then you have to create a backend.xsl file in your XOOPS root. Code can be something like
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
  FROM: rss2html.xsl BY: mlemos
  -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">

<xsl:output method="html"/>

<xsl:template match="/">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>
<xsl:for-each select="rss/channel">
<xsl:value-of select="title"/><xsl:text> - </xsl:text><xsl:value-of select="description"/>
</xsl:for-each>
</title>
</head>
<body style="font-family: Verdana, Arial, Helvetica, sans-serif;">
<center>
<xsl:for-each select="rss/channel">
<div style="font-size: 30pt; font-weight: bold; color: #0000ff;"><xsl:value-of select="title"/></div>
<div style="font-size: 10pt;"><xsl:value-of select="link"/></div>
<div style="font-size: 18pt;"><xsl:value-of select="description"/></div>
<div style="font-size: 15pt;  color: #0000ff;"><xsl:value-of select="lastBuildDate"/></div>
<div style="font-size: 18pt; font-weight: bold;"><xsl:value-of select="category"/></div>
</xsl:for-each>
</center>
<xsl:for-each select="rss/channel/item">
<p align="right">
<xsl:element name="a">
    <xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
    <xsl:value-of select="title"/>
</xsl:element>
    <xsl:text> - </xsl:text>
<small>    <xsl:value-of select="pubDate"/></small></p>
</xsl:for-each>


<br /><br /><hr /><br /><br /><ul>

<xsl:for-each select="rss/channel/item">
<li style="border-style: dotted; border-width: thin; margin: 30px; padding: 20px;">
<xsl:element name="a">
    <xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
    <xsl:attribute name="style">display:block;font-weight:bold; color: #ff0000;</xsl:attribute>
    <xsl:value-of select="title"/>
</xsl:element>
<small>
<xsl:value-of select="pubDate"/></small>
<div style="text-align:justify;"><xsl:value-of select="description"/></div>
<div style="text-align:right; font-size: 10pt; color: #0000ff;"><xsl:value-of select="pubdate"/></div>
</li>

<hr />
</xsl:for-each>
</ul>


</body>
</html>
</xsl:template>

</xsl:stylesheet>


Example of result here.

Both examples are of static XML files, but if you want to see this working look at my site's CSS styled backend.php.




TopTop
« 1 (2) 3 4 5 ... 26 »



Login

Who's Online

150 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 150


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