![]() |
#1
|
||||
|
||||
![]()
Sooo I'm a little confused on how to edit the sidebar's structure I guess you could call it.
On my site when I first made it, I edited the sidebar to display as a horizontal bar under the menu bar instead of a sidebar. However, I don't exactly know where to go to pretty it up. I know how to input the php code for it, but where do I do this? I only want a user's name, money, messages, and users online to display horizontally. See mysgardia.com to see what I'm talking about. Right now the bar is big and bulky. I want to make it thinner and have the fields currently there to only be shown. Can anyone help? :c EDIT: I've looked in the template.tpl file and see that the code for it is <tr><td>{$sidebar}</td></tr>. Uhh what's that? Haha. |
#2
|
||||
|
||||
![]() Quote:
|
#3
|
||||
|
||||
![]()
Thanks, I tried messing with the widgets and modules but they confuse me...
I've tried inputting html and php with and without tags but I get errors every time. Probably doing something wrong. ;-; I mean is there a way I can just build my own sidebar, without using widgets and modules, and just disable the original sidebar? How do I put php into a .tpl file? :c |
#4
|
||||
|
||||
![]() Quote:
#menu{ codehere } If you simply deleted the modules you don't want and styled this part, in v1.3.3, that should get rid of your bar. Edit: *smacks head* Yikes, sorry. Actually, if you just want non-user-specific links, you can definitely just replace the {$sidebar} thing you found in the template file with normal html links... since there's php variables there, there must be a way to display other variables... I just don't know that. Last edited by Hwona; 12-29-2015 at 05:37 AM. |
#5
|
||||
|
||||
![]()
Yea, I know how to remove it and edit the styles and such, but I want to edit the actual structure of it.
Here's exactly what I want, but just don't know where to go/how to edit it into the tpl file: ![]() |
#6
|
||||
|
||||
![]() Quote:
If I remember correctly, you can delete the items you dont want in the sidebar by removing the functions from the class_sidebar file. |
#7
|
||||
|
||||
![]()
This thread may help you design your own sidebar (or horizontal user status bar) directly in your theme's template, as an alternative approach to using the built-in sidebar widget. It'll show you how to display a user's name, money, avatar, etc. We'll be using Smarty handles, which is something Mysidia is capable of doing but actually doesn't make a great deal of use of - it's really pretty easy!
Follow that up by reading this other thread where I got some help from IntoRain and you can also add the message count to your new horizontal sidebar. I also revealed some code to display the time and users online! ![]()
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 12-29-2015 at 09:11 AM. |
#8
|
||||
|
||||
![]()
Omgoodness. ;-;
Thank you Kyttias! I was driving myself crazy trying to figure this out lol! I'm dead tired right now and plan on crashing, but I'm going to experiment tomorrow. Thank yoouu! <3 |
#9
|
||||
|
||||
![]()
It's funny, I wanted to make it into a mod but never quite pulled all my information together into one spot... For now, I added a link to my signature to my post above so people can find that info. It's an important, yet basic, part of my own site - so I feel it's code everyone should have access to. Perhaps this spring I'll do a better write up on it!
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
![]() |
|
|
What's New? |
What's Hot? |
What's Popular? |