Custom <head> and <body> scripts

Started by ɔɔɔɔɔɔuɥoɾ, August 09, 2010, 12:12:47 PM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

You will have to go into your database manually and remove the bad script you added. Normally you would be able to simply force a template change with the URL, but this mod was specifically made to work with ALL themes no matter if you added them before or after you installed this mod.

Check the database for the records under modSettings table called "custom_bodyx" x is the form you will 1 through 5. Simply erase the record or data within then reload your page, it should load up then.

Please be careful when you add custom code to pages using this mod, its designed to work with all themes and if you add code that prevents your page loading up, there will be no way to fix it unless you remove the data from the database from phpmyadmin or whichever client you use.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

pushkardua

not able to find thag.. There is custom fields :(

pushkardua


Matthew K.

Oh okay, yeah, do what I said and go into phpMyAdmin and {db_prefix}settings, it should be on the last page...just remove the value for the variable or delete it.

ɔɔɔɔɔɔuɥoɾ

Your very lucky I'm actually here, I have not been active here for a long time, I really do not have time to help a anyone, not for free anyway.

Its not a difficult problem to fix, not for me anyway, if you can look into phpmyadmin documentation you can easily fix this, if you want me to help you now I can, but it will not be for free, but it will be fast as I know my mod.

Labradoodle-360 knows what he is doing, he can also help, listen to him...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

pushkardua

last is smf topic rating..i am sorry but i am noob at this

ɔɔɔɔɔɔuɥoɾ

Quote from: pushkardua on February 10, 2012, 11:57:26 PM
last is smf topic rating..i am sorry but i am noob at this

Well, like I said, I can fix this for you for a price, but you will have to PM me.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

pushkardua

i thought  smf experts are good ...but all are money minded :(
plz help me i am 16 and wont be able to pay you :(
but i m stil w8ing  if you get ready to help me

ɔɔɔɔɔɔuɥoɾ

Quote from: pushkardua on February 11, 2012, 12:05:07 AM
i thought  smf experts are good ...but all are money minded :(
plz help me i am 16 and wont be able to pay you :(
but i m stil w8ing  if you get ready to help me

I'm sorry, but, I have a lot of things I'm currently doing now which are generating cash, If I stop to help you, for free, I'm loosing out. Once you are an adult that has bills to pay you will be thinking the same way, sorry.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

pushkardua

plz man i need my forum back i would have paid if i could

ɔɔɔɔɔɔuɥoɾ

You can fix this easily yourself if you just look up on mysql databases and phpmyadmin, its not like I'm saying paying me is your only choice, its very simple to delete a record or all data from a record, but If I have to do it for you, I cannot invest the time (I'm currently using) to get all the information required to access your server and credentials to be able to access your database then fix the issues for you.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Matthew K.

Okay, I think it's about time I stepped in.


John - It actually is your responsibility to support your modifications, that's what users have assurance of when installing something on the mod site, if you don't intent on offering support for them, you better add big bold notes to the mod descriptions as supporting your code comes as a responsibility.

I've written many mods, I definitely understand getting paid to do things and then having to volunteer to support people for free, with mods you've written in the past.

But there is a time and place to ask for compensation. If someone wants something customized and you want payment for it? Sure. But when something you wrote in turn kills someone's site and you want to charge to fix it? Pahh. I'm disappointed in you. I find that wrong.

Furthermore, yes, the user could do it himself if he invested just a little bit of effort on his part and took a minute to realize we're people with lives too. HOWEVER, it'd be faster to just fix the problem that takes 10 seconds than to demand payment for 15 minutes. It'll actually make you money because you save time and get better reputation which helps in turn. It could have been resolved last night.

User who needs help - send me a pm with cPanel login details and I'll fix it ASAP.

Sincerely,
Labradoodle-360

ɔɔɔɔɔɔuɥoɾ

By the lack of activity I have here, it would be rather obvious that support for the mod would be an issue, also, for the issue at hand, its not a problem the mod caused, its because of the bad code used by the end user. (The end user killed his own site, not me) I do not do this anymore and have more important things to do, its actually a miracle that I'm here now. So Pahh to the end user for mindlessly copy and pasting code into their site then blame a perfectly written mod for their screw up.... Blaming others for their screw ups in my mind is wrong, not me charging to fix their screw ups.

To be honest, editing the database manually could be tricky for someone new to coding, it would probably be easier to edit the ./Sources/Load.php and remove the added code for this mod temporally , assuming the head code was used. If you added bad code in body code you could temporally remove the code from ./Themes/default/index.template.php, your forum should start loading once again, when this happens, you can go to the options remove the bad code you inserted, then restore the code from the above files you just removed the mod should become functional again but with your forum working.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Matthew K.

Wait, a perfectly written mod? No, for this modification to be "perfectly" written, it would incorporate an evaluation of the entered code to prevent issues like this from arising.

ɔɔɔɔɔɔuɥoɾ

Quote from: Labradoodle-360 on February 11, 2012, 05:44:32 PM
Wait, a perfectly written mod? No, for this modification to be "perfectly" written, it would incorporate an evaluation of the entered code to prevent issues like this from arising.

It does exactly what it is supposed to do, it does not say it checks for bad code entered. So it is a perfectly written mod.

The mod your talking about would be called "head and body scripts with code checker for idiots who mindlessly paste code into forms not knowing what the code is and what it does".

We can go on all day trying to blame a piece of script on something the end user did, but its been downloaded many times and only one person has this issue, so its not the script.

Once again, the mod simply allows you to add code, it does not evaluate the code and does not state that is does, if it did, then you would be right, but it does not, so your not. In short, its a perfectly written mod because it does exactly what it says it does.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

All Colours Sam

Imagine  Toyota or Ford if they respond like this for not include security measures like air bags:

Hey! we build perfectly made cars that just go from point A to point B, thus, they are perfect, those who suffer accidents are idiots.

Security is a fundamental part of any script, and I'm not talking about hackers and all that stuff, I'm taking about prevent possible errors that the common user will make.

They will make those errors because they aren't familiar with code,  that's why they use your mod, otherwise they will build their own.

A good coder will cover if not all, the vast majority of possible errors the final user will do, that is almost written into stone.

Blaming the final user for something that every good coder is suppose to do is just plain lame.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

ɔɔɔɔɔɔuɥoɾ

#36
It would be way too much work to write a script to analyze tons of lines of code, not to mention a big server load just to add something any web site owner should have the common sense to check. I did not say I was a good coder, and copy and pasting code into forms/files not knowing how that code will respond with code you already have or not knowing what that code is or what is can do is certainly lame

I don't mean to be an @$$, but its not my fault if someone uses a piece of script the wrong way. Also look at the situation, I do not do this anymore and do not have time.

Oh, your metaphor is way off dude.

Quote
Hey! we build perfectly made cars that just go from point A to point B, thus, they are perfect, those who suffer accidents are idiots.

To actually match whats going on here would go something like:

Hey! we build perfectly made cars that just go from point A to point B, thus, they are perfect, those who tap into the power lines to the airbag to make their radio work then wonder why when they operate their radio their airbags go off should not complain because their idiots

I'm sure if there were any security issues this mod would have never made it to the mod site.
See, simple.

* ɔɔɔɔɔɔuɥoɾ wishes he had a lock button for this topic.....


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

All Colours Sam

I'm not a dude.

If you do not want to be here or don't have the time, then don't be!  as simple as that.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Matthew K.

Seriously? It'd take maybe 10-20 lines of code, the performance affect that's NOTICEABLE, EVEN on bigger servers.

Dude, the people that would use this mod, wouldn't know if you didn't TELL them what to escape and where. I'm sorry, but you are way out of line, and definitely incorrect.

Analyze a ton of code? Ha! It'd be simple.
Quote from: ɔɔɔɔɔɔuɥoɾ on February 12, 2012, 07:55:39 PM
It would be way too much work to write a script to analyze tons of lines of code, not to mention a big server load just to add something any web site owner should have the common sense to check. I did not say I was a good coder, and copy and pasting code into forms/files not knowing how that code will respond with code you already have or not knowing what that code is or what is can do is certainly lame

I don't mean to be an @$$, but its not my fault if someone uses a piece of script the wrong way. Also look at the situation, I do not do this anymore and do not have time.

Oh, your metaphor is way off dude.

Quote
Hey! we build perfectly made cars that just go from point A to point B, thus, they are perfect, those who suffer accidents are idiots.

To actually match whats going on here would go something like:

Hey! we build perfectly made cars that just go from point A to point B, thus, they are perfect, those who tap into the power lines to the airbag to make their radio work then wonder why when they operate their radio their airbags go off should not complain because their idiots

I'm sure if there were any security issues this mod would have never made it to the mod site.
See, simple.

* ɔɔɔɔɔɔuɥoɾ wishes he had a lock button for this topic.....

ɔɔɔɔɔɔuɥoɾ

Quote from: Suki on February 12, 2012, 08:32:48 PM
I'm not a dude.

If you do not want to be here or don't have the time, then don't be!  as simple as that.

I do not have time to support the mods, but I will not be blamed for someone else's screw up.




Quote from: Labradoodle-360 on February 12, 2012, 09:38:43 PM
Seriously? It'd take maybe 10-20 lines of code, the performance affect that's NOTICEABLE, EVEN on bigger servers.

Dude, the people that would use this mod, wouldn't know if you didn't TELL them what to escape and where. I'm sorry, but you are way out of line, and definitely incorrect.

Analyze a ton of code? Ha! It'd be simple.
Quote from: ɔɔɔɔɔɔuɥoɾ on February 12, 2012, 07:55:39 PM
It would be way too much work to write a script to analyze tons of lines of code, not to mention a big server load just to add something any web site owner should have the common sense to check. I did not say I was a good coder, and copy and pasting code into forms/files not knowing how that code will respond with code you already have or not knowing what that code is or what is can do is certainly lame

I don't mean to be an @$$, but its not my fault if someone uses a piece of script the wrong way. Also look at the situation, I do not do this anymore and do not have time.

Oh, your metaphor is way off dude.

Quote
Hey! we build perfectly made cars that just go from point A to point B, thus, they are perfect, those who suffer accidents are idiots.

To actually match whats going on here would go something like:

Hey! we build perfectly made cars that just go from point A to point B, thus, they are perfect, those who tap into the power lines to the airbag to make their radio work then wonder why when they operate their radio their airbags go off should not complain because their idiots

I'm sure if there were any security issues this mod would have never made it to the mod site.
See, simple.

* ɔɔɔɔɔɔuɥoɾ wishes he had a lock button for this topic.....

I agree that I should add that information, and your right, I will add that, but for the checking of code that incompetent webmasters copy and paste, its way beyond my skills to look out for those kind of people, this mod was made to make it easy to add head and body scripts and it does just that, nothing more.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: