![]() |
<IMAGE_HEIGHT2>
Hi all, i just wanted to hear if somebody could help me, what i want to do is create a new tag that for instance is called <IMAGE_HEIGHT2>, this tag will contain the original height minus 30 px..
so if <IMAGE_HEIGHT> is 400px <IMAGE_HEIGHT2> will be 370px would it be possible to make a quick addon that would allow this new tag? |
MUAHAHAA i figured it out.. if anybody wants to use this for whatever reason its quite simple this is how i did:
at this place in index.php Code:
$image_width = $image_extra['0'];Code:
$image_width = $image_extra['0']; |
Remember you have to implement this hack again when the core files are updated.
|
That is why this hack would be good to place in the simple addon.
|
Yeah i just need to figure out how to do addons, i haven't really tried it yet so...
|
Code:
$image_height2 = $image_height - 30;Code:
These are displayed in a users admin panel under addons: |
thanks alot, i thought it was more complicated, but i'm glad to see its not.. i think i'll start working on a admin panel of some sort so you can easily add more properties from the admin panel.
|
| All times are GMT. The time now is 06:54 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.