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

Reply
 
Thread Tools Display Modes
  #21  
Old 10-04-2018, 06:01 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 10,724
draugluin is on a distinguished road
Default

ich hab bei dem Bild auch ziemlich rumprobiert, bis es ging...

versuchs mal mit

PHP Code:
{$adopt->getadoptbackground()} 
wichtig sind da die beiden Klammern
__________________
Reply With Quote
  #22  
Old 10-04-2018, 11:36 AM
Nairi Nairi is offline
Member
 
Join Date: Sep 2018
Location: Germany
Posts: 13
Gender: Female
Credits: 987
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
  #23  
Old 10-05-2018, 01:38 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 10,724
draugluin is on a distinguished road
Default

Hey, Glückwunsch.

es ist immer wieder faszinierend, wenn man was selber hinkriegt :)
Aber manchmal kann man auch dran verzweifeln ... und plötzlich klappts doch.
__________________
Reply With Quote
  #24  
Old 10-05-2018, 11:55 AM
Nairi Nairi is offline
Member
 
Join Date: Sep 2018
Location: Germany
Posts: 13
Gender: Female
Credits: 987
Nairi is on a distinguished road
Default

Danke :)

Eine Frage habe ich aber noch: nun klebt das Pet-Bild oben am Rand des Hintergrundes. Wie bekomme ich das jetzt mittig? Ich stehe gerade völlig auf dem Schlauch.
Reply With Quote
  #25  
Old 10-08-2018, 02:32 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 10,724
draugluin is on a distinguished road
Default

gerne.

wenn ich deine Zeile bei mir einfüge, ist das Pet-Bild aber mittig.
Das sagt ja auch der Teil : text-align:center.

Wenns gar nicht anders geht, pack dir doch ein div ins div und platzier das
__________________
Reply With Quote
Reply

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 12:35 AM.

Currently Active Users: 239 (0 members and 239 guests)
Threads: 4,080, Posts: 32,024, 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 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636