31
tank1955
Re: XoopsGraphs - Prototype for 3.0 release available!
  • 2009/1/24 18:15

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I realize this thread is several months old so someone may have already discovered and corrected the items I have found but I thought I would report it anyway.

I found some functions that didn't work properly such as adding title to an axis and adding tick labels.

The problems I found were in /class/graphs/graphjpgraph.php

The first problem was in the function set_options_element_b. The following code contains my modifications:

function set_options_element_b ($graph$option_element$element) {
  if (
is_object($graph)){
    if (!empty(
$option_element)){
      foreach (
$option_element as  $key => $value){
    
$this->set_object_func($graph$element$key$value);
      }
    }
  }
  return 
$graph;
}


The other problem was located in the function set_object_func. The comparison to determine if the passed $value parameter is an array was insufficient. An additional comparison was necessary to determine if the $value parameter was actually an associative array.

Here is the additional function I added:

function is_associative(&$array) {
  
$next 0;
  foreach (
$array as $k=>$v) {
    if (
$k !== $next)
      return 
true;
    
$next++;
  }
  return 
false;
}


Then in the third line of the set_object_func function the additional comparison was added for this situation.

function set_object_func($obj$subelem$finalele$value){
    
                if (
is_object($obj)){
                    if (
is_array($value)&&!in_array($finalele,$this->get_func_that_array())){
                        if (!
$this->is_associative($value)&&!is_array($value[0])&&!is_array($value[1])&&!is_array($value[2])&&!is_array($value[3])&&!is_array($value[4])&&!is_array($value[5])&&!is_array($value[6])&&!is_array($value[7])){

.....


Now everything appears to be working but lots more testing to be done.



32
tank1955
Re: XoopsGraphs - Prototype for 3.0 release available!
  • 2009/1/22 2:58

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I recently received a client request to build a custom module incorporating jpgraph so I downloaded the latest development you created for a test run. Everything works great that I have tried so far. Very impressive work Wishcraft. Thanks so much for all of your hard work.



33
tank1955
Re: Is xoops (.org) becoming a playground?
  • 2009/1/19 19:28

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I wasn't offended flipse and thanks for the explanation. I always try to view feedback, whether positive or negative, as a constructive tool for driving improvements in whatever I do.



34
tank1955
Re: Is xoops (.org) becoming a playground?
  • 2009/1/19 14:00

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I am not quite sure how to respond to this post except to say that it was never my intention to degrade the professional appearance of xoops. I do realize that sometimes I can be over zealous when releasing software updates and I should probably restrict this activity to the XOOPS developers site.

VideoTube not a serious module? All I can say to that is opinions vary.



35
tank1955
Re: I need a help PLZ :every file named index has been injected ...
  • 2009/1/11 23:00

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


The exact same thing happened to me several months ago. The hacker managed to access and get a dump of my username and password list for the site. The password I was using to administer the site was the same password I used to access ftp.

I would suggest either looking at your server's ftp log or ask your host provider to look at the log. Even if you have to keep a hand written list of passwords I recommend never using the same password twice.

And when it comes to beefing up security for the future you should follow the advice of folks like ghia. He was fantastic at helping me work through my issues.



36
tank1955
Re: Text sanitizing question
  • 2009/1/10 17:00

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I have been doing some more reading about text sanitizing. For the next release of Video Tube I want to clean up the debug deprecated messages caused by $myts->makeTboxData4Save useage.

I am not sure if I should just change from $myts->makeTboxData4Save to $myts->addslashes. Some articles I have been reading recommend the use of mysql_real_escape_string instead of addslashes. I would like to hear your thoughts.



37
tank1955
Video Tube v1.81 Release Now Available
  • 2009/1/7 1:09

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Video Tube v1.81 is an XOOPS module providing the ability to search, embed and manage videos on your site. Search, preview and auto-fill submission offered for YouTube, DailyMotion, MetaCafe and blip.tv plus a manual submission form for all other video services that offer video embedding.
This is a beta release intended to address some of the feature requests we have received. Some of the new features include full language support, html class attribute assignments and module style css, elimination of all hard-coded text moving everything to language files, addition of subcategories, complete rewrite of the category management admin interface, optional category selection display utilizing fieldset form with breadcrumb header, automatic comment reply title assignment using the video title, and changing several of the video table fields to text from varchar eliminating length restriction problems.
Be advised this release has only been tested with XOOPS 2.3.1.
We will be adding language translation files as we receive them.

To download either visit the module repository or go directly to CVD Video Tube v1.81 Download

Even if your particular request does not appear in this release, rest assured it is still on our development task list.



38
tank1955
Re: HTML or JS
  • 2008/12/7 16:09

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I would try a search on "javascript" and "layers". The approach I would take would be to load all full size images correlating to the thumbnails, each on a different layer. Which layer (or image) is being displayed would be determined by the "Z-order". This would be controlled by an onclick event tied to each thumbnail.

This is just off the top of my head. Hope it helps.



39
tank1955
Re: sitemap module xml_google.php works on one site and not another
  • 2008/11/28 14:03

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


If I go tohttp://bagsofbooks.net/xml_google.php this is what I get:

<?xml version="1.0" encoding="UTF-8" ?> 
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- <url>
  <loc>http://bagsofbooks.net/</loc> 
  <lastmod>2008-11-28T13:50:41Z</lastmod> 
  <priority>1.0</priority> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/searchmembers.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/index.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/scrapbook.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/album.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/seutubo.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/friends.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/tribes.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/yogurt/configs.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/index.php?storytopic=4</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/index.php?storytopic=2</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/index.php?storytopic=3</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/index.php?storytopic=1</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/archive.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/news/topics_directory.php</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/mediawiki/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/Xigg/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/Xigg/index.php/tag</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/wfdownloads/</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/wfdownloads/topten.php?list=hit</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/wfdownloads/topten.php?list=rate</loc> 
  </url>
- <url>
  <loc>http://bagsofbooks.net/modules/contact_plus/</loc> 
  </url>
  </urlset>


However, the other site you indicated shows the "Don't call this file directly" error."

If your XOOPS installation resides in the root directory of your domain then everything works fine. But it appears that if the installation is nested inside of another subdirectory then the error occurs. This has also been reported by others who are using the Sitemap v1.30b with CVD hacks I have provided. I am working to try to come up with a solution.




40
tank1955
Re: sitemap module xml_google.php works on one site and not another
  • 2008/11/27 21:34

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


It would appear that www.macmend.com/machelp/modules/sitemap/xml_google.php can not be found or it has to do with the dirname(__FILE__) command possibly returning www.macmend.com instead of www.macmend.com/machelp/




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



Login

Who's Online

267 user(s) are online (190 user(s) are browsing Support Forums)


Members: 0


Guests: 267


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