The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Having accessible source code formatting in Vbulletin
Hi guys,
I thought this might spark an interesting discussion since it has been plaguing me for quite a while now. Some might argue it is not important to have accessible source code as viewers only care about the the visual output of code but to some of us clean code formatting is essential. After doing a couple of template modifications on my vbulletin style I noticed that the web generated modifications actually caused the formatting to get lost. Whenever I go to "View Source" in my browser the code is shown without formatting/breaks/tab spacing.. everything is just one big inline soup mess that breaks occasionally when it hits content (ie.not tags) then continues doing the same thing. Since vbulletin templates are database driven and can only be modified from the backend it makes formatting the code even harder. Any thoughts on this, anyone? |
#2
|
||||
|
||||
The formatting is fine at stock vBulletin, but modifications start messing it up.
|
#3
|
|||
|
|||
Quote:
Well keep in mind I dont have any mods installed apart from VBSEO. Where have you heard of a forum without template modifications? Whether it is adding <h1></h2> tags to titles or removing those god awful tables. Its impossible really to go without modifying a standard release and expect to be taken seriously.. Is there perhaps any substantial information regarding template formatting that you can perhaps add apart from what I have already said? |
#4
|
||||
|
||||
I've modified the templates on my site quite a bit to get it how I want and the source looks fine.
|
#5
|
|||
|
|||
Quote:
Interesting.. I wonder if it might have anything to do with saving my index.php or globals.php from notepad or something. Could maybe cause formatting issues? anyone? |
#6
|
||||
|
||||
I find it hard to understand what it is that you are looking for.
Can you provide a screenshot as to what your problem is? |
#7
|
|||
|
|||
Vbseo probally removes all spacing etc to reduce page size.
|
#8
|
||||
|
||||
Well there's probably your problem.
|
#9
|
|||
|
|||
Quote:
It spews out like this Code:
<div id="maincontainer"> <div id="header"> <div id="logo"> text </div></div></div> Code:
<div id="maincontainer"> <div id="header"> <div id="logo"> text </div> </div> </div> I'm not so sure whether spacing reduces page size or whether VBSEO is responsible for this BUT I will send in a ticket asking them this question. Lets hope and see, will report back when I find a solution. Floris on vbulletin.com says " I use textmate to write my templates, mysql, php, etc. and when i use tabs and spaces, and copy it all to vb code, and eventually gets rendered, it shows just fine. Not sure what else to say about this. I sense this is just how the browser renders it." My responses to that is that its definetely not how the browser renders the source code as it looks the same on multiple browsers. Hope I figure out whats going on |
#10
|
||||
|
||||
vBulletin changes the properties around in the tags, so they're in a different order. It's what happens to me anyway.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|