vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

wooolF[RM] 04-06-2002 02:25 PM

]Erm... anyone got code for forumjump?
Like here under Quick reply Box u have box called "Forum Jump:".
I can't find out where it is :(

wooolF[RM] 04-06-2002 02:57 PM

]yay... got it to work :) will post screenshot soon :D

wooolF[RM] 04-06-2002 03:20 PM

]here we go ;)

Gutspiller 04-06-2002 04:09 PM

I would I go about adding just the ability to use VB vars on my non VB front page? If somebody could help me with this I would greatly appreciate it.

Thanks.

wooolF[RM] 04-06-2002 04:09 PM

]hmmzzz... I have a lil problem...
When I choose one or the forums it leads me to http://www.domain.com/forumdisplay.p...une=&forumid=1 (for example) instead of http://www.domain.com/forum/forumdis...une=&forumid=1

anyone got a solution? :/ it's the only thing that I can't fix myself... :(

wooolF[RM] 04-06-2002 09:03 PM

FireFly? nakkid? lesane? freddy? Anyone?
I think it's not as easy as all other things that I have added to my portal... :/

TECK 04-06-2002 10:01 PM

functions.php
Find the code:
PHP Code:

// ###################### Start makeforumjump #######################
$frmjmpsel = array();
function 
makeforumjump($forumid=-1,$addbox=1,$prependchars="",$permission="") {
  global 
$DB_site,$optionselected,$usecategories,$jumpforumid,$jumpforumtitle,$jumpforumbits,$curforumid$daysprune

Replace it with:
PHP Code:

// ###################### Start makeforumjump #######################
$frmjmpsel = array();
function 
makeforumjump($forumid=-1,$addbox=1,$prependchars="",$permission="") {
  global 
$DB_site,$optionselected,$usecategories,$jumpforumid,$jumpforumtitle,$jumpforumbits,$curforumid$daysprune,$bburl

forumjump template (2 changes)
1. Find the code:
Code:

<form action="forumdisplay.php" method="get">
Replace it with:
Code:

<form action="$bburl/forumdisplay.php" method="get">
2. Find the code:
Code:

<select name="forumid"
        onchange="window.location=('forumdisplay.php?s=$session[sessionhash]&daysprune=$daysprune&forumid='+this.options[this.selectedIndex].value)">

Replace it with:
Code:

<select name="forumid"
        onchange="window.location=('$bburl/forumdisplay.php?s=$session[sessionhash]&daysprune=$daysprune&forumid='+this.options[this.selectedIndex].value)">

-------------------
in home template, use the [high]$forumjump[/high] variable to call your drop-down.

-------------------
index.php (homepage)
Add:
PHP Code:

makeforumjump(); 

in the area marked to add your vBulletin code.

let me know if that helps..

wooolF[RM] 04-06-2002 11:10 PM

Fatal error: Cannot redeclare makeforumjump() in /blablabla/www/forum/admin/functions.php on line 1499

line 1499: function makeforumjump($forumid=-1,$addbox=1,$prependchars="",$permission="") {

TECK 04-06-2002 11:33 PM

$bburl variable must be added...

wooolF[RM] 04-06-2002 11:38 PM

]I used this code:
Code:

////////////////////////// FORUMJUMP//////////////////////////////////////
function makefolderjump() {
  global $bbuserinfo;

  //get all folder names (for dropdown)
  //reference with $foldernames[#] .

  if ($bbuserinfo[pmfolders]) {
    $allfolders = split("\n", trim($bbuserinfo[pmfolders]));
    while (list($key,$val)=each($allfolders)) {
      $thisfolder = split("\|\|\|", $val);
      $folderjump .= "<OPTION value=\"$thisfolder[0]\">$thisfolder[1]</option>";
    }
  }

  return $folderjump;

} #end makefolderjump




$folderjump = makefolderjump(); //make the forum dropdown

  makeforumjump(); //make the forum dropdown

////////////////////////// FORUMJUMP//////////////////////////////////////

I know it's lame and have not so much to do with forumjump and it's just magic that it worked, but it showed that forumjump box and go button. The only thing that not worked was "when I choose one or the forums it leads me to http://www.domain.com/forumdisplay....rune=&forumid=1 (for example) instead of http://www.domain.com/forum/forumdi...rune=&forumid=1".


:(


All times are GMT. The time now is 04:38 AM.

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.03182 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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