Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
customtitle in forumdisplay Details »»
customtitle in forumdisplay
Version: 1.00, by fahad fahad is offline
Developer Last Online: Oct 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-12-2002 Last Update: Never Installs: 9
 
No support by the author.

1 - forumdisplay.php

Find
PHP Code:
eval("\$thread[gotonew] = \"".gettemplate('forumdisplay_gotonew')."\";"); 
after that add

PHP Code:
$showtitle $DB_site->query_first("SELECT user.username,user.userid,user.usertitle,user.customtitle FROM user WHERE userid=$thread[postuserid]");
$showtitlecurrent $showtitle[usertitle]; 
save file

2 - EDIT template forumdisplaybit
after
PHP Code:
$thread[postedby
add
PHP Code:
<br><smallfont>$showtitlecurrent</smallfont
arabic demo:FFF.FM

C U

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-13-2002, 06:03 AM
mewgood mewgood is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hm..
I though I saw this hack before..
Reply With Quote
  #13  
Old 08-13-2002, 06:16 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vincent]
Quote:
Originally posted by fahad
no
announcement post title

$announcement[usertitle]
God, and it's $post[usertitle] for postbit and $userinfo[usertitle] for user info display, $bbuserinfo[usertitle] works everywhere if I'm not mistaken and I said $bbuserinfo[usertitle] because I don't know what it uses for forum display. Probably $forum[usertitle] or something.
Reply With Quote
  #14  
Old 08-13-2002, 02:35 PM
DemiNeo0101's Avatar
DemiNeo0101 DemiNeo0101 is offline
 
Join Date: Feb 2002
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a fixed version of his hack at: https://vborg.vbsupport.ru/showthrea...=&pagenumber=2

All i see if this though is an extra query for each thread.... Meaning if you have 50 threads showing on a page you'll have 50 extra querys.. :-/ Basicly its just a waist of Querys.

Im only telling you what you did wrong wrong fahad. Try to fix the querys and you'll be fine.

But its a good atemp at a hack so dont put him down or anything. Good job fahad.
Reply With Quote
  #15  
Old 08-13-2002, 06:58 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To clear up the simple confusion, mostly for you Vincent..

$bbuserinfo[] - Can be used in any template, but will ALWAYS display YOUR information, not others.
$post[] - Displays information on the users within a thread but only can be used in showthread.php templates (and those in functions.php)
$thread[] - Used in forumdisplay.php templates
$forum[] - used in index.php templates

---------------------

Here is a quick fix for this hack, that will provide no excess queries:

1. Run this query in PhpMyAdmin:
PHP Code:
Alter table thread add usertitle varchar(250not null
2. In newthread.php, find this:
PHP Code:
visible,attach,description
Replace it with:
PHP Code:
visible,attach,description,usertitle
3. Now find:
PHP Code:
,'".addslashes($description)."' 
Replace it with:
PHP Code:
,'".addslashes($description)."','".addslashes($bbuserinfo[usertitle])."' 
4. In forumdisplay.php, find:
PHP Code:
votetotal,attach,description 
Replace it with:
PHP Code:
votetotal,attach,description,usertitle 
5. Now in the template forumdisplaybit, find:
Code:
$thread[postedby]
And after it place:
Code:
<br><smallfont>$thread[usertitle]</smallfont>
And there we go
Reply With Quote
  #16  
Old 08-13-2002, 07:00 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, it will only work for new threads made, your old threads wont be updated in this fashion. Although try using "update counters" in the Admin CP and maybe that'll refresh everything.
Reply With Quote
  #17  
Old 05-04-2003, 05:35 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone ever confirm if this works (and with 0 queries added), and if it does if update counters ever made a difference?

I'd love to install this, looks great.

-Jason
Reply With Quote
  #18  
Old 05-04-2003, 06:11 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
08-13-02 at 03:00 PM Velocd said this in Post #15
Also, it will only work for new threads made, your old threads wont be updated in this fashion. Although try using "update counters" in the Admin CP and maybe that'll refresh everything.
Update counters doesn't add this to every thread. It will only work on new threads. Is there another query to run that will make it retro-active on older threads?
Reply With Quote
  #19  
Old 05-04-2003, 06:13 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:35 PM Alien said this in Post #16
Anyone ever confirm if this works (and with 0 queries added), and if it does if update counters ever made a difference?

I'd love to install this, looks great.

-Jason
Use this one. It doesn't add any extra queries.

https://vborg.vbsupport.ru/showthrea...466#post284466
Reply With Quote
  #20  
Old 05-04-2003, 09:09 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot!
Reply With Quote
  #21  
Old 05-06-2003, 04:28 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
05-04-03 at 03:11 PM Boofo said this in Post #17
Update counters doesn't add this to every thread. It will only work on new threads. Is there another query to run that will make it retro-active on older threads?
I've been waiting for this updates as well ... i'll take a poke at it Boofo! :beard:
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 07:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04791 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (11)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete