News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

No 'Delete' button next to added recipient usernames when sending a PM

Started by Mari-chi, June 11, 2011, 04:02:57 PM

Previous topic - Next topic

Mari-chi

I was sending a PM today to various people, and when I made a mistake in choosing a username from the dropdown that appears, I realised that the 'delete' button was gone.

The one that looks like this:

I went to my test forum to see if I'd just been imagining it being there all along, but sure enough, it was there on my test forum.

I'm not sure if it wasn't there on my current forum (http://adlucem.net) frmo the start, or if it just randomly disappeared.

The 'delete' picture is there in the images folder of the theme I'm currently using, so it's not like it's not there. I'm very confused! Anyone know what happened?


<3!

Mari-chi

Bump!

P.S. I've checked suggest.js, and there's nothing wrong with that file. :3

Sir Osis of Liver


You have to click on a username in the dropmenu to make it work.  That adds it to bcc list, and shows the widget.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Mari-chi

No, clicking on the username in the dropdown does not work either. :(

I don't have to click on the username in my test forum for the delete button to appear. :/ I just use my arrow key to move down on the list, hit enter, and it's there beside the entered username.

Sir Osis of Liver


Does it work properly on this forum?  It works fine on my clean RC5 install (default core theme), and on this board in IE8.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Mari-chi

Yup, just checked on SM.org, and it works perfectly. No clue why it's not working on mine. :/

What files are associated with the delete button? The only ones I could think of were suggest.js, personalmessage.php and personalmessage.template.php. :S

Illori


Mari-chi

There... Are 46 errors, but I never really got how to read that thing. :/ To be best of my knowledge, none of them are related to the PM function. Is there anything specific I should be looking for in the error log?

Illori

can you post the error log so we can tell you what may be related?

Mari-chi


Illori

go to admin -> server settings and check disable evaluation of templates save the page and clear your logs and post any new errors you get without eval in them.

Mari-chi

Okay I did all that, and there are no errors in the Error Log so far.

Do you know what files are associated with that aspect of PMing (other than the three I listed above)? I'd like to look at them and compare them with my test forum. :3

Illori

i am not sure which file would control that part, but the error log should tell us some details.

Mari-chi

There's nothing in the Error Log so far. :S Has this ever been reported before?

Illori


Mari-chi

Hmm okay, we're at a wall here. D:

I haven't the faintest clue what the heck is wrong with my forum. *kicks it*

Anyone else have an idea? x_X

Sir Osis of Liver


Still haven't found the file that calls that image.  I'll chase it around some more tonight if I have time.

Anyone out there know?

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

DaeHawk

I had the same problem with one of the Themes I was using but using the default Theme that comes with the new 2.0 I see the may be the theme your using. its not called by a file its called by an action but not sure how that is done

Mari-chi

Ohhh, that could be it! Thanks, DaeHawk, I'll ask Dziner Studio about it. :3

@Krash: that image is called through suggest.js. I haven't found any other files with that image in it. :S

Xarcell

If your using a theme that uses z-index, you may have problems. SMF default theme doesn't support z-index like it should. z-index should be applied to all positions.

Try this, in index.css

Find:
.auto_suggest_div
{
   border: 1px solid #000;
   position: absolute;
   visibility: hidden;
}

Replace:
.auto_suggest_div
{
   border: 1px solid #000;
   position: absolute;
   visibility: hidden;
   z-index: 9999;
}


Mari-chi

No, that one did not work as well, I'm sorry to say. :( I applied it to both the default theme and my current theme, and there's no change at all. *dies*

Sir Osis of Liver


In suggest.js, try replacing %images_url% with your image path.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Mari-chi

Yup, that was the first thing I tried. I also tried hosting it elsewhere and using that link instead, but also no dice. :/

Xarcell

try...

suggest.js

Find
this.oSuggestDivHandle.style.top = (aParentPos[1] + this.oTextHandle.offsetHeight) + 'px'

Add After
this.oSuggestDivHandle.style.zIndex = '9999';

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Mari-chi

No, that did not work either. D: This is driving me up a wall!

Xarcell

Quote from: Krash. on June 13, 2011, 11:33:33 PM

Think it's buried?


Could be. That's what happened to me. I was using a custom theme that used z-index alot. It causes all sorts of issues with the ajax edits and suggest.js. The suggesting I made in this post fixed the problems for me.

ARG01

Have you tried anything with this in ModerationCenter.template.php?

// Cycle through the notes.
foreach ($context['notes'] as $note)
echo '
<li class="smalltext"><a href="', $note['delete_href'], '"><img src="', $settings['images_url'], '/pm_recipient_delete.gif" alt="" /></a> <strong>', $note['author']['link'], ':</strong> ', $note['text'], '</li>';


Probably nothing but that's the only other place that I can find that has anything to do with that particular image.
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Mari-chi


Mari-chi

All right... It's just been confirmed that it's not a theme-related issue. Apparently the delete button exists in all dziner studio themes. *rips out hair*

Mari-chi

OMFG I am so stupid. I had applied a 'display: none;' to the post-icon image (when posting a new topic, or replying, etc.), because I didn't want that to be changed by anyone (I wanted that image to stay the same in all threads). Apparently the delete button inherited that and, well, DISPLAY: NONE'D.

So I just got rid of <img src="', $context['icon_url'], '" name="icons" hspace="15" alt="" /> in post.template.php, and deleted the 'display: none;' value for the post icon. And voila! The delete button showed up again!

Thank you all so, so much for helping me through this!

*Gives cookies to all*

ARG01

No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Advertisement: