1
boumbo
DuGris's SecurityImage Class and Module Issue
  • 2008/9/24 14:51

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


I am trying to make a custom form system work with DuGris' SecurityImage class ver.1.6 and module ver.1.0beta4

Im using XOOPS ver. 2.2.2 with php5 installed.

I followed the instructions on DuGris' site on Installing and inserting the code in my forms:
http://www.dugris.info/modules/news/article.php?storyid=1&page=2
http://www.dugris.info/documentations/article.php?storyid=1&page=3

He says to insert the following code before and after the submit button. I tried doing that and every time i go on any form page that i created, it refreshes immediately to tell me Security Token Invalid and redirects me to my redirect link.

minaform.php
include_once XOOPS_ROOT_PATH."/class/xoopsobject.php";
include_once 
XOOPS_ROOT_PATH."/modules/accedian/class/IdgObjectHandler.php";
include_once 
XOOPS_ROOT_PATH."/class/xoopsformloader.php";

abstract class 
MinaForm extends XoopsObject

    
    function 
MinaForm (){}
    
    function 
getForm(){
    
$form = new XoopsThemeForm($this->getFormTitle(), 'new_product''index.php''POST');

       if(
$this->hasComment()){
      
$this->addCommentField($form);    
        }
        
//DuGris Code*****************
if (defined('SECURITYIMAGE_INCLUDED')) {
     
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) {
      
$form->addElement($security_imagetrue);
     }
}
//DuGris Code*****************
        
    
$operationTray = new XoopsFormElementTray('');
    
$operationTray->addElement(new XoopsFormButton('''submit_product''Submit''submit'));
        
    
$form->addElement($operationTray);

//DuGris Code*****************        
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
     
redirect_header(XOOPS_URL."/modules/accedian/"2_SECURITYIMAGE_ERROR);
     exit();
//DuGris Code*****************

return $form;
}


Anyone would know what would be the cause of the security token being invalid if i didn't even submit the form yet?


Any help would be appreciated, i've been struggling with this issue for a long time.

Thanks.
Patrick S.



2
boumbo
Re: Cant get google analytics to pick up my tracking code on Xoops
  • 2007/7/5 14:26

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Should I be using the php version google provides for putting in a php file for footer.php ?

BTW, I verified the report for minacom.com and its showing me statistics of users going on the website. I don't understand how that can be possible, since the tracking code is not recognized...???



3
boumbo
Re: Cant get google analytics to pick up my tracking code on Xoops
  • 2007/7/5 13:08

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


To answer your question Tobias.

I did wait for 1 day, and it still says Tracking Unknown
The site in question is:
http://www.minacom.com
You will see in the source code that its at the bottom before the </body > tag and even in the <head> tag.

And I looked in my cookie list and urchin is not there :(

As for update changed templates. If your talking about:
"Update module template .html files from themes/your theme/templates directory?"

Then it is set to YES.

I don't know what else I can do.

Regards,
Pat



4
boumbo
Re: how to add google analytics
  • 2007/7/3 19:55

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Im having the same problem as krobi, except that its been less then a day that i installed the tracking code in my theme.html file, and its still giving me a Tracking Unknown...

I posted my question here:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=59730&start=0#forumpost266367

Please let me know if anyone fixed that issue.

Thanks.
Pat.



5
boumbo
Can't get google analytics to pick up my tracking code on Xoops
  • 2007/7/3 19:37

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Hi everyone,

I am trying to install the tracking code in the /theme directory but it doesn't seem to be picking up by google.


I followed the procedure at the following page:
https://xoops.org/modules/smartfaq/faq.php?faqid=593&com_id=36805&com_rootid=28749&com_mode=flat&com_order=0#comment36805
and I added the javascript just before the </body> tag:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-XXXXXX-X";
urchinTracker();
</script>

Of course, replacing the UA-XXXXXX-X with actual numbers.

Google analytics, gives me a Tracking Unknown stating that it can't find the tracking code.

I also checked to make sure that its on the live pages, and it is.

Should I wait for a day at least until it picks it up?

Does anyone know why its not picking up?

BTW, I'm using XOOPS ver 2.2.2

Thanks.



6
boumbo
Re: Xoops from english to japan
  • 2007/6/12 14:42

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Hi Sailjapan,

Thanks for taking time in looking into my inquiry.

I am currently using XOOPS ver2.2.2 (english) and I have a few modules installed such as:
- System Admin
- Extended Profiles
- TreeMenuXL
- And a module I developed myself for the dynamic content which accesses data from the db and puts in on the web.

Is the J version of the language folders available on the xoops.org site?

Will I have to get a japan version of all my modules, or can I just use the english versions?

Basically, I just want the new japan site to contain japanese content (i assume it uses a different character set, not Unicode, but some bicode of some sort...)

Does that make any sense or should I be more precise?



7
boumbo
Xoops from english to japan
  • 2007/6/12 2:01

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Hi,

I have installed and configured XOOPS v.2.2.2 on a web server and would like to do the same installation and config on a new web server but that will contain Japanese web content instead.

Now, my question is the following. What would I need to do in order to have a similar installation and config on the Japanese web server as my english one?

Do I need to download XOOPS from the Japanese site? And can I just install my modules I developped from the english site in the Japanese Xoops? Or can I just install the english version of XOOPS and change some template language settings.

My real inquiry is really, how can I have a similar configuration of XOOPS (as my english site) but with new Japanese web content?

I'm hoping I can just install the japanese version of XOOPS and install my modules from my english site.

Thanks.



8
boumbo
XBS_TAGS Module: add different meta tags for each page in same module
  • 2007/4/9 17:32

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


I installed XBS TAGS module on XOOPS 2.2.2 and I was wondering how I can specify different meta tags for each page under the same module?

In the XBS TAGS documentation, it says that we can add pages manually:

"You may also manually add a page to the list. You may wish to do this for a module page that does not get automatically included by the Update process. If for instance, a page is displayed by a module that is not as a result of a user menu selection (perhaps as a result of pressing a button or clicking on a link within a page), the Update process will not find it and you will have to manually add it."

Does anyone know how I can do that in the module Config in the Page MetaTags Edit ?

Example:

I want to include a specific title, description and keywords for this dynamically generated page:
http://www.minacom.com/modules/minaweb/index.php?command=defaultPage&operation=displayCategory&id=1

but I want different keywords for this page(under the same module):
http://www.minacom.com/modules/minaweb/index.php?command=defaultPage&operation=displayCategory&id=2

I can insert new pages but how do I specify the url of the page?

Would appreciate some help on this.

Thanks

Patrick S.
Web developer



9
boumbo
Re: 2 xoops questions guys (and gals) :-)
  • 2007/4/9 16:15

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


I installed XBS TAGS on XOOPS 2.2.2 and I was wondering how I can specify different meta tags for each page under the same module?

In the XBS TAGS documentation, it says that we can add pages manually:

"You may also manually add a page to the list. You may wish to do this for a module page that does not get automatically included by the Update process. If for instance, a page is displayed by a module that is not as a result of a user menu selection (perhaps as a result of pressing a button or clicking on a link within a page), the Update process will not find it and you will have to manually add it."

Does anyone know how I can do that in the module Config in the Page MetaTags Edit ?

Example:

I want to include a specific title, description and keywords for this dynamically generated page:
http://www.minacom.com/modules/minaweb/index.php?command=defaultPage&operation=displayCategory&id=1

but I want different keywords for this page(under the same module):
http://www.minacom.com/modules/minaweb/index.php?command=defaultPage&operation=displayCategory&id=2

I can insert new pages but how do I specify the url of the page?

Would appreciate some help on this.

Thanks

Patrick S.
Web developer



10
boumbo
Re: Migration Module?
  • 2007/3/3 18:07

  • boumbo

  • Just popping in

  • Posts: 37

  • Since: 2006/9/25


Is my request too specific?




TopTop
(1) 2 3 4 »



Login

Who's Online

273 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 273


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