简体   繁体   English

有关CMS的php代码的问题

[英]question about php code from a CMS

I am trying to fix something in someone's website. 我正在尝试修复某人的网站中的某些内容。

Unfortunatley, the website is built on a CMS called GeekPak and is built in PHP. Unfortunatley,该网站基于名为GeekPak的CMS构建,并使用PHP构建。 I know php a little but I am no expert in it. 我有点了解php,但我不是专家。

I've been trying to resolve the following for quite a while now. 我已经尝试解决以下问题已有一段时间了。

Problem: If you go on this page you will see a thumbnail gallery in bottom right. 问题:如果转到此页面,您将在右下角看到一个缩略图库。 There are 6 images in the gallery. 画廊中有6张图片。 First two are spacers (nothing.gif). 前两个是间隔符(nothing.gif)。 Problem is that instead of those spacers coming towards the bottom right...they are coming in the upper left. 问题在于,这些间隔物不是朝右下角延伸,而是朝左上角延伸。 I think who ever developed it, is filling everything with nothing.gif and then replacing it with images but they are going from Right to Left...instead of Left to Right. 我想是谁开发的,什么都没有填充。gif,然后用图像替换,但是它们是从右到左...而不是从左到右。

Following is the code and I can not make any sense of it. 以下是代码,我无法理解。

<tr>
    <td class="galleryThumbs">
        <div class="sepinator"></div>
        <div class="extlinkinator">
            <a href="javascript:extClick();" id="externalLink"></a>
        </div>
        <div class="paginator">
            <a href="javascript:leftClick();" id="arrowL" class="arrowL0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
            <a href="javascript:rightClick();" id="arrowR" class="arrowR0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
       </div>
       <br clear="all" />
       <a href="javascript:setBig('8');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb8" /></a>
       <a href="javascript:setBig('7');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb7" /></a>
       <a href="javascript:setBig('6');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb6" /></a>
       <a href="javascript:setBig('5');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb5" /></a>
       <br>
       <a href="javascript:setBig('4');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb4" /></a>
       <a href="javascript:setBig('3');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb3" /></a>
       <a href="javascript:setBig('2');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb2" /></a>
       <a href="javascript:setBig('1');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb1" /></a>
       ~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid#']*
       <br />
       <img src="/templates/images/nothing.gif" width="339" height="1" border="0" alt="" /></td>
</tr>

Can someone guide me in some direction from where I can go about fixing this? 有人可以从某个方向引导我解决这个问题吗? Also, what is GALLERY_THUMBS_ALT? 另外,什么是GALLERY_THUMBS_ALT? No where in the code do I see that function. 我在代码中的任何地方都看不到该功能。

Edit: If you hover over the images in the gallery you will notice that they start from 8 and decease to 1. Basically they should start form 1 and increase to 8 编辑:如果将鼠标悬停在图库中的图像上,您会注意到它们从8开始并递减到1。基本上,它们应该从1开始并增加到8

If I change the code so that setBig('8') becomes setBig('1') and so on...then it starts to look like this :( 如果我更改代码以使setBig('8')变为setBig('1'),依此类推...然后它开始看起来像这样 :(

gallerySmallEmpy is following gallerySmallEmpy正在关注

IMG.gallerySmallEmpty
{
    border-color:                   #FFF;
    border-width:                   1px;
    border-style:                   solid;
    margin:                 10px    0   0   10px;
}

Start by searching in the css for the class ".gallerySmallEmpty", and see what's in there .. althought I think you just have to change your code into this : 首先在CSS中搜索类“ .gallerySmallEmpty”,然后查看其中的内容..虽然我认为您只需要将代码更改为:

<tr>
    <td class="galleryThumbs">
        <div class="sepinator"></div>
        <div class="extlinkinator">
            <a href="javascript:extClick();" id="externalLink"></a>
        </div>
        <div class="paginator">
            <a href="javascript:leftClick();" id="arrowL" class="arrowL0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
            <a href="javascript:rightClick();" id="arrowR" class="arrowR0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a>
       </div>
       <br clear="all" />
       <a href="javascript:setBig('1');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb8" /></a>
       <a href="javascript:setBig('2');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb7" /></a>
       <a href="javascript:setBig('3');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb6" /></a>
       <a href="javascript:setBig('4');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb5" /></a>
       <br>
       <a href="javascript:setBig('5');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb4" /></a>
       <a href="javascript:setBig('6');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb3" /></a>
       <a href="javascript:setBig('7');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb2" /></a>
       <a href="javascript:setBig('8');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb1" /></a>
       ~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid#']*
       <br />
       <img src="/templates/images/nothing.gif" width="339" height="1" border="0" alt="" /></td>
</tr>
  • Notice that I change the order of the gallery presentation (numbers) 请注意,我更改了画廊展示的顺序(数字)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM