The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Rules box in Subforum

    Rale
    Rale
    New Member


    Posts : 20
    Reputation : 1
    Language : Serbian

    In progress Rules box in Subforum

    Post by Rale May 6th 2024, 8:58 pm

    Hello, I'd like to know how to make this ---> https://prnt.sc/0eUZHqb8dwFm on my Forum,

    I tried to do it but when I go to Rules in my forum, it shows only while Replying, I want it to show when someone is in my Category (like in screenshot above) ---> https://prnt.sc/PiXcgGcS7UOI
    Rale
    Rale
    New Member


    Posts : 20
    Reputation : 1
    Language : Serbian

    In progress Re: Rules box in Subforum

    Post by Rale May 7th 2024, 4:35 pm

    Here is one more example : https://prnt.sc/Khcba1iociHx

    Any solutions?
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6921
    Reputation : 795
    Language : Greek, English

    In progress Re: Rules box in Subforum

    Post by TheCrow May 7th 2024, 5:20 pm

    Hello @Rale,

    Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
    Please read our forum rules: ESF General Rules

    Are you wanting this only in the careers forum?
    If not, is it going to be everywhere the same or different in other forums?

    Regards,
    TheCrow.



    Rules box in Subforum Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Rale
    Rale
    New Member


    Posts : 20
    Reputation : 1
    Language : Serbian

    In progress Re: Rules box in Subforum

    Post by Rale May 8th 2024, 5:49 pm

    TheCrow wrote:Hello @Rale,

    Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
    Please read our forum rules: ESF General Rules

    Are you wanting this only in the careers forum?
    If not, is it going to be everywhere the same or different in other forums?

    Regards,
    TheCrow.

    I want it to be shown in only Careers forum, yeah.
    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1420
    Reputation : 220
    Language : English

    In progress Re: Rules box in Subforum

    Post by SarkZKalie May 9th 2024, 3:20 pm

    Could you please provide your site URL here?



    Rules box in Subforum Sarkzk10

    poesia-verses likes this post

    Rale
    Rale
    New Member


    Posts : 20
    Reputation : 1
    Language : Serbian

    In progress Re: Rules box in Subforum

    Post by Rale May 9th 2024, 6:41 pm

    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6921
    Reputation : 795
    Language : Greek, English

    In progress Re: Rules box in Subforum

    Post by TheCrow May 10th 2024, 9:16 am

    Hello @Rale,

    Thank you for the information you provided.
    You can achieve the requested result by adding this javascript in your forum:
    Admin Panel > Modules > HTML & JAVASCRIPT : Javascript codes management
    Make sure your Javascripts are enabled and then click the Create a new Javascript button.
    Fill in the fields as below:
    Title * : Whatever you want
    Placement : In all the pages
    Javascript Code * : copy and paste the below code
    Code:
    $(function(){
      if (/f18-/.test(window.location.href)){
        $('<div id="annBox"><a href="/"><img src="https://i52.servimg.com/u/f52/18/64/98/14/screen69.png" /></a></div>').insertAfter('.sub-header-info');
      }
    });
    In this code, I added the picture you sent, with a link wrapped around it. That means that when someone clicks the image it would take them to the main page of the forum. If you want to change where they will be taken, when they click the picture, you can change the
    Code:
    <a href="/">
    from the code and put the link of the topic/forum where you want them to be taken to.

    Then you have to go to your CSS and add the below code.
    Admin Panel > Display > Pictures and Colors : Colors & CSS > CSS Stylesheet
    Code:
    div#annBox img {
        max-width: 80%;
    }
    div#annBox {
        display: inline-block;
        background: #292929;
        border-radius: 10px;
        margin: 10px;
        padding: 10px;
        text-align: center;
    }

    This would give you this as your result:
    Rules box in Subforum Screen70

    If there are any further questions, please don't hesitate to let us know here.

    Regards,
    TheCrow.



    Rules box in Subforum Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!

    Ape and TonnyKamper like this post

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15187
    Reputation : 1696
    Language : English,Greek
    Location : Greece

    In progress Re: Rules box in Subforum

    Post by skouliki May 16th 2024, 1:11 pm

    if your request is complete, please mark it as Solved.


      Current date/time is May 19th 2024, 7:14 pm