Jump to content

Lock Down

Rising Star
  • Posts

    1,035
  • Joined

  • Last visited

  • Days Won

    71

Everything posted by Lock Down

  1. If this is a template where is the actual data fields in this code <li class='clear clearfix'> </li> <li class='clear clearfix'> </li> Yo can do a test around these in the html but you need to know the data fields they are showing.
  2. Show us the code where you added the if with and without the < li > ..</ li >
  3. Only the mods and the admins can see that.. But you can remove it from the globaltemplate by finding <if test="accessreports:|:$this->memberData['is_mod'] OR !empty($this->memberData['access_report_center']) || ($this->memberData['g_access_cp'] AND !$this->settings['security_remove_acp_link'])"> <ul id='admin_bar' class='ipsList_inline left'> <if test="showacplink:|:$this->memberData['g_access_cp'] AND !$this->settings['security_remove_acp_link']"> <li> <a href="{$this->settings['_admin_link']}" title='{$this->lang->words['admin_cp']}' target="_blank">{$this->lang->words['login_to_acp']}</a> </li> </if> <li><a href="{parse url="app=core&amp;module=modcp" base="public"}" title='{$this->lang->words['gbl_modcp_link']}'>{$this->lang->words['gbl_modcp_link']}</a></li> <if test="rclink:|:$this->memberData['access_report_center'] && $this->memberData['_cache']['report_num'] > 0"> <li class='active'> <a href="{parse url="app=core&amp;module=reports&amp;do=index" base="public"}" title='{$this->lang->words['view_reports']}'>{$this->memberData['_cache']['report_num']} {$this->lang->words['report_member_bar']}</a> </li> </if> </ul> </if> and changing to this <!-- commented out <if test="accessreports:|:$this->memberData['is_mod'] OR !empty($this->memberData['access_report_center']) || ($this->memberData['g_access_cp'] AND !$this->settings['security_remove_acp_link'])"> <ul id='admin_bar' class='ipsList_inline left'> <if test="showacplink:|:$this->memberData['g_access_cp'] AND !$this->settings['security_remove_acp_link']"> <li> <a href="{$this->settings['_admin_link']}" title='{$this->lang->words['admin_cp']}' target="_blank">{$this->lang->words['login_to_acp']}</a> </li> </if> <li><a href="{parse url="app=core&amp;module=modcp" base="public"}" title='{$this->lang->words['gbl_modcp_link']}'>{$this->lang->words['gbl_modcp_link']}</a></li> <if test="rclink:|:$this->memberData['access_report_center'] && $this->memberData['_cache']['report_num'] > 0"> <li class='active'> <a href="{parse url="app=core&amp;module=reports&amp;do=index" base="public"}" title='{$this->lang->words['view_reports']}'>{$this->memberData['_cache']['report_num']} {$this->lang->words['report_member_bar']}</a> </li> </if> </ul> </if> end of commented out -->
  4. Unfortunately the new host has a higher php version requiring stricter code. So to fix it you would have to change the php to check if the fields exist or you could change the file initdata.php //--------------------------------------------------------------------------// ADVANCED CONFIGURATION: ERROR REPORTING//--------------------------------------------------------------------------if( version_compare( PHP_VERSION, '5.2.0', '>=' ) ){ error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_RECOVERABLE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );}else{ error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );}to //--------------------------------------------------------------------------// ADVANCED CONFIGURATION: ERROR REPORTING//--------------------------------------------------------------------------if( version_compare( PHP_VERSION, '5.2.0', '>=' ) ){ error_reporting( E_STRICT | E_ERRORE_PARSE | E_RECOVERABLE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );}else{ error_reporting( E_STRICT | E_ERROR E_PARSE | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );}
  5. It is because the mysql variable max_allowed_packet is set too low. Find the my.cnf file in the etc folder on your server and change the value to 32M or add this line after the [mysld] or [mysqldump] in that file. max_allowed_packet = 32M
  6. In the bbcode setup click yes to this Use Option in tag? Yes No and change the word Spoiler to {option}
  7. Pm answered. Updated my.cnf increasing allowed packet size and all is fine now.
  8. No the important part you left off. The error number and description of error. The insert is not helpful without it.
  9. Here is the bbcode replacement <pre class='prettyprint' style="max-height: 240px; overflow: auto">{content}</pre>
  10. Use phpmyadmin and browse core_hooks. Find the record for that app and change the hook_enabled field to 0.
  11. It should not do that. And you should not create the folder through ftp except thru the addon ftp not the root (main domain) ftp.
  12. That only works if the max memory allowed is 128M. @amon only if you have a reseller shared account or a vps/dedi.
  13. It can't .. But if you are using cpanel/whm to set the php settings and then changing it by editing the php.ini then if the host has to restart the server or the httpd service it could be changed back to original.
  14. It didn't work because it didn't get saved on the free host. I will check on your new free host. Changed the setting and now it is working.
  15. This error means that the host has the php max memory set to 32M and IPB needs 128M to run properly. If it is a free host you can ask them to set it to 128Meg and see what they say.
  16. OK the setting is in the manage forums under Permission SettingsEnable 'Best Answer' Feature? Yes NoEnable topic starter to toggle best answer?
  17. Have you tried to grab the dots on the left side of hook name and drag them to the position you want?
  18. In the hook php code itself usually in the function. Just change the return to a print on the last line. Look in the hooks folder for the php code. For the donation stats the file started with donationTrackerStats . So look at that one and check the change I made to print.
  19. For unreal portal (like portal) you do this for the donations sidebar after you create the custom sidebar block <?phprequire_once( IPSLib::getAppDir( 'donate' ) . "/sources/hooks.php" );$this->registry->setClass('donate_hooks', new donateHookGateway( $this->registry ) );print $this->registry->getClass('donate_hooks')->totalStats();?>
  20. You might look into ip.blog to use for articles also.
  21. Could be several reasons. Might be a new version of Mysql was installed on the server. Might be timing out trying to fix the errors. Take your ipb offline and then use your phpmyadmin to try and repair the posts table.
  22. You can remove it. It is saying that you do not have an array element called games. What template is that from and what version of IPB?
  23. That's ok. It is because of those lines. Did you get anything else at the top of the screen? If not change the code to this <php>echo '<pre>';print_r($member['custom_fields']);echo '</pre>';</php>
×
×
  • Create New...