vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=249277 |
Quote:
it's works on me |
Quote:
|
Thanks again, dartho. :)
|
Quote:
I haven;t forgotten you - it's just that I've been fixing style bugs - your request is not related to this style as such. Having said all that - I'll try and point you in the right direction - To strip all HTML tags from posts for a specific style ID, create a plugin as follows: Product:vBulletin Hook Location: Postbit Disaply Complete Name: Strip HTML from Mobile Style Posts Execution Order:5 Code:
replace 'n' with teh styleid of your lightweight style. the bit in teh code with teh <br><a> is HTML tags you wish to allow, if you want images, add in <img>, if you want <stong> add it in etc. Google php strip_tags |
Just want to chime in and say thanks for this. All my users prefer this significantly over the built in mobile style.
|
Quote:
|
I see this question was asked but not sure if it was answered. Can I add admob banners to this style? If yes, how? Thanks.
|
if you can add to standard style, you can ad to this I guess. I don't know what admob is
|
Quote:
1. First post. 2. Last post. Thanks for your prompt response. |
I don't do advertising inposts or threads etc, so have no idea. I'm pretty sure the ad hooks are in this style, so you would use them the same way you would with the default style. Find where someone else has done this with the default style and do the same as them.
|
Quote:
Do you know if the lighweight (mobile) style will support javascript? Has anyone else done this? |
I just had a look, and those template hooks aren;t there. Try editing the postbit and postbit legacy templates and adding the following code at the end of the template and see how that goes (try both to see how it looks)
|
Quote:
|
How do I add another banner at the end of thread? I tried adding it in ad_thread_last_post_content but it won't show up. Ideally something at the end of thread (after all posts) would be really nice. Thanks.
|
The only other ad hook location in threads is the first post sig. I think that if those ad hooks I asked you to add to the postbit template aren't doing it, your problem lays elsewhere. Alternatively there are header and footer hooks that can be added in.
|
All times are GMT. The time now is 13:45. |
Powered by vBulletin® Version 3.8.14
Copyright © 2023, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.