1
cccweb
xcgallery & custom fields
  • 2006/7/9 7:29

  • cccweb

  • Just popping in

  • Posts: 22

  • Since: 2006/4/24


Is there any way to make a custom field in xcgallery a link?

A couple of things I'd like to do is have a web link field and an email field.

2
cccweb
Re: xcgallery & custom fields
  • 2006/7/9 23:57

  • cccweb

  • Just popping in

  • Posts: 22

  • Since: 2006/4/24


I've answered my own question. I need to change the displayimage.php

for ($i =1$i<= 4$i++){
        if (
$xoopsModuleConfig['user_field'.$i.'_name']) {
            
$info[$xoopsModuleConfig['user_field'.$i.'_name']] = $CURRENT_PIC_DATA['user'.$i];
        }
    }


to

(field 1 & 4 - text, field 2 - url, field 3 - email)


if ($xoopsModuleConfig['user_field1_name']) 
$info[$xoopsModuleConfig['user_field1_name']] = $CURRENT_PIC_DATA['user1'];}

if (
$xoopsModuleConfig['user_field2_name']) 
$info[$xoopsModuleConfig['user_field2_name']] = '.$CURRENT_PIC_DATA['user2'].'">'.$CURRENT_PIC_DATA['user2'].''   ;}

if (
$xoopsModuleConfig['user_field3_name']) 
$info[$xoopsModuleConfig['user_field3_name']] = '.$CURRENT_PIC_DATA['user3'].'">'.$CURRENT_PIC_DATA['user3'].''   ;}

if (
$xoopsModuleConfig['user_field4_name']) 
$info[$xoopsModuleConfig['user_field4_name']] = $CURRENT_PIC_DATA['user4'];}

Login

Who's Online

388 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 388


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits