News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Registered Links

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

Previous topic - Next topic

vbgamer45

Does not yet support SMF 2.0
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

musicus

Quote from: vbgamer45 on January 22, 2009, 11:02:30 PM
Does not yet support SMF 2.0

Please, make it, that workes in 2.0 :D

vbgamer45

I will once SMF 2.0 final is released most likely a couple months
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

candidosa2

when have time please update other linguage

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin Reg Links
$txt['no_view_links'] = 'Voc&ecirc;  n&atilde;o tem permiss&atilde;o para ver links.';
//END Reg Links Text Strings portuguese by Candidosa2
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin Reg Links
$txt['no_view_links'] = 'Voc&ecirc;  n&atilde;o tem permiss&atilde;o para ver links.';
//END Reg Links Text Strings portuguese by Candidosa2
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin Reg Links
$txt['no_view_links'] = 'Voc&ecirc;  n&atilde;o tem permiss&atilde;o para ver links.';
//END Reg Links Text Strings brazilian by Candidosa2
]]></add>
</operation>
</file>

Amendoim

 Hello

In this mod, I'd like to know how to do the links are only visible to registered but in code ..
Ie the normal links, such as www.google.com, leaving visible to all, including visitors ..
The links that are in code [code! [/ Code!

These are locked to visitors, and made available to ..

Thank you!
Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

Amendoim

Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

Amendoim

Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

Amendoim

Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

zagrom

^^^ Are you running a custom theme?

Amendoim

no..

Are running the theme diliber MC multicolor..

Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

zagrom

You may require a manual install, what ver. (1.1.8)?

Amendoim

That is not ..

I install the mod, just wanted to know, for the mod to work so the links in the block [CODE [/ CODE ..

The rest of the links, regular links, emails, hyper links etc. .. the type www.google.com
wanted to let without visible to visitors etc. ..

So between the [code that is not wanted, the type

Link to visitor restricted [/ code]

Thank you!
Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

SONSiVRi

Quote from: Amendoim on March 12, 2009, 08:01:55 PM
That is not ..

I install the mod, just wanted to know, for the mod to work so the links in the block [CODE [/ CODE ..

The rest of the links, regular links, emails, hyper links etc. .. the type www.google.com
wanted to let without visible to visitors etc. ..

So between the [code that is not wanted, the type

Link to visitor restricted [/ code]

Thank you!


This mod doesn't block links in between code tags.
ie: [code]www.google.com[/code] cannot be controlled by this mod.
It's about parse mechanism of SMF engine, you may hard code it yourself.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

MaXiForum.cz

#233
Registered CODE
Make my friend Jaa(c) :o

File Edits:
./Themes/default/languages/index.english-utf8.php

Find:
$txt['quote'] = 'Quote';

Add After:
// Registered code
$txt['smula_hoste'] = "Hello,";
$txt['smula_hoste_reg'] = '&nbsp;only the <a href="' . $scripturl . '?action=login">logged</a> users can see the characters hidden in CODE. <br /> If you are not registered, you can do it <a href="' . $scripturl . '?action=register">THERE</a>.';
// Registered code



File Edits:
./Themes/default/languages/index.czech-utf8.php

Find:
$txt['quote'] = 'Citace';

Add After:
// Registered code
$txt['smula_hoste'] = "Dobrý den,";
$txt['smula_hoste_reg'] = '&nbsp;pouze <a href="' . $scripturl . '?action=login">přihlášení</a> uživatelé mohou vidět znaky ukryté v CODE. <br />Pokud nejste ještě zaregistrováni, toto můžete zcela zdarma a bez závazků provést <a href="' . $scripturl . '?action=register">ZDE</a>.';
// Registered code



./Sources/Subs.php

Find:
'tag' => 'code',
'type' => 'unparsed_content',
'content' => '<div class="codeheader">' . $txt['code'] . ': <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><code>$1</code>',
// !!! Maybe this can be simplified?
'validate' => isset($disabled['code']) ? null : create_function('&$tag, &$data, $disabled', '
global $context;

if (!isset($disabled[\'code\']))
{
$php_parts = preg_split(\'~(&lt;\?php|\?&gt;)~\', $data, -1, PREG_SPLIT_DELIM_CAPTURE);

for ($php_i = 0, $php_n = count($php_parts); $php_i < $php_n; $php_i++)
{



Replace With:
'tag' => 'code',
'type' => 'unparsed_content',

// Registered code

'content' => $user_info['is_guest'] ? '<div class="codeheader">' . $txt['code'] . ': </div><code>' . $txt['smula_hoste'] . $txt['smula_hoste_reg'] . '</code>' :  '<div class="codeheader">' . $txt['code'] . ': <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><code>$1</code>',
// !!! Maybe this can be simplified?
'validate' => isset($disabled['code']) ? null : create_function('&$tag, &$data, $disabled', '
global $context;
if (!isset($disabled[\'code\']))
{
$php_parts = preg_split(\'~(&lt;\?php|\?&gt;)~\', $data, -1, PREG_SPLIT_DELIM_CAPTURE);

for ($php_i = 0, $php_n = count($php_parts); $php_i < $php_n; $php_i++)
{



Quote from: vbgamer45 on January 22, 2009, 11:02:30 PM
Does not yet support SMF 2.0

For SMF 2.0 RC1  ;)

Amendoim

My version is 1.1.8 will it work?

use portuguese version, the file "index.english-utf8.php" I am so in my forum "index.english.php"

I tried to find the "
Quote$ txt [ 'quote'] = 'Quote',
'find the man but could not find anything = /


Help plz

Thank you!
Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

MaXiForum.cz

2 Amendoim, put it anywhere to index.english-utf8.php or index.english.php" ;)

Realinfo

2.   Execute Modification   .\Sources/Subs.php   Test failed

Help..............

SONSiVRi

#237
Quote from: Realinfo on March 31, 2009, 10:55:32 PM
2.   Execute Modification   .\Sources/Subs.php   Test failed

Help..............

The answer is: bla bla bla bla....
What kind of help are you waiting with that given knowledge. Nobody of here is wizard or magician :) You should supply some valuable tips that can make people help you. I hope you have enough ability to supply those tips at least.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

blanix

Quote from: Realinfo on March 31, 2009, 10:55:32 PM
2.   Execute Modification   .\Sources/Subs.php   Test failed

Help..............

here the same with 1.1.8 oO

its a error with sub on install ..
My SMF: 1.1.9

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

Advertisement: