vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Signature Permission Issues (https://vborg.vbsupport.ru/showthread.php?t=310461)

XGC Paravain 04-13-2014 02:45 PM

Signature Permission Issues
 
I have my regular usergroups set up for one Signature, but another usergroup set up for 2 signatures,

When a member is taking out of the usergroup set for 2 signatures and kept in the usergroup set up for 1 signature that member still has 2 signatures,

Please help!!!

cellarius 04-16-2014 12:22 PM

Since default vB supports only 1 signature, you use an addon for this. So you need to ask this in the addon thread.

XGC Paravain 04-27-2014 01:00 PM

Quote:

Originally Posted by cellarius (Post 2493407)
Since default vB supports only 1 signature, you use an addon for this. So you need to ask this in the addon thread.

True but I created a usergroup allowing 4 sig. but when members are taking out of that usergroup they should go back to the default 1 sig. but their not they still have 4 sigs

I didn't do any addons for this just usergroup permissions.

cellarius 04-27-2014 01:21 PM

And what setting would that be allowing users to have 4 different signatures?

tbworld 04-27-2014 08:11 PM

Quote:

Originally Posted by XGC Paravain (Post 2495047)
True but I created a usergroup allowing 4 sig

You can set the number of images per signature in the usergroup manager, is this what you are referring too as signatures?

XGC Paravain 05-11-2014 03:39 PM

Quote:

Originally Posted by tbworld (Post 2495098)
You can set the number of images per signature in the usergroup manager, is this what you are referring too as signatures?

Yes that's exactly the way I set the usergroup, for a subscription usergroup members are allowed 4 sigs. but when the subscription runs out, members are removed from that usergroup where you can not have 4 sigs. only 1, but members that get removed from that usergroup still have 4 sigs. and im not understanding why.

XGC Paravain 06-22-2014 12:53 AM

Still having issues with this if any one has a solution it would be greatly appreciated thank you

tbworld 06-22-2014 01:40 AM

Quote:

Originally Posted by XGC Paravain (Post 2502982)
Still having issues with this if any one has a solution it would be greatly appreciated thank you

1.) Are you saying their old posts still display four signatures?
2.) Or are you saying that after being removed from a user-group, they can still add four signatures?
3.) Are these secondary user-groups they are being added and removed from?

XGC Paravain 06-22-2014 03:40 AM

Quote:

Originally Posted by tbworld (Post 2502984)
1.) Are you saying their old posts still display four signatures?
2.) Or are you saying that after being removed from a user-group, they can still add four signatures?
3.) Are these secondary user-groups they are being added and removed from?

First question, there new posts they still have 4, I went to that members profile and still showing all 4 sig.

Second question, I did a test with a test account and no they can't add 4 sigs. when removed from the usergroup, but if they have 4 sig. before being removed they still have all 4 sigs. after they are removed.

When a member pays for the membership their put into the membership usergroup/Primary Usergroup when the membership is up and they are removed they go back to Registered Member/Primary Usergroup

cellarius 06-22-2014 07:24 AM

First of all, I'd really appreciate if you would speak of sigpics, not sigs. This is not about 4 signatures, but about signature pictures, and it confuses me all the time if you go on about people having 4 signatures.

Second: The number of sigpics is checked against permissions when the signature is created. If the user has permission to use 4 sigpics at the time of creation, he can create a signature with 4 pictures. This signature then is used until he changes it, nom matter what permission changes happen until then. Only when changing the signature the number of pics is checked again. There is no way that I'm aware of to change the signature automatically when the permission is revoced.

It may be possible through an addon - you might have to remove the signature as a whole. Possibly using regex it would also be possible to only remove the last three sigpics.

tbworld 06-22-2014 07:32 AM

Thanks @Cellarius,
I was just looking into this, and you are right about the confusion. I interpreted the question meaning 4 lines in the signature editor, which is also an option. Nevertheless you answer still applies as I was going to write up something similar, but maybe not as elegant.

What table is the signature text stored? I can find "sigparsed", but the users signature text eludes me at the moment. :)

CAG CheechDogg 06-22-2014 07:41 AM

Quote:

Originally Posted by tbworld (Post 2503009)
Thanks @Cellarius,
I was just looking into this, and you are right about the confusion. I interpreted the question meaning 4 lines in the signature editor, which is also an option. Nevertheless you answer still applies as I was going to write up something similar, but maybe not as elegant.

What table is the signature text stored? I can find "sigparsed", but the users signature text eludes me at the moment. :)

That's the table where the text is also stored together side by side with the sigpic ...

--------------- Added [DATE]1403426678[/DATE] at [TIME]1403426678[/TIME] ---------------

The column is signatureparsed

tbworld 06-22-2014 07:57 AM

Thanks @CheechDogg, I finally found it in table 'usertextfield' in vb4. Thanks for the reply.

In table "sigpic", I ony see the image data in vb4.

Are you running vb3 or vb4?

CAG CheechDogg 06-22-2014 08:01 AM

You are welcome !

I'm running vb4 tbworld .... and yes I see what you are talking about now ...

XGC Paravain 06-22-2014 02:29 PM

1 Attachment(s)
Quote:

Originally Posted by tbworld (Post 2503016)
Bottom line @Cellarius is right. Of course I thought the original poster was talking about the number of lines allowed in the editor, which in theory looks like you could write a modification to parse the "signature" column for 'cr/lf' and then clear the signature cache. @Cellarius translated the OP as images (which I think is what he was asking about -- I had it wrong), I haven't looked at the code for that issue. Anyway, no quick fix.

