Page 1 of 1
Attachment MOD dont work for admins
Posted: Wed May 09, 2007 10:51 am
by Divvy
Hi guys!
First, congratulations for this board and thank you for supporting this great MOD.
I have a problem in my board, because all users can use the attachment system, but admins cannot.
When a normal user uploads an image, the icone (

) appears next to the topic title and the image appears fine in the post message.
When a admin uploads an image, the icone (

)
dont appears next to the topic title and
no image appears in the post message. But if I click "Edit", I see that the image was sucessafuly uploaded... and I can see her by clicking in the link.
Can someone help me please?
P.S. Sorry for my poor english...

Posted: Wed May 09, 2007 10:59 am
by DavidIQ
Are you for some reason skipping the "message posted" notification that occurs after posting only for admins?
Posted: Wed May 09, 2007 11:15 am
by Divvy
Hi DavidIQ,
Sorry, but dont understand what do you said

I think that I didnt skip anything....
Posted: Wed May 09, 2007 12:39 pm
by DavidIQ
When you posted a reply here you were shown a page first that says your message has been posted. Do you get that when posting as an admin on your site?
Posted: Wed May 09, 2007 1:02 pm
by Divvy
Yes, I get.
I think that this problem is caused by a add-on that I have buy to someone. But I´m not sure...
Can you tell me what file is probably causing this? So I can upload the original one to test...

Posted: Wed May 09, 2007 1:32 pm
by DavidIQ
It could be:
posting.php, includes/functions.php, or includes/functions_post.php
Posted: Wed May 09, 2007 2:56 pm
by Divvy
I have checked and this 3 files are all fine...
I have uninstall the Add-on and now is working fine!

But I really need this addon on my board, and cannot find the author of the addon...
Can you help me please?
The lines that is causing the problem:
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT t.topic_id, t.topic_title
#
#-----[ IN-LINE FIND ]------------------------------------------
#
t.topic_last_post_id
#
#-----[ IN-LINE AFTER, ADD ]--------------------------------------
#
, t.topic_thumbnail
#
#-----[ FIND ]------------------------------------------
#
init_display_post_attachments
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$forum_topic_data['topic_attachment']
#
#-----[ IN-LINE AFTER, ADD ]--------------------------------------
#
&& !$forum_topic_data['topic_thumbnail']
Do you have any sugestion for me?

Posted: Wed May 09, 2007 3:15 pm
by DavidIQ
I need the whole mod and not just the lines. Attach it to a message.
Posted: Wed May 09, 2007 4:31 pm
by Divvy
Sorry... I cannot sent the mod because I dont have the authorization of the author to do it...
Well, thanks anyway

Posted: Wed May 09, 2007 5:07 pm
by DavidIQ
That is the dumbest thing I've ever heard

php and phpBB is open source. MOD writters don't have copyright holdings on their creations...
Well happy trails then.