![]() |
|
Thread Tools |
#1
|
||||
|
||||
Plugin Help
I'm trying to create a plugin to add a link to the users photo album on the users pop menu.
I did this:
The links is inserted, but the link doesn't work. It shows the variable name and not the value. BTW I have vBSEO Any help will be appreciated. No members have liked this post.
|
#2
|
||||
|
||||
You might need to go ' . $post[userid] . ' with the variables. And you may have to put a single quote around it $post['userid'] . I can never remember when you need to or don't need to.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#3
|
||||||||
|
||||||||
1. you have to espace the
2. your missing a . before the = 3. lynne posted it. you cant do it that way, if you want, you'll have to create a template for it and to attach it this way:
No members have liked this post.
|
#4
|
||||
|
||||
I just looked through my plugins, and while most of them do the eval statement for the template_hook, I do have a couple that do it directly like he is. However, I did escape the quotes and also put single quotes around the variables in mine.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#5
|
||||
|
||||
Thanks guys!!
By just changing this: ' . $post[userid] . ' fixed the problem. No members have liked this post.
|
#6
|
||||
|
||||
Originally Posted by Lynne
![]()
I'm meaning this:
Normaly that should throw an error No members have liked this post.
Last edited by ragtek; 07 Apr 2009 at 19:41. |
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 04:29.