The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profile field in CMS
So far I created a plugin for vbulletin CMS product and parse templates hook
PHP Code:
What did I miss? |
#2
|
|||
|
|||
Did you create a template in the Style Manager named vbcms_twitter, or does it exist? If not then when you render it, it will be blank.
|
#3
|
|||
|
|||
yes I did create it and put the word "test" in it to see if I could get that word to render.
|
#4
|
|||
|
|||
OK, sorry, if I had read your first post carefully I would have seen that. Anyway, I created a plugin using hook parse_templates and this code:
PHP Code:
When you want to use the user's actual twitter profile field, the $userinfo won't work. You could use $vbulletin->userinfo, but that would show each user their own profile field, and I have a feeling that's not what you want. If you want the article author's twitter field, I'm not sure how to do that offhand. |
2 благодарности(ей) от: | ||
AndrewSimm, Lynne |
#5
|
|||
|
|||
Quote:
PHP Code:
--------------- Added [DATE]1417847973[/DATE] at [TIME]1417847973[/TIME] --------------- when I try the below I get my profile field6 instead of the person who posted the article PHP Code:
|
#6
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=270256" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=270256</a>
|
2 благодарности(ей) от: | ||
AndrewSimm, kh99 |
#7
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|