Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BB-code [noguest] - text not readable for guests Details »»
BB-code [noguest] - text not readable for guests
Version: 1.00, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-25-2005 Last Update: Never Installs: 3
 
No support by the author.

Small modification.

[noguest]This is a text[/noguest]
Will not be readable by guests.

Warning
There might be 2 issues with this hack:
- Text showing for all on last post of forum display
- Text could be shown if post is in postcache

I didn't have time to check these 2 issues or resolve them if they turn out to be a real issue.

Please stay tuned for a possible update




Update:

THIS HACK HAS BEEN WITHDRAWN


This hack has been replaced by: https://vborg.vbsupport.ru/showthread.php?t=75228

Show Your Support

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

Comments
  #12  
Old 01-26-2005, 04:43 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rin
then it must be stupid me, but anything i (if i am a guest) see in the progress bar is as much as what i want my guests to see. maybe you can show me exactly what you mean?
this part of your browser.. at the bottom:

Reply With Quote
  #13  
Old 01-26-2005, 05:48 PM
rin rin is offline
 
Join Date: Aug 2004
Location: Mainland of China
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i see. but thats not really a problem to me.
Reply With Quote
  #14  
Old 01-26-2005, 08:00 PM
rin rin is offline
 
Join Date: Aug 2004
Location: Mainland of China
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got another question.
i got here a little modified code so that registered users with 0 posts become an error message aswell. but it does not work. can you check it please?
Code:
function handle_bbcode_noguest($code)
{
    global $bbuserinfo;

    // remove empty codes
    if (trim($code) == '')
    {
        return '';
    }

    if ($bbuserinfo['userid'] == 0)             // Guest
    {
        return "<table width=\"70%\" cellpadding=\"5\" border=\"0\" style=\"background-color:#E9E0E0;border:1px dotted #555576;\">
                <tr><td align=\"left\"><img src=\"http://img186.exs.cx/img186/637/attention6ir.gif\" border=\"0\" /></td><td>
                <strong>Hello Guest! You are not logged in and therefore you can't see what has been posted here! Register and start being a member of the growing community to gain access to hidden features of the forum! Register by clicking <a href=\"register.php\">here</a>!</strong></td></tr></table>";
    }
    elseif ($bbuserinfo['userid'] == 2)
    {
        return "<table width=\"70%\" cellpadding=\"5\" border=\"0\" style=\"background-color:#E9E0E0;border:1px dotted #555576;\">
                <tr><td align=\"left\"><img src=\"http://img186.exs.cx/img186/637/attention6ir.gif\" border=\"0\" /></td><td>
                <strong>Hello! It seems like you have not yet participated in any discussion! Therefore you can't see what has been posted here! Please become an active part of our growing community!</strong></td></tr></table>";
    }
    else
    {
        return $code;
    }
}
basicaly i added the elseif statement. should work, no?

i even tried this one:
Code:
function handle_bbcode_noguest($code)
{
    global $bbuserinfo;

    // remove empty codes
    if (trim($code) == '')
    {
        return '';
    }

    if ($bbuserinfo['userid'] == 0 OR $bbuserinfo['userid'] == 2)             // Guest
    {
        return "<table width=\"70%\" cellpadding=\"5\" border=\"0\" style=\"background-color:#E9E0E0;border:1px dotted #555576;\">
                <tr><td align=\"left\"><img src=\"http://img186.exs.cx/img186/637/attention6ir.gif\" border=\"0\" /></td><td>
                <strong>Hello Guest! You are not logged in and therefore you can't see what has been posted here! Register and start being a member of the growing community to gain access to hidden features of the forum! Register by clicking <a href=\"register.php\">here</a>!</strong></td></tr></table>";
    }
    else
    {
        return $code;
    }
}
does not work either.
Reply With Quote
  #15  
Old 01-26-2005, 08:06 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

should it not be

PHP Code:

else

if 
Reply With Quote
  #16  
Old 01-26-2005, 08:12 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been trying to find a good icon for the "no guests" bbcode, and these are the best I could come up with. Any other ideas?
Reply With Quote
  #17  
Old 01-26-2005, 08:25 PM
rin rin is offline
 
Join Date: Aug 2004
Location: Mainland of China
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by -=Sniper=-
should it not be

PHP Code:

else

if 
i am sorry, could you please put it into the code?

and here is the icon i am using:
Reply With Quote
  #18  
Old 01-27-2005, 12:42 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack have been withdrawn!!!!!

Please see: https://vborg.vbsupport.ru/showthread.php?t=75228
Reply With Quote
Reply


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:41 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.06360 seconds
  • Memory Usage 2,283KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete