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

转载 2007年09月24日 16:00:00

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. 

http://blog.csdn.net/small_love/article/category/742855

Query接口是个相当直接的方法。他允许非常确切的过滤方式(基于属性),排序,一个偏移和限制返回结果的数量。   query实现也实现了QueryResults接口...
  • jsdxshi
  • jsdxshi
  • 2017年06月30日 14:41
  • 244

View工作原理(一)事件传递原理详解http://blog.csdn.net/ff20081528/article/details/17353869

一、准备知识 1、视图坐标与布局坐标的区别如下图所示: 上图是一个坐标系,这个坐标系是无边无际的。这个无边无际的坐标系即视图坐标。手机屏幕可视范围内的坐标即手机屏幕的布局坐标(坐标原...
  • ljinxin
  • ljinxin
  • 2015年12月10日 20:06
  • 520

sql中 in 、not in 、exists、not exists 用法和差别http://blog.csdn.net/lihan6415151528/article/details/4466914

exists (sql 返回结果集为真)  not exists (sql 不返回结果集为真)  如下:  表A  ID NAME  1    A1  2    A2  3  A3 ...
  • Moonant
  • Moonant
  • 2013年08月24日 10:02
  • 520

Linking Containers Together

Linking Containers Together In the Using Docker section we touched on connecting to a service runni...

HTML5_中_div_section_article_的区别

  • 2014年09月01日 13:28
  • 18KB
  • 下载

Consul & Registrator & Rails Service all together in separate Docker container

1.Start a container running Consul 2.Start a container running Registrator 3. Start a web service an...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Gallery images linking together in article "blog section/category" view
举报原因:
原因补充:

(最多只允许输入30个字)