Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 243
Total: 244

Author Topic: Adding Gallery to menu on themes  (Read 3485 times)

0 Members and 1 Guest are viewing this topic.

Offline Renegd98

  • Member
  • *
  • Posts: 26
    • View Profile
Adding Gallery to menu on themes
« on: April 30, 2007, 03:26:52 pm »
I understand how to add Gallery to the menu for themes.

What I need to know is for some themes in the index.template.php I will see the below code.

Code: [Select]
<a href="', $scripturl, '?action=admin">'.$txt[2]. '</a></td>';
I need to know where the $txt[2] and all the other $txt[xxx] are being declared at so I can add one in for gallery.  ie; $txt[2] = admin, and so forth...

Here is where they added admin to the menu.. I see this method alot:

Code: [Select]
// Is the user allowed to administrate at all? ([admin])

if ($context['allow_admin'])

echo $tab1, $ca== 'admin' ? '1' : '2' , '"><a href="', $scripturl, '?action=admin">'.$txt[2]. '</a></td>';

« Last Edit: April 30, 2007, 03:35:19 pm by Renegd98 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Adding Gallery to menu on themes
« Reply #1 on: April 30, 2007, 06:55:00 pm »
Those strings are defined in index.english.php

SMF Gallery add strings to modificaitons.english.php which will add $txt['smfgallery_menu'] which is used for menus 
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/

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4413 Views
Last post February 15, 2008, 02:07:58 pm
by lanec
0 Replies
3831 Views
Last post March 11, 2008, 03:53:43 pm
by astrod00d
3 Replies
5023 Views
Last post June 20, 2008, 04:03:59 am
by johno69
5 Replies
8104 Views
Last post February 02, 2011, 01:05:44 pm
by SMFHacks
4 Replies
3056 Views
Last post January 19, 2012, 05:38:32 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal