yourphp Problem Center

Source: Internet
Author: User
Tags explode

1. The foreground cannot read the field. The database list has, but the foreground is not readable.

2. Issues with views +1 and +2

Browse +2<a href="{: URL (' User-register/index ')}" style="  Background:url (); padding-left:0"> Registration </a> Browse +1<a href="{: URL (' User-register/index ')}" style="background:url (.. /); padding-left:0"> Registration </a>

3. Decide if the template is default or new?

The ' default_theme ' = ' DEFAULT ' in yourphp\conf\service\config.php,

4.a. Pics Multi-graph decomposition of products;

function Picstoarr ($str ="') {$data=Array (); $v= Explode (":::", $STR); foreach(array) $v as$r) {$r=explode ('|', $r); $res ['file']= $r [0]; $res ['desc']= $r [1]; $data []=$res; }    return$data;}

B. Own notes PHP decomposition

<?Php$data=Array (); $str=$r [pics]; $v= Explode (":::", $STR); foreach($v as$k =$val) {$data []= Explode ("|", $val); };//Print_r ($data);//Print_r ($r);foreach($data as$val) {echo"<a href= '". $val [0]."' title= '". $val [1]."' rel= ' lightbox[$r [id]] ></a>";}?>

5. Exception problem One: __tmpl__ does not resolve, the occurrence cannot be found. XX data,

Workaround: Create a new XX data in the database

6. Add a custom label and remove powered by copyright

File Location: core\lib\template\thinktemplate.class.php

$tmplContent = Str_replace ('? ><?php','', $tmplContent);   if (! Yp_key) {              =  str_replace ('</title>','-powered by< /title>', $tmplContent);   // Remove Powered by copyright      }

Add {$t} tag

if (! Yp_key) {        =  str_replace ('</title>','</title>  ', $tmplContent); }        =  str_replace ('{/t}','99999' , $tmplContent);   // new {$t} tag

7. Increase level Two admin can't read "column" Information

A:yourphp\lib\org\form.php in line 31, remove the code

if (($this->isadmin && $_session['groupid']!=1 &&!in _array ($_session['groupid'), $postgroup)) | |  (Empty ($this->isadmin) &&!in_array (Cookies ('groupid' ) Continue;
is to judge administrative permissions, no permissions can not be displayed

B. Add permissions, manage accounts, adding permissions to column Management-"Product display (recommended method)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.