Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Aug 2007, 15:33
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Question Adding tabs to user profile.

I am working on modifying my user profiles to bring together all the areas of my site. I have installed the interactive profile mod and using a custom plugin I have gotten it to show the information from eFiction.

http://www.necrotania.com/vb/member.php?u=14

However, my next step is to add 3 more lists to the profile.

Series
Off Site stories
Reviews

The way I am looking at it now, that much info on one page would be too much. So, I am thinking of a tab based solution, taking the "My Stories" block and tabbing it out to have the info.

My first thought was to use Javascript and hidden divs. Simple enough but all the divs get loaded even if the data is not viewed. While not much I will end up with an increased page size and extra queries that may not be needed.

The other option would be an AJAX setup, however all the examples I have seen are based on external files and/or scripts. Is there an internal vB system I could uses via plugins to create a AJAX based tab setup in the profile page?

Is AJAX even the way to go here? It may be more than I need for this application and the hidden divs may be the best way to go.

Thanks for any input
Reply With Quote
  #2  
Old 21 Aug 2007, 16:41
EvilKitty's Avatar
EvilKitty EvilKitty is offline
 
Join Date: Jan 2002
I'm afraid i'm of no use to you, i just wanted to say, i'm jealous of your eFiction/vBulletin integration, i'm a huge coding n00b and though i'd had the desire to try and impliment something similar, it was just not going to happen.

Excellent job.

/hacks

lol
Reply With Quote
  #3  
Old 21 Aug 2007, 18:27
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Thanks

The base code is posted over at the eFiction site. It is a modification of the example SMF bridge, using global.php to pull the data. Feel free to use it if you have a site you want to try it on.

The newer stuff I have done is not there yet (The plugins, bridge compatible with v3.3)...need to get that updated at some point

Looking at what I am trying to do, I wonder if AJAX would just be overkill. This is more of static data that I am just trying to reduce down to fit in the profile. May just be worth using the code I have to hide div statements and tab it like that. Not as complex to setup.
Reply With Quote
  #4  
Old 21 Aug 2007, 21:01
EvilKitty's Avatar
EvilKitty EvilKitty is offline
 
Join Date: Jan 2002
I'm sure theres a mod that lets you tab your profile, but of course now that i'm looking i cant find it.

Really now? I looked about their forum and couldn't find anything that would integrate with vB - i guess i didnt look hard enough - could direct me to the thread?
Reply With Quote
  #5  
Old 22 Aug 2007, 02:10
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
http://efiction.org/forums/index.php?topic=4702.0

The code there works, but it is a bit old. I will have the most recent version I am running posted this weekend...I want to write up a bit on the plugins as well.
Reply With Quote
  #6  
Old 22 Aug 2007, 17:08
EvilKitty's Avatar
EvilKitty EvilKitty is offline
 
Join Date: Jan 2002
Awesome - as eager as I am to give it a shot now, i'll wait to see your updated code. What you have going is essentially exactly what i'd like to have going on my forum.

I'll keep an eye out for it, but if you could PM me when you've shared it, i'd be in your debt forever.

http://www.vbulletin.org/forum/showt...hlight=profile

Perhaps you can edit this product to do what you want it to?

Last edited by EvilKitty; 22 Aug 2007 at 19:29. Reason: Automerged Doublepost
Reply With Quote
  #7  
Old 08 Oct 2007, 12:08
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Well, I ended up modifying some Javascript I wrote up a while back and setting up tabs by using hidden <div> statements. It adds a bit to the page size, all the data is loaded at once, but it did not seem that much overall. I will probably end up with 3-4 tabs for the various lists and such for each author.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:57.

Layout Options | Width: Wide Color: