11
e-u-l-o-g-y
Contact us form with information header

Hi!
I was wondering if there are any "contact us" modules that show a header before the contact form? What I am looking for is the following (with possibillities to edit the content without editing a template)

Contact Info
Contact Info
Contact Info
Contact Info

Contact us
Name: xxx
Title: xxx
Text:
xxx
xxx

Does anybody know of any modules like this?



12
e-u-l-o-g-y
Re: Display specific block

Thanks, though I've thought of that, and it's more of a hack than a solution, but I think I'll use it if I don't find anything else... a smarty tag like this would be nice:

<{display_block name="Block Name"}>



13
e-u-l-o-g-y
Display specific block

Hi!
In XOOPS you can iterate over the different blocks and display them:

<{foreach item=block from=$xoops_lblocks}>
<{include file="default/theme_blockleft.html"}>
<{/foreach}>

but are there any ways to display a specific block? Let's say I want the login block to be displayed at a given position all the time..



14
e-u-l-o-g-y
Re: MyAlbum-P creates crappy thumbnails?

Ooops.. stupid me.. there is a setting that fixes this.. just make it force usage of GD2



15
e-u-l-o-g-y
Re: Bug in MyAlbum-P

Ooops... I totally missed that one Thanks



16
e-u-l-o-g-y
Bug in MyAlbum-P

Hi!
I've been using myalbum, but the thumbnails looked crappy when using GD2 (seehttps://xoops.org/modules/newbb/viewtopic.php?topic_id=47196&start=0#forumpost207597)

The solution can be found in the GD library faq (http://www.boutell.com/gd/faq.html)

Quote:
Why do my JPEG thumbnails have missing colors with gd 2.0.x?
When creating truecolor images, you need to call gdImageCreateTrueColor, not gdImageCreate. This used to "work" in gd 1.x, but only in the sense that gd 1.x had no support for real truecolor at all, so it faked it by dithering your image. gd 2.x supports real truecolor, and also has a better way of reducing to palette color when you really want to do that; see the gdImageTrueColorToPalette function -- but you don't need it for this job. PHP and Perl programmers: the function names for you are similar, just leave off the gd prefix.


So chainging line 134 in myalbum\include\functions.php to this will handle the problem:
//$dst_img = imagecreate( $new_w , $new_h ) ;
$dst_img imagecreatetruecolor$new_w $new_h ) ;



17
e-u-l-o-g-y
Re: MyAlbum-P creates crappy thumbnails?

Found the problem...
I was reading the GD library faq, and it seems that Myalbum has a little bug:

http://www.boutell.com/gd/faq.html

Quote:
Why do my JPEG thumbnails have missing colors with gd 2.0.x?
When creating truecolor images, you need to call gdImageCreateTrueColor, not gdImageCreate. This used to "work" in gd 1.x, but only in the sense that gd 1.x had no support for real truecolor at all, so it faked it by dithering your image. gd 2.x supports real truecolor, and also has a better way of reducing to palette color when you really want to do that; see the gdImageTrueColorToPalette function -- but you don't need it for this job. PHP and Perl programmers: the function names for you are similar, just leave off the gd prefix.


So chainging line 134 in myalbum\admin\functions.php to this will handle the problem:
//$dst_img = imagecreate( $new_w , $new_h ) ;
$dst_img imagecreatetruecolor$new_w $new_h ) ;



18
e-u-l-o-g-y
Re: MyAlbum-P creates crappy thumbnails?

Strange.. Somehow I cannot edit the original post!?

Anyway.. I found out that I can use ImageMagick on the server, but I'm still wondering.. are the images supposed to look like this when they're converted using GD2? The colors are totally off:
Resized Image



19
e-u-l-o-g-y
Absolute include paths - suggestion or question

Hi!
I've just hunted down a problem that just occured on two of my pages, but only in some modules:

LINK

Some modules include files that also exist in the XOOPS root folder using
include "name.php";

When the XOOPS root path is entered in include_path in php.ini this resulted in
die("XOOPS root path not defined");

in the following modules (since it actually checked the include_path before the current directory):

smartpartner
newbb
myalbum

but not in the following:

news
tinycontent
xoopspoll

After seeing this behaviour, I would suggest every module author to use absolute paths for all includes - OR will this be a problem?



20
e-u-l-o-g-y
Re: Upgrade from 2.0.13 to 2.2.3a Final?

Thanks!




TopTop
« 1 (2) 3 4 »



Login

Who's Online

149 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 149


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