![]() |
That post was baseless. ;) You can see in this thread I "caught" alexp merely 2 hours after he posted the thread.
|
Quiet a nice hack :)
|
Which code in Global.php (in forum/admin or /forum?) should I change.. You can't just write lines 130-143.. :) Maybe I write something over that is not like your global.php.
|
Just a Q here...
I dont want to have to go give usergroup permissions out... Is there any way to give Specific Users access? i.e. userid=32 Satan |
@lars - I will go through the code at work tomorrow and replace the line numbers with "between this code and that code" - Basically the changes to Global just set a different cookie (newsletter OK instead of admin OK.)
[edit] PS as you are copying the file into a new directory and not editing the existing file in your admin directory, why not take a clean copy from your install .zip and follow the line numbers then? [/edit] @hellsatan - yes that is possible, I just thought using the usegroup was a more flexible method. Hack the "get perms" section to set $getperms[cansendnewsletter] =1 if your user has an acceptable userID. You could store an array of acceptable userIDs at the top of the script. - I'll post code tomorrow if I get a chance. @firefly - ' fair cop guv :cheeky: ' |
Anyone had any luck with this and version 2.25 of vbulletin?
|
for some reason, $HTTP_POST_VARS['action'] doesn't seem always to work (a colleague and I both had this problem this morning whilst it worked fine yesterday :cross-eyed: )
To solve this: in email.php, change line 15 from "if ($HTTP_POST_VARS['action']=="dosendmail") {" to simply "if ($action=="dosendmail") {" Now the question is, why doesn't $HTTP_POST_VARS work today when it worked yesterday and the day before that???? Very odd! Also enclosed is a new manage.php file which allows those with newsletter admin priveleges to subscribe all users to a newsletter. Whilst this feature could be useful in some situations, remember SPAM IS BAD! You should also tell users how to unsubscribe from the list again if you choose to use this feature. |
All times are GMT. The time now is 09:52 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:
|