![]() |
Preview Style Hack [vB3]
Style Preview Hack
Coded by: assassingod Description: This gives your users an easier and more imformative way of changing styles. It gives changing styles it's own page in the UserCP, which includes a preview of the styles and a description. These can also be edited in the Edit Settings for styles in the AdminCP |
2 hacks in one day :) **wonders if you will release more**
Nice one mate and thanks |
ooh now i,ll deff be using this one :D ... why did no one think of this sooner lol
|
I've said it before and I'll say it again... You are the man. :D
|
Nice steve as always :)
|
after 2 install, it is similar, I have some problem with this hack, here:
- the following line in the template "USERCP_SHELL" do not exist PHP Code:
- a last thing also, in the control panel "Edit Style" is not posted either (see screen2) |
vB3 uploads are dead easy to work with - might be nice to offer the ability to update the code.
|
This is good - you could only add a two column mode as well ... to be more compact ..
|
nice one :D I might use this after i get more styles finished
|
Awesome hack man! Great job!
|
Sorry all, I forgot to mention some Phrases to be added.
All who use this hack, add these phrases: Code:
Type: Control Panel Global Code:
Type: Global Socrate; I'm not sure why the code isn't appearing for you - it's there on my version, RC3. Mist; Eh? gmarik; Could you explain more? |
Just updated the txt file (updated to 1.1), all who download before now re-download.
|
Quote:
but it is not serious, I have to adapt assassingod ;) On the other hand, the changes in the template should not be make in EACH template to be taken into account by the hack ? but I hold has to say you cheer for this superb hack, I appreciate :) |
nice one assassingod! ill definetily install this one!
/me clicks install MGM out |
I mean instead of offering a url to the image offer the ability to upload it directly to a specified folder (in options) or into the database :)
|
Steve. I'm getting red 'x where the styles should preview in the user cp. I made the image/styles directory that you said to, by the way. Also, the vertical link bar is not showing the right alt colors when you see the edit styles link and after you click on the link, that whole menu turns a solid alt color.
|
Ok, I got it partially figured out. You might want to add to to your instructions for dummies like me that you have to take a snapshot of your styles and upload them to the newly created styles directory. ;)
Also, where do I add the navclass[styles] colors or get them to display right in the menu on the left? |
Boofo;
I'm glad you sorted some out, and i'll make the instructions clearer;) I think I forgot to mention some more file edits so i'll investigate that Mist; Nice idea, i'll think about it Socrate; Quote:
Thanks all who like this hack. |
Also, Steve, when I go into the Edit Styles area, the bottom style is always checked even though the top style is the one I picked. Shouldn't the radio button be on the style that you have set for yourself?
What file would this be in? navclass |
Quote:
|
Steve, any fix for this yet?
|
Quote:
|
Steve, I'm going to uninstall this since it seems there isn't going to be a fix for it very soon. Sorry.
|
I like the hack, but the only thing I can seem to figure out is how to change the color of the area that says "Edit Styles" when you go to your UserCP. The color is incorrect. >>
Can anyone help? |
I hope you get a fix for that but I wouldn't hold my breath on it. I never got the fix and uninstalled it for that reason. ;)
|
Well, it's not worth uninstalling it for a simple color problem. I'm sure, if I look hard enough, I can figure out the problem myself. I just figured he would be more aware of the coding and whatnot. >>
|
It wasn't just the color problem as to why I uninstalled it. If you check one of the radio buttons and then exit that area and go back in, the first radio button is always checked. That was never fixed either, IIIRC.
|
When I go back, none of the styles are selected. I'm not going to bother uninstalling it for something as little as that, either. It's a good hack and helpful.
|
If it works like you want it to, then that is all that counts. ;)
|
unreasonable resquest/idea but i know theirs some scritps that can make a screenshot of a page, if something like that could be incorperated that'd be awesome :)
[high]* sabret00the goes back to being lazy[/high] |
OK, I found one fix -
In profile.php Find: Code:
$templatename = 'modifystyle'; Code:
// draw cp nav bar I was having problems getting the code to work correctly to fix the color on the usercp, so here is a sloppy patch until it actually gets fixed. In USERCP_SHELL Find: Code:
<tr> Code:
<tr bgcolor="#222222"> |
thanks for that fix man, helped me out a lot
MGM out |
Actually, here's a easier way to fix the color and it's the same code for all styles (should work for them all, it did for me and i have 8 styles on my forum):
Replace: Code:
<tr> Code:
<tr class="alt2"> Find Code:
'editoptions' => array( Code:
'editstyle' => array( |
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|