vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - specify how usergroups see postings (https://vborg.vbsupport.ru/showthread.php?t=231208)

Charlie98902 12-26-2009 05:44 PM

Delilahs that replacement allows what I was wanting? Sorry I haven't looked back on your forum to see.

Delilahs 12-26-2009 05:47 PM

Charlie, Have a look at my forum to see, But it works fine for me and has allowed me to open my forum right up, I've limited it to 100 characters, which is more than enough for people to see what the forum is about, if they don't register now, then they can't be that bothered.
I really do like the options this now gives me as a forum owner.

Charlie98902 12-26-2009 05:49 PM

Thanks just looked and saw that part of the code so yes nice indeed. Thanks Delilahs.

pozo 12-26-2009 06:00 PM

1 Attachment(s)
Installed & nominated for MOTM :up: :up:

By the way, I have also modified it a little bit, to make it more presentable to guests:
Attachment 108229

blake247 12-26-2009 06:21 PM

Installed and nominated...

Shogo 12-26-2009 06:54 PM

Is it possible to hide only the links?
I think there was a mod for 3.8 to hide only links but this mod looks to be interesting if you can add the hide links.

Delilahs 12-26-2009 07:48 PM

Shogo

The Hide links from Guests Mod for vB4

lms 12-26-2009 08:25 PM

1 Attachment(s)
Trabaja de maravilla. He a?adido c?digo para que no se vea al citar ni en la versi?n imprimible ni al responder citando. He puesto una frase.

Perd?n por mi mal ingl?s, soy espa?ol y uso traductor.

Work fine. I have added code for that is not see in the printable version or to newreply quote or newreply post quote. I have put a phrase.

Forgiveness for my bad english, i am spanish and use translator..

The code in spanish:
PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="show_partial_guests" active="1">
    <title>Mostrar parcialmente los mensajes a los invitados</title>
    <description>Muestra a los invitados solo una parte del mensaje</description>
    <version>0 alpha</version>
    <url />
    <versioncheckurl />
    <apm_releasedate>0</apm_releasedate>
    <apm_author />
    <apm_relatedurl />
    <apm_extrainfo />
    <apm_extraedit />
    <dependencies>
    </dependencies>
    <codes>
    </codes>
    <templates>
    </templates>
    <stylevardfns>
    </stylevardfns>
    <stylevars>
    </stylevars>
    <plugins>
        <plugin active="1" executionorder="5">
            <title>Ocultar Mensaje</title>
            <hookname>postbit_display_complete</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Ocultar Mensaje al Responder Citando</title>
            <hookname>newreply_quote</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Ocultar Mensaje al Citar</title>
            <hookname>newreply_post_quote</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>Ocultar Mensaje en versi?n imprimible</title>
            <hookname>printthread_post</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
    </plugins>
    <phrases>
        <phrasetype name="GLOBAL" fieldname="global">
            <phrase name="tyfoon_hide_post_register" date="0" username="tyfoon" version=""><![CDATA[ Reg?strate para ver el mensaje completo <a href="register.php" type="text/html">Registrar</a>]]></phrase>
        </phrasetype>
    </phrases>
    <options>
    </options>
    <helptopics>
    </helptopics>
    <cronentries>
    </cronentries>
    <faqentries>
    </faqentries>
</product>

The code in english:
PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="show_partial_guests" active="1">
    <title>Show partial post guests</title>
    <description>Shows only partial posting to guests</description>
    <version>0 alpha</version>
    <url />
    <versioncheckurl />
    <apm_releasedate>0</apm_releasedate>
    <apm_author />
    <apm_relatedurl />
    <apm_extrainfo />
    <apm_extraedit />
    <dependencies>
    </dependencies>
    <codes>
    </codes>
    <templates>
    </templates>
    <stylevardfns>
    </stylevardfns>
    <stylevars>
    </stylevars>
    <plugins>
        <plugin active="1" executionorder="5">
            <title>post hide</title>
            <hookname>postbit_display_complete</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>post hide Newreply Quote</title>
            <hookname>newreply_quote</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>post hide Post Quote</title>
            <hookname>newreply_post_quote</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>post hide in printable version</title>
            <hookname>printthread_post</hookname>
            <phpcode><![CDATA[if (!$vbulletin->userinfo['userid'] )
    { $post['message'] = (substr($post['message'], 0, 150)). $vbphrase[tyfoon_hide_post_register];
}]]></phpcode>
        </plugin>
    </plugins>
    <phrases>
        <phrasetype name="GLOBAL" fieldname="global">
            <phrase name="tyfoon_hide_post_register" date="0" username="tyfoon" version=""><![CDATA[ Please register to see the whole posting <a href="register.php" type="text/html">Register</a>]]></phrase>
        </phrasetype>
    </phrases>
    <options>
    </options>
    <helptopics>
    </helptopics>
    <cronentries>
    </cronentries>
    <faqentries>
    </faqentries>
</product>

Attachment is in spanish (product-show_partial_guests(es-ES).xml) and english (product-show_partial_guests(en-EN).xml).

Salud2

Shogo 12-26-2009 10:53 PM

Quote:

Originally Posted by Delilahs (Post 1938881)

Hum I know this mod but this is not VB 4 version

I think that would be cool to make one mod with options to hide links, hide after X letters, hide links and after X letters, ...

On my board, the first thing posted is a link and after a text...

Universal 12-27-2009 01:33 AM

I was wondering if it was possible to add in options different category IDs (Forums) we can choose to use this mod on? This is so it is not used on the whole forum.


All times are GMT. The time now is 06:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04069 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete