The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to put user profile field in Article Page
Hello at all. Sorry for my bad english!!
I want to get from db one userfield of article creator, and put them into the end of article in CMS. I have try to put this code in vbcms_content_article_page : PHP Code:
I think missing some variable in the content.php file... Can anyone help me please? Thank's, Thomas. |
#2
|
|||
|
|||
No one can help me? Lynne even you?
|
#3
|
||||
|
||||
Use the plugin vbcms_article_populate_end:
PHP Code:
|
#4
|
|||
|
|||
Don't work,
He takes the field of the user reading the article. Not the field of the article editor. |
#5
|
||||
|
||||
Whoops. Guess 6:30 AM is too early for me to look at code.
You're right. The information isn't in scope. You'll have to first query the userfield table to grab it. Same hook. The other option would be to add it via the model to the query hooks, but in order to do that, you'll have to edit the model. I'm not seeing a quick and obvious way of doing that without doing manual file edits. If that's the case, though, it seems silly to have that hook in there... |
#6
|
|||
|
|||
Now I'll explain what I need fieldx.
Each article created by each author, will have 3 adsense modules. But how to divide the advertising of each author? Entering your adsense code in fieldx, I withdraw this code so that it is put into scritp by PHP Code:
|
#7
|
||||
|
||||
Hook vbcms_article_populate_end:
PHP Code:
|
#8
|
|||
|
|||
Great, now works!! you have been legendary!
If you were here in Italy would offer you a beer! Many thank's Eddie!! |
#9
|
|||
|
|||
I created a mod, and I thank you...
I have a question, if I wanted to know if the field exists, as I do? I tried with this: Code:
<vb:if condition="$field['field10']"> |
#10
|
||||
|
||||
This line:
PHP Code:
PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|