vBulletin Modifications

Get permissions for a different user

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 11-09-2006, 08:39 PM   #1
vB Newbie
Join Date: Nov 2006
EdKohlwey is on a distinguished road

Default Get permissions for a different user

Hi,
Im trying to write a modification to send instant e-mails to people if they subscribe to a forum. I am modifying an existing instant notify hack, but I have a security-sensitive forum, and need to make sure no one gets an e-mail by subscribing to a forum they don't belong in. The existing code runs a SQL query, fetches an array of subscribed e-mail addresses, and then starts sending. I want to have a statement that says (pseudo-code):

You must first be a registered member to view any code.
I'm a java programmer so I have some frame of reference. Searching through the source code I found snippets of code that look like this, but I have no clue whats actually happening here:

You must first be a registered member to view any code.
I understand the -> operator is to access an object inside a class (right??) but whats the ampersand doing there??? its not passing an arguement by reference (or is it?) Can anyone help me understand whats going on here, not only with PHP but with vB?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 11-10-2006, 10:29 AM   #2
vB Newbie
Join Date: Nov 2006
EdKohlwey is on a distinguished road

Default

Eventually I came up with this... still have yet to test...

You must first be a registered member to view any code.
Does anyone actually know/can explain how the
You must first be a registered member to view any code.
part works?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save Drafts V2, vB3.5.4 (remembers everything) xyz vBulletin 3.5 / 3.6 Hack Releases 31 06-10-2007 01:51 AM
Looking for some sort of a User CP portal??? pumpiniron vBulletin Modification Requests 0 09-23-2006 11:35 PM
User Notes xfile vBulletin Modification Requests 5 05-28-2006 07:02 PM
User Stats fix BramuS vBulletin Modification Requests 3 01-05-2006 01:24 PM


All times are GMT -3. The time now is 09:27 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)