Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #22  
Old 10-04-2018, 11:36 AM
Nairi Nairi is offline
Member
 
Join Date: Sep 2018
Location: Germany
Posts: 13
Gender: Female
Credits: 1,087
Nairi is on a distinguished road
Default

Okay, ich habs versucht. Nun kommt folgende Fehlermeldung:
Code:
 Fatal error: Call to undefined method OwnedAdoptable::getadoptbackground() in /users/equino/www/view/myadoptsview.php on line 146
Die Zeile sieht nun so aus:
PHP Code:
        $document->add(new Comment(" <div style='background-image:url:{$adopt->getadoptbackground()};background-repeat: no-repeat;vertical-align:bottom;text-align:center;width:400px;height:283px'><img src='{$adopt->getImage()}'></div><br><br>This page allows you to manage {$name}.  Click on an option below to change settings.<br> 
Unglaublich :D Ich habe jetzt schon diverses Versucht, aber irgendwie will es einfach nicht.

Edit: Ohne das get habe ich es gerade auch versucht. Gleiche Fehlermeldung.

Edit 2: Ich hab jetzt mal versucht das Hintergrundbild überhaupt anzeigen zu lassen via <img src={$adopt->adoptbackground}> und das wird angezeigt. Nur im Div-Bereich nicht.

Edit 3: Yeah, ich habs hinbekommen :D So siehts aus und funktioniert.
PHP Code:
<div style='background-image: url({$adopt->adoptbackground});background-repeat: no-repeat;vertical-align:bottom;text-align:center;width:400px;height:283px'><img src='{$adopt->getImage()}'></div

Last edited by Nairi; 10-04-2018 at 12:02 PM.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:50 AM.

Currently Active Users: 3543 (0 members and 3543 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636