The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
|||
|
|||
Quote:
Thank you ever so much. I have learnt a very valuable lesson. By changing the hook it now works a treat. They say you learn by your mistakes and this has certainly taught me to check hooks and the code before and after. One very final thing if it would be possible to pick your brains once more! In the code ive got the following line PHP Code:
PHP Code:
Would you be able to suggestions on how to get this to reflect the name shown in PHP Code:
As this is happening before the member is signed in, am I correct in thinking it would be a case of adding more database queries to get this information? |
#32
|
||||
|
||||
I really can't say since I have no clue where you placed that link - is that in the plugin? In a template? Seeing that line alone tells me nothing about the variables. What plugin code are you currently using an which hook location?
|
#33
|
|||
|
|||
Hi Lynne,
In the pluggin I have this line PHP Code:
Quote:
|
#34
|
||||
|
||||
You need to follow the trail of what happens when - when during this whole process is the thread being created? And how do you know what variables are available at that time - have you looked at the code around where the thread is created? Also, $bbuserinfo gets used at other places and perhaps it is getting written over. So, perhaps try using a different variable name.
|
#35
|
|||
|
|||
Hi Lynne,
Im almost there, just got one final hurdle! I created a query to get the userid of the member. The code below works fine in linking to their profile Quote:
PHP Code:
PHP Code:
PHP Code:
Parse error: syntax error, unexpected '/', expecting T_STRING or T_VARIABLE or T_NUM_STRING |
#36
|
||||
|
||||
How come you are using bbcode and not html? I don't know where that code is being used.
|
#37
|
|||
|
|||
Hi Lynne,
Thanks for your reply. Im using it in the ACP |
#38
|
||||
|
||||
Then you need to look at the code that is parsing the field. I've always created fields in the ACP that allow html to be used so I'm not sure what else to suggest.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|