vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Forum default for guest and activity for users (https://vborg.vbsupport.ru/showthread.php?t=297491)

dany_danay 04-22-2013 07:25 PM

Forum default for guest and activity for users
 
Hi!
There is a way or pluggin that can do this?
I want to put forum.php by default for guest and activity.php for registered users. With the navgation manager i can set only one default :(

dany_danay 05-06-2013 08:00 AM

Someone??!?!?

dany_danay 05-13-2013 03:39 PM

Up...

daveaite 05-14-2013 04:47 AM

You'll need a custom mod for this. Basically all it would have to be is for users.

For regular people, you can set the forum.php as the home, as per navigation manager.

For users logged in, the mod will redirect users logging in to activity.php Not sure if one exists...try googling :P

There is no way to do it without a mod (I believe)

dany_danay 06-30-2013 02:07 PM

:(Someone can do it?

dany_danay 07-30-2013 10:02 PM

Someone can do it?

dany_danay 08-07-2013 01:58 PM

keep calm and wait for an anserw

mokujin 08-07-2013 02:27 PM

Change your index.php file to this:
PHP Code:

<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');


if (
$vbulletin->userinfo['userid'])
{
 
exec_header_redirect('activity.php');
}
else
{
exec_header_redirect('forum.php');
}

?>

Hope it helps.


All times are GMT. The time now is 09:00 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.01268 seconds
  • Memory Usage 1,722KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (8)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