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: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 169
Total: 169

Author Topic: Link Mod  (Read 7931 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: 16436
    • 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: 16436
    • 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

  • Member
  • *
  • 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
2 Replies
3591 Views
Last post February 08, 2012, 03:46:49 am
by chinaren
3 Replies
5144 Views
Last post April 01, 2013, 10:57:38 am
by SMFHacks
9 Replies
10472 Views
Last post November 18, 2016, 01:51:12 pm
by elbeer
5 Replies
3618 Views
Last post March 28, 2017, 06:37:41 pm
by Darkshadow
3 Replies
1709 Views
Last post May 14, 2021, 11:11:51 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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