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: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 203
Total: 203

Author Topic: oh PLEASE HELP ME OUT IN THE GALLERY LINK  (Read 7004 times)

0 Members and 1 Guest are viewing this topic.

Offline soulspline

  • Member
  • *
  • Posts: 4
    • View Profile
oh PLEASE HELP ME OUT IN THE GALLERY LINK
« on: February 15, 2007, 02:58:21 pm »
i cant seem to add a gallery button at the menu...pls help me out pls!!!!!! anyone...heres my file

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: oh PLEASE HELP ME OUT IN THE GALLERY LINK
« Reply #1 on: February 15, 2007, 05:28:15 pm »
Edit the index.template.php file
Find
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
After it add
Code: [Select]
// Gallery Button
if ($context['allow_smfgallery_view'])
echo '<li><a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</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 soulspline

  • Member
  • *
  • Posts: 4
    • View Profile
Re: oh PLEASE HELP ME OUT IN THE GALLERY LINK
« Reply #2 on: February 15, 2007, 11:12:07 pm »
Edit the index.template.php file
Find
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
After it add
Code: [Select]
// Gallery Button
if ($context['allow_smfgallery_view'])
echo '<li><a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a></li>';



hi many thanx i have added the code you gave me look -file attached but the button doesent have a button name ....ohhhhh man pls help out
taje a look heres our link http://forums.thousandclocks.com/index.php

Offline soulspline

  • Member
  • *
  • Posts: 4
    • View Profile
Re: oh PLEASE HELP ME OUT IN THE GALLERY LINK
« Reply #3 on: February 16, 2007, 06:41:01 am »
im inserting the code again here

oh PLS anyone help me out

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: oh PLEASE HELP ME OUT IN THE GALLERY LINK
« Reply #4 on: February 16, 2007, 07:38:57 am »
Seems like you have it working?
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 soulspline

  • Member
  • *
  • Posts: 4
    • View Profile
Re: oh PLEASE HELP ME OUT IN THE GALLERY LINK
« Reply #5 on: February 16, 2007, 03:21:15 pm »
oh yes :) thanyou very much-  pls be part of our forum man your a lot of help :)
by the way do you also have a mod for i can give awards for my members? and it will be displayed in their profile area while posting?

Offline FreaKyGuy

  • Member
  • *
  • Posts: 2
    • View Profile
Re: gallery link
« Reply #6 on: March 02, 2007, 01:21:05 pm »
Hello,
Sorry for digging out this topic, but I have the same problem as above and can't solve it. Here is the index.template.php file...
Thank you in advance :)
« Last Edit: March 02, 2007, 01:44:29 pm by SMFHacks »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: gallery link
« Reply #7 on: March 02, 2007, 01:49:42 pm »
Open index.template.php
Find
Code: [Select]
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
Add After
Code: [Select]
// Gallery
if ($context['allow_smfgallery_view'])
echo '
<a href="', $scripturl, '?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt['smfgallery_menu'] . '" style="margin: 2px 0;" border="0" />' : $txt['smfgallery_menu']), '</a>', $context['menu_separator'];
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 FreaKyGuy

  • Member
  • *
  • Posts: 2
    • View Profile
Re: oh PLEASE HELP ME OUT IN THE GALLERY LINK
« Reply #8 on: March 02, 2007, 03:04:12 pm »
Thx @SMFHacks for your reply, but I've entered the code to the file... and nothing happened. :(
Moreover, I've tried to put the code in the place after
Code: [Select]
// How about the [search] button?
if ($context['allow_search'])
echo '<td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/esearch.gif" alt="' . $txt[182] . '"/>' : ''),'
</td><td>&nbsp;<a href="', $scripturl, '?action=search">Szukaj</a></td>';
and than the button of the gallery was seen... But, it was in the wrong place (above the search and help button)... Am I doing something wrong?

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5410 Views
Last post April 02, 2008, 07:55:20 pm
by SMFHacks
1 Replies
3621 Views
Last post May 19, 2008, 08:10:37 pm
by SMFHacks
6 Replies
4575 Views
Last post March 11, 2009, 01:28:24 pm
by GKDantas
4 Replies
6325 Views
Last post August 17, 2010, 10:55:57 am
by xatnep
2 Replies
3934 Views
Last post April 19, 2013, 08:15:19 am
by SMFHacks

+- 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