![]() |
Installed and working like a charm.. Thanks Logician :)
I even installed it incorrectly and it still worked.. :D Originally, I only added $debug=1; once.. It was only after reading the file for a second time that I noticed I should have added it twice. I've corrected this now, but everything still worked doing it just the once.! |
Quote:
|
Hi, what I'm trying to do is this:
Registered Users are group ID: 2 Paid Subscribers are group IDs: 10, 11, & 12 All Paid Subscribers' primary usergroup is 2. Paid Subscriber's secondary usergroups are either 10,11, or 12. I want the following announcement to show up for paid subscribers only, but paid subscribers do not see any announcement. Code:
[[($bbuserinfo[usergroupid]==10 OR $bbuserinfo[usergroupid]==11 OR $bbuserinfo[usergroupid]==12)]] Any suggestions? Thanks, Brandy |
hey there. i follwoed the steps with now problems atall, however, when i got to the AdminCP, Options, and put in my message 'Tester : im testing to see if this appears' i could't see anything :S
what have i done wrong?! |
Quote:
I can't make the paid subscribers a primary group manually, because when their subscription runs out, they still need to be a registered user, so they need to have the "registered user" group as their primary group. Is this clear as mud? :tired: Any hope for it being able to work? Brandy |
Quote:
It is $bbuserinfo[membergroupids] that saves secondary userid. So theorically you need to use it to target your paid user like: [[($bbuserinfo[membergroupids] == 10 OR $bbuserinfo[membergroupids] == 11 OR $bbuserinfo[membergroupids] == 12)]] thanks for paying [[/($bbuserinfo[membergroupids] == 10 OR $bbuserinfo[membergroupids] == 11 OR $bbuserinfo[membergroupids] == 12)]] HOWEVER: $bbuserinfo[membergroupids] is technically a different variable then $bbuserinfo[usergroupid] because unlike primary usergroup, secondary usergroup can have more than 1 values. For instance you can have a user put into 3 different secondary usergroups at the same time. Therefore such a conditional will fail for these users when they are a member of more than 1 secondary usergroup. Bottom line what you are trying to achieve is not easily possible with this hack in certain conditions. |
Quote:
|
Looks nice, great hack Logican, i'll be installing later. :)
|
Quote:
I have tried using the is_member_of() function but it doesn't seem to be recognizing it either. Does anyone else have any idea how to post an announcement to display for peoples secondary usergroups? |
Is a similar hack available for vb2?
|
Quote:
|
Quote:
|
Quote:
|
well, i guess you answered my question above. I wanted to see if we could get the vb editors put in instead of the textarea.
|
Very cool...clicks install.
|
Great hack as always Logican. Installed no problems on 3.0.1.
One question: is it possible to include a cookie / condition setting or something that can determine whether the person has already seen the announcement, so that it doesn't keep showing up every time they visit the page? [high]* Intex clicks INSTALL.[/high] |
Quote:
|
Thank you for an excellent hack! :)
I've used it for my members who are awaiting email confirmation and approval by Admins. This will save me alot of hassle replying to the numerous emails I received concerning those issues. Once again, thanks for a great hack. Installed, tested, working perfectly. [clicks install] |
Some of my users and I have discovered something odd. I am not sure if it was because of this hack or vbGarage but whenever someone tries to make a change to their profile in the options menu it won't save it. I tried to change the avatar from showing to not show and after I use the save button it doesn't make the change for some reason the box's are still ticked and show avatar is still enabled.
Anyone else find this? |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
greatttttttttttttt one
I Install it :) |
when the popup appears its to the top left i want it centered how do i do this??
great hack btw thank you for putting this together |
Quote:
|
Quote:
|
Quote:
But technically there is no CSS command to make it appear in the center for all users. You can increase pixel numbers to make it go to the center but the term center will depend user's screen resolution so it may not be in the center for users who are using different screen resolutions. That is why the default location is set as top left. |
Logician, in the installation instructions you say to modify options.php to turn on debug (you say "Always debug on while adding a setting"), but you don't say to revert back afterwards, is this intended, or an oversight?
|
Quote:
|
Quote:
|
Quote:
1- you can not do that because "$activatelink" variable is dynamically compiled in email script so it does not have a value assigned in other parts of vbulletin. 2- You should NOT do that either because then everybody can click to it to activate their account. The point of it is to pass it via email so that you can make sure email address is correct. If people can activate their account by clicking a link in the board, it means they can register without using a valid email address so email confirmation become useless anymore. ;) |
Quote:
|
Installed perfectly and I think I've got the conditional syntax down well now. Thanks it works great!
Anyone, a few questions: 1) Not being a big modder, how/what do I edit so that the non-popup will appear at all times (the pop-up in other places would be too annoying)? Of course forumhome is all set, but looking for it to stay on forum display, thread display, searches, etc. 2) I saw that someone got it working on vBadvanced and was wondering if the same person or any of you smart folks could tell me how to get this to work on the newer vBadvanced CMPS? |
I would certainly love to see this mod enabled for VBA CMPS as well. I've been trying to adapt it, with no success. (probably spent 5 hours on this and only proven how much I have no clue about)
If anyone has had success, please let me know. Thanks for another great mod Logician. |
Quote:
Have a look over on vBa, or drop me a PM. :) @Logician: want the code to integrate this into vBaCMPS? |
Excellent hack, works fine, thank you.
One question though: I would like to have pre-made conditionals in the announcements, which are not active. In other words, something like HTML code enclosed between <!-- and -->. When I want to put a new announcement, I go in, remove the comments tags and write the new announcement. In that way, I do not have to remember what conditionals to use for each category (for example, I have a pre-made announcement for my moderators, but it does not show anything until the comment tags are removed), I have entered them once and then use them accordingly. I tried this and it didn't work, the announcement is still shown. Any ideas?? Many thanks. ----- John |
Quote:
[[($bbuserinfo[usergroupid]==5)]] my announcement [[/($bbuserinfo[usergroupid]==5)]] If you make it like this: [[($bbuserinfo[usergroupid]==5 AND $dontshow==1)]] my announcement [[/($bbuserinfo[usergroupid]==5 AND $dontshow==1)]] This announcement will not be displayed to your moderators until you remove the "AND $dontshow==1" part. Because this variable check becomes the part of your conditional and it is never TRUE so conditional is always ignored. ;) Quote:
|
All times are GMT. The time now is 05:16 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:
|