FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » FUDforum in eGroupWare » disabling the option of UPload files
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
disabling the option of UPload files [message #23987] Thu, 07 April 2005 05:38 Go to next message
sanju is currently offline  sanju   India
Messages: 11
Registered: March 2005
Location: Linux World
Karma: 0
Junior Member
how do i disable the option upload files while doing post reply?
Re: disabling the option of UPload files [message #24005 is a reply to message #23987] Thu, 07 April 2005 21:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The file upload option in the group manager.

FUDforum Core Developer
Re: disabling the option of UPload files [message #24060 is a reply to message #23987] Tue, 12 April 2005 12:49 Go to previous messageGo to next message
sanju is currently offline  sanju   India
Messages: 11
Registered: March 2005
Location: Linux World
Karma: 0
Junior Member
hmm, but still the upload option is visible

just i dont want to show it there

basically,

now i am running bugzilla in the same machine, i am getting afraid to upgrade the php version, but this upload option is still giving me the error

"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/egroupware/fudforum/3814588639/theme/default/getfile.php on line 123"

line 123 is like this

LEFT JOIN phpgw_fud_mod mod ON mod.forum_id=t.forum_id AND mod.user_id='._uid.';


the entire set of code is like this,
"

$r = db_saq('SELECT mm.mime_hdr, a.original_name, a.location, m.id, md.id,
('.(_uid ? '(CASE WHEN g2.id IS NOT NULL THEN g2.group_cache_opt ELSE g1.group_cache_opt END)' : 'g1.group_cache_opt').' & 2) > 0
FROM {SQL_TABLE_PREFIX}attach a
INNER JOIN {SQL_TABLE_PREFIX}msg m ON a.message_id=m.id AND a.attach_opt=0
INNER JOIN {SQL_TABLE_PREFIX}thread t ON m.thread_id=t.id
INNER JOIN {SQL_TABLE_PREFIX}group_cache g1 ON g1.user_id='.(_uid ? 2147483647 : 0).' AND g1.resource_id=t.forum_id
LEFT JOIN {SQL_TABLE_PREFIX}mod md ON md.forum_id=t.forum_id AND md.user_id='._uid.'
LEFT JOIN {SQL_TABLE_PREFIX}mime mm ON mm.id=a.mime_type
'.(_uid ? 'LEFT JOIN {SQL_TABLE_PREFIX}group_cache g2 ON g2.user_id='._uid.' AND g2.resource_id=t.forum_id' : '').'
WHERE a.id='.$id)';
LEFT JOIN phpgw_fud_mod mod ON mod.forum_id=t.forum_id AND mod.user_id='._uid.';
LEFT JOIN phpgw_fud_mime mm ON mm.id=a.mime_type
'.(_uid ? 'LEFT JOIN phpgw_fud_group_cache g2 ON g2.user_id='._uid.' AND g2.resource_id=t.forum_id' : '').'
WHERE a.id='.$id)';
if (!$r) {
invl_inp_err();
}
if (!($usr->users_opt & 1048576) && !$r[4] && !$r[5]) {
std_error('access');
}
} else {
$r = db_saq('SELECT mm.mime_hdr, a.original_name, a.location, pm.id, a.owner
FROM phpgw_fud_attach a
INNER JOIN phpgw_fud_pmsg pm ON a.message_id=pm.id AND a.attach_opt=1
LEFT JOIN phpgw_fud_mime mm ON mm.id=a.mime_type
WHERE a.attach_opt=1 AND a.id='.$id);


will you please help me?
Re: disabling the option of UPload files [message #24061 is a reply to message #24060] Tue, 12 April 2005 13:03 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Looks like the theme compiler did not work, try to rebuild the theme one more time... and make sure you have the latest source of FUDeGW.

FUDforum Core Developer
Re: disabling the option of UPload files [message #24063 is a reply to message #23987] Tue, 12 April 2005 13:23 Go to previous message
sanju is currently offline  sanju   India
Messages: 11
Registered: March 2005
Location: Linux World
Karma: 0
Junior Member
thanks ilia

i copied the code from
http://bb.prohost.org/egw.txt

and now it is working,

thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: threads and posts are mixed up
Next Topic: 404 Error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 07:46:57 GMT 2024

Total time taken to generate the page: 0.02157 seconds