Chaos Project

Community => News / Suggestions / Feedback => Topic started by: ForeverZer0 on November 26, 2015, 02:30:40 pm

Title: Forum Error?
Post by: ForeverZer0 on November 26, 2015, 02:30:40 pm
Am I the only one who is getting this?
I see this on 3 different devices at the top of every page...

Spoiler: ShowHide
(https://photos-3.dropbox.com/t/2/AADc7pYcn2DC0CHkZOs_tlNUwXt0keLmFay-E3X8COxGbQ/12/20787370/jpeg/32x32/1/_/1/2/Untitled.jpg/ELXmyg8Ysq8DIAIoAg/5e8o6h9wgnhgvvFx_fFaW812nPxO-clREa7Aj3akszY?size=1024x768&size_mode=3)
Title: Re: Forum Error?
Post by: winkio on November 26, 2015, 02:41:18 pm
Your image doesn't work, but if you are talking about the "Deprecated: preg_replace()" messages, I'm getting those too.
Title: Re: Forum Error?
Post by: KK20 on November 26, 2015, 03:28:14 pm
Yeah, someone has to edit the PHP code according to SoulShaker. It's a generally easy fix since you're just replacing method names.
Title: Re: Forum Error?
Post by: Soulshaker3 on November 26, 2015, 03:57:13 pm
You can also disable warnings in the PHP config, but the code changing should be the one done, since you know, you won't see other warnings if you disable them.
Title: Re: Forum Error?
Post by: Ryex on November 26, 2015, 08:34:04 pm
it's because SMF 1.x is an old version and the host probably upgraded the php install.
I'm getting tempted to tackle the migration to 2.x again...
Title: Re: Forum Error?
Post by: Blizzard on November 27, 2015, 04:01:00 am
What Ryex said. I wanted to fix this ASAP, but I literally didn't have any spare time in the last few days. I am likely to do this finally tomorrow.

Feel free to try the 2.x migration. The script database, shoutbox and some other stuff will have to be ported though.
Title: Re: Forum Error?
Post by: Soulshaker3 on November 27, 2015, 04:20:30 am
Quoteit's because SMF 1.x is an old version and the host probably upgraded the php install.


But... that's what I said to KK bitch in private :K Me wants credit.

About the migration if you need any help with PHP I "may" be able to help.
Title: Re: Forum Error?
Post by: Ryex on November 27, 2015, 12:18:50 pm
if you can get me a dump of the code and the database so I can do testing I'll see what I can do. my hope is that I can make this a drop in upgrade for you. Perhaps I can even migrate the themes.
Title: Re: Forum Error?
Post by: Blizzard on November 27, 2015, 12:44:11 pm
Alright. I'll get all of this ready tomorrow.
Title: Re: Forum Error?
Post by: KK20 on November 28, 2015, 12:55:01 am
Yes please. I hate how every submit brings me to a blank page and I have to change the URL to get back to the forums. :(
Title: Re: Forum Error?
Post by: Blizzard on November 28, 2015, 04:23:39 am
I tried replacing the call, but I gave up somewhere at the end since I realized that I'm not even sure I'm doing it properly due to some regex match syntax in PHP. Sometimes $1, $2, etc. are used and some times escaped \\1, \\2, etc. are used and I'm not sure if this is it. >.<

I'll send you everything, Ryex. See if you wanna port it to SMF 2.0. I'll try to disable the deprecation warnings for now.

EDIT: Didn't work. :/ I contacted support. Let's see if they can do it. But for now the actual best option might be to temporarily switch to an old PHP version until we upgrade to SMF 2.0.

EDIT: Alright, I got a reply and the warnings are now disabled. We should really switch to 2.0 ASAP. If PHP gets updated again at some moment, it's possible that the forum will stop working. >.<

EDIT: Yup, switching is the way to go. They won't update that part of the code. :/ http://www.simplemachines.org/community/index.php?topic=528463.0

Ryex, feel free to completely wreck everything. We'll figure out the additional stuff later. The theme can also go, I'm ok with that. We can always remake or update it at some point later.
Title: Re: Forum Error?
Post by: Ryex on November 29, 2015, 11:29:12 pm
well I have two clones working and one clone upgraded, wen't simi smoothly. I'll be doing work this week to convert things but I looks like the themes will have to be remade. At least the themeing in SMF 2 is much MUCH easier.

EDIT:
script database ported. that was actually rather easy
Spoiler: ShowHide
(https://dl.dropboxusercontent.com/u/20709011/Screenshots/Screenshot%20from%202015-11-29%2023-21-47.png)

Title: Re: Forum Error?
Post by: Blizzard on November 30, 2015, 05:24:39 am
That's fucking awesome! :D I can't wait for the switch.
Title: Re: Forum Error?
Post by: Soulshaker3 on November 30, 2015, 05:21:15 pm
QuoteI looks like the themes will have to be remade


Oh boy, I like this part :V:
Title: Re: Forum Error?
Post by: Ryex on December 04, 2015, 10:24:03 pm
so, I've mostly converted CP's main theme to SMF2. It's a bit rough, I need transparent images, but it works for now. the script database is of course ported. I however have yet to get any of our addons working. but that at least should be easy.

I'll have a test site up soon for everyone to look at and try and break.

EDIT:
a screen shot for ya
Spoiler: ShowHide
(https://dl.dropboxusercontent.com/u/20709011/Screenshots/Screenshot%20from%202015-12-04%2021-38-03.png)
Title: Re: Forum Error?
Post by: Ryex on December 09, 2015, 11:21:10 pm
OK.
Blizz has graciously provided a test subdomain and I've set up a 2.0 converted CP there. Please go test it out  it uses a new shoutbox system so play around with that if you would

http://forumnew.chaos-project.com/index.php

The theme is as far as i'm concerned complete, if you have problems with readability or something looks ugly/wrong let me know.
Right now there is only a clone of CP's default theme but I have plans to convert the dark Red theme and the dark and light blue theme
Title: Re: Forum Error?
Post by: KK20 on December 10, 2015, 12:06:23 am
Am I dumb or is there no way to post in the shoutbox?
Title: Re: Forum Error?
Post by: Ryex on December 10, 2015, 03:49:10 am
it might be me, I vaguely remember something about only admins having power to post in it by default. I' probably have to go in and add normal user permissions

EDIT: should be working now
Title: Re: Forum Error?
Post by: Blizzard on December 10, 2015, 03:59:52 am
Didn't you say you got the script database working? xD It won't work for me.
Title: Re: Forum Error?
Post by: Ryex on December 10, 2015, 04:59:37 am
that freaking template keeps disappearing on me. fixed.
Title: Re: Forum Error?
Post by: G_G on December 10, 2015, 12:13:07 pm
Shouldn't you still be able to view the shoutbox even when not logged in?

EDIT: My only complaints about the shoutbox.

Spoiler: ShowHide
(http://jugglingcode.com/snapshot/05Xn4Kh72.png)


Also, I hope you convert the other themes at SOME point (not immediately, unless you want to of course) because I haven't looked at a light theme in ages.
Title: Re: Forum Error?
Post by: Blizzard on December 10, 2015, 03:55:03 pm
Lol, I agree with the insta-ban thing.
Title: Re: Forum Error?
Post by: Ryex on December 10, 2015, 05:08:31 pm
Ok, I've cleaned up the shout box area.
as for the del and ban links available for mods and admins those can be hidden, they could before with the [hide admin links] at the top of the shout box
now that link looks like a little gear. it saves the setting across sessions so you can keep them hidden until you need them

The ban link might be deceptive but it only effects the shoutbox and is managed separately from smf's bans

you might want to type /help into the shoutbox and hit enter to look at the commands you can use.

EDIT: remember to use shift F5 to get the latest changes to things like style sheets and JS
Title: Re: Forum Error?
Post by: winkio on December 10, 2015, 06:15:39 pm
I hate to be that guy that complains about small details, but I'm really not a fan of the colored backgrounds on pretty much everything.  It's okay for the board and topic links, but not so much for the posts, profiles, etc.  Also, I don't like how the posts page keeps the extra space on the sides of the page, I prefer it use as much screen space as possible like it does now.
Title: Re: Forum Error?
Post by: Ryex on December 10, 2015, 07:54:24 pm
The width thing is actually a setting in the admin panel and it defaults to 90%, I bumped it to 95 so you can see how that looks.
I toned down the bgcolors so they don't pop as hard moving them closer to gray, let me know if these things help, dont for get to shift f5 for a clean cache
Title: Re: Forum Error?
Post by: KK20 on December 10, 2015, 08:39:28 pm
I like how the default login time option is "Forever". We advocate that everyone should be more like Aqua.

Also, I now have 15000 posts. I too can be over 9000. :D
Title: Re: Forum Error?
Post by: Ryex on December 10, 2015, 09:19:45 pm
wait what... how..? does SMF 2 have a security hole or something?
Title: Re: Forum Error?
Post by: G_G on December 11, 2015, 03:01:07 am
Whatever you did to the shoutbox now makes it expand with every new message.

Spoiler: ShowHide
(http://jugglingcode.com/snapshot/93YN2Ba75.gif)
Title: Re: Forum Error?
Post by: Blizzard on December 11, 2015, 03:52:12 am
:rofl:
Title: Re: Forum Error?
Post by: Ryex on December 11, 2015, 04:23:14 am
... you guys really like to knit pick... fine I'll apply a fixed height and make it have a scrollbar.
Title: Re: Forum Error?
Post by: Blizzard on December 11, 2015, 08:09:38 am
Don't worry, there's time to fix everything. The important thing is that most things work properly. We'll take it from there.
Title: Re: Forum Error?
Post by: Ryex on December 11, 2015, 01:49:02 pm
well I made the shoutbox a fixed height.

I have everything set up for you to do an upgrade anytime, all files and instructions in a git repo. exactly the same steps I used to get the test site running. you just need to find the time and let me know when you want it. I'd estimate about 3-4 hours.
Title: Re: Forum Error?
Post by: Blizzard on December 11, 2015, 02:43:26 pm
Get everything ready. I'll likely do it this weekend.