php forum
php mysql forum
php mysql smarty
 
Topic Options
#315480 - 08/30/07 02:33 PM Tabs outside of the Admin area...
cgregg Offline
Lurker

Registered: 09/12/06
Posts: 8

   Tabs outside of the Admin area... to Del.icio.us Add to del.icio.us
  Digg Tabs outside of the Admin area... Digg it
Howdy all,

I'm looking to do some modding to a new 7.2.1 board of mine (actually, it's an upgraded board from a really old WWWThreads install (which speaking of W3T...has anyone (or Rick) seen THIS?, lol), but all of my experience is with 6.x and earlier threads, so I'm still getting acclimated to the whole template system we've got going on now.... so please bear with me tipsy

Anyway, to the point... I have a need to display multiple lists/categories on a single screen at once and it occurred that a very slick (and overall the best) way of doing it would be to use the tabbed interface that is in the Admin area, but upon doing a wee bit of research it looks like those functions are only available from `admin.inc.php`. Is this the case? If so, am I correct in not wanting to include admin includes in a standard page (yeah, shouldn't matter, but I'm paranoid a bit wink )? Also, will the tabbing that is built in handle nested tabs?? Does anyone have any sample code of nested tabs?

I have a 3rd party tabbing solution I could use, but for many reasons I'd prefer to stay within the UBBT framework as much as possible.


Thanks in Advance!


Top
#315481 - 08/30/07 04:04 PM Re: Tabs outside of the Admin area... [Re: cgregg]
blaaskaak Offline
Member

Registered: 02/25/07
Posts: 285
Loc: The Netherlands
Can't you just steal the cool tabbed stuff out of the admin rea for your own templates?

The control panel uses smarty, just like the rest of the forum.
_________________________

Top
#315482 - 08/30/07 04:53 PM Re: Tabs outside of the Admin area... [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 439
Loc: SoCal
no smarty in cpanel yet.. that's something we need to totally overhaul at some point..

right now the 'templates' are just straight php includes called *.tmpl.
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#315491 - 08/31/07 12:39 AM Re: Tabs outside of the Admin area... [Re: sirdude]
blaaskaak Offline
Member

Registered: 02/25/07
Posts: 285
Loc: The Netherlands
Originally Posted By: sirdude
right now the 'templates' are just straight php includes called *.tmpl.


Then steal the html from control panel en make it smarty smile
_________________________

Top
#315495 - 08/31/07 09:32 AM Re: Tabs outside of the Admin area... [Re: blaaskaak]
cgregg Offline
Lurker

Registered: 09/12/06
Posts: 8
heh, ok smile

I'd have to steal it from the admin.inc as well I think (TopTab & BottomTab funtions), which means now I'm duplicating code somewhere... but, no big deal. I just didn't want to do that because I was gonna try to keep this board as neat & clean as possible while I hack it up, hehe. The last revision of it ended up with "borrowed" code in a 1,000 different places and got ugly in a hurry tipsy

Top
#315496 - 08/31/07 10:13 AM Re: Tabs outside of the Admin area... [Re: cgregg]
blaaskaak Offline
Member

Registered: 02/25/07
Posts: 285
Loc: The Netherlands
Originally Posted By: cgregg
because I was gonna try to keep this board as neat & clean as possible while I hack it up, hehe.


Awh, memories. Allthough these memories are way back for me smile

I don't even keep record of hacks anymore smile
_________________________

Top
#315499 - 08/31/07 10:28 AM Re: Tabs outside of the Admin area... [Re: blaaskaak]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25408
Loc: Texas
including the admin.inc.php files is limited to only admins/moderators accessing (if I remember right). You'd have to open up permissions on the file and then you'd be opening the control panel to possible mischief too, I'd think. I'd just snag the code into my own nav.inc.php file or something smile
_________________________
- Allen wavey
- What Drives You?

Top
#316389 - 11/28/07 10:29 PM Re: Tabs outside of the Admin area... [Re: AllenAyres]
cgregg Offline
Lurker

Registered: 09/12/06
Posts: 8
Coming back to a dead thread that I started.. .thought I'd pass on the solution I ended up using.

Really simple one actually:
1. Grab this: http://www.barelyfitz.com/projects/tabber/
2. Drop the tabber.js into your /ubb_js folder
3. Just add the appropriate bits of javascript to your templates as needed.


Going this route was far easier (for me anyway :p) than trying to pieces-parts things out of the admin pages.

Top
#316391 - 11/29/07 12:15 AM Re: Tabs outside of the Admin area... [Re: cgregg]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5115
Loc: Portland, OR, USA
hmm, i tore apart the admin js for the dropdowns for the faq in 7.3, maybe i need to look how the tab's work wink...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316392 - 11/29/07 12:40 AM Re: Tabs outside of the Admin area... [Re: Gizmo]
cgregg Offline
Lurker

Registered: 09/12/06
Posts: 8
really?

bah, I shoulda kept my support contract active long enough to get 7.3 (on 7.2.1) ... then again, I actually did this back around the time I originally started the thread so it wouldn't have mattered I reckon, I just now got back to update because I was here to post another question tipsy

on the upside, this solution was REALLY easy once I sat down and started using it.... it's been a while since I looked at the stuff in the Admin pages, but it looked like I would have been taking chunks from a few places to get it working. This was straightforward for me and even doing nested tabs was a snap.

Top
#316393 - 11/29/07 03:22 AM Re: Tabs outside of the Admin area... [Re: cgregg]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5115
Loc: Portland, OR, USA
'eh I don't think the admin center is smarty formatted and I'm sure parts aren't even oop; wonder when that'll all get updated to be ultra complex :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top


Moderator:  Gizmo 
Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 32 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
Yesterday at 11:45 PM
Multiple Identity Detector
by MattUK
Yesterday at 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks