Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 175
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 132
Total: 132

Author Topic: contact page addon help  (Read 5930 times)

0 Members and 1 Guest are viewing this topic.

Offline fire2104

  • Member
  • *
  • Posts: 3
    • View Profile
contact page addon help
« on: January 29, 2009, 09:39:17 am »
hey all newbie here, I have the contact page add on installed but I cannot get it to display in my custom theme propely,  this shows below the menu area instead of the menu area.


I am thinking the issue lies in the ./Themes/default/index.template.php area.

this is a sample of how mine is set up for the menu area.



Code: [Select]
// the [member] list button
if ($context['allow_memberlist'])
echo '<li', $current_action == 'mlist' ? ' id="active"' : '', '><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';



and after that I put this in as per instructions,

Code: [Select]
// the [contact] 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['smfcontact_contact'] , '</a>
</td>' , $current_action == 'contact' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



I am pretty sure the problem lies in this area but I am not positive.


Thanks in advance all

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: contact page addon help
« Reply #1 on: January 29, 2009, 09:29:23 pm »
Should be
Code: [Select]
if ($context['allow_view_contact'])
echo '<li', $current_action == 'contact' ? ' id="active"' : '', '><a href="', $scripturl, '?action=contact">' , $txt['smfcontact_contact']  , '</a></li>';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline fire2104

  • Member
  • *
  • Posts: 3
    • View Profile
Re: contact page addon help
« Reply #2 on: January 30, 2009, 11:10:21 am »
Worked great Thanks a ton, I figured the issue was in that code but was not sure how to correct it.


Again Thanks so much




Offline fire2104

  • Member
  • *
  • Posts: 3
    • View Profile
Re: contact page addon help
« Reply #3 on: January 31, 2009, 10:53:15 am »
If I could possibly ask one more thing I would be grateful I need to add one more edit to the menu on my site and I for the life of me cannot figure it out, I tried to model it after what u showed, I can usually figure this things out

I need to make this code work with my site

Code: [Select]
else {
     echo '<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">',
     ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
     . '/chat_icon.gif" alt="FlashChat" style="margin: 2px 0;"
     border="0" />' : "FlashChat"),'</a>';


any help would be great, I assume it needs formatted like above

 

Related Topics

  Subject / Started by Replies Last post
Contact Page

Started by SMFHacks « 1 2 3 4 » Latest Mods

49 Replies
54061 Views
Last post August 03, 2022, 09:45:42 pm
by Nicole
2 Replies
4967 Views
Last post February 29, 2008, 01:18:32 am
by thekid
8 Replies
3330 Views
Last post September 10, 2017, 11:26:19 am
by Binkie
4 Replies
3212 Views
Last post March 26, 2018, 08:11:44 am
by SMFHacks
5 Replies
4957 Views
Last post December 11, 2019, 04:19:25 pm
by emmebroke

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal