vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help getting an older template mod to work? (https://vborg.vbsupport.ru/showthread.php?t=100838)

sbryan 11-15-2005 03:26 AM

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! :)

Marco van Herwaarden 11-15-2005 06:16 AM

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.

sbryan 11-15-2005 07:36 AM

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!


All times are GMT. The time now is 01:10 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.01012 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete