What's new

Welcome to NullScriptz - NulledScriptz

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Share your content here:

Don't want to upload to our server on NullScriptz, Then share it now on our partner shareupld.com! Upload for free or take a subscription to be sure your files are save !

Knowledge Base

We are building our knowledge-base, find your answers! Or get directly in contact with us by creating a ticket. (In progress..)

  • NullScriptz.nl is for SALE!

    More information, please contact: WinSys32 or mail to: nullscriptzsale@gmail.com

    Buy-Now: $3.000,00
    +/- Unique visitors (Monthly): 10.000+ (Now lower due to inactivity of me) | Average income (Monthly): €100 - €500 + Domain + Server and all files and databases.

[RSS Feed/News] Using a new entity's id on creation

NS Bot

Moderator
Staff member
LV
0
 
Joined
Mar 31, 2020
Messages
18,865
Reaction score
131
Points
63
Awards
2
Website
nullscriptz.nl
Country flag
I'm attempting to set an sql field on an entity to the location of an image inside of XF's data dir at the time when the creation/save process happens but I'm not quite sure how to approach this.

I am able to get the file saved with the proper filename and in the proper place (data://taylorj_blogs/blog_header_image/filenamehere.jpg) where filename is the id of the entity that is/was created.

I've tried placing my code in my saveProcess method as seen below
PHP:

protected function...



 

Birthdays

Latest resources

Top Bottom