Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2007, 02:33 PM
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Location: East Coast, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 08-21-2007, 03:41 PM
EvilKitty EvilKitty is offline
 
Join Date: Jan 2002
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 08-21-2007, 05:27 PM
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Location: East Coast, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 08-21-2007, 08:01 PM
EvilKitty EvilKitty is offline
 
Join Date: Jan 2002
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 08-22-2007, 01:10 AM
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Location: East Coast, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://efiction.org/forums/index.php?topic=4702.0" target="_blank">http://efiction.org/forums/index.php?topic=4702.0</a>

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 08-22-2007, 04:08 PM
EvilKitty EvilKitty is offline
 
Join Date: Jan 2002
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

https://vborg.vbsupport.ru/showthrea...hlight=profile

Perhaps you can edit this product to do what you want it to?
Reply With Quote
  #7  
Old 10-08-2007, 11:08 AM
Calash's Avatar
Calash Calash is offline
 
Join Date: Jun 2006
Location: East Coast, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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

Forum Jump


All times are GMT. The time now is 08:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03754 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete