PDA

View Full Version : Can any one help Me Here


ARP
04-23-2009, 05:45 PM
i want if any one did not thank the post did not see the attach
i code this but it didn't work

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
postbit_display_complete
Fix the problems that Dismounted mentioned and then see if it works. If not, post your new plugin code.