31
AHLIS
Re: Add textboxs etc... in WF-Links 1.0.9
  • 2012/12/19 21:26

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi Mamba,

Okey. Thanks for the tip. Will check in that order. See if I find anything wrong.

Best Regards
Ahlis



32
AHLIS
Re: Add textboxs etc... in WF-Links 1.0.9
  • 2012/12/19 18:56

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi again,

I have been trying to add two textfield. one plain text and one for url.

The name I used in the files where I have been adding thoose to is: os & dev

After editing and updating the module I can see the two new text field in admin. I add some text to them and press the button "Modify". The I choose edit and check if the text is still there but it's gone.

I have also tried to make a new link but with the same result.

This is my first time to do thi kind of editing, so I guess I have missed something or done something wrong.

Below is what I have done:
wflinks/sql/wflinks.sql 
# Table structure for table 'wflinks_links'
      
`osvarchar(25NOT NULL,
      `
devvarchar(255NOT NULL,

# Table structure for table 'wflinks_mod'
      
`osvarchar(25NOT NULL default ",
      `dev` varchar(255) NOT NULL,


wflinks/submit.php
    
$os = $wfmyts -> addslashes( ltrim( $_REQUEST["os"] ) );
    
$dev = $wfmyts -> addslashes( ltrim( $_REQUEST["dev"] ) );

     
$sql = "INSERT INTO " . $xoopsDB -> prefix( 'wflinks_links' ) . "    (lidcidtitleurlsubmitterstatusdatehitsratingvotescommentsforumidpublishedexpiredofflinedescriptionipaddressnotifypubcountrykeywordsitem_taggooglemapyahoomapmultimapstreet1street2townstateziptelfaxvoipmobileemailvatosdev ";

         
$sql .= " VALUES     (''$cid'$title''$url''$submitter''$status''$date'0000'$forumid''$publishdate'0'$offline''$descriptionb''$ipaddress''$notifypub''$country''$keywords''$item_tag''$googlemap''$yahoomap''$multimap''$street1''$street2''$town''$state''$zip''$tel''$fax''$voip''$mobile''$email''$vat''$os''$dev' )";

        
$sql = "UPDATE " . $xoopsDB -> prefix( 'wflinks_links' ) . " SET cid=$cidtitle='$title'url='$url'updated='$updated'offline='$offline'description='$descriptionb'ipaddress='$ipaddress'notifypub='$notifypub'country='$country'keywords='$keywords'item_tag='$item_tag'googlemap='$googlemap'yahoomap='$yahoomap'multimap='$multimap'street1='$street1'street2='$street2'town='$town'state='$state',  zip='$zip'tel='$tel'fax='$fax'voip='$voip'mobile='$mobile'email='$email'vat='$vat'os='$os, dev='$dev WHERE lid=" . intval($lid);

    
$sql = "INSERT INTO " . $xoopsDB -> prefix( 'wflinks_mod' ) . " (requestidlidcidtitleurlforumiddescriptionmodifysubmitterrequestdatecountrykeywordsitem_taggooglemapyahoomapmultimapstreet1street2townstateziptelfaxvoipmobileemailvatosdev)";
        
$sql .= " VALUES (''$lid$cid'$title''$url''$forumid''$descriptionb''$modifysubmitter''$requestdate''$country''$keywords''$item_tag''$googlemap''$yahoomap''$multimap''$street1''$street2''$town''$state''$zip''$tel''$fax''$voip''$mobile''$email''$vat''$os''$dev')";

    
$os = $link_array['os'] ? $wfmyts -> htmlSpecialCharsStrip( $link_array['os'] ) : ''; 
        
$dev = $link_array['dev'] ? $wfmyts -> htmlSpecialCharsStrip( $link_array['dev'] ) : 'http://';

        
$sform -> addElement( new XoopsFormText( _MD_WFL_OS, 'os', 70, 25, $os ), true );
    
$sform -> addElement( new XoopsFormText( _MD_WFL_DEV, 'dev', 70, 255, $dev ) );


wflinks/include/update.php 

//Make changes to table wflinks_links
$i++;
$ret[$i] = true;
$query[$i] = sprintf("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_links') . " ADD COLUMN os VARCHAR(25NOT NULL default '' AFTER multimap");
$ret[$i] = $ret[$i] && $xoopsDB->query($query[$i]);
$i++;
$ret[$i] = true;
$query[$i] = sprintf("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_links') . " ADD COLUMN dev VARCHAR(255NOT NULL default '' AFTER os");
$ret[$i] = $ret[$i] && $xoopsDB->query($query[$i]);

$i++;
$ret[$i] = true;
$query[$i] = sprintf("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_links') . " MODIFY os TEXT NOT NULL default ''");
$ret[$i] = $ret[$i] && $xoopsDB->query($query[$i]);
$i++;
$ret[$i] = true;
$query[$i] = sprintf("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_links') . " MODIFY dev TEXT NOT NULL default ''");
$ret[$i] = $ret[$i] && $xoopsDB->query($query[$i]);

//Make changes to table wflinks_mod
$i++;
$ret[$i] = true;
$query[$i] = sprintf("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_mod') . " ADD COLUMN os VARCHAR(25NOT NULL default '' AFTER mobile");
$ret[$i] = $ret[$i] && $xoopsDB->query($query[$i]);
$i++;
$ret[$i] = true;
$query[$i] = sprintf("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_mod') . " ADD COLUMN dev VARCHAR(25NOT NULL default '' AFTER os");
$ret[$i] = $ret[$i] && $xoopsDB->query($query[$i]);


wflinks/language/english/main.php
    define( '_MD_WFL_OS', 'OS Version' );
    define( '_MD_WFL_DEV', 'Dev. Homepage' );


wflinks/language/english/admin.php
    define( "
_AM_WFL_OS", "OS Version" );
    define( "
_AM_WFL_LINK_DEV", "DevURL" ); 


wflinks/update/weblinks_update.php

    //Delete some Fields
    
$result = $xoopsDB -> queryF("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_links' ) . " DROP os");
    
$result = $xoopsDB -> queryF("ALTER TABLE " . $xoopsDB -> prefix( 'wflinks_links' ) . " DROP dev");


What have I done wrong or missed?

Best Regards
Ahlis



33
AHLIS
Re: Add textboxs etc... in WF-Links 1.0.9
  • 2012/12/18 20:59

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi Mamba,

Okey, great. Then I'll take a look at it to see if I'm able to add stuff to it. :) I hope so. hehe

Best Regards
Ahlis



34
AHLIS
Add textboxs etc... in WF-Links 1.0.9
  • 2012/12/18 19:38

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi,

Is it hard to add textbox, checkbox or radiobuttons etc... in wf-links?

It's a good fundation, but I would like to add some more options. First in admin and then show them in the module.

If it's legal.

Best Regards
Ahlis



35
AHLIS
Re: Pictures dosen't show up in ExtGallery 1.1
  • 2012/12/17 22:02

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi Renetjuh,

It was the problem with the htaccess.

Thanks.

I now know that I had the same problem before with extgallery. Was searching my old question about picture problems.

Best Regards
Ahlis



36
AHLIS
Re: Game Review module
  • 2012/12/17 18:01

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12





37
AHLIS
Re: Game Review module
  • 2012/12/16 19:44

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi again,

I have now installed the wf-links and this will work fine.

Have one problem.

The images dosen't show up.

If I click on the imagelink (The small image if it couldn't find the image) then it show the right path. And if I check on the server the image is stored both in/uploads/wflinks/screenshots and /uploads/wflinks/screenshots/thumbs

I have checked the prefs and dosen't find anything that is wrong there and I have also checked the permisson section and dosen't find anything there.

Any suggestions?

Best Regards
Ahlis



38
AHLIS
Re: Game Review module
  • 2012/12/16 18:45

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi Mamba,

Thanks. I will try that. :)

Best Regards
Ahlis



39
AHLIS
Game Review module
  • 2012/12/16 18:12

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Hi there,

I hope I post in the right section.

I'm thinking of creating a homepage there I collect links to Amiga games. I also want to be able to associate screenshots and users could post reviews of the games.

Is there any modules that could handle this that are finished?

I haven't installed any version of Xoops for the moment, but I guess I want to run with the latest public realese as possible.

Sum: Reviews, Screenshots, if possible video links, filter so it easy to find games and free hand search. (Text search)

Best Regards
Ahlis



40
AHLIS
Re: Liaise 1.26 and captcha
  • 2012/11/7 19:04

  • AHLIS

  • Not too shy to talk

  • Posts: 189

  • Since: 2004/12/12


Quote:

zyspec wrote:
You might try the hacked version on Happy Linux -http://linux2.ohwada.net/modules/wfdownloads/singlefile.php?cid=1&lid=33. It uses CAPTCHA (although if I remember right it doesn't use the XOOPS captcha class).

Note: As always when you install a new module - PLEASE make a backup of your site/data before you try this... I haven't personally tried this version but I believe it should work.


Thanks. It worked! :)

Best Regards
Ahlis




TopTop
« 1 2 3 (4) 5 6 7 ... 19 »



Login

Who's Online

158 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 158


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