News:

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

Main Menu

RC2 default index.template tweak

Started by SleePy, January 01, 2006, 01:50:08 AM

Previous topic - Next topic

SleePy

i was messing with the new default template in rc2. and i thought about the tab menu and worked off that to create this little tweak.
i would like others to see any problems or typos i may have made? when i upgrade my forum to rc2 i want to use this but i want to see if it has any possible errors or typos i might have made. maybe even some improvements i can do to make it better.

ugh... can't upload...
http://lordsofclantribe.com/SleePys/index.template.php.zip

Thanks. use it if you like it. or not...

i added it to my test board if you want to see it
http://lordsofclantribe.com/test/index.php
User: smf
password: smfsupport
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

TheMaTrIx

Wouldn't hurt if you described to us what your 'tweak' does.
For all people know your new index.template file you offer for upload deletes their entire database :p

SleePy

i messed around with some hidden menus. clicking on things like admin instead of taking you there dops down a menu below it following the tab interface and showing links to the places in there. i did this for Profile, pm, and member list. i might do it to calandar but i see no reason to.
kinda hard to ss cuss when you click on it the current menu thing to show the tab you are on doesn't switch to it... would be nice to know how to add that in.
i just reuploaded it. i had a typo in the profile. it was only going to profile 1... oops..
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JayBachatero

Take a look at this topic for info on how to make tabs work properly.
http://www.simplemachines.org/community/index.php?topic=63203.0

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

SleePy

would that apply for what i did? kinda like a sub tab on the tab?

added a link to my test site were im running it.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JayBachatero

It tells you how to make yout tab ative according to the action.  Can you please provide test link so that I can see what you mean?

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

SleePy

yea. i added it to my first post.
you have to login. then clicking profile, My Messages, and Members you will see what i mean.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JayBachatero

Ahhh I like that idea.  Nice.  Now to make it work try this.

PM me an account with admin priviledges so that I can test something out.

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

SleePy

#8
yea. check your pms

edit.
oh i think ur wanting to edit the theme. just copy it onto the server and set it as default and edit it... i never bothered to yet.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JayBachatero

Umm I tried a bit but I'm just too sleepy.  I will take a look at this tom.  Take a look at how the subaction(sa) tabs are dont and mess around with that.

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

SleePy

yea i seen what you are trying to do. you are trying to follow how the normal ones are made but for each actions subaction.
anyways. have a happy new year and hope you finish it.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Simplemachines Cowboy

I like this.
I'll be watching this post for the final bits of code to do this.
My SMF forum: The Open Range

GC

Maybe make it so thay when you have your mouse over it the things appear? Like, a mouseover effect? Also, when you click the admin link, then another link, it doesn't close the admin part.

SleePy

#13
Quote from: GC on January 01, 2006, 11:43:16 PM
Maybe make it so thay when you have your mouse over it the things appear? Like, a mouseover effect? Also, when you click the admin link, then another link, it doesn't close the admin part.

hmmm yea i noticed that. i am working out the bug. the problem is when you weren't admin it couldn't find the admin menu to hide it so it caused non logged out users problems. so i made a fix but it affected the admins.
Jay is trying to use the way rc2 does the menus to make it so im going to let him tweak at it.
but to fix just you should just have to add a else statement after the admin div area. so it can find the admin div tag and hide it even though its not in use.

i reuploaded the file that should be fixed. but its late and i have been out all day so hopefully i didn't make a error in the fix.
I tried to use the mouse over effect but when you went down into the menu you were no longer hovering over the menu so it disappeared. i found it best to do click and then double click to hide it. i might get it to work by having a code run though itsself telling it to show as long as you hover over.. that might work.

edit
i added one for the help menu and Caledar menu now. the Home,Search, and logout or Register/Login i see no use to put one for them. though. a drop down login box would be cool..... hmmmm
ill try to work on the mouse over... hmmm

whats the code used to login?

edit2
as far as i can see right now without streching the second table below to 100 percent there is no way of getting the mouseover to work
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

GC

With PHP anything is possible. Mind if I tag along in the tweaking? Can you PM me the latest modifications you have made?

SleePy

Quote from: GC on January 02, 2006, 04:31:56 PM
With PHP anything is possible. Mind if I tag along in the tweaking? Can you PM me the latest modifications you have made?

the latest one is the one i got up for download.
go ahead and tweak at it.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JayBachatero

Ok I have part of it setup.  I am having problems with setting the active subtab.  It marking active all of them cause of an array that I put but need a work around it to make it work correctly.

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert


SleePy

Quote from: GC on January 02, 2006, 08:59:00 PM
I'm going to try and tweak this into the navegation
http://dhtml-menu.com/examples/dhtml-menu-ex1.html

hmm interesting....

i just did mine by
<a href=# onclick="document.getElementById(\'Members\').style.display=\'block\';" ondblclick="document.getElementById(\'Members\').style.display=\'none\';">
<div id="Members" style="display:none;">Words hidden here</a>

that though its going down. i thought across would be nice because it wouldn't take a good section of the screen to display and look nice.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

GC

It doesn't have to go down, it can go accross. We just have to  Tweak yet again :) I'll work on it today. I have a math tutor coming over now :) (I'm only 15 and failing math with a 44% :)) So in about 4 hours I will start to work on this.

Advertisement: