vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Display custom titles AND standard titles in posts (https://vborg.vbsupport.ru/showthread.php?t=34968)

JJR512 02-13-2002 03:59 AM

Jakeman, in this hack, you DO add the custom profile field through the admin cp.

What the file modification does it prevents a blank line from showing up on the thread page if a user has not put in a custom title. It's just a simple little routine that checks for a value in $post[fieldX], and if there is one, it assigns the value of $post[fieldX] to $extratitle, and $extratitle is formatted to include a line break. If there is no value in $post[fieldX], a blank string is assigned to $extratitle. When you put $extratitle in the postbit template, you do NOT put a linebreak between it and the next line (which is the standard title); that way, if it's blank, there will be no empty line, but if it's not blank, the variable includes a line break to keep the flow right.

In other words, it's done strictly for appearance.

As I said, originally, this was just a template modification that I pointed out at vbulletin.com. Someone asked me how to surpress the blank line that would show up for users with no custom title, and that's how it evolved into a file modification hack.

:)

Jakeman 02-13-2002 04:01 AM

glowing isn't compatible accross all browsers and platforms so nya! :p

and glowing does work with custom fields, i just tested it.

meh, if it was me i would put a statement in my phpinclude instead of editing php files, but that's me, either way works for the spacing thingy. i hate editing php files, i will take templates over file mods any day, even if it adds more overhead to every page :D

JJR512 02-13-2002 04:08 AM

It's my understanding that if a browser does not support glowing, the plain text will still be seen. And as I just said, the main point of it being a hack is not to support glowing; that's just a neat side-effect that was possible, and I showed how to do it. As I just said, the MAIN purpose to this being a hack is so that a blank line does not show up in between the user name and standard title if there is no custom title.

What I mean is this. If this was NOT a hack, a user with no custom title would look like this in the author info area of a message:
User1

Registered

While a user WITH a custom title would look like this:
User2
Super-Cool Dude
Registered


It's the blank line for User1 in below his name and above his title ("Registered") that someone asked me to make not show up. That's why I had to turn it into a hack, so that now, User1 looks like this:
User1
Registered

While User2 continues to look exactly the same.

JJR512 02-13-2002 04:09 AM

What kind of statement would you put in your phpinclude template? :confused:

Jakeman 02-13-2002 05:23 AM

sorry, i'm being a bit of a troll. :(

erm, you can put php code in your phpinclude template. you should be able to set up the condition in there, right?

KuraFire 02-13-2002 07:52 AM

Quote:

Originally posted by Jakeman
and glowing does work with custom fields, i just tested it.
I'd like to know how your Edit Profile page looks like if you've got an HTML glow in it. With me, it f*cked up the layout of the page... :( (due to the "-sign in glow codes)

JJR512 02-13-2002 06:24 PM

Quote:

Originally posted by Jakeman
sorry, i'm being a bit of a troll. :(

erm, you can put php code in your phpinclude template. you should be able to set up the condition in there, right?

Yeah, but there's a reason why vBulletin is made up of a bunch of separate files, rather than all the code being in the phpinclude template.

Jakeman 02-13-2002 10:51 PM

Quote:

Originally posted by JJR512

Yeah, but there's a reason why vBulletin is made up of a bunch of separate files, rather than all the code being in the phpinclude template.

Quote:

Originally posted by Jakeman
i will take templates over file mods any day, even if it adds more overhead to every page :D
:D

JJR512 02-14-2002 01:25 AM

Of course I remember typing my quote, and I already read your quote...so what's the point? Nothing new to add?

Jakeman 02-14-2002 03:40 AM

Quote:

Originally posted by JJR512
Of course I remember typing my quote, and I already read your quote...so what's the point? Nothing new to add?
ugh, nOOb. http://130.94.172.202/forum/images/smilies/wtf.gif


All times are GMT. The time now is 01:45 AM.

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.01021 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete