2 posters
the topic pup up stoped working on my forum in all of sudden
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
Hi Michael,
Could you provide a link to your forum ?
Thanks
Could you provide a link to your forum ?
Thanks
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
the linkAnge Tuteur wrote:Hi Michael,
Could you provide a link to your forum ?
Thanks
http://micsoft.logu2.com
the forum is Arabic
the Script was wrking before
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
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()
  })
 })
});
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
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
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
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
That is a mystery, you're welcome !
I changed .post:eq(0) to .post:eq(1) and it worked.
Topic archived
I changed .post:eq(0) to .post:eq(1) and it worked.
Topic archived