Thread: Show Thread Enhancements - specify how usergroups see postings
View Single Post
  #19  
Old 12-26-2009, 08:25 PM
lms lms is offline
 
Join Date: Jan 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Files
File Type: xml product-show_partial_guests(es-ES).xml (2.2 KB, 6 views)
File Type: xml product-show_partial_guests(en-EN).xml (2.2 KB, 13 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01267 seconds
  • Memory Usage 1,837KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete