News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Post id Number in Postings

Started by larry007, November 21, 2014, 07:59:28 AM

Previous topic - Next topic

larry007

I put this Code in the file, i have question about this. Any help?

1. As registred user it looks like in first picture - thats ok for me
2. As unregistred user it looks like the second picture

Now i want it as unregistred user on the right side like point 1

In ../Themes/default/Display.template.php
Code: (Find) [Select]

      // Show a checkbox for quick moderation?
      if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
         echo '
                           <li class="inline_mod_check" style="display: none;" id="in_topic_mod_check_', $message['id'], '"></li>';

Code: (Add After) [Select]

      // Lets move the post number to the right
             echo '
      <li class="message_link"><a href="', $message['href'], '" rel="nofollow"> <strong>', !empty($message['id']) ? $txt['post1'] . ' #' . $message['id'] : '', ' </strong> </a></li>';

Gary

Please attach your theme's Display.template.php as a whole.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

larry007


larry007


larry007


NekoJonez

Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

larry007

#6
This is only a code snippet what I insert

Edit: delete attachment

Deaks

i appologise I am not sure why previous person asked for mod list its not needed in this case, its a general question but not always needed, can you please post your index.css please I need to check a specific class in it :)

Thanks
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

larry007

ok.... css file from inferno theme

NekoJonez

I read the word "mod"  in the snippet of code... My mind is hardwired. :P
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

larry007

I tryed by my self in the css theme file

this works:

/* Ausrichtung Beitrag rechts im Posting */
.message_link {
    margin-right: 10px;
    text-align: right;
}

Advertisement: