Attachment MOD dont work for admins

Since Opentools.de has now gone away I've created this forum to house FAQs and support for this mod in phpBB2.

Moderator: Experts

Locked
Divvy
Posts: 5
Joined: Tue May 08, 2007 8:46 pm

Attachment MOD dont work for admins

Post 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 (Image) appears next to the topic title and the image appears fine in the post message.

When a admin uploads an image, the icone (Image) 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... :oops:
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

Are you for some reason skipping the "message posted" notification that occurs after posting only for admins?
Divvy
Posts: 5
Joined: Tue May 08, 2007 8:46 pm

Post by Divvy »

Hi DavidIQ,
Sorry, but dont understand what do you said :(
I think that I didnt skip anything....
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post 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?
Divvy
Posts: 5
Joined: Tue May 08, 2007 8:46 pm

Post 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... :)
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

It could be:

posting.php, includes/functions.php, or includes/functions_post.php
Divvy
Posts: 5
Joined: Tue May 08, 2007 8:46 pm

Post 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? :)
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

I need the whole mod and not just the lines. Attach it to a message.
Divvy
Posts: 5
Joined: Tue May 08, 2007 8:46 pm

Post by Divvy »

Sorry... I cannot sent the mod because I dont have the authorization of the author to do it...
Well, thanks anyway :(
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Post by DavidIQ »

That is the dumbest thing I've ever heard :roll:
php and phpBB is open source. MOD writters don't have copyright holdings on their creations...
Well happy trails then.
Locked