1. Isabel Lopez

    Isabel Lopez - May 21, 2015 New Member

    Credit
    Point
    I was wondering how would I move the images on the signature to be underneath the signature instead of the top. Also, is there any way to show up to 5 items but to make it random? (Currently it only show the first ones that you got)

    Thank you!
     
    Loading...
  2. Brivium

    Brivium - May 22, 2015 XenForo Services Staff Member

    Credit
    Point
    You can do this by opening file \library\Brivium\StoreProduct\ImageSignature\EventListeners\Listener.php and find
    Code:
    case 'message_content':
                    $newTemplate = $template->create('BRSIS_image_signatures',$template->getParams());
                    $newTemplate->setParams($hookParams);
                    $contents .= $newTemplate->render();
                    break;
    Replace with
    Code:
    case 'message_content':
                    $newTemplate = $template->create('BRSIS_image_signatures',$template->getParams());
                    $newTemplate->setParams($hookParams);
                    $contents = $newTemplate->render().$contents;
                    break;
    Regards,
     
    Last edited: May 23, 2015
    #2
  3. Isabel Lopez

    Isabel Lopez - May 23, 2015 New Member

    Credit
    Point
    I think you copy the same info on replace. The two are about the same except for
    Code:
    $contents = .$newTemplate->render();
    but if I use it, it gives me a syntax error.
     
    Last edited: May 23, 2015
    joey_tbf likes this.
    #3
  4. Brivium

    Brivium - May 23, 2015 XenForo Services Staff Member

    Credit
    Point
    I'm so sorry. Please try with
    Code:
    case 'message_content':
                    $newTemplate = $template->create('BRSIS_image_signatures',$template->getParams());
                    $newTemplate->setParams($hookParams);
                    $contents = $newTemplate->render().$contents;
                    break;
    Regards,
     
    joey_tbf likes this.
    #4
  5. Isabel Lopez

    Isabel Lopez - May 23, 2015 New Member

    Credit
    Point
    Thank you, but that actually put it on top of everything.I'm trying to put it at the bottom of the signature, like this:
    Thank you for your help.
     
    #5
  6. Brivium

    Brivium - May 23, 2015 XenForo Services Staff Member

    Credit
    Point
    If you want to display below signature, you can replace with
    Code:
    case 'message_below':
                    $newTemplate = $template->create('BRSIS_image_signatures',$template->getParams());
                    $newTemplate->setParams($hookParams);
                    $contents .= $newTemplate->render();
                    break;
     
    #6
  7. Isabel Lopez

    Isabel Lopez - May 23, 2015 New Member

    Credit
    Point
    Sorry to be such a bother, but that did not seem to work. I used the code and now I can't see them. Is there anything else I could do? Thank you
     
    #7
  8. Brivium

    Brivium - May 23, 2015 XenForo Services Staff Member

    Credit
    Point
    Could you please submit a ticket which contains a FTP account? We will do this for you.

    Regards,
     
    #8