I have never explored or used the signature section of vbulletin's code. I have never allowed the use of it on my boards, mainly because I was naive in this area on how the members would abuse it. :)

The number of lines in the text editor could be the issue, I know in the permissions I have every usergroup set at 1 Signature except for 2 usergroups, Multimedia I have set for 2 Signatures and the paid membership set for 4 Signatures.

Custom Avatars work fine when a member is in the same paid membership usergroup they are allowed a custom avatar and when a member is removed from that usergroup their avatar goes back to a default avatar just fine, I just don't see why the Sigs or Sigpics don't do the same.

Here is a print screen of a member that has been removed from the membership usergroup but sill has 4 sigpics

XGC Paravain 06-22-2014 02:31 PM

Quote:

Originally Posted by cellarius (Post 2503007)
First of all, I'd really appreciate if you would speak of sigpics, not sigs. This is not about 4 signatures, but about signature pictures, and it confuses me all the time if you go on about people having 4 signatures.

Second: The number of sigpics is checked against permissions when the signature is created. If the user has permission to use 4 sigpics at the time of creation, he can create a signature with 4 pictures. This signature then is used until he changes it, nom matter what permission changes happen until then. Only when changing the signature the number of pics is checked again. There is no way that I'm aware of to change the signature automatically when the permission is revoced.

It may be possible through an addon - you might have to remove the signature as a whole. Possibly using regex it would also be possible to only remove the last three sigpics.

About the sigs and sigpics the you mentioned above, sorry I didn't know the terminology you were looking for, sorry for me shotcoming

tbworld 06-22-2014 02:47 PM

As @cellarius elegantly pointed out, and I can completely confirm, that it is not possible without additional code to make this work. It is not a bug with the vbulletin code, but how the code was designed. You can argue whether the code should have been designed in this fashion, but that yields useless results. That being said it looks like the idea is probable.

It would have been a nice option for a subscription mode as you have demonstrated and sorry, I could not find a quick solution for you. Please take care :)

--------------- Added 22 Jun 2014 at 08:48 ---------------

Quote:

Originally Posted by XGC Paravain (Post 2503085)
About the sigs and sigpics the you mentioned above, sorry I didn't know the terminology you were looking for, sorry for me shotcoming

Don't worry about it, we are all learning, but thanks for caring. :)

cellarius 06-22-2014 02:50 PM

Quote:

Originally Posted by XGC Paravain (Post 2503085)
About the sigs and sigpics the you mentioned above, sorry I didn't know the terminology you were looking for, sorry for me shotcoming

We already cleared that in #5 and #6 in this thread, didn't we? No use discussing it all over again :)

XGC Paravain 06-23-2014 08:44 PM

Quote:

Originally Posted by cellarius (Post 2503094)
We already cleared that in #5 and #6 in this thread, didn't we? No use discussing it all over again :)

Are you serious?

cellarius 06-23-2014 08:50 PM

Quote:

Originally Posted by tbworld (Post 2495098)
You can set the number of images per signature in the usergroup manager, is this what you are referring too as signatures?

Quote:

Originally Posted by XGC Paravain (Post 2497288)
Yes that's exactly the way I set the usergroup

Yes, I am.

That's were we established we're talking sigpics here, and in the posts before it got quite clear that we all were pretty confused by your talk about "four signatures".

See, we're reading and answering many threads a day, and do not necessarily remember everything about them. Why make our lives harder by not clearly saying what things are about?

XGC Paravain 06-23-2014 09:26 PM

Quote:

Originally Posted by cellarius (Post 2503375)
Yes, I am.

That's were we established we're talking sigpics here, and in the posts before it got quite clear that we all were pretty confused by your talk about "four signatures".

See, we're reading and answering many threads a day, and do not necessarily remember everything about them. Why make our lives harder by not clearly saying what things are about?

I really don't think my problem is with Sigpics if the is what loading a image from your computer files, these 4 sigs are all [IMG]Codes[IMG] I believe sigpic you can only upload 1 image I will have to check that

cellarius 06-24-2014 05:13 AM

Well, my post explaining how signature permissions work still applies.

XGC Paravain 07-26-2014 09:22 PM

Quote:

Originally Posted by cellarius (Post 2503421)
Well, my post explaining how signature permissions work still applies.

Can it be fix?

ozzy47 07-26-2014 10:14 PM

Have you tried running, Maintenance --> General Update Tools --> Empty Signature Cache

If you have made changes that affect the output of signatures, you may use this to empty the cache and force signatures to be rebuilt with the new settings.

cellarius 07-27-2014 06:35 AM

Does this really help? As far as I know, this only rebuilds existing signatures, but does not check for permission changes. But the OP should definietely give it a try.

Can it be fixed? Well, its not exactly broken - it just does not offer the feature you require. Probably one could try to run a cron checking all existing signtures against the current permission set, or try a plugin checking all signatures concerned when usergroup changes occur. But both would not be trivial, given you would have to then block the signatures in some way and notify the user. Simply deleting would probably lead to some very unhappy users (and rightly so).

ozzy47 07-27-2014 09:00 AM

I am not sure if it is going to help, but it's witch a shot.


All times are GMT. The time now is 04:00 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
  • Page Generation 0.01266 seconds
  • Memory Usage 1,801KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete