The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

the topic pup up stoped working on my forum in all of sudden

View previous topic View next topic Go down

Solved the topic pup up stoped working on my forum in all of sudden

Post by Michael_vx on October 13th 2014, 12:38 am

the topic pup up stoped working on my forum in all of sudden all what its show me is this



if there way to find out what happen in my forum thanks again

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: the topic pup up stoped working on my forum in all of sudden

Post by Ange Tuteur on October 13th 2014, 12:57 am

Hi Michael,

Could you provide a link to your forum ?

Thanks Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: the topic pup up stoped working on my forum in all of sudden

Post by Michael_vx on October 13th 2014, 12:59 am

@Ange Tuteur wrote:Hi Michael,

Could you provide a link to your forum ?

Thanks Smile
the link
http://micsoft.logu2.com
the forum is Arabic
the Script was wrking before

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: the topic pup up stoped working on my forum in all of sudden

Post by Ange Tuteur on October 13th 2014, 1:11 am

Odd, try replacing your script by :
Code:
$(function () {
 $('a.topictitle').after(' <img id="topicPreview" src="http://hitskin.com/themes/20/23/90/i_icon_latest_reply.png" title="عرض فورى للموضوع" alt="Preview" style="cursor:pointer;" />');
 $('img#topicPreview').click(function () {
  $('body').append('<div id="preview-filter" style="position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0, 0.5);cursor:pointer;z-index:10;"></div>' + '<div id="topicPreview-container" style="top:20%;left:15%;right:15%;padding:4px;position:fixed;z-index:50;background:#D1D1D1;border-radius:5px;box-shadow:0px 0px 2px rgba(0,0,0, 0.5) inset;">' + '<style>' + '#closeButton {color:#fff;font-size:10px;font-weight:bold;background:rgba(0,0,0,0.6);box-shadow:0px 0px 2px rgba(0,0,0,1) inset;text-shadow:0px 0px 1px #000;display:inline-block;border-radius:30px;padding:3px 6px;cursor:pointer;position:absolute;top:-8px;right:-8px;}' + '#closeButton:hover {background:#D56262;}' + '</style>' + '<div id="closeButton">اغلاق الصفحة</div>' + '<div id="topicPreviewing" style="max-height:600px;overflow-y:auto;">' + '<center>' + '<span class="topicPreview-loading" style="font-weight:bold;font-size:18px;">' + 'انتظر من فضلك' + '</span>' + '</center>' + '</div>' + '</div>');
  $('#topicPreviewing').load(jQuery(this).siblings('a.topictitle').attr('href') + ' .post:eq(1)');
  $('div#preview-filter, #closeButton').click(function () {
  $('#preview-filter, #topicPreview-container').remove()
  })
 })
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: the topic pup up stoped working on my forum in all of sudden

Post by Michael_vx on October 13th 2014, 1:18 am

O.o
solved right a way
the code working
thanks for the big help
i wonder why the old one is not working any more
topic solved
thanks a lot

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: the topic pup up stoped working on my forum in all of sudden

Post by Ange Tuteur on October 13th 2014, 1:20 am

That is a mystery, you're welcome ! Razz

I changed .post:eq(0) to .post:eq(1) and it worked.

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum