YGEX
-
Postów
10 -
Dołączył
-
Ostatnia wizyta
Typ zawartości
Profile
Forum
Pliki
Galeria
Blogi
Sklep
Wydarzenia
Odpowiedzi opublikowane przez YGEX
-
-
I`m in a bit of a problem, i don't exactly where to look to change the aspect of secondary nav...
to
-
40 minutes ago, DawPi said:
You need more code than that then, see examples - https://stackoverflow.com/questions/2915864/php-how-to-find-the-time-elapsed-since-a-date-time
I've made it...but is not working properly, it`s display only in days. I used the "if" and "elseif" to create the code but only the first part works...
<div class="ipsType_center regTime" data-ipstooltip="" _title="Time Since User Registration" style=""> {{if $date_joined = floor((strtotime("now")-strtotime("{$comment->author()->joined}"))/86400)}} <li class="regTimeformat">{$date_joined} DAYS OF REGISTRATION</li> {{elseif $date_joined = floor((strtotime("now")-strtotime("{$comment->author()->joined}"))/2592000)}} <li class="regTimeformat">{$date_joined} MONTHS OF REGISTRATION</li> {{elseif $date_joined = floor((strtotime("now")-strtotime("{$comment->author()->joined}"))/31536000)}} <li class="regTimeformat">{$date_joined} YEARS OF REGISTRATION</li> {{endif}} </div>
EDIT : I see now that i arranged the code in a wrong way, switched days with years and now works properly.
-
16 minutes ago, DawPi said:
You mean joined date?
Try it:
{datetime="$comment->author()->joined"}
More like how many days / months / years passed by since he`is registered.
-
Hello, i want to add this two type of badges into my postContainer. The "staff member" badge i figured out with a method, using the "{{if $comment->author()->modShowBadge()}}" code but for the time since member registred i don`t know what code to use.
So far this is what i've made :
Also, do you have any recommendation of what to use instead the code i`ve used for the staff one, i wanted to be automatic instead of adding the groups id.
-
So, for example i have this code to display the stats of our teamspeak 3 server ( i said for example because i don`t have just one code, this one was the quickest got into my mind ) :
Spoiler<?php <div class="ts3index-viewer" data-serverid="286203" data-style="width=100%25&height=400px&clickable"><a href="https://ts3index.com/?page=server&id=286203">TS3index.com</a></div> <script language="javascript">(function() {var c = document.createElement("script"),s = document.getElementsByTagName("script")[0];c.type = "text/javascript"; c.async = true;c.src = "https://ts3index.com/viewer/script.js";s.parentNode.insertBefore(c, s);})();</script>
Normally i would add the code via template putting in it inside core-global-sidebar after this line :
<div data-role='sidebarAd'> {advertisement="ad_sidebar"} </div>
After that i`ll be forced to create an empty announce from the ACP to display my code from the template. I'll do the same steps to display our steam groups, other servers or images ( right know i installed an app to display things as widgest extern the template ).
I looked over the IPS tutorial and i saw the template hook method were you add things inside the template via plugins but will be the same as i do without a plugin versions of it. I want to make it as a widget that you can move and drag from widget menu but this is the part where i get confused because i don`t know how to start.
-
Hello, yes but not on a perfect level, somewhere around medium level just to keep me `safe` when i wanna do some edits over a script or implement it.
-
Hello, thanks in advance for everyone who will gonna read my topic and will want to help me. I want to create a few plugins for my community ( basically i want to transform into a plugin what i add now in sidebar via theme template ) but the tutorial that is available on IPS is a bit vague and i don`t really understand it. I don't understand where to add my code into developer mod plugin center so it will be displayed as a sidebar plugin ( hook ). I would be really grateful if you will share a few tips and advices with me. Thanks again for your time.
-
Hello Split, i have one question about the app, is there any way to change the URL where the page is created ? So instead of the ID to be the title of the page ?
Secondary Nav Aspect
w Ogólny support IPS4
Opublikowano
I wanna make the secondary nav links be like a drop down view and not the inline default sort.