1
Maxter
wf-channel 1.07 module - file corrupted
  • 2005/4/12 14:18

  • Maxter

  • Just popping in

  • Posts: 6

  • Since: 2002/1/3 1


i'm trying to download the wf-channel module from sourceforge XOOPS module repository but it seems to be corrupted...
i tried to download it form a lot of different host, but it is impossible to open it.

i hope this will be useful ...

bye



2
Maxter
may be interesting a class to ad to xopps an image pop up function and thumbnails creation?
  • 2004/11/24 17:45

  • Maxter

  • Just popping in

  • Posts: 6

  • Since: 2002/1/3 1


i played a little with a class named imgpopup.

this class is useful for 'on the fly' thumbnails creation and for linking the thumnail created to a 'image pop up page'.
all the images (thumbs and images in popup windows) may be protected inserting the image in a div background css property (not secure at all, but at least, it makes more difficult to steal images )

i have done some modifications to the class, implementing some new features, and i have integrated it in the XOOPS structure.

if someone thinks that this may be a useful class addon for XOOPS i will realize a test site to show all the features.

you can find the original class at phpclasses

http://www.phpclasses.org/browse/package/724.html

and view some sample at the original developer's site

http://members.lycos.co.uk/mathg/imgpopup/test.php


i'm waiting your feedback..


ps sorry for my bad english



3
Maxter
Re: problem with smarty and logical operators
  • 2004/10/12 16:53

  • Maxter

  • Just popping in

  • Posts: 6

  • Since: 2002/1/3 1


thanks for the answers...

Mithrandir:
yes, the Slink.logourl is a typo in the post, i checked many times the syntax :)
before posting i also tried to separate the condition with bracket, without any result :-/

Draven:
i tried also the use of OR instead of ||, again without any result, and i have read the smarty documentation many times searching for any possible idea.

I will try to reproduce this error in another page containing only the $link array or another array, to see it the error happen again.



4
Maxter
problem with smarty and logical operators
  • 2004/10/12 13:19

  • Maxter

  • Just popping in

  • Posts: 6

  • Since: 2002/1/3 1


i'm workin on some modification of the xdirectory module and i found a problem with the use of the || (or) logical operator on smarty.

i will be verbose, for all that people don't knowing this module :)
xdirectory pass to smarty templates the 'link' array, containing the two variables involved in the problem.
these variables are $link.logourl (containing the name of the logo image for a business entry) and $link.premium (that select some additional displaying features for a business entry).

if i try to set a logical operator like this, it does not work:

<{if $link.premium != "" || Slink.logourl != "0" }>
<
img src="image_for_business_without_logo.jpg">
<{else}>
<
img src="shots/<{$link.logourl}>">
<{endif}>


if i set only a 'if $link.premium or a 'if $link.logourl' conditional statement, this work fine, but setting both the variables as conditional, lets work only the $link.premium condition
more clearly, a business entry without a logo will show no image because the img tag will result like this:

<img src="shots/">


viceversa if i set a logical operators like this, it will work:

<{if $link.premium == "" || Slink.logourl == "0" }>
<
img src="shots/<{$link.logourl}>">
<{else}>
<
img src="image_for_business_without_logo.jpg">
<{endif}>


it seems to me very strange, but maybe there is something of smarty i didn't understand...

anyone can tell me if it is a problem of smarty or of the xoop's smarty implementation (o may be a my mistake? )

Many thanx and sorry for my bad english

Max




TopTop



Login

Who's Online

171 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 171


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