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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-15-2005, 03:26 AM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help getting an older template mod to work?

Hi guys, before i upgraded to 3.5.1 i had a small template hack that i dont appear to be able to get working in 3.5.1

Basically all it does is display the value of one of the users custom fields under their post info (username, post count etc) when they make a post.

Can someone help me get it working again? If so that would rock.

Also if anyone knows the ins and outs of the Vbulletin menu system, is it possible to not only display that value i mentioned above, but link it to something?

Any advice or help appreciated, please reply here or to my email shane@xboxworld.com.au if you can!
Reply With Quote
  #2  
Old 11-15-2005, 06:16 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would help if you posted the code that is giving you problems. We usually don't offer support via mail, but on the forums.
Reply With Quote
  #3  
Old 11-15-2005, 07:36 AM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i created a custom field for everyones profile that they enter their Xbox Live gamertag into and then with help from vb.org member EviLS1 who helped me edit the postbit forum and add this code :

X-Box Live gamer tag: $post[fieldX]<br></smallfont>

(replaced the Xs with the field ID)

naturally it appeared for everyone regardless of whether they had anything entered in that field for it or not, so under

if ($post[customtitle]==2) {
$post[usertitle] =
htmlspecialchars($post[usertitle]);
}

in admin/functions.php we added

// first custom profile field
if ($post[fieldX]!="") {
$gamedata1="<smallfont><b>Xbox Live gamer
tag:</b><br>$post[fieldX]</smallfont><br>";
} else {
$gamedata1="";
}

then in the post bit template, changed the original code at the top simply to :

$gamedata1

then when people posted in my forum, if they had an entry in that custom form field it would display like this in the forum under their post count etc

Gamertag : Spagman

(if Spagman was what they entered in the custom field)

What i want to do is get that working again, i may have made a mistake so will check all the code on my end again, but i'm hoping to do something different and expand on it a little bit.

I like the way that the VB forum menus work with the popup cascading type menus when you click on search etc or the persons username in their posts to get the 'view public profile' etc options.

What i would like to get that custom field displaying again, but when you click on it, a window appears like when you click peoples usernames, but it needs to reference data from an external source via an iFrame.

It's nothing unique, i actually wanted to do it a few weeks ago but another site beat me to it and i can give you the link to it in action if required.

I hope that makes sense!
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 01:54 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.03336 seconds
  • Memory Usage 2,176KB
  • 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
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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