![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||
This is just a new page for showing the .css template and having all the stylevars clickable and then editable in the bottom screen. This uses iframes, so if you browser doesn't support that, then it won't work and I cannot help you with this.
You will need to open up and edit the admincp/template.php file. **edited for 4.1.11 below** Basically just add the code in red to the existing code. Find (under $_REQUEST['do'] = 'add'):
Change to:
Then find (under $_REQUEST['do'] = 'edit'):
Change to:
Then find (at the bottom of the page):
Add above:
Now when you go to Style Manager > find Style > Edit Templates and click on a .css template to edit (it will ONLY work in .css templates!), you will have the new option on the left to "Edit StyleVars". If you click that, you get a new tab with the .css template in the top box (not editable on this page) and it has all the *editable* stylevars clickable (for example, in userprofile.css, they use variables, not stylevars, so you won't have clickable stylevars there). If you click on a stylevar, it will open in the bottom of the window and you may edit. Tested in Firefox, Safari, Chrome, and Opera on my Mac. And thank you to ForumsMods for sharing a diff file - patch.zip (for version 1.1, which works, but doesn't have css changes) 1.2 - 2011-02-11 - changed some CSS for the divs and fixed a phrase. 1.3 - 2012-03-10 - added a file with the changes needed for 4.1.11 Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
The following members like this post: Hippy
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Miscellaneous Hacks Design Tool: Show what Stylevars are used on a Page | calorie | vBulletin 4.x Add-ons | 13 | 10 Apr 2011 15:55 |
Comments |
#2
|
|||
|
|||
Great idea.
Installed and Nominated. Can you make a diff file? No members have liked this post.
|
#3
|
||||
|
||||
It's basically two quick edits to find/replace and then just add a bunch of stuff at the end. And, besides that, I don't have an application to make diff files.
__________________
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.
|
#4
|
|||
|
|||
Originally Posted by Lynne
Yes, but is easier for me to apply using diff files.![]()
Also for next vB releases. I made a diff file for vBulletin 4.1.1 (40651). Take a note that with default vB Style does not display correctly. Would be better to use style classes and change 'Phrase' to '$vbphrase['stylevar']'. No members have liked this post.
|
#5
|
|||
|
|||
Thank you
No members have liked this post.
|
#6
|
||||
|
||||
Originally Posted by ForumsMods
thank you. I'll link to this in my first post.![]()
I'm not sure what you mean about the default vB style not displaying correctly. It's showing just fine on my site. I'm using the default admincp functions to build the page (print_table_start, print_table_header, etc) instead of redoing the whole thing. And yes, I should have used a phrase. I wrote this as a quick project for myself and then decided to share it and I thought I had cleaned it up, but I did forget to look at phrases. I'll catch that if I have another release.
__________________
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.
|
#7
|
||||
|
||||
Originally Posted by Lynne
See attachments.![]()
You are using hard-coded background and color.
I would change alt2 to bginput, delete border and background-color. Also delete border and background for iframe and add bginput class to it. No members have liked this post.
|
#8
|
||||
|
||||
__________________
Daddy Does Dios and Figs! https://www.linkedin.com/in/thelastsuperman Search - Use the search feature to find similar issues/answers. Information - Include screenshots, copy/pasted error codes, url etc. Fixed - Please return to your thread/post and let us know how it was fixed! Thanks - For participating! Click the "Like" ♥ on a post if someone helped you! No members have liked this post.
|
#9
|
|||
|
|||
Why the hell wasn't this standard!? This is awesome!
No members have liked this post.
|
#10
|
|||
|
|||
This is an amazing idea. Thank you so much Lynne! Installed + nominated as soon as I get home!
No members have liked this post.
|
#11
|
||||
|
||||
Very good idea!
No members have liked this post.
|
#12
|
|||
|
|||
Thanks Lynne, that's awesome...
No members have liked this post.
|
#13
|
|||
|
|||
Thanks for this! Also don't understand why this isn't included as a standard feature.
No members have liked this post.
|
#14
|
||||
|
||||
Make this an Add-on pleeeeease!!!
No members have liked this post.
|
#15
|
||||
|
||||
As you have to manually do file edits, it can NOT be done any other way.
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:53.