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: 43293
Total Topics: 7522
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 109
Total: 109

Author Topic: Link Mod  (Read 7942 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: 16451
    • 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: 16451
    • 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
3596 Views
Last post February 08, 2012, 03:46:49 am
by chinaren
3 Replies
5166 Views
Last post April 01, 2013, 10:57:38 am
by SMFHacks
9 Replies
10530 Views
Last post November 18, 2016, 01:51:12 pm
by elbeer
5 Replies
3631 Views
Last post March 28, 2017, 06:37:41 pm
by Darkshadow
3 Replies
1733 Views
Last post May 14, 2021, 11:11:51 am
by SMFHacks

+- Recent Topics

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

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

Powered by EzPortal