![]() |
customtitle in forumdisplay
1 - forumdisplay.php
Find PHP Code:
PHP Code:
2 - EDIT template forumdisplaybit after PHP Code:
PHP Code:
C U http://www.fff.fm/vb/images/smilies/thumb.gif |
Hm.. I dont know how to read that language so I dunno whats the difference..
|
???? forumdisplay.php
???? ?? eval("\$thread[gotonew] = \"".gettemplate('forumdisplay_gotonew')."\";"); ??? ????? $showtitle = $DB_site->query_first("SELECT user.username,user.userid,user.usertitle,user.cust omtitle FROM user WHERE userid=$thread[postuserid]"); $showtitlecurrent = $showtitle[usertitle]; ???? ??????? forumdisplaybit ???? $thread[postedby] ??? ????? <br><smallfont>$showtitlecurrent</smallfont> ??????? ??? ????? ???? ?? ??????? ?? ?????? |
ok
|
arabic
|
No offense but you just have to put <br>($bbuserinfo[usertitle]) in the forum display template where the username is displayed and you get the same effect.
|
:( :( no no no
$bbuserinfo[usertitle] = your title $showtitlecurrent = user customtitle started thread |
[D]Vincent
|
That moderator thing is $bbuserinfo[usertitle]
|
no
announcement post title $announcement[usertitle] |
hm..
I though I saw this hack before.. |
Vincent]
Quote:
|
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. |
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:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
$thread[postedby] Code:
<br><smallfont>$thread[usertitle]</smallfont> |
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.
|
Anyone ever confirm if this works (and with 0 queries added), and if it does if update counters ever made a difference? :D
I'd love to install this, looks great. -Jason |
Quote:
|
Quote:
https://vborg.vbsupport.ru/showthrea...466#post284466 |
Thanks alot!
|
Quote:
|
Great! Let me know what you find out. Thanks! ;)
|
All times are GMT. The time now is 04:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|