vBulletin Modifications

Methodology for plugin template changes

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 04-07-2006, 06:56 PM   #21
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Zomg, now that I like! (the part which you added in the other post) Adding a variable without showing it in the templates.. now that opens up a lot of options .

As the embing (or is it embeding? :p), you could add this to your plugin:
You must first be a registered member to view any code.
and than add $invite[forumrules] to the new template ;).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 04-07-2006, 07:34 PM   #22
tgreer
Guest

Default

Ok, there is no one, universal technique. For this particular project, I think I've reached a nice compromise:
  • Add a new custom template. Why? Because the user should have the flexibility of editing it, just as with any other template.
  • Within that template, I added $GLOBALS[orig_forumrules], and I use it where I want the current forumrules to appear (inside a conditional that tests if the user is a guest).
  • My plugin evaluates the current forumrules, assigning it to $orig_forumrules, and then does the cache swap as outlined previously.

Works like a charm. Deaths, to fix the width problem, I'll add $style[forumwidth], or whatever the proper variable is. The invite box should be the same width as the rest of the forum.

However, since this is controlled by a new custom template, you can edit that as you see fit.

Thanks for all the excellent help.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 07:36 PM   #23
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

No problem, glad I could be of help .

If you have any other questions please feel free to ask them here, I for one found this one to be very interested and have personally learned a couple of new things !




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 07:58 PM   #24
tgreer
Guest

Default

And to think, I'm not a "coder" according to .org... ah well.

In any case, here's the next version to test. If you don't have any problems with it, I'll release it here officially.
Attached Files
File Type: zip product-tgreer_invite.zip (1.5 KB, 3 views)

Last edited by tgreer; 04-07-2006 at 08:50 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 08:00 PM   #25
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Ok, I'll take a look at it now. Give me a couple of minutes ;).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 08:04 PM   #26
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Works perfectly for me ;).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Variables from .php to template Anubis General vBulletin Support 16 04-06-2006 07:17 PM
allowing 3 styles to share 1 template set?? figure004 General vBulletin Support 2 02-08-2006 04:33 PM
How Do You Delete A Template? Stunt General vBulletin Support 6 10-01-2005 02:38 PM
Index Template required Gary Bolton vBulletin Modification Requests 1 01-29-2005 08:45 AM


All times are GMT -3. The time now is 06:36 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)