Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12349
Latest: SUCCESSForum
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 40048
Total Topics: 7051
Most Online Today: 39
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 20
Total: 20

Author Topic: Link Mod  (Read 6069 times)

0 Members and 1 Guest are viewing this topic.

Offline jacci

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • maths made easy
Link Mod
« on: February 02, 2007, 07:47:16 am »
I have just installed the link mod and noticed that the link option only displays if your are logged in.

is there a way i can get this to show for guests as well?

I have copied the mod into my theme and not sure if i stuffed it up or that is just the way it is written.

http://www.pretendercentre.com/pretenderforum/index.php

tahnks

jacci

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Link Mod
« Reply #1 on: February 02, 2007, 09:40:18 am »
Which option? Check permissions for the links mod. Admin -> Permissions they need to be set for every group.
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 jacci

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • maths made easy
Re: Link Mod
« Reply #2 on: February 02, 2007, 09:55:30 am »
Okay, i am not sure if i am just doign this wrong, just installed it and not all that familiar with mods.

I have set all the categories wiht all groups defined permissions, basically allowing everything except for guests to post a link.

Everything seems to be working very well, but if you go to the index page, in my row of buttons: Home, profile, gallery etc etc
the Link button only shows up when you are logged in. So no guests can actually get to the links.

the coding i used in my skin index.template.php, which seems to work fine for gallery (that button is showing up when not logged in) is:

Code: [Select]
// the [links] button
if ($context['allow_view_smflinks'])
echo '
<a href="', $scripturl, '?action=links">' , ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/links.gif" alt="' . $txt['smflinks_menu'] . '" style="margin: 2px 0;" border="0" />' : $txt['smflinks_menu']), '</a>', $context['menu_separator'];

for the gallery:
Code: [Select]
// the [SMF Gallery] button
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'];

thanks your help is greatly appreciated
jacci

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Link Mod
« Reply #3 on: February 02, 2007, 09:57:31 am »
You need to give guests permissions to view the links and gallery.
Goto Admin -> Permissions Then modify each group and give them View Links and View Gallery permissions.
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 jacci

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • maths made easy
Re: Link Mod
« Reply #4 on: February 02, 2007, 10:13:53 am »
LMAO, *head desk*
thanks

now i feel like a complete idiot....  didnt even think to check in that permission setting area

that fixed it just fine

my excuse, poor as it is, is it is about 3am here and i have been doing this WAY too long today.

thank you sooooo much for your help.

Offline avidum

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Link Mod
« Reply #5 on: February 14, 2007, 02:36:31 pm »
oops ignore.
« Last Edit: February 14, 2007, 02:38:38 pm by avidum »

 

Related Topics

  Subject / Started by Replies Last post
No link?

Started by Marshall « 1 2 » Support

16 Replies
7724 Views
Last post September 02, 2011, 03:19:32 pm
by Erik Hansen
2 Replies
2361 Views
Last post February 08, 2012, 03:46:49 am
by chinaren
3 Replies
3875 Views
Last post April 01, 2013, 10:57:38 am
by SMFHacks
9 Replies
7731 Views
Last post November 18, 2016, 01:51:12 pm
by elbeer
5 Replies
2715 Views
Last post March 28, 2017, 06:37:41 pm
by Darkshadow

+- Recent Topics

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Characters dispayed as boxes by SMFHacks
January 16, 2020, 07:21:51 am

Powered by EzPortal