The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
add an admin only javascript field in posts
I have a dvd forum and when i create a post about a release i include a cover picture and a link to amazon.com
I now want to use the "buy it from amazon" buttons which creates an amazon style image and when its clicked you can add to your amazon cart instantly and carry on looking at the forum or go to checkout. the problem is they give you a piece of javascript to insert and I understand putting the ability to post executable javascript in a post is a big big security no no. the only apparent solution would be to add a new field to the page where you create your post which only appears for admins you can then post the code into the fiels and have it appear in the top of the postbit or wherever you want. it would need to be database driven so that it could store the code but my programming knowledge sadly only includes if...endif and include() when it comes to php. plus i'm not sure if it would be better to create a new table to store the info or if you should add it to the end of one of the other tables... anyways i think this is a hack that would be very useful for a multitude of reasons not limited only to amazon buttons it would allow the admins to use any <script> code they wanted without fear of the users being able to do the same. here is an example of the code i need to include... Quote:
Cheers Ciq |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|