The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#11
|
||||
|
||||
I have done something similar to this. I created an API wrapper in the frontend controller. You don't have to include any file at all.
Create a php file named apiwrapper.php in /includes/vb5/frontend/controller directory. The class name suffix has to match the filename. PHP Code:
|
Благодарность от: | ||
Replicant |
#12
|
|||
|
|||
Glenn, Thank you for the assist. This is great if you want to post as someone else. (I will definitely keep this, I'm sure I can use it). What I was trying to do is. Right after the member has been approved, and the save has completed, but before the welcome email has been sent. I needed it to send a post to a forum that is accessible to usergroup 2. Problem is. They are not usergroup 2 yet at that point, even though its saved. However. I was able to take a chunk of your code
Code:
$newsession = new vB_Session_Cli(vB::getDbAssertor(), vB::getDatastore(), vB::getConfig(), $postUserId); vB::setCurrentSession($newsession); This way I have the postid, and I can use it in the welcome email to tell the user to watch the post for questions on their recruitment. No code modified. I wouldn't have been able to do it without your section of code, or the idea to change user sessions. So thank you very much. You and Replicant are a great value to this community. I don't care what they say about you |
#13
|
||||
|
||||
Glenn has been my mentor from the beginning. His tips on CSS are what got me started. I'm not a coder, just more of a hacker and I have learned a ton of how to do things in vb5 from Glenn. His examples allowed me to understand what's going on in the back end more so than would have been possible on my own. Some of his posts, like the previous one are very illuminating.
|
Благодарность от: | ||
noypiscripter |
#14
|
||||
|
||||
Glad to help @Necrophyte.
@Replicant, I'm impressed that you learned to code when you are not a coder. |
#15
|
||||
|
||||
Thanks Glenn. I'm still learning and have a long way to go. If I had to depend on coding skills to eat, I'd be starving These little mod projects help a lot with understanding the quirks of PHP. I've done a ton of bash scripting over the last 20 years, but PHP is a whole different animal. At least with a background in bash, I'm able to read the code and figure out what it's doing most of the time. It's the syntax and the array handling that gets me confused sometimes. It's coming right along though.
|
#16
|
|||
|
|||
I have to agree. You both have taught me much. My eyes started to glaze over on some of the stuff you guys were talking about. I do Database management, with some php scripts here and there to modify data and manipulate the database here and there. But never to the extend vBulletin is.
I'm sure I'll have many more questions. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|