vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=249277

etca 07 Dec 2011 00:04

Quote:

Originally Posted by dartho (Post 2275323)
Edit the tagbit_wrapper template and replace it's contents with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Hooo thanks dartho..
it's works on me

tafreeh 07 Dec 2011 05:20

Quote:

Originally Posted by tafreeh (Post 2274494)
sorry forgot to maked install :)

@dartho: you missed me again.. :(

thenamesgould 07 Dec 2011 06:17

Thanks again, dartho. :)

dartho 07 Dec 2011 11:08

Quote:

Originally Posted by tafreeh (Post 2275431)
@dartho: you missed me again.. :(



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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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

mvoelker 08 Dec 2011 00:32

Just want to chime in and say thanks for this. All my users prefer this significantly over the built in mobile style.

tafreeh 08 Dec 2011 03:51

Quote:

Originally Posted by dartho (Post 2275506)
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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

thanks allot for this :)

inphoenix 08 Dec 2011 05:24

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.

dartho 08 Dec 2011 06:41

if you can add to standard style, you can ad to this I guess. I don't know what admob is

inphoenix 08 Dec 2011 12:08

Quote:

Originally Posted by dartho (Post 2275804)
if you can add to standard style, you can ad to this I guess. I don't know what admob is

Admob is banner ad serving program for mobile devices. It generates a Google adsense like script to use. Where would I add that script if I want to post the banner after

1. First post.
2. Last post.

Thanks for your prompt response.

dartho 08 Dec 2011 12:53

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.

inphoenix 09 Dec 2011 16:28

Quote:

Originally Posted by dartho (Post 2275875)
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.

Thanks for a quick response. I found out that admob does not work for mobile apps but I got the code for Mobile Adsense. Those links are javascript. I tried using it in a regular HTML page on phone and it works but using it in the ad_showthread_firstpost_start does not work. If I use an adsense link in this ad_showthread_firstpost_start on regular desktop style it works.

Do you know if the lighweight (mobile) style will support javascript?

Has anyone else done this?

dartho 09 Dec 2011 21:28

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)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


inphoenix 09 Dec 2011 22:59

Quote:

Originally Posted by dartho (Post 2276388)
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)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Adding this in postbit legacy did it. Thank you so much !!

inphoenix 12 Dec 2011 02:49

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.

dartho 12 Dec 2011 04:40

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 14:59.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, 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.