vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can any one help Me Here (https://vborg.vbsupport.ru/showthread.php?t=212015)

ARP 04-23-2009 05:45 PM

Can any one help Me Here
 
i want if any one did not thank the post did not see the attach
i code this but it didn't work

PHP Code:

if (((!$post_thanks_user AND !$post_thanks_off AND !$post_thanks_ban AND !can_moderate($forumid) AND !($this->post['userid'] == $this->registry->userinfo['userid'])) OR ($this->registry->userinfo['userid'] == 0)) AND (THIS_SCRIPT == showpost OR THIS_SCRIPT == showthread))
{
eval(
'$this->post[\'imageattachmentlinks\'] = ('$New Template "' . fetch_template('New Template') . '";');
eval('
$this->post[\'thumbnailattachments\'] = ('$New Template "' . fetch_template('New Template') . '";');
eval('
$this->post[\'imageattachments\'] = ('$New Template "' . fetch_template('New Template') . '";');
eval('
$this->post[\'otherattachments\'] = ('$New Template "' . fetch_template('New Template') . '";');
eval('
$this->post[\'moderatedattachments\'] = ('$New Template "' . fetch_template('New Template') . '";'); 


Can Any One Check It :)

Dismounted 04-24-2009 10:48 AM

Firstly, that code is wrong. A variable cannot contain spaces. The template names are not even correct?

Where are you placing this code?

ARP 04-24-2009 07:51 PM

postbit_display_complete

Lynne 04-24-2009 08:20 PM

Quote:

Originally Posted by ARP (Post 1798386)
postbit_display_complete

Fix the problems that Dismounted mentioned and then see if it works. If not, post your new plugin code.


All times are GMT. The time now is 07:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01080 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete