http://forums.pligg.com/downloads.php?do=file&id=36
Code:
1) Edit: /templates/(your template)/submit_step_2.tpl
I didnt have to alter the <form> tag as the orignal installation instructions noted.
After line #94 (), add the following:
{php}
$vars2 = '';
check_actions('image_upload_form', $vars2);
{/php}
2) Edit: /templates/(your template)/submit_step_3.tpl
add the following right after line 1 (<h2>{#PLIGG_Visual_Submit3_Header#}</h2>)
{php}
$vars2 = '';
check_actions('image_upload_process', $vars2);
{/php}
3) Edit: /templates/(your template)/link_summary.tpl
after line 261 (), add the following:
{php}
$vars2 = '';
check_actions('image_upload_preview', $vars2);
{/php}
4) Edit: /templates/(your template)/editlink_edit_center.tpl
change the <form> tag as indicated by the orignal install document:
<form action="" method="post" id="thisform">
- Change it to -
<form action="" method="post" id="thisform" enctype="multipart/form-data">
add the following code after line 101 ({include file=$tpl_extra_fields.".tpl"})
{php}
$vars2 = '';
check_actions('image_upload_preview', $vars2);
{/php}
5) Edit: /editlink.php
Add the following code after like #125 ($linkres->store())
$vars2 = '';
check_actions('image_upload_process', $vars2);
6) Fix the smarty template errors in image_upload_main
Now, goto your image_upload directory and edit image_upload_main.php
When you run this, you'll get quite a few errors indicating geT_template_vars doesnt exist. you'll need to change $smart->get_template_vars to $main_smart->get_template_vars whereever you see the error pop up. thats all.
Now this isnt of much use to me, what I need is a generic file attachment functionality. If anyone knows of any modules that will do this for me, then let me know please. Otherwise i'm getting ready to turn this module into a generic file attachment module..
feedback appreciated. I hope this helps someone.
-js






Linear Mode

