vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   rewrite 3.0.3 code to 3.8.2 (https://vborg.vbsupport.ru/showthread.php?t=212625)

Lynne 05-04-2009 06:24 PM

What do they *mean*? They are just variable names. You can name results anything you want. In vbulletin code, $show is in general used as the variable to determine if something should be shown or not, and $post is in general used for post results.

ageurtse 05-04-2009 07:28 PM

When will the code be displayed after construct_page_nav is called.

i think i have rewritten the code i early posted and it run's fine, no errors.
But there are no attachments there is only the page header, navbar and footer.
but inbetween where the attachments should be there is nothing ?

what could be wrong ?

Lynne 05-04-2009 07:55 PM

I have no idea because I don't know anything about the code.

ageurtse 05-06-2009 04:23 PM

i have te script running on 3.8.2 but i left some part's out becaus i don't get them to work.

one of them is this peace of code
PHP Code:

foreach ($vbulletin->userinfo['forumpermissions'] AS $vbulletin->foruminfo[forumid] => $perm)
{
    if ((
$perm CANVIEW))
  {
        
$forumids .= ','.$vbulletin->foruminfo[forumid];
  }


what is wrong, Canview does that exicst ?

Lynne 05-06-2009 05:40 PM

Try doing a search in other vb pages (use a text editor that will search all pages in a folder/directory) for similar code in vb and see what code is used. For instance, I think forumpermissions are usually attached to a forumid now, ie ['forumpermission']['some_forumid'] . So, you'll probably have to play with the code a bit.

edit: OK, I did find a couple of places where that isn't so. Do a search for "$vbulletin->userinfo['forumpermissions']" and you'll find some examples of 3.8 code that is similar to what you have there.


All times are GMT. The time now is 07:11 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.00958 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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