Thread: Mys 1.3.4 Abron's Background Mod
View Single Post
  #7  
Old 05-02-2017, 01:17 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 111,709
Abronsyth is on a distinguished road
Default

I have pet profiles set up both for users managing their pets, and for those who click pets. So I want the backgrounds to display for those profiles, and set them up in the two files:
myadoptsview.php
levelup.php

In myadoptsview.php you call it this way {$adopt->adoptbackground}, and in levelup.php it's like this {$this->adopt->adoptbackground}. This calls the url of the background image, so you'll need to put it in image tags, like so:
PHP Code:
<img src='{$adopt->adoptbackground}'
or
PHP Code:
<div style='background:{$adopt->adoptbackground};'>(div elements here)</div
Or other similar methods.

Let me know if that helps!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote