vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Block PHP, CODE, HTML and QUOTES from Guests for vB3.7 (https://vborg.vbsupport.ru/showthread.php?t=178176)

Boofo 05-14-2008 06:23 PM

That would be hard to do as there could be a zillion bbcodes like that and they might all be different. The code, php and html are standard in vb so they will be the same for everyone.

zikuta 05-14-2008 06:55 PM

Hi again,

every custom BBCode has an unique id, so making a standard mod where you can put that id and apply the Guest Limitation, sounds "theorically posible". I'm not a coder so I have no idea.

What do you think?

Also the problem is that we can't use vBulletin Conditionals when we create a custom BBCode, that would be the easier way ;)

Regards!

YLP1 05-14-2008 09:45 PM

I don't use code, html, bbcodes on my site but would love to be able to block my various media bbcodes to guests. Any future plans of giving bbcode name options so that admins can choose from their list of installed bbcodes they want to use with this product?

Thanks in advance.

gwerzal 05-15-2008 12:24 AM

Sweet was looking for something like this.

What i really need is to only allow a certain usergroup to be able to view the content.

Is this possible.

gwerzal 05-15-2008 12:36 AM

hi

i installed the product but guests can still see the code.

Am i missing something.

I have turned it on via the admincp

veenuisthebest 05-16-2008 07:36 PM

hello..

this has stopped working me too sir !! but it was definitely working fine till yesterday .. which means it must be clashing with some other mods.

I tried disabling all my other mods, but didn't helped !!.. what should I do ..

Boofo 05-16-2008 07:48 PM

Make sure the settings are set properly. If it was working fine up until yesterday, then you had to change something somewhere or added something to cause it to stop working. Try uninstalling it and reinstalling it if the settings are set properly.

veenuisthebest 05-16-2008 07:58 PM

what settings were there by the way ?? There is just one setting i.e. to enable hiding of quotes or not !!

I haven't done anything with it to cause it to stop working.. its as it was.

okayy.. so I uninstalled and installed again.. but didn't help.. its still showing up for guests..

BUT .. this is working fine in archive pages.. its not showing the code there. I can't make out why its showing up in full version pages even after a fresh install !! I EVEN TRIED DISABLING ALL OTHER MODS.

you may check at both places. Here for archive and here for main page

thanks

Boofo 05-16-2008 08:05 PM

Well, things don't just stop working on their own. You've added a hack or something that has changed something. There can be no other reason.

veenuisthebest 05-16-2008 08:19 PM

Quote:

Well, things don't just stop working on their own. You've added a hack or something that has changed something.
i agree.. things do not stop working on their own AND also that I have added hacks. But I have disabled them all and installed your mod fresh.

Also, I do NOT have any of Boofos Enhanced BBCODE Templates and the BBCode Layout Templates edited !!

The mod's working fine in Archive pages though. I have even uninstalled Limited Guest Viewing System coz I thought it might be the problem .. but no help ..

I have very few mods installed as well.. just 8-10

thanks

Boofo 05-16-2008 08:27 PM

The code files use the <if condition="$show['member']"> to stop unregistered users from seeing code in posts. Try testing that line with something in a post and see if it works. I can't see how that is not working. Something somewhere is messing with it.

veenuisthebest 05-16-2008 09:59 PM

I noticed few things sir,

1. The mod. is working fine for me in archive pages as well as for printable view threads :up:

2. Now, for the main view, even this simple text line (Double-click CODE box to copy code to clipboard) is not showing up over the Code box. Then when I tried to edit the post and save it, that line appeared. But still, code box is visible for guests. Is it something to do with caching of posts ??

thank you

Boofo 05-16-2008 10:06 PM

Have you changed the post cache time? And I meant to use this in a template to see if it got past it, like this

<if condition="$show['member']">
testing
</if>

veenuisthebest 05-16-2008 10:30 PM

my Cached Posts Lifespan is set to 7 days

Quote:

<if condition="$show['member']">
testing
</if>
yes.. this works just fine. I tried adding this code in footer and it showed testing at the footer only for members and not for guests !!

veenuisthebest 05-16-2008 10:33 PM

I see it in boofobbcode_code template, the code box is wrapped in the same conditional, then how can guests are able to view it ??

Boofo 05-16-2008 10:40 PM

Because somewhere along the line that template is not replacing the original one. There must be a bbcode hack you installed that is messing with this.

veenuisthebest 05-16-2008 10:42 PM

there is no bbcode hack i have installed other than this

Boofo 05-16-2008 11:34 PM

Then I don't know what to tell you. Something has changed somewhere as there is no way this hack can partially stop working on it's own. My advice is to uninstall it if it isn't going to work for you with whatever you have changed.

DiverTree 05-17-2008 12:18 AM

still working fine for me ... and i hacked that template all up. :o

Boofo 05-17-2008 03:50 AM

See? There you go. Another satisfied customer. ;)

veenuisthebest 05-17-2008 04:00 AM

Quote:

Originally Posted by Boofo (Post 1522285)
See? There you go. Another satisfied customer. ;)

ohhh... sir, I was more satisfied than him. This was one of the most wanted mod. by me and it worked as perfect as anything until yesterday !! its my hard luck, its not working for me now..

Boofo 05-17-2008 04:05 AM

Well. liked most things, this can be fixed. We just have to figure out what you did to stop it form working. Think back. ;)

Turn on 'Add Template Name in HTML Comments' under General Settings in the vBulletin options in the Admin CP and see if the new template names show up in the view source of the page.

veenuisthebest 05-17-2008 08:15 PM

hello,

okayy, so I enabled that option and can now view the templates names in HTML comments.

yes.. those new templates are missing for guests. In fact the whole actual message body is just between <!-- message --> and <!-- / message -->

also, there seems no difference in the source of message (code box) when viewed as both member or guest.

Boofo 05-17-2008 08:46 PM

Go into the plugin manger in the Admin CP and make sure that the parse_templates plugin for this hack is not disabled.

veenuisthebest 05-17-2008 09:27 PM

its already enabled.. all the four are enabled !!

Jase2 05-18-2008 06:06 PM

Boofo, on some quotes, it is treating my members as guests -- this displaying the message and not allowing them to see the quote. Does the same for me in certain threads....

Boofo 05-18-2008 06:35 PM

That doesn't make sense why it would work for some and not others. It should work the same for everyone. And certain threads wouldn't make any difference. Check the settings.

veenuisthebest 05-18-2008 06:40 PM

Quote:

it is treating my members as guests
this also happened with me today with HTML code boxes. Yesterday it was showing the code for everyone but today I noticed hiding of the code just for members !!

i uninstalled it and rebuilt post cache ..

Boofo 05-18-2008 06:50 PM

Quote:

Originally Posted by Jase2 (Post 1523858)
Boofo, on some quotes, it is treating my members as guests -- this displaying the message and not allowing them to see the quote. Does the same for me in certain threads....

Scratch the code I just posted. That won't work like that. Would you rather I release an update the doesn't turn off the quote boxes for guests?

Boofo 05-18-2008 06:52 PM

Quote:

Originally Posted by veenuisthebest (Post 1523888)
this also happened with me today with HTML code boxes. Yesterday it was showing the code for everyone but today I noticed hiding of the code just for members !!

i uninstalled it and rebuilt post cache ..

Like I said before, you have something interfering with this hack as the HTML code boxes use the exact same if condition as the php and code boxes. Only the QUOTE box uses a different one. Try setting the post cache at 0 and see if that fixes your problems.

veenuisthebest 05-18-2008 07:20 PM

okayy.. after setting posts cache lifespan to 0, I notice at some threads that it is still showing up the coded box to guests and at some, it is not. It doesn't matter whether it is CODE, PHP, or HTML.

It has definitely something to do with the posts cache, i think.

Jase2 05-18-2008 07:20 PM

There is only one setting, Boofo LOL. What exactly do you want me to change? I can't see it conflicting with any of my other hacks, either. :)

Boofo 05-18-2008 07:39 PM

The setting post was not for you. This one was:

https://vborg.vbsupport.ru/showpost....4&postcount=69

Are the quotes the only ones you are having problems with? And do you have post caching turned on?

JadedSouls 05-18-2008 07:40 PM

*installs*

Boofo 05-18-2008 07:54 PM

Quote:

Originally Posted by veenuisthebest (Post 1523926)
okayy.. after setting posts cache lifespan to 0, I notice at some threads that it is still showing up the coded box to guests and at some, it is not. It doesn't matter whether it is CODE, PHP, or HTML.

It has definitely something to do with the posts cache, i think.

OK, keep an eye on it and see if it starts working right now with post caching turned off. If it straightens out, then I will add that warning to the first post. I have always had post caching turned off so I never ran into any problems with post caching. But there are some hacks out there that will not work right with post caching turned on.

Jase2 05-18-2008 09:37 PM

I have set Cached Posts Lifespan to 0 and it is still the same. Treating me as a guest on certain quotes, strange.

Boofo 05-18-2008 09:43 PM

Has it always been doing that and have you always had the post cache st to 0? If it just started doing this then something has changed somewhere. Something you added or changed?

Jase2 05-18-2008 09:48 PM

Ummm.... I haven't added anything. Maybe I should set the post cache to 0 and leave it overnight and see how it goes?

veenuisthebest 05-18-2008 10:07 PM

nothing's working for me .. i think I need to wait for an updated version .. thanks

Boofo 05-18-2008 10:07 PM

So, it hasn't always been set to 0? Yes, let's try it and see if that is what is causing the problem. I have a sneaky feeing that is what is doing it. I have never had this hack fail me but I have never set the post cache to anything other than 0.


All times are GMT. The time now is 12:00 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
  • Page Generation 0.01205 seconds
  • Memory Usage 1,815KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete