PDA

View Full Version : infraction - adding an image on the post where he/she got an infraction


killah360z
07-03-2015, 01:35 PM
so i want to know if its possible to add an image if the user gets an infraction for a post if so how?
the image cannot be edited out and everyone can see it

https://vborg.vbsupport.ru/external/2015/07/39.png

MarkFL
07-03-2015, 01:48 PM
It would require either a template edit or a plugin (which is what I recommend).

I will upload an add-on you can use once I have it done. :D

killah360z
07-03-2015, 02:01 PM
It would require either a template edit or a plugin (which is what I recommend).

I will upload an add-on you can use once I have it done. :D

thanks alot

MarkFL
07-03-2015, 02:17 PM
Okay, I have attached a simple add-on for you.

Download the attached .XML file and then in AdminCP follow:

Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product .XML file that you downloaded

Click "Import"

You MUST set your settings to enable the mod. Each setting has an explanation of its use.

Please let me know of any changes you would like. :D

killah360z
07-03-2015, 02:22 PM
Okay, I have attached a simple add-on for you.

Download the attached .XML file and then in AdminCP follow:

Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product .XML file that you downloaded

Click "Import"

You MUST set your settings to enable the mod. Each setting has an explanation of its use.

Please let me know of any changes you would like. :D

cant see the image tested on default style too
https://vborg.vbsupport.ru/external/2015/07/38.png

MarkFL
07-03-2015, 02:24 PM
Did you specify an image URL in the product's settings?

killah360z
07-03-2015, 02:26 PM
Did you specify an image URL in the product's settings?

https://vborg.vbsupport.ru/external/2015/07/38.png

MarkFL
07-03-2015, 02:36 PM
This is what I get, using your image URL:

https://vborg.vbsupport.ru/attachment.php?attachmentid=152806&stc=1&d=1435941246

Can you give me a live link to your site to a post that should show the image so I can take a look at the HTML?

killah360z
07-03-2015, 02:37 PM
This is what I get, using your image URL:

https://vborg.vbsupport.ru/attachment.php?attachmentid=152806&stc=1&d=1435941246

Can you give me a live link to your site to a post that should show the image so I can take a look at the HTML?

pmed

MarkFL
07-03-2015, 02:45 PM
Okay, try this...another hook location. :D

killah360z
07-03-2015, 02:49 PM
Okay, try this...another hook location. :D

still doesn't work o_O

MarkFL
07-03-2015, 03:07 PM
I would have to have admin access to make this work at the location you want.

killah360z
07-03-2015, 03:09 PM
I would have to have admin access to make this work at the location you want.
pmed

--------------- Added 1435945646 at 1435945646 ---------------

I would have to have admin access to make this work at the location you want.

alright so it works but it only appears if the user has a signature so i want the image right after post content

--------------- Added 1435946762 at 1435946762 ---------------

changed the hook location to postbit_messagearea_start

MarkFL
07-03-2015, 05:07 PM
Sorry, I had to run earlier...so is it working satisfactorily for you? If not, you can add a hook where you want and then use it in the plugin. :F

killah360z
07-04-2015, 04:11 AM
Sorry, I had to run earlier...so is it working satisfactorily for you? If not, you can add a hook where you want and then use it in the plugin. :F

right now i just cant hook it right after postbit_messagearea_start ends

MarkFL
07-04-2015, 04:14 AM
I can put it where you wanted in your original post, using the account information you PMed me if you want. ;)