11
boumbo
Re: SecurityImage not functioning properly
  • 2006/10/27 13:42

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


...

12
boumbo
Re: SecurityImage not functioning properly
  • 2006/10/27 14:43

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Quote:

kris_fr wrote:
where do you have to download your version of XOOPS ?
please

ou s'il te plaît
A +


You mean Where did I download XOOPS from?

Je suis navré. Je ne comprends pas la question.

13
boumbo
Re: SecurityImage not functioning properly
  • 2006/10/27 14:49

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Quote:

kris_fr wrote:
Hi

Quote:

boumbo wrote:
XOOPS Version: 2.11


Xoops JP, XOOPS Cube or XOOPS ?

A +


I believe its Xoops.

Im sorry, forgive me for my lack of knowledge in xoops, I am trying to learn how it functions. I did not do the initial installation. I just know how to go around and deal with the pages and forms.

14
boumbo
Re: SecurityImage not functioning properly
  • 2006/10/27 15:03

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Quote:
xoops 2.11? there isn't a 2.11 version of xoops

you mean 2.0.11??

i would suggest updating to 2.0.15 as XOOPS 2.0.11 has issues with PHP 5 & definitely will not work correctly with MySQL 5


Found my XOOPS version:
define("XOOPS_VERSION","XOOPS 2.2.2");

I believe I must do an update ?

15
DuGris
Re: SecurityImage not functioning properly
  • 2006/10/27 15:57

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14



16
tzvook
Re: SecurityImage not functioning properly
  • 2006/10/28 21:14

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


10x DuGris for this great XOOPS eddition

For using it with weblinks module try this one:

open submit.php round line 73, look for:
// add preview mode
if (($op == 'post')||($op == 'ignore')) 
{


add after it:
// Tzvook // Hack 4 SecurityImage by DuGris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");

    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {

        
redirect_header'j-a-v-a-script:history.go(-1)'2_SECURITYIMAGE_ERROR ) ;

        exit();

    }
     
// Tzvook // Hack SecurityImage by DuGris


(replace "j-a-v-a-script" with "javascript" ... since it is sanitizing my code now...)

open include/submit_form.php and look for
// button
    
$tray_button = new XoopsFormElementTray'' );



Add before it :

// Tzvook 4 SecurityImage
     
$tray_button = new XoopsFormElementTray'' );

// Hack SecurityImage by DuGris

if ( defined('SECURITYIMAGE_INCLUDED')  ) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) {
        
$tray_button->addElement($security_imagetrue);
    }

}

     
// Tzvook // Hack SecurityImage by DuGris
    
$builder->add_element$tray_button );


Enjoy !!

17
ukandrewf
Re: SecurityImage not functioning properly
  • 2007/3/1 23:42

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


for those reading this treat I considered this option but found Netquery much less painful to implement and it does seem to have solved my problems :)

https://xoops.org/modules/news/article.php?storyid=3596&com_id=34149&com_rootid=34122&com_mode=thread&#comment34149

18
DuGris
Re: SecurityImage not functioning properly
  • 2007/3/3 1:52

  • DuGris

  • Core Developer

  • Posts: 67

  • Since: 2004/3/14


do you have read this

19
tzvook
Re: SecurityImage not functioning properly
  • 2007/4/18 9:07

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Sorry to bump it after so long, but with my earliyer post for embading the security image @ weblinks ... it doesn't work with the 2.01X series (at least not with 2.016)
the last part should be:

// Tzvook 4 SecurityImage
     
$tray_button1 = new XoopsFormElementTray'' );

// Hack SecurityImage by DuGris

if ( defined('SECURITYIMAGE_INCLUDED')  ) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) {
        
$tray_button1->addElement($security_imagetrue);
    }

}

     
// Tzvook // Hack SecurityImage by DuGris
    
$builder->add_element$tray_button1 );


only a matter of a unique var ...

20
Javacup
Re: SecurityImage not functioning properly
  • 2007/6/26 17:33

  • Javacup

  • Just popping in

  • Posts: 5

  • Since: 2007/6/26


with your code I have an error message
Quote:
Parse error: parse error, unexpected T_ELSEIF in /xxxx/xxx/xxxx/xxx/xxxx/modules/weblinks/submit.php on line 169

help me plz

thks

Login

Who's Online

261 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 261


more...

Donat-O-Meter

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

Latest GitHub Commits