News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Contact Page

Started by SMFHacks.com Team, July 06, 2006, 12:59:38 PM

Previous topic - Next topic

vbgamer45

7.0
!Fixes for undefined errors and better recaptcha checking that it is installed.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shades.

How do I completely uninstall this from the database so I can reinstall it fresh? I'm having issues with this mod using the verification questions. Users can send emails even if they get the answers wrong but I know it's not the mod itself because I've tested it many times on fresh 2.1.1 and no problems but something in my forum is broken and I'm trying to figure out why. So if there's anything left over from this mod after uninstall, what do I need to look for in the database to remove it entirely?

Thanks 8)

Edit: I have a topic going on here about related issues.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Doug Heffernan

Quote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh?

When you uninstall a mod, there is a checkbox that says: Remove all data associated with this modification. if you click the Details link, it will list all the data that the mod has added to the database. Tick it and then uninstall the mod. Hope it helps.

Shades.

Quote from: Doug Heffernan on April 10, 2022, 09:17:56 AM
Quote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh?

When you uninstall a mod, there is a checkbox that says: Remove all data associated with this modification. if you click the Details link, it will list all the data that the mod has added to the database. Tick it and then uninstall the mod. Hope it helps.
This one don't have that option or I would have! ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Doug Heffernan

Quote from: Shades. on April 10, 2022, 09:22:25 AM
Quote from: Doug Heffernan on April 10, 2022, 09:17:56 AM
Quote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh?

When you uninstall a mod, there is a checkbox that says: Remove all data associated with this modification. if you click the Details link, it will list all the data that the mod has added to the database. Tick it and then uninstall the mod. Hope it helps.
This one don't have that option or I would have! ;)

I have not seen the code of this mod, but most likely it does not add to the database then.

Shades.

Quote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.
I've installed several versions of this mod on the same database in the past so I'm not sure if one of them left a trace before the hook version or not or if it always used hooks, I dunno/remember!?

VB's on vacation right now so I'll just have to wait and not use the mod for now until he can verify. ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Quote from: Shades. on April 10, 2022, 05:10:40 AMHow do I completely uninstall this from the database so I can reinstall it fresh? I'm having issues with this mod using the verification questions. Users can send emails even if they get the answers wrong but I know it's not the mod itself because I've tested it many times on fresh 2.1.1 and no problems but something in my forum is broken and I'm trying to figure out why. So if there's anything left over from this mod after uninstall, what do I need to look for in the database to remove it entirely?

Thanks 8)

Edit: I have a topic going on here about related issues.
So after more researching and testing today I'm thinking my issues from the other topic (link in quote) is the contact page mod. Because the verification questions work on registration. Then I found with the contact page I can bypass the default image verification (for example I typed the letters backwards) and skip the recaptcha and it will send email with no errors. (see images)

You cannot view this attachment.

You cannot view this attachment. 
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kindred

#647
Quote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.

That is incorrect.

To the best of my knowledge, in 2.0, at leasr, Mods need to specifically set up the database uninstall option
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Doug Heffernan

Quote from: Kindred on April 11, 2022, 05:17:31 PM
Quote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.

That is incorrect.

To the best of my knowledge, in 2.9, at leasr, Mods need to specifically set up the database uninstall option

I think that maybe you misunderstood my post above. What I meant was that the mod itself maybe has not added any data to the database, as I had not checked the code and I was not sure if that was the case or not.

Anyways, can you please show me a concrete example of where Mods need to specifically set up the database uninstall option?

Arantor

Quote from: Doug Heffernan on April 11, 2022, 05:31:49 PMAnyways, can you please show me a concrete example of where Mods need to specifically set up the database uninstall option?

1. They have to use <database> to load their script.
2. They have to use $smcFunc['db_create_table'], $smcFunc['db_add_column'], $smcFunc['db_add_index'] when adding their changes to the database.
3. If they want, they can also specify a <database> for uninstall too to do housecleaning that might otherwise be missed by the above (e.g. removing package servers, removing admin_info_files entries)

Plenty of mods - especially mods upgraded from 1.1 fail on either step 1 or 2.

Doug Heffernan

Quote from: Arantor on April 11, 2022, 05:34:17 PM1. They have to use <database> to load their script.
2. They have to use $smcFunc['db_create_table'], $smcFunc['db_add_column'], $smcFunc['db_add_index'] when adding their changes to the database.

Yes, I am well aware of point 1 and 2.

Quote from: Arantor on April 11, 2022, 05:34:17 PM3. If they want, they can also specify a <database> for uninstall too to do housecleaning that might otherwise be missed by the above (e.g. removing package servers, removing admin_info_files entries)

I am aware of this too, but this is not mandatory a.f.a.i.k.

Anways, that is not what I asked though. What I wanted to know is a concrete example of this part: Mods need to specifically set up the database uninstall option.

I am asking because as mentioned above, the step number 3 of your post, is not mandatory a.f.a.i.k. I am working on a few mods and I need to know if this has changed recently and it has become a must, so I can adapt my mods accordingly. 




Arantor

Quote from: Doug Heffernan on April 11, 2022, 05:45:21 PMWhat I wanted to know is a concrete example of this part: Mods need to specifically set up the database uninstall option.

Man you are pedantic. And coming from me that's quite a thing. It's not an endearing trait.

OK, so if you declare your mods correctly, database uninstall will usually be set up automatically. You may need to manually do this if you are doing houseclean that isn't just adding tables, columns or indexes - like I said.

For example, if you are removing a package server (as several of my mods did back in the day), removing settings you added to smf_settings (SimpleDesk does this), you *explicitly* have to add a <database> setup for the uninstall.

If your mod behaves when creating tables, uninstall is usually set up for you. But creating tables/columns/indexes isn't the only optional housecleaning that people might want to do. If you don't create tables correctly, you should still be able to use <database> to produce a houseclean.

This hasn't changed significantly in over a decade. I was doing this stuff in SimpleDesk in 2011, with the install/uninstall-required/uninstall-optional files.

Kindred

But, to the point  ... if the mod uses a php SCRIPT to set up the database, as many older mods do, there will be no "remove mod from database" option
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Doug Heffernan

Quote from: Kindred on April 11, 2022, 06:00:13 PMBut, to the point  ... if the mod uses a php SCRIPT to set up the database, as many older mods do, there will be no "remove mod from database" option

That is all I need to hear. Thank you for the clarification.

GL700Wing

For all SMF releases:

Just discovered this mod does not remove any of the mod-specific files it copies to ./Sources, ./Themes/default, or ./Themes/default/images when it is uninstalled ...
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Matthias

German translation

Open Themes/default/languages/modifications.german.php or modification.german_informal.php
(suitable for both variants)

Search for:
?>
Add before:
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Kontakt';
$txt['permissionname_view_contact'] = 'Kontaktseite anzeigen';
$txt['permissionhelp_view_contact'] = 'Ermöglicht Mitgliedern, die Kontaktseite anzuzeigen und E-Mails zu senden.';
$txt['cannot_view_contact'] = 'Die Kontaktseite kann nicht aufgerufen werden';
$txt['smfcontact_name'] = 'Name';
$txt['smfcontact_subject'] = 'Betreff';
$txt['smfcontact_body'] = 'Nachricht';
$txt['smfcontact_emailaddress'] = 'E-Mail-Addresse';
$txt['smfcontact_sendemail'] = 'E-Mail senden';
$txt['smfcontact_messagesent'] = 'Die Nachricht wurde gesendet!';
$txt['smfcontact_messagesent_click'] = 'Die Nachricht wurde gesendet! Hier ';
$txt['smfcontact_messagesent_return'] = 'klicken</a> um zum Forum zurückzukehren.';
$txt['smfcontact_errname'] = 'Bitte den Namen eingeben.';
$txt['smfcontact_errsubject'] = 'Es wurde keine Betreff eingegeben.';
$txt['smfcontact_errmessage'] = 'Es wurde keine Nachricht eingegeben.';
$txt['smfcontact_erremail'] = 'Es wurde keine E-Mail Adresse angegeben.';
$txt['smfcontact_titlesent'] = ' - Die Nachricht wurde gesendet.';
$txt['smfcontact_form'] = 'Kontaktseite für ';
$txt['smfcontact_formname'] = "Name: ";
$txt['smfcontact_formemail'] = "E-Mail: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] =  "Nachricht: \n";
$txt['smfcontactpage_email'] = 'SMF Kontaktseite E-Mail-Adresse: ';
$txt['smfcontactpage_board'] = 'Kontaktseite - In welches Board soll gepostet werden (Optional): ';
// END Contact Page Text Strings
Quality first

dbh

#656
make the chance in Themes/default/languages/Modifications.english.php
nice day
// Dutch language
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'View Contact Page';
$txt['permissionhelp_view_contact'] = 'Allows members to view contact page and send email.';
$txt['cannot_view_contact'] = 'You can not view the contact page.';
$txt['smfcontact_name'] = 'Uw Naam:';
$txt['smfcontact_subject'] = 'Onderwerp';
$txt['smfcontact_body'] = 'Type Uw bericht';
$txt['smfcontact_emailaddress'] = 'Email Adres';
$txt['smfcontact_sendemail'] = 'Verzend Uw bericht';
$txt['smfcontact_messagesent'] = 'Uw Bericht is verzonden!';
$txt['smfcontact_messagesent_click'] = 'Dank voor Uw Bericht<br>Deze is verzonden!<b> Klik ';
$txt['smfcontact_messagesent_return'] = 'hier</a></b> om terug te gaan naat het Forum<br>Zo gauw dit bericht is gelezen krijgt U zo spoedig mogelijk een reactie<br>Met vriendelijke groet<br>Beheer  .';
$txt['smfcontact_errname'] = 'U vergeet Uw naam in te tikken.';
$txt['smfcontact_errsubject'] = 'U bent vergeten een onderwerp in te tikken.';
$txt['smfcontact_errmessage'] = 'U heeft niets ingevuld in de berichtenbox.';
$txt['smfcontact_erremail'] = 'U bent vergeten Uw e-mail adres in te vullen.';
$txt['smfcontact_titlesent'] = ' - Bericht verzonden.';
$txt['smfcontact_form'] = 'Contact Pagina voor ';
$txt['smfcontact_formname'] = "Name: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_ip'] = "IP: ";
$txt['smfcontact_formmessage'] =  "Bericht: \n";
$txt['smfcontactpage_email'] = 'Contact Pagina - Email: ';
$txt['smfcontactpage_board'] = 'Contact Pagina - Board to Post to (Optional): ';
// END Contact Page Text Strings

By the way
where can i chance the width of de message form
|It's to wide on a mobile

vbgamer45

Thanks! Added german and dutch translations.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shades.

#658
Quote from: Kindred on April 11, 2022, 05:17:31 PM
Quote from: Doug Heffernan on April 10, 2022, 09:27:41 AMI have not seen the code of this mod, but most likely it does not add to the database then.

That is incorrect.

To the best of my knowledge, in 2.0, at leasr, Mods need to specifically set up the database uninstall option
This...(may need to split to another topic) but I agree with this whether it is a true statement/rule or not...I mentioned it somewhere b4 but can't recall where but I think all mods should remove everything entirely upon uninstall! I have a whole slew of mods still in my database from 2.0 after upgrading to 2.1.1 that I don't/can't use now, that I would like to clean up! Although shawnb61's script is awesome it's still a pain in the arse to clean up all the old mods that might be ghosting around and possibly causing new/unexplained/undetectable errors/problems (for the non coders/developers) like myself. ;)  O:)

Just my two pennys! 8) 

(Edit: My comments are meant for future mods because I understand...what's done is done!) ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Sebastiii

Hello,

I have added French language to test and seems to works :)
<file name="$languagedir/Modifications.french.php">
    <operation>
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'Afficher la page de contact';
$txt['permissionhelp_view_contact'] = 'Permet aux membres d\'afficher la page de contact et d\'envoyer des e-mails.';
$txt['cannot_view_contact'] = 'Vous ne pouvez pas voir la page de contact.';
$txt['smfcontact_name'] = 'Votre nom :';
$txt['smfcontact_subject'] = 'Sujet';
$txt['smfcontact_body'] = 'Message';
$txt['smfcontact_emailaddress'] = 'Adresse e-mail';
$txt['smfcontact_sendemail'] = 'Envoyer un e-mail';
$txt['smfcontact_messagesent'] = 'Votre message a été envoyé !';
$txt['smfcontact_messagesent_click'] = 'Votre message a été envoyé ! Cliquez sur ';
$txt['smfcontact_messagesent_return'] = 'ici</a> pour retourner au forum.';
$txt['smfcontact_errname'] = 'Vous devez saisir votre nom.';
$txt['smfcontact_errsubject'] = 'Vous devez saisir un sujet.';
$txt['smfcontact_errmessage'] = 'Vous devez saisir un message.';
$txt['smfcontact_erremail'] = 'Vous devez saisir votre adresse e-mail.';
$txt['smfcontact_titlesent'] = ' - Message envoyé.';
$txt['smfcontact_form'] = 'Formulaire de page de contact pour ';
$txt['smfcontact_formname'] = "Nom : ";
$txt['smfcontact_formemail'] = "Courriel : ";
$txt['smfcontact_ip'] = "IP : ";
$txt['smfcontact_formmessage'] = "Message : \n";
$txt['smfcontactpage_email'] = 'Page de contact - E-mail : ';
$txt['smfcontactpage_board'] = 'Page de contact - Tableau sur lequel publier (facultatif) : ';
// END Contact Page Text Strings           
]]></add>
    </operation>
</file>


<file name="$languagedir/Modifications.french-utf8.php" error="skip">
    <operation>
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
// Begin Contact Page Text Strings
$txt['smfcontact_contact'] = 'Contact';
$txt['permissionname_view_contact'] = 'Afficher la page de contact';
$txt['permissionhelp_view_contact'] = 'Permet aux membres d\'afficher la page de contact et d\'envoyer des e-mails.';
$txt['cannot_view_contact'] = 'Vous ne pouvez pas voir la page de contact.';
$txt['smfcontact_name'] = 'Votre nom :';
$txt['smfcontact_subject'] = 'Sujet';
$txt['smfcontact_body'] = 'Message';
$txt['smfcontact_emailaddress'] = 'Adresse e-mail';
$txt['smfcontact_sendemail'] = 'Envoyer un e-mail';
$txt['smfcontact_messagesent'] = 'Votre message a été envoyé !';
$txt['smfcontact_messagesent_click'] = 'Votre message a été envoyé ! Cliquez sur ';
$txt['smfcontact_messagesent_return'] = 'ici</a> pour retourner au forum.';
$txt['smfcontact_errname'] = 'Vous devez saisir votre nom.';
$txt['smfcontact_errsubject'] = 'Vous devez saisir un sujet.';
$txt['smfcontact_errmessage'] = 'Vous devez saisir un message.';
$txt['smfcontact_erremail'] = 'Vous devez saisir votre adresse e-mail.';
$txt['smfcontact_titlesent'] = ' - Message envoyé.';
$txt['smfcontact_form'] = 'Formulaire de page de contact pour ';
$txt['smfcontact_formname'] = "Nom : ";
$txt['smfcontact_formemail'] = "Courriel : ";
$txt['smfcontact_ip'] = "IP : ";
$txt['smfcontact_formmessage'] = "Message : \n";
$txt['smfcontactpage_email'] = 'Page de contact - E-mail : ';
$txt['smfcontactpage_board'] = 'Page de contact - Tableau sur lequel publier (facultatif) : ';
// END Contact Page Text Strings           
]]></add>
    </operation>
</file>

Advertisement: