Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Nov 2009, 11:41
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Var Plugin into template forumdisplay

I apologize for my bad English, we come to my problem

I created this plugin VB3

Hook: forum display_complete


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The result was called into the template via this code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



With vb4 I tried to change the code but not reported any results, the plug remained unchanged.




Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



The $head_forum is no longer being charged and even the variable $ file. Why?

Thanks
Reply With Quote
  #2  
Old 18 Nov 2009, 14:45
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
One of the big changes in vB4 is that you MUST register your variable for use in a template. It's basically like telling the system that you created a variable $head_forum that you want to use in template xxxxx. So, while rendering template xxxxx, you need to say "Oh, I've got a variable $head_forum that I want to use in here". You haven't done that. You are going to have to change your plugin to do this. See this tutorial along with several blog posts on vb.com about this subject - [HOW TO - vB4] Rendering templates and registering variables - a short guide. You will also have to register the variable file. Your template looks fine after you register the variables.
__________________
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.)
Reply With Quote
  #3  
Old 18 Nov 2009, 17:21
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
thanks for the answer I try with the guide, but not create a new template as it uses forumdisplay

--------------- Added 18 Nov 2009 at 19:07 ---------------

Sorry for the double post, solved by adding the plugin


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks

Last edited by Asterix_ita; 18 Nov 2009 at 19:07. Reason: Auto-Merged DoublePost
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:24.

Layout Options | Width: Wide Color: