2.2.0: Forums action link in forumjump

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amasov
    Member
    • May 2001
    • 94

    2.2.0: Forums action link in forumjump

    Hi there!

    Problem:
    I wanted to integrate the Link "..../search.php?action=getdaily" in my forumjump. I've searched this whole site, if there was a description for that, the only thing I have found was for an earlier Version of vB.

    So therefore I made it on my own.

    If somebody haves a better Idea to fix it, please tell me.

    I've made the following steps and for users who wants to make the same (it works for all kind of Links):

    Step 1:

    Open forumdisplay.php and find this:

    Code:
    // jump from forumjump
    $goto = '';
    switch($forumid) {
            case 'home': $goto = 'index'; break;
            case 'search': $goto = 'search'; break;
            case 'pm': $goto = 'private'; break;
            case 'wol': $goto = 'online'; break;
            case 'cp': $goto = 'usercp'; break;
    insert anywhere between these cases something like this:

    Code:
    case 'tf':$goto = 'twentyfour'; break;
    Step 2:

    Create a new .php file with your Notepad (i.e. something else which is a plain text editor) which name is twentyfour.php

    Insert the following:

    Code:
    <?php
    error_reporting(7);
    
     header("Location: search.php?s=$sessionhash&action=getdaily");
     exit;
    
    ?>
    Step 3:
    Upload forumdisplay.php and twentyfour.php to your forums home directory.

    Go to the Admin CP and make following changes to the forumjump-Template

    Step 4:

    Find:
    Code:
    <option value="-1" $defaultselected>Please select one:</option>
    <option value="-1">--------------------</option>
    <option value="pm" $frmjmpsel[pm]>Private Messages</option>
    <option value="cp" $frmjmpsel[usercp]>User Control Panel</option>
    <option value="wol" $frmjmpsel[wol]>Who's Online</option>
    <option value="search" $frmjmpsel[search]>Search Forums</option>
    <option value="home" $frmjmpsel[home]>Forums Home</option>
    <option value="-1">--------------------</option>
    Insert where you want to display the modification this:

    Code:
    <option value="tf" $frmjmpsel[search]>Messages last 24h</option>
    (No more steps and changes! )

    If you did it alright it will be displayed like this:



    You may change the variables tf , twentyfour and the twentyfour.php for your needs.
    But remember:
    a) When you are going to change the "tf"-Variable, you have to change it also in the forumjump-Template.
    b) When you are going to change the "twentyfour"-Variable, you have to change also the "twentyfour.php".

    So then, have a nice day.

    Regards,
    Chris.
    German:
    DCF: The matter of IT-Support
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...