vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Vbjokes (https://vborg.vbsupport.ru/showthread.php?t=98248)

eXtremeTim 10-13-2005 12:57 PM

Quote:

Originally Posted by Blaine0002
its checking to see if the user is logged in / registered :P

No im afraid its not. Becuase we already have that info without a query. its called $vbulletin->userinfo['userid'] if that is set to 0 they are not a registered member.

So we could use
Code:

if(!$vbulletin->userinfo['userid'])
{
        //run some error crap here about not being registered or logged in
}


Blaine0002 10-13-2005 08:38 PM

huh well then i dunno (is a programming noob)

jimmyboy 10-14-2005 12:34 AM

dude, i really love it,,,,thx soo much

jesus likes pie 10-14-2005 12:49 AM

This looks awesome.

HOTM!

jesus likes pie 10-14-2005 12:50 AM

Oh wait....does moderation of jokes HAVE to be enabled?

Blaine0002 10-14-2005 03:48 AM

there is probably a way to bypass it, ill make it a setting tomorrow.

eXtremeTim 10-14-2005 04:05 AM

Quote:

Originally Posted by Blaine0002
huh well then i dunno (is a programming noob)

Dont worry im not. ;)


I talked with the creator.
We are planning to spend some time any redo this hack and get it all cleaned up. ;)

Fixing the html problem plus adding in security checks and cleaning it up and adding more to it. ;)

micheal332001 10-14-2005 09:12 AM

we will be adding alot more to this and like eXtremeTim said he is going to help me work on this and make it a lot better.
So watch this space for new updates.
eXtremeTim its very nice of you to help as i do need it to better understand the coding involved in vb.
With the info he will be teaching me we weill come out with better hacks for you to use.

Many thanks eXtremeTim

eXtremeTim 10-14-2005 10:53 AM

No problem. :)

MissKalunji 10-14-2005 11:47 AM

I love this hack i gotta give it up to you!

now 2 things

when i add a joke do i HAVE to put <br> for it to appear normaly? lemme show u
a screen shot

and

2. i still get a database error when i have " or ' how can i fix that?

Thanks in advance!


All times are GMT. The time now is 11:04 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.01243 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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