vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   postbit addon help (https://vborg.vbsupport.ru/showthread.php?t=42463)

ULTIMATESSJ 08-19-2002 12:10 AM

postbit addon help
 
I am trying to make an addon for my postbit, so i can show a popup for furthur info (maybe for an RPG), so the popup would appear with this url

http://www.boardurl.com/forums/membe...stbit&userid=1

i am the biggest php n00b alive, and i don't know what the hell i am really doing here, i have wrote this (which is probibly all a load of stupid gibberish)

PHP Code:

// ############################### start postbit addon ###############################
if ($action=="postbit") {
    
$templatesused "postbitadd,postbitaddbit";
    include(
"./global.php");

  
$permissions=getpermissions();
  if (!
$permissions[canview] or !$permissions[canviewmembers]) {
        
show_nopermission();
  }


  if (
$userid=="" and $username!="") {
    
$username=urldecode($username);
    
$user=$DB_site->query_first("SELECT userid FROM user WHERE username='".addslashes(htmlspecialchars($username))."'");
    
$userid=$user[userid];
  }


  
$userid verifyid("user",$userid);



tell me what the proper code for this would be, can't write anything after alchahol :speechless:

g-force2k2 08-19-2002 12:13 AM

so you're trying to accomplish a popup? i think a few other ppl have been asking that... (guess its rpg competetion :p) anyways... the best thing to use would be javascript... php can be used too... but it wouldn't have the same effects ;) and you're not worrying so much about the postbit as you are the showthread... hope that helps somewhat...

g-force2k2

ULTIMATESSJ 08-19-2002 11:33 AM

Quote:

Originally posted by g-force2k2
so you're trying to accomplish a popup? i think a few other ppl have been asking that... (guess its rpg competetion :p) anyways... the best thing to use would be javascript... php can be used too... but it wouldn't have the same effects ;) and you're not worrying so much about the postbit as you are the showthread... hope that helps somewhat...

g-force2k2

thats the plan of it, i wanna use that php code for the page, but i am gonna use a javascript popup to bring it up, from there it should be easy to make


All times are GMT. The time now is 03:05 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.01076 seconds
  • Memory Usage 1,724KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete