Advertisement:

Author Topic: Contact Page  (Read 218320 times)

Offline desistyle

  • Jr. Member
  • **
  • Posts: 250
  • Gender: Male
Re: Contact Page
« Reply #20 on: July 20, 2006, 05:40:06 PM »
and how would i do that ?

Offline psi0

  • Semi-Newbie
  • *
  • Posts: 70
Re: Contact Page
« Reply #21 on: July 22, 2006, 11:21:38 AM »
Hello,

I want translate module to other language.

Is that possible? how?

Thanks

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,682
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page
« Reply #22 on: July 22, 2006, 11:25:48 AM »
Edit the text strings in Modifications.english.php
and edit the text in /Themes/default/Contact.template.php
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

Offline psi0

  • Semi-Newbie
  • *
  • Posts: 70
Re: Contact Page
« Reply #23 on: July 22, 2006, 11:55:26 AM »
Thanks vbgamer45.

I think you should put text of Contact.template.php in Modifications.*.php to can be easy to translate and can be use when we have a forum with several language.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,682
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page
« Reply #24 on: July 22, 2006, 11:57:03 AM »
Yeah I plan to do that more in the future. Just easier for me to get the mod out   . Then later make the make the text changes.
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

Offline FinsandFur

  • Jr. Member
  • **
  • Posts: 184
Re: Contact Page
« Reply #25 on: July 29, 2006, 02:39:01 AM »
vbgamer45, Can you tell me as a newbie what I need to do to get the contact button to display on my forums.
I've successfully installed the mod, and I've granted permission to all users except guests. But I cannot get it to display the button.

I'm running SMF1.0.7 and using Blocs cerberus theme.

Thanks for any help you may be able to provide.

www.finsandfur.net/forums

Offline Vinspire

  • Sr. Member
  • ****
  • Posts: 852
  • Gender: Male
    • The Box Of Heart Forum
Re: Contact Page
« Reply #26 on: July 29, 2006, 02:47:41 AM »
vbgamer45, Can you tell me as a newbie what I need to do to get the contact button to display on my forums.
I've successfully installed the mod, and I've granted permission to all users except guests. But I cannot get it to display the button.

I'm running SMF1.0.7 and using Blocs cerberus theme.

Thanks for any help you may be able to provide.

www.finsandfur.net/forums

Read the install.xml that is attached in the zip file ... The codes and etc is inside.

Basically i think you need to modify this 2 files to get it working in cerberus.

    ./Themes/cerberus/languages/Modifications.english.php
    ./Themes/cerberus/index.template.php

Offline FinsandFur

  • Jr. Member
  • **
  • Posts: 184
Re: Contact Page
« Reply #27 on: July 30, 2006, 12:28:48 AM »
Thanks for the reply Vinspire.
There is no ./Themes/cerberus/languages/Modifications.english.php
and I'm not sure what to edit on the other one.

Can you get me a little closer. I'm learning as I go here. ;D

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,682
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page
« Reply #28 on: July 30, 2006, 08:37:21 AM »
Use ./Themes/default/languages/Modifications.english.php  instead.
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

Offline FinsandFur

  • Jr. Member
  • **
  • Posts: 184
Re: Contact Page
« Reply #29 on: July 30, 2006, 10:07:05 AM »
I must really be daft...and for that I appologize, but I still don't know what to do with that file ./Themes/default/languages/Modifications.english.php 

I found it and it shows my shoutbox code along with this contact page code, but I don't know what to do with it.

