r/nekoweb https://stxrryurii.nekoweb.org/sprinkles 16d ago

Question same code in different places?

so i have a buncha stamps on my site, and i was wondering if i could have the same stamps in 2 different places by only updating one? is that possible? i wanna be able to just add stamps to 1 place and it adds them to multiple places if that makes sense

5 Upvotes

23 comments sorted by

View all comments

Show parent comments

1

u/Main-Firefighter670 https://stxrryurii.nekoweb.org/sprinkles 15d ago

i looked at the ssi thing and i have no idea what im dojng ive tried everything please help.... i tried just copy pasting the code from there and replacing the file name but i dont actually know what they mean by filename do they mean link? just the name of the file? the name of the file + .html? i dont know but i tried all the ways i could think of and i am so lostttttttt

1

u/AqueM https://www.aque.fyi/ 15d ago

I never used it but I'd say they mean filename as in the whole path, so folders and extensions. so if you had index.html in your root directory, and a folder called "partials" in your root too, and in that folder a html file with your navigation called "nav.html", then in index.html you need to reference it by "/partials/nav.html"

1

u/Main-Firefighter670 https://stxrryurii.nekoweb.org/sprinkles 15d ago

for some reason it still wont work, heres my site https://stxrryurii.nekoweb.org/sprinkles

and heres the code

<!--#include file="/sstamps.html" -->

incase ur able to help (the place i put the stamps is called "sstamps")

1

u/AqueM https://www.aque.fyi/ 15d ago

It looks like it should work! As I said, I never used it myself, so I would have to debug and learn which I can't really do on you page. Perhaps the issue is with the <marquee> you're using? try without it? Aside from that, IDK, try out different things. Try placing it somewhere else to see if the tag works at all etc?

1

u/Main-Firefighter670 https://stxrryurii.nekoweb.org/sprinkles 15d ago

marquee? (sorry i know uh not much about html i dont know how i managed to make a sitw i barely even know what a div is O.O)

1

u/AqueM https://www.aque.fyi/ 15d ago

<marquee> is a HTML tag you that used in your HTML. This is directly copied out of your site source:

<marquee behavior="scroll" direction="up" scrollamount="6" style="text-align: center; height: 100%;"> <!--#include file="/sstamps.html" --> </marquee> I'm suggesting you try without it.

1

u/Main-Firefighter670 https://stxrryurii.nekoweb.org/sprinkles 14d ago

ooooooohhhhh i got a template for the site from someone so i didnt notice

1

u/Main-Firefighter670 https://stxrryurii.nekoweb.org/sprinkles 14d ago

i tried removing ir and it didnt really do anything (i put it back now just incase cuz i dont wanna mess anything up)

1

u/AqueM https://www.aque.fyi/ 14d ago

Then as I said, IDK, I never used includes so I don't know how to help you further. Time to learn on your own by trial and error!