The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
prefix_rich in front of threads
Hi, I am trying to modify a php file that is about latest thread and post scrolling. This file as ready to use but I want to add an ability to show prefix name at the start os thread.I don`t know what variable control prefix rich.can anybody help me? the php file I said is here:
PHP Code:
I knew that I should write a line such: $threadtitle = $thread_get_info['title']; but I don`t know how? |
#2
|
||||
|
||||
Include grabbing the prefixid from the thread table in your query. Then in your while statement:
PHP Code:
|
#3
|
|||
|
|||
tahnk you Lynne, I added this code to php file but I got errors and didn`t work I have alittle understanding about php. can you make it easier?
|
#4
|
||||
|
||||
Without seeing exactly what you've done, and knowing what the exact errors were, I can't really help.
|
#5
|
|||
|
|||
I said that I have a little understanding about php and I want to make a marquee scroller included latest tapics at the top of the board (see: here). I found this one and I decided to make some modifying to show thread`s prefixes in title and then I need some helps.
|
#6
|
||||
|
||||
I know. But, I gave you some code and you said you added the code to the file and got errors. So, can you post the file again with the added code so I can see if you added it correctly. And, can you post what the errors were that you got.
|
#7
|
|||
|
|||
tahnx for help and supporting. I change php file as this:
PHP Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /[root address]/forums/latest_posts2.php on line 83 |
#8
|
||||
|
||||
There is no "prefix_plain_html" field in the thread table, so I'm not sure why you included that. Take it out and see if the error goes away.
|
#9
|
|||
|
|||
Hi, I removed that part and now I got this error:
Fatal error: Call to undefined function htmlspecialchars_uni() in /[root address]/forums/latest_posts2.php on line 98 |
#10
|
||||
|
||||
That function is in the file includes/class_core.php so you'll need to either include the file in your plugin (require_once etc.) or copy the function into your page.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|