vBulletin Modifications

why cant template mods be in the XML?

Welcome to vBHackers.com! - vBHackers Updates:

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

Reply
 
LinkBack Thread Tools
Old 09-10-2006, 12:21 PM   #1
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default why cant template mods be in the XML?

Well i understand that template mods require code to go in a certain location, and that there is no way to tell the code where to go via XML file.

But wouldnt it be possible for the Jelsoft crew to code a system where it marks line numbers in the templates, and you could then tell the XML file to insert template mod code into x line number.


What would be the problems or advantages of such a system?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 09-10-2006, 12:39 PM   #2
Coder
Idan's Avatar
Join Date: Feb 2005
Real Name: Idan
Location: Israel
Idan is on a distinguished road

Default

since not all users use the default skin bundled with the vb, i guess there wouldn't be much point for this, as each skin has different number of lines.
maybe if it had some search & replace system - it might have been better "global" way, but that isn't "bulletproof" either for some unique custom skins that may have completely new layout that doesn't match to anything from default...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-10-2006, 12:40 PM   #3
Coder
bairy's Avatar
Join Date: Jun 2006
Real Name: Chris
Location: Birmingham, UK
bairy is on a distinguished road

Default

People often tweak their templates which would throw the line numbers out of sync. One possible solution is a phpbb-easymod type one where a search and replace is done.
I think such a system was started for vB but never went anywhere.

One solution currently used is some mods (see Paul M's for example) do a str_replace on the template in the form if str_replace(someCommentInTheTemplate, thisHacksOutput, templateName);

Ah yes, and what Idan just said: custom skins would cause problems even with search replace.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-12-2006, 03:02 PM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Or if someone decided to move the string that the str replace looks for. IE. the shoutbox hack plus the on all pages addon means that if you remove the: "<!-- / navbar -->" then it will seize to show up.




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
Parse template in footer Kriminal General vBulletin Support 0 07-28-2006 03:43 PM
How do you create a template you can call? kau vBulletin Modification Requests 4 07-05-2006 10:04 AM
Methodology for plugin template changes tgreer General vBulletin Support 25 04-07-2006 08:04 PM
allowing 3 styles to share 1 template set?? figure004 General vBulletin Support 2 02-08-2006 04:33 PM


All times are GMT -3. The time now is 09:36 AM.


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