Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
specify how usergroups see postings Details »»
specify how usergroups see postings
Version: 1.0.33, by tyfoon tyfoon is offline
Developer Last Online: Oct 2020 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.0 Rating:
Released: 12-25-2009 Last Update: 01-01-2010 Installs: 29
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

This mods shows only partial posting to guests

Currently shows only the 50 first char. of the message. and then puts the link to the register.php.

ver. 0 alpha 1
configurable from acp
settings : active or not
length guests can view (char length or percentage of posting)
register url and message

Ver 1.0.0
Forum (in the edit forum options) can be individualy selected or can be globaly enabled
Debug mode for admins for testing
Show a percentage of a posting is also an option.



Ver 1.0.0.3
also possible to hide the post & edit time&date
Hide printthread for usergroups
hide archive for usergroups
hide images
hide http links
hide quotes
remove incomlite http links and quotes when in guest limit view
bug with settingsgroup fixed
to install : uninstall the previous version and instal the new one

ver. 1.0.0.33 Warning bitfield xml file updated
added following features
hide color, font, textsize in postings so the usergoups sees only the posting in the default text




Todo : check conflict in quotes ..
make it also work in het cms

Download Now

File Type: xml product-tyfoon_special_access0032.xml (9.9 KB, 54 views)
File Type: xml bitfield_tyfoon_special_access.xml (1.7 KB, 59 views)
File Type: xml product-tyfoon_special_access0033.xml (10.8 KB, 117 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-26-2009, 06:29 AM
tyfoon tyfoon is offline
 
Join Date: Feb 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved
Reply With Quote
  #3  
Old 12-26-2009, 08:16 AM
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Location: Virginia
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great! Keep up the good work. One suggestion you may want to do is to add a break after the limited portion of the post and the register message so that it looks something like this:

<limited message>
<register message>

Another idea (which I imagine you have already thought of..) is to allow for a custom register message to be set in the admincp.

Just a thought.

Edit: Additional thoughts to anyone testing this. You will need to go into the post hide plugin and modify the url to point to your register.php file. I also added a "< br />" before the register message.

Edit: I'm noticing that posts that have quotes in them, the message and the register message with link is not displayed. Only the word "register" is displayed with no link. I tried relocating the html in the register message as follows:

PHP Code:

if (!$vbulletin->userinfo['userid'] )
    { 
$post['message'] = (substr($post['message'], 050)). '<br/>Please <a href="\site\register.php" type="text/html">Register</a> to see the whole posting.';

...and everything after the '>' in the beginning href is displayed. It looks like something in the quote rendering is conflicting with this.

If I run across any other observations, I'll post them as I find them.

hth,
Jim
Reply With Quote
  #4  
Old 12-26-2009, 10:56 AM
tazattitude's Avatar
tazattitude tazattitude is offline
 
Join Date: Dec 2009
Location: Largo, FL
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great start!
I changed the 50 to 150
And added a break before the message.

Installed and voted
Reply With Quote
  #5  
Old 12-26-2009, 12:11 PM
Delilahs Delilahs is offline
 
Join Date: Mar 2009
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the product.xml file, I've changed some to;

PHP Code:
['userid'] )

    { 
$post['message'] = (substr($post['message'], 0100)). '......Please register to see the whole post,<br> </br>  you can register by clicking the link <a href="/forum/register.php" type="text/html">Register here</a>';

}]]></
phpcode
It now directs to my register page no trouble at all, nice mod.

Thanks
Reply With Quote
  #6  
Old 12-26-2009, 03:44 PM
MikeHolohan's Avatar
MikeHolohan MikeHolohan is offline
 
Join Date: Mar 2007
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is an excellent idea, will wait until it is working properly first tho...
Reply With Quote
  #7  
Old 12-26-2009, 04:08 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged!
Reply With Quote
  #8  
Old 12-26-2009, 04:52 PM
Delilahs Delilahs is offline
 
Join Date: Mar 2009
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's active on my site. for those of you who want to have a look at it in action.
Reply With Quote
  #9  
Old 12-26-2009, 05:00 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Delilahs I was thinking this mod only showed the first post and limited at that but it seems not?
Reply With Quote
  #10  
Old 12-26-2009, 05:26 PM
Delilahs Delilahs is offline
 
Join Date: Mar 2009
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does the whole thread which is superb, I also have the limited viewing system in place, set at 8 posts, but this gives me the option to now turn off the limited viewing system.

Since my last post, I've tweaked it a bit more so it looks a bit more presentable to guests.

Open up the product.xml file with a text editor and replace with the following to get the same result

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, 100)). '...... <br> </br> Please register to see the whole post,<br> </br>  you can <B><a href="/forum/register.php" type="text/html">Register here</a></B>';

}]]></phpcode>
        </plugin>
    </plugins>
    <phrases>
    </phrases>
    <options>
    </options>
    <helptopics>
    </helptopics>
    <cronentries>
    </cronentries>
    <faqentries>
    </faqentries>
</product>
If your forums are not in the forum directory, then just change 'forum' to the name of your forum directory.

Job done.

Edit, I think this Mod is absolutely superb, so much so that I've rated it and also nominated it for MOTM, which is something I never do, I know I've played around with the product.xml, but the concept is what makes it so good, so well done to the original coder for setting it up in the first place.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04574 seconds
  • Memory Usage 2,323KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete