a few questions

Forum
Last Post
Threads / Messages

llazybonezz

Member
Member
Joined
Dec 18, 2022
Messages
25
Points
3
Mysidian Dollar
236
okay....i feel like i've been posting a lot and i don't want to fill this forum with a lot of my posts, so i'm gonna post my questions in this one post! Any help is appreciated! I am using Mysidia version 1.3.5!

-i cant seem to get an image to add in the lang file. Here is the code i'm using, putting it right under the title:
$document->add(new Comment("<center><img src='img.url</center>", FALSE));
i would like to put an image at the top of non custom pages.

-some of my item functions don't seem to be working, this includes the click3, and Level1. How can i fix this?

-is there a way to display items on a users profile? Id like for users to be able to display certain items in their inventory on their profile, but i'm unsure how to code this.

-is there any code available to add items (clothes) to pets? so users can dress up their pets how they would like (like chicken smoothie kind of?)

-and lastly, is there a way to put recent posts on the index page; preferably the sidebar?


Thank you for any help! Most of these things aren't dire, but id be very happy to be able to figure them out!
 
Hello!

- For the image, I think you need to close the <img> tag. It's missing an apostrophe and the close bracket before </center>. See if this works:

PHP:
$document->add(new Comment("<center><img src='img.url'></center>", FALSE));

- The rest I'm not too sure on, sorry! Though for the item functions we might need more info. Does it give an error when you use an item? Or just not take effect?
 
Hello!

- For the image, I think you need to close the <img> tag. It's missing an apostrophe and the close bracket before </center>. See if this works:

PHP:
$document->add(new Comment("<center><img src='img.url'></center>", FALSE));

- The rest I'm not too sure on, sorry! Though for the item functions we might need more info. Does it give an error when you use an item? Or just not take effect?
Hello!

I tried that code but its still giving me the same error when i go to the breeding page :,(
im wondering if i need to do a differant code, because everything in the lang file starts with $lang?

for the items its give me an error when i try to use it (The item function is invalid), as well as the item not taking effect or leaving their inventory!
 
1. I've found you can't just add $document in a $lang file. It'll error. If you're wanting an image above all pages like a banner, you might look into a different file. I think template file maybe for your theme you're using was a good area to add that type of stuff if I remember right.

2. Did you look in PHPMyAdmin to look at item info, such as if you have it set to be an item or Item? It matters lol it can be finicky.

3. I think there was a mod on having items that would display for adopts but could be manipulated for users, I'll look for it.

4. There isn't a mod I know of that allows you to dress pets yet.

5. I helped someone with their code once before I'll see if I can find it. Where it displays the info in sidebar for last post, etc.
 
1. I've found you can't just add $document in a $lang file. It'll error. If you're wanting an image above all pages like a banner, you might look into a different file. I think template file maybe for your theme you're using was a good area to add that type of stuff if I remember right.

2. Did you look in PHPMyAdmin to look at item info, such as if you have it set to be an item or Item? It matters lol it can be finicky.

3. I think there was a mod on having items that would display for adopts but could be manipulated for users, I'll look for it.

4. There isn't a mod I know of that allows you to dress pets yet.

5. I helped someone with their code once before I'll see if I can find it. Where it displays the info in sidebar for last post, etc.
1. thank you so much, that was perfect!

2. i’m looking in phpMYADMIN right now at the items, do you mean if the itemname’s first letter is capitalized? if so, i think that might be my problem then!

3. thank you! i’ll be on the lookout for such a mod as well!

4. aw man, that makes sense,, it seems like kind of a tough code to make honestly

5. that sounds exactly what i’d like to do!!! thank you so much <3
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top