![]() |
Making "Work Safe" Style
I want to make a style where avatars and signatures don't show up at all and images (including attachments) show up as links. Like if the user had turned them off in their options. I don't want to effect any other style except the worksafe one. I know how to get rid of the avatars and signatures but not how to get the images/attachments how I want them. Any suggestions?
|
Well make a child style of the current one you have. And just edit out the avatars and signatures from the postbit/userprofile templates :)
|
1 Attachment(s)
I already have the avatars and signatures taken care of. It's the attachments/images that I'm having the problem with. I want them to appear as links, like it would if you have them turned off in the options but I only want it like that for the work safe style.
Like this, but only in the work safe style. I want the other styles to work normally and show the images. |
Bump for .Tim :)
(is this the .Tim from invisionize?) |
Sorry, it's not. :D
|
I finally got around to messing with this some more. I was able to get the attachments to show up as links like in the example. But I'm not able to figure out how to get images with the [img] tag to show up as a link.
|
BUMP...
I am trying to do the same thing.....make a worksafe theme. .Tim, did you ever figure out how to disable images in a style? |
Quote:
|
Can conditionals be done with styles?
e.g. if ( style is not bbuserinfo[style7] ) Show avs here else don't /if It would be nice... |
Or if anyone wants to let me use their worksafe theme..... :)
|
Quote:
|
1 Attachment(s)
Done :)
Not sure if this will work in 3.5.0, only tested on 3.5.1 Upload the attached plugin and modify it (change STYLEID = 67 to STYLEID = <styleid> of your worksafe style). |
Quote:
How would you remove the avatars on that specific style? Remove it from the postbit? |
Quote:
|
Quote:
|
It is (afaik) possible to do what you want, except its complex. The way I see you being able to do it is using the bbcode_create hook to modify the $this->tag_list array to modify the replacement html of the bbcode as the bbcode parser starts up.
It would look something like below, but note that i did it based on the tag example [newsimg]url[/newsimg] not [newsimg=url]text[/newsimg]. To do the second one, change no_option to option. I havent tested this and it could break the bbcode parser (with either setting). PHP Code:
|
I would be interested in something like this that could also turn on the swear filter.
I don't filter anything on my site but there have been problems with people getting locked out when their work software detects profanities. |
in global_start
PHP Code:
|
thanks merk, I will give that a shot.
|
Quote:
Thanks!!!! |
Quote:
Also, how will the user use this? I was looking for some kind of one-click solution to toggle between normal view and no avatars/no signatures. |
You can find the styleID by going to your Style Manager and pulling down the menu to "Edit Settings". The resulting page will list the id at the top.
And for switching, the stock vB install include a pull down menu style chooser in the lower left hand corner of every page. |
All times are GMT. The time now is 09:02 AM. |
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:
|