News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Registered Links

Started by SMFHacks.com Team, May 18, 2006, 07:42:31 PM

Previous topic - Next topic

U1NO

hi, i'm trying to use this mod in smf 1.1.4 and it's not working. Is it working on this version or (if not) is there something similar to this?? thanks

SONSiVRi

Quote from: Gobo on August 26, 2006, 09:37:18 AM
hey any chance of extending the capabilities of this mod to do the following:

- Members cant post links unless they have X number of posts (can be enabled or disabled via admin panel)

I have done it, I mixed up this code: http://www.simplemachines.org/community/index.php?topic=25533.msg200724#msg200724
I check post based group membership of user in order to do it.

Just change $user_info['is_guest']

with this (8 occurrences)
$user_info['is_guest'] || in_array(4, $user_info['groups'])
4 is the group ID that you will restrict.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

SONSiVRi

Quote from: ususariopin on November 19, 2007, 08:32:37 PM
hi, i'm trying to use this mod in smf 1.1.4 and it's not working. Is it working on this version or (if not) is there something similar to this?? thanks

Its working on 1.1.4, where you get the error?
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

U1NO

It doesn't let me apply it and when I try to upload the plugin it doesn't say that it was successfully applied. (I'm not using the default theme) If there's another plugin i could try please tell me. Thanks

TrueSatan

Firstly are you installing the mod via the SMF Package Manager...simply uploading to your server will not install into SMF? Secondly almost no mods install into custom themes automatically...and anything bar the SMF default theme is a custom theme...you have to manually install mods into custom themes.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html

U1NO

#145
Thank you for the advice, now i'm doing the manual installation, but in this case i have to add the code without replacing anything, right?

  <version>1.0</version>
- <file name="$languagedir/Modifications.english.php" error="fatal">
- <operation error="fatal">
- <search position="after" regexp="false" whitespace="exact">
- <![CDATA[ ?>
  ]]>
  </search>
- <add>

- <![CDATA[
//Begin Reg Links
$txt['no_view_links'] = 'You are not allowed to view links.';
//END Reg Links Text Strings   


after doing this i have to upload the plugin to my server manually or using the smf upload manager?? and after that what is next??  ::)

U1NO

#146
OK! Thank you very much, finally i could install it  ;)
Is it possible to add the restriction to the [ code]  [/ code] tags too??

SONSiVRi

Quote from: ususariopin on November 20, 2007, 10:22:40 PM
OK! Thank you very much, finally i could install it  ;)
Is it possible to add the restriction to the [ code]  [/ code] tags too??

nope you cant.
Forum engine will block even user signature, link between (code) tag...
It wont block if notation is like h**p:// hxxp://
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

U1NO

One more thing... how can i put the text in red color??  :-\

U1NO


SONSiVRi

Quote from: ususariopin on November 21, 2007, 04:08:12 PM
One more thing... how can i put the text in red color??  :-\

$txt['no_view_links'] = '<span style="color: red;">You are not allowed to view links, check the Announcements Board</span>';
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

U1NO

#151
thank you very much  ;) /(where should i put the code??) // have you noticed that when an URL is under code tags the plugin doesn't work on those links? Or it's not working only to me?

SONSiVRi

Quote from: ususariopin on November 23, 2007, 09:24:49 AM
thank you very much  ;) /(where should i put the code??) // have you noticed that when an URL is under code tags the plugin doesn't work on those links? Or it's not working only to me?

./Themes/default/languages/Modifications.english.php

$txt['no_view_links'] = '<span style="color: red;">You are not allowed to view links, check the Announcements Board</span>';


and I noticed URL's arent blocking in CODE tag. I remember I saw its blocked but it seems I am wrong.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

SONSiVRi

I have modified this Mod according to Permission Based control.
I added Global Board Permission as it seems in attached image (ss1.jpg)
If you use Local Permissions for Boards you can allow viewing of links board by board.
Default value is nobody can see any links, you need to turn on for allowed membergroups.

Before install this one you need to uninstall prior version of this mod.

These files will be modified (0777 CHMOD)

./Themes/default/languages/Modifications.english.php
./Themes/default/languages/ManagePermissions.english.php
./Themes/default/languages/Errors.english.php
./Sources/Subs.php
./Sources/ManagePermissions.php


Listing of http notation releated to URL blocking is attached image  (ss2.jpg)

Mod file is attacked name is "reglinks_2.zip"

"vbgamer45" if you implement this changes into your original mod please include my name also as I entered in this mod.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Mr_Z

Hi is there anyway to disable this for signatures?

Thanks

SONSiVRi

Quote from: Mr_Z on November 29, 2007, 05:52:28 PM
Hi is there anyway to disable this for signatures?
Thanks

I am done it.
Signature and post contents are differently checking by the "users permission".
If user isnt allowed to view links, only "post" content blocking not "signature" "personal message" ....

Its a little bit problematic. I changed the BBC code parsing mechanism and I am not sure its secure. So I cant post it till I am sure of it.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

scorpion92

   
As installed?

Greetings.


Mkportal Version C1.2
Simple Machines Forum Versión 1.1.5

john34516

#157
i want to hide code tag from guests

is that possible??

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

foxdie

hi, it say on the download page its compatible with 1.1.4 too but when i try to install it from the admin cp from the forum it gives me this error:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


along with these Install Actions result:

1.     Execute Modification     reglinks.xml     Modification parse error
2.    Execute Modification    -    Modification parse error

i have no idea what this means, i am thinking its not for v1.1.4 but i dont know

can anyone help?

Advertisement: