# Gallery images linking together in article "blog section/category" view

124人阅读 评论(0)

I came up with this problem today and found a solution. The bug occurs because of the $sigcount variable. On the frontpage, the mambot runs one time for each article that appears. So, the$sigcount variable initializes again and again for each article, and the frontpage ends up with different "sig0" div classes.

The workaround i used is as follows....

1) Backup plugin_jw_sigpro.php, located at mambots/content
2) At plugin_jw_sigpro.php, do the following

Find the line

Code:
$sigdata = '<style type="text/css" media="all">#sigid'.$sigcount.'.sig .sig_cont {width:'.($_width_final_+20).'px;height:'.($_height_final_+20).'px;}</style>';

Just BEFORE that line, insert the following
Code:
$sigmd5 =$sigcount . '_' . md5($mosConfig_absolute_path.$rootfolder.$_images_dir_); Replace all occurences of$sigcount with $sigmd5, EXCEPT FROM the lines Code:$sigcount = -1;

Code:
$sigcount++; Code:$sigmd5 = $sigcount . '_' . md5($mosConfig_absolute_path.$rootfolder.$_images_dir_);
LEAVE THESE LINES AS THEY ARE. ALL OTHER OCCURENCES OF $sigcount need to be replaced by$sigmd5

This solution worked well for me and the modes that I use. I suppose that it works for each and every other mode, but cannot guarantee that. Just do your backup, and try for yourself. If it does not work, rollback to the backed-up version.

0
0

【直播】机器学习&数据挖掘7周实训--韦玮
【套餐】系统集成项目管理工程师顺利通关--徐朋
【直播】3小时掌握Docker最佳实战-徐西宁
【套餐】机器学习系列套餐（算法+实战）--唐宇迪
【直播】计算机视觉原理及实战--屈教授
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之矩阵--黄博士
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之凸优化--马博士
【套餐】Javascript 设计模式实战--曾亮

* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场
个人资料
• 访问：241次
• 积分：7
• 等级：
• 排名：千里之外
• 原创：0篇
• 转载：1篇
• 译文：0篇
• 评论：0条
文章分类
文章存档