Re: Gnaviモジュールphp7への対応(追加)

このトピックの投稿一覧へ

なし Re: Gnaviモジュールphp7への対応(追加)

msg# 1.4.1
depth:
2
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2023/2/11 17:19 | 最終変更
タツ  管理人   投稿数: 2403 オンライン
今回最も厄介だったのがこのGnaviモジュールでした。
以下の編集を追加しインストールしたものの地図表示では一覧表が表示されなかったり地図自体が一部しか表示されなかったりとGnavi1.06では不具合が生じたので、以前利用していたGnavi1.05に変更しました。Gnavi1.05も編集の方法はほぼ一緒です。私はパソコンですが、今の所正常に表示されています。

編集個所についてはwebphotoと同様
■編集基本パターン
・__construct,parent::__construct,public staticの変更パターン(ほぼ全てのファイル)
class A exend B{
function A(){
this -> B()
}
function &getInstance(){
}
}
変更↓
class A exend B{
function __construct(){
parent::__construct()
}
public static function &getInstance(){
}
}
となります。

■以下前記事の追加として挙げておきます。
xoops_trust_path/libs/qrcode/qrcode_img.php
17行目
function Qrcode_image(){
$this->Qrcode();
↓
function __construct(){
parent::__construct();

xoops_trust_path/libs/qrcode/qrcode_img.php
12行目
class Qrcode{
↓
class __construct{

xoops_trust_path/modules/gnavi/admin/mygroupepermform.php
82行目
$this->XoopsForm($title, 'groupperm_form', '' , 'post');
↓
parent::__construct($title, 'groupperm_form', '' , 'post');

xoops_trust_path/modules/gnavi/class/GnaviExif.class.php
8行目
function GnaviExif($file = null) {
↓
function __construct($file = null) {

■サイトマップにGnaviが対応できなかったのでコードを編集しました。2024年4月17日各Gnaviモジュールでサイトマップが反映されないためさらに変更しました。
xoops_trust_path/modules/gnavi/include/sitemap.plugin.php
<?php
function b_sitemap_gnavi( $mydirname ){
$db = Database::getInstance();
$ret = sitemap_get_categoires_map($db->prefix($mydirname."_cat"), "cid", "pid", "title", "index.php?cid=", "title");
return $ret;
}

↓変更 sitemapのものを転用(2024年4月17日追加変更)

<?php
// FILE :: myalbum.php
// AUTHOR :: suin <tms@s10.xrea.com>
// WEB :: AmethystBlue <http://www.suin.jp/>
// DATE :: 2005-02-15
function b_sitemap_gnavi($mydirname){
$db =& Database::getInstance();
$block = sitemap_get_categories_map($db->prefix($mydirname."_cat"), "cid", "pid", "title", "index.php?cid=", "title");
return $block;
}

■地図表示にてinfowindowで写真と文章が重なる現象がありました。
これは一般設定にて「サムネイル画像サイズ(pixel) 」を168pxにすると正常に表示されました。

■編集モードに遷移しないエラー(2023/03/11追加)
・xoops_trust_path/modules/gnavi/main/submit.php
681行目
// Show the form
OpenTable() ;

↓変更
// Show the form
include_once( XOOPS_ROOT_PATH."/include/cp_functions.php" ) ;
OpenTable() ;
投票数:2 平均点:5.00

投稿ツリー


     条件検索へ

旅と気ままなフォーラム最新投稿

欲しい商品が必ず見つかるメジャーなネットショップ

ログイン

Facebook,RSSリンク表示

検索

アクセスカウンタ

今日 : 331
昨日 : 422
総計 : 1631745