![]() |
Profile field in CMS
So far I created a plugin for vbulletin CMS product and parse templates hook
PHP Code:
What did I miss? |
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.
|
yes I did create it and put the word "test" in it to see if I could get that word to render.
|
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. |
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:
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=270256" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=270256</a>
|
Quote:
|
All times are GMT. The time now is 12:57 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:
|