use the following search parameters to narrow your results:
e.g. sub:pics site:imgur.com dog
sub:pics site:imgur.com dog
advanced search: by author, sub...
~5 users here now
This is Saidit's main sub. Please only post things related to the saidit.net website itself.
If you want a place to post any topic to the community, please try out /s/whatever or /s/asksaidit
Ok I broke something on my saidit install. Pastebin shows section of admin config I was working on when I broke the UI :(
submitted 1 year ago by portcity from pastebin.com
view the rest of the comments →
[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 1 year ago (10 children)
Hey, just checking in. Everything is going well (that lounge flush is my best friend). Those brander_xxxx things are tricky. Changing some turns the site into a 503, but changing it back to brander_site fixes it again. I'm basically just figuring things out. Could you tell me where the appearance/design pieces are, like where 0eye the designer is changing images? Thanks so much again for all the help! I obviously couldn't do this without you. x
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 1 year ago (9 children)
You can't change any configuration parameters, on their values. And no changes to a sane value should cause a 503. Beware that after a reddit-restart or start, the site may throw 503 and be inaccessible for up to 3 minutes (cron jobs are overwhelming the system).
The appearance is all in .html and .less files. After you change .less, you've gotta run refresh-css.sh to rebuild css (in production mode, if uncompressedJs is false).
Images are in r2/r2/public/static.
[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 0 fun3 insightful - 1 fun - 1 year ago (8 children)
Could you tell me how to access these files in my server: https://github.com/libertysoft3/saidit/blob/master/r2/r2/public/static/css/theme-custom.less https://github.com/libertysoft3/saidit/blob/master/r2/r2/public/static/css/themes/daymode.less
And also: where should I go to change the links in the footer?
Thank you!!
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 1 year ago (7 children)
The footer links are hardcoded somewhere (yuck), you can find them by searching.
This file https://github.com/libertysoft3/saidit/blob/master/r2/r2/public/static/css/theme-custom.less
Is here: /home/reddit/src/reddit/r2/r2/public/static/css/theme-custom.less
[–]portcity[S] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 1 fun3 insightful - 2 fun - 1 year ago (0 children)
Here's where the footer links are (putting it here so I'll remember it!) Line 1234: /home/reddit/src/reddit/r2/r2/lib/pages/pages.py
Happy almost weekend ....
[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 0 fun3 insightful - 1 fun - 1 year ago (5 children)
Two issues I've run into in the footer:
Do you know how I can set up the mobile site, aka this link: https://m.portcity.online (right now it just leads to nothing)
And right now this https://portcity.online/wiki/index/ leads to subscribed: forbidden (portcity.online)
This is the link connected to the OffsiteButton: https://saidit.net/s/SaidIt/wiki/index#wiki_apps_.26amp.3B_clients
So I'm not sure why it's forbidden?
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 1 year ago (4 children)
Do you know how I can set up the mobile site, aka this link: https://m.portcity.online
Yes, you need to set up a DNS entry for this subdomain, and add the subdomain to your cert if you didn't already, then it will work. But note that's not the reddit mobile app or anything fancy, it's just an alternate theme with different CSS. You'd probably be better off investing time into having responsive CSS styles that work on the main normal site (there are some styles in place already that do this, but it needs improvement fo sho).
this https://portcity.online/wiki/index/ leads to subscribed: forbidden
This is related to setting default_sr. So make sure this 'default sub' is to your liking (I think it defaults to frontpage), then make sure you create the index wiki page for that sub, then https://portcity.online/wiki/index will work.
default_sr
[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 0 fun3 insightful - 1 fun - 1 year ago (3 children)
Hi! How are you? Everything is going well. I tried out some of 0eye's changes (which you can see at portcity.online , daymode). Can you tell me where in the files I can change the Saidit logo in the top banner and the little icons that appear when links don't surface an image? I know what I'm doing probably still looks very clumsy to you, but remember I was a complete noob at unix before I started working away at the reddit codebase, so I feel like all things considered I've come a long way (thanks to your help).
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 1 year ago (2 children)
Hey there. Glad you're excited. You can find all of that stuff in reddit.less and theme-custom.less. You can find images by searching for their filenames.
I recommend only making changes using overrides in theme-custom.less so they are all in one spot and you can get updates from us.
[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 1 year ago (1 child)
Ok, I successfully replaced the Saidit logo with a PortCity logo I made in like 5 minutes with this command: $ scp /Users/user/Downloads/portcitylogo.png reddit@x.x.x.x:/home/reddit/src/reddit/r2/r2/public/static/saiditlogo.png
And by looking at the saiditlogo.png file in ranger, I can tell it's the new logo I made now.
And then I did the css refresh, but the logo hasn't changed on my site. Any thoughts?
Also I'm a little confused as to what you mean by "making overrides in theme-custom.less." I did undo all the changes I made in daymode.less, because i understand what you mean about wanting to get updates from you. But how do I use overrides to make changes going forward?
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - 1 year ago (0 children)
I see it! Maybe it's your browser cache. Just pop open the inspector and make sure 'Disable Cache' is checked when you work on it.
But how do I use overrides to make changes going forward?
Feel free to ignore this, but I recommend that you just only add new lines of CSS to the bottom of whatever .less files you want. Then if we change our styles earlier in the file, 'git pull' will still be able to merge the files, and your styles will remain intact.
So no editing, only adding at the bottom. You can copy and paste to the bottom all you want. It bloats the CSS files a bit, but dealing with CSS conflicts is no fun.
view the rest of the comments →
[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (10 children)
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (9 children)
[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 0 fun3 insightful - 1 fun - (8 children)
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (7 children)
[–]portcity[S] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 1 fun3 insightful - 2 fun - (0 children)
[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 0 fun3 insightful - 1 fun - (5 children)
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (4 children)
[–]portcity[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 0 fun3 insightful - 1 fun - (3 children)
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (2 children)
[–]portcity[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (1 child)
[–]d3rr 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 0 fun2 insightful - 1 fun - (0 children)