The shout box displays and functions fine, I have no idea how to get the contact button to display.... :-[

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,682
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page
« Reply #30 on: July 30, 2006, 10:18:34 AM »
You need to edit index.template.php of the theme you are using. That file contains the menu, headers, and footers. There is a guide some where on this place on how to use mods on non default themes.
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

Offline FinsandFur

  • Jr. Member
  • **
  • Posts: 184
Re: Contact Page
« Reply #31 on: July 30, 2006, 10:44:40 AM »
Cool, I appreciate the reply.
I'll do some looking around and see if I can find that guide info.
Thanks vbgamer45

Offline FinsandFur

  • Jr. Member
  • **
  • Posts: 184
Re: Contact Page
« Reply #32 on: July 30, 2006, 11:58:54 AM »
Never did find a guide on how to use mods on non default themes.

But I got it working.

For anyone else out there with similiar issues, Here's what I did.

I'm using Blocs cerberus theme, and I know the mod installs on the default theme. I wish there was a way to make the mods understand that your custom theme WAS your default theme but....

I went to the default theme and opened the "index.template.php"
I searched out the word "contact" since this is where the mod installer installed it.

Found ALL the code that was added with this mod, which was;
Code: [Select]
// the [contact] button
if ($context['allow_view_contact'])
echo '
<a href="', $scripturl, '?action=contact">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/contact.gif" alt="' . $txt['smfcontact_contact'] . '" style="margin: 2px 0;" border="0" />' : $txt['smfcontact_contact']), '</a>', $context['menu_separator'];

Make close note of where it appears in that file by taking note of whats around it, and then copy all the code pertaining to the contact page.

I then went my Blocs cerberus theme and opened my "index.template.php" and pasted the code in the exact location it was in, in the default theme.
Which in this case was following the "calendar" button.

I hope that atleast helps ONE person in a similiar situation.

Offline Mujahid

  • Semi-Newbie
  • *
  • Posts: 18
  • Gender: Male
    • Mujahid Webs - Home of Webmasters
Re: Contact Page
« Reply #33 on: September 23, 2006, 07:14:17 AM »
how can i change the contact email address?
i don`t want to use the default one.
Mujahid Webs - Home of Webmasters
http://www.mujahidwebs.com/forum [nofollow]

Offline qd-race

  • Semi-Newbie
  • *
  • Posts: 70
  • Gender: Male
  • qd-race.com | replica2u.com
Re: Contact Page
« Reply #34 on: September 23, 2006, 08:41:56 AM »
Dear vbgamer45

I incidently replace the index.template.php file in default theme. I mod back and I need to check what code is missing in this file.

Code: [Select]
// The [contact us] button
if ($context['allow_view_contact'])
echo ($current_action == 'contact' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'contact' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=contact">' , $txt[804] , '</a>
</td>' , $current_action == 'contact' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Please advise the above code is correct or not and please inform the rest of the code should be in this file or please post here the original menu code that suppose to be.

Thanks.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,682
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Contact Page
« Reply #35 on: September 23, 2006, 09:23:40 AM »
Just one you little you need to fix change
Code: [Select]
<a href="', $scripturl, '?action=contact">' , $txt[804] , '</a>
To
Code: [Select]
<a href="', $scripturl, '?action=contact">Contact</a>
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

Offline qd-race

  • Semi-Newbie
  • *
  • Posts: 70
  • Gender: Male
  • qd-race.com | replica2u.com
Re: Contact Page
« Reply #36 on: September 23, 2006, 09:33:28 AM »
I refer $txt[804] to index.english.php language file in default theme. What about the rest of code in index.template.php in default theme. Any code should I add?

Offline Darcy

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Female
  • My avatar has ¬©opyright
Re: Contact Page
« Reply #37 on: December 05, 2006, 04:31:11 AM »
Hi,

Thank you for this Mod, it works perfect ! And last night, I finished translating it to Dutch and it still works  ;) (after quite some errors first  ;D )

Without a name it will tell you: U moet uw naam nog vermelden.
Without a subject it will tell you :U moet ook een onderwerp invullen.
Without a message it will tell you: U moet wel een berichtje schrijven.
Without your e-mail it will tell you: Ik heb ook uw e-mail adres nodig.

and of course when it is sent, it says: Uw bericht is verzonden! Klik hier om naar het forum terug te gaan.

Whoever wants the Dutch php files; feel free to use them.
I didn't know how to change the filenames, now the files itself don't show they're the Dutch version...
I tried to change the file to contact-nl.php but somehow I need to change something else too and I simply am too new on all this to solve that part :-[
Never the less, if needed, people may be able to change the file name themselves right ?  ;)

So I first installed the original Mod and later copied my translated files to where they should be: contact.php in Sources and contact.template.php in Themes/default  (Maybe they even will work in other themes  ??? but I didn't try that)

I left your copyright message where it was so you don't have to worry about that  ;)

Thanks again

screenshot & files below
« Last Edit: December 05, 2006, 05:03:45 AM by Darcy »
My avatar has copyright © Maija

Offline msbask

  • Semi-Newbie
  • *
  • Posts: 23
Re: Contact Page
« Reply #38 on: December 25, 2006, 09:13:19 PM »
I'm having a strange problem with this mod.  If a guest view the main page, the contact button is not there.  I'm logged in as administrator, and I *can* see the button (and it works).

I've checked the permissions three times and actually, viewing the contact page is the ONLY permission a guest on my board *does* have.

Any clue what I'm doing wrong here?

Offline FinsandFur

  • Jr. Member
  • **
  • Posts: 184
Re: Contact Page
« Reply #39 on: December 26, 2006, 12:50:37 AM »
Code: [Select]
if ($context['allow_contact']) needs to be removed