SocialAcademy • Forum

Social Academy Community Support Forum & Free Tutorial's & Skins



SocialAcademy • Forum » Support Section » Ask Question 's & Problems » Solved & Trash Files  →   [Archived] preview the topic

[Archived] preview the topic


    • Please log in to Reply

    View previous topic View next topic Go down  Message [Page 1 of 1]

    #1

    Offlinepedros

    pedros
     
    Member
    Member

    Posted Sat Oct 04, 2014 11:56 pm

     
    Details:code does not work with members
    Screenshot:
    Forum Address:
    Forum Version:Invision

    Code:
    $(function() {
        // The preview image added after a topic title
        $('a.topictitle').after(' <img id="topicPreview" src="http://i56.servimg.com/u/f56/18/45/41/65/new_wi10.gif" title="Anteprima argomento" alt="Anteprima" style="cursor:pointer;" />');
        // Once the preview image is clicked
        // we appened the HTML below to the document
        $('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">X</div>'+
                    '<div id="topicPreviewing" style="max-height:400px;overflow-y:auto;">'+
                        '<center>'+'<span class="topicPreview-loading" style="font-weight:bold;font-size:18px;">'+
                                'Caricamento...'+'</span>'+'</center>'+'</div>'+'</div>');// Load the first post of a topic
            $('#topicPreviewing').load(jQuery(this).siblings('a.topictitle').attr('href')+' .post:eq(0)');// Remove preview on click of the filter$('div#preview-filter, #closeButton').click(function() {
              $('#preview-filter, #topicPreview-container').remove();});});});


    Question: you have a tutor on the forum? I would replace

    #2

    OfflineGrafix

    Grafix
     
    Management Team
     Management Team

    Posted Mon Oct 06, 2014 6:53 am

     
    nope .. not yet but hopefully soon after adapting skins ... that code is actually i use , alittle modification to working ..

    https://socialacademy.forumotion.com
    #3

    Offlinepedros

    pedros
     
    Member
    Member

    Posted Mon Oct 06, 2014 6:17 pm

     
    ok thanks

    #4

    OfflineGrafix

    Grafix
     
    Management Team
     Management Team

    Posted Tue Oct 07, 2014 6:52 am

     
    Problem Archived

    https://socialacademy.forumotion.com
    #5

    OfflineSponsored content


     

    Posted

     

    Message (Page 1 of 1)



      Share Topics Url

      Url
      BBcode
      HTML

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

       
      • Forum free | ©phpBB | Free forum support | Report an abuse | Forumotion.com


      Social Academy Forum
      © Social Academy 2013-2022