Advertisement:
GCWebhosting

Author Topic: Help with bad code  (Read 5884 times)

Offline snadge

  • Jr. Member
  • **
  • Posts: 369
    • TheTechForum on Facebook
    • @The_Tech_Forum on Twitter
    • The Tech Forum
Help with bad code
« on: October 02, 2015, 05:29:12 AM »
hello

My SMF 2.0.11 forum is now 4 years old and over the years ive installed many add-ons, which obviously have made changes to code the other addons cant find to replace, i sometimes can do this by using filezilla and locating the slight changed code and inserting whats needed, however over the years its gotten a bit messy

some examples, i use SimplePortal so I can have a landing page that looks more like a website, but before that I used EasyPortal, now I cant remove that at all, Ive tried upgrading tapatalk which fails, aeva (which displays youtube links as videos) no longer works

what would it take to get someone official from SMF too take a look at the code>?

thanks

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Help with bad code
« Reply #1 on: October 02, 2015, 05:43:15 AM »
To get someone to look at the code would be *extremely* laborious and probably costly... You are talking about hours, maybe days of checking (and eventually not all conflicts can be fixed)

My suggestion to you is:
* Duplicate your current setup (in the same server or in your local machine)
* Load a fresh set of files --> http://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files
* Reinstall your themes and MODs, just the ones you need. Their data will still be there ;)
* Satisfied with the result? Great, now do that in your live forum ;-)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline snadge

  • Jr. Member
  • **
  • Posts: 369
    • TheTechForum on Facebook
    • @The_Tech_Forum on Twitter
    • The Tech Forum
Re: Help with bad code
« Reply #2 on: October 02, 2015, 05:52:44 AM »
I know thats what i was going to do, (start a fresh) but so much work (weeks/Months) went into it I cant even remember how I done some of the stuff on there (mostly with the theme and simnplePortal, there was a lot of manual resizing and stuff if i recall for the forum, putting all the links back on my guides page would take an age, I guess I will have to live with it until it gives up the ghost and theres no other choice but to reset the forum

and when I do I will see about making a website and having the forum as a subsection of the domain... e.g. forum.domain.co.uk

thanks for your help

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,044
Re: Help with bad code
« Reply #3 on: October 02, 2015, 06:04:00 AM »
dont forget to fix your paths when you move things, What is repair_settings.php?

Offline snadge

  • Jr. Member
  • **
  • Posts: 369
    • TheTechForum on Facebook
    • @The_Tech_Forum on Twitter
    • The Tech Forum
Re: Help with bad code
« Reply #4 on: October 02, 2015, 06:19:25 AM »
thanks i will bookmark this page for when the time comes, ive backed up my forum on the server and put it in maintenace mode and going to see what it can do. I use filezilla and dreamweaver to edit the code

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,337
  • Gender: Male
    • Kindred-999 on GitHub
Re: Help with bad code
« Reply #5 on: October 02, 2015, 06:39:08 AM »
Please do note.... if using Filezilla to move files....   CHANGE THE SETTING in filezilla to default to using BINary transfer mode instead of ASCII.
If you do not, then you will corrupt all of your attachments.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline snadge

  • Jr. Member
  • **
  • Posts: 369
    • TheTechForum on Facebook
    • @The_Tech_Forum on Twitter
    • The Tech Forum
Re: Help with bad code
« Reply #6 on: October 02, 2015, 06:47:28 AM »
ok thanks

Offline snadge

  • Jr. Member
  • **
  • Posts: 369
    • TheTechForum on Facebook
    • @The_Tech_Forum on Twitter
    • The Tech Forum
Re: Help with bad code
« Reply #7 on: October 02, 2015, 06:48:57 AM »
ive been using at is in the  past

how does it corrupt the file? and how do i change it?

found it, it was on auto

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,337
  • Gender: Male
    • Kindred-999 on GitHub
Re: Help with bad code
« Reply #8 on: October 02, 2015, 08:06:51 AM »
auto is bad...  change it to BINary
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline snadge

  • Jr. Member
  • **
  • Posts: 369
    • TheTechForum on Facebook
    • @The_Tech_Forum on Twitter
    • The Tech Forum
Re: Help with bad code
« Reply #9 on: October 02, 2015, 11:03:59 AM »
i have thanks