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)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

mv540 04-29-2003 10:04 PM

Quote:

Today at 12:03 AM Tigga said this in Post #1170
Yep, it seems to be working fine as far as I can tell. That's still REALLY odd that it was behaving like that. I'm not quite sure why it was a problem, but at least it works now. :)
thanks man your the best...if you ever need a favor let me know :cool: ;) ill leave you registered at the site...pop in and say hello from time to time

glo 04-29-2003 10:11 PM

HI Tigga,

Does your hack give you control of the layout?

Tigga 04-29-2003 10:15 PM

glo - Yes, everything is completely template based, exactly the way vBulletin is. :)

mv540 04-29-2003 10:52 PM

tigga one last and final question...sorry to fill up this topic guys with my boring problems...but ive been searching for info on "view new posts" problem that im having for the past hour, came up empty handed. Thought maybe tigga, since he was on a roll, could help a guy whos really down on his luck today.

I want to increase the days for the new posts to remain. they dont seem to stick around to long.

thanks!

mv540 04-29-2003 11:59 PM

hello? anyone?

Tigga 04-30-2003 12:33 AM

Are you talking about the "View New Posts" link on the forums, or the Latest Threads section on mYvBindex?

sjau 04-30-2003 06:57 AM

Hiya Tigga,

it's just again me to bother you :) Thx for solving the other problem. I really was looking in the wrong spot.

Anyway, is there a simple way of embedding different myvBindex pages for different usergroups?

You see, I will host a Diablo 2 and a Counter Strike Clan and it would be nice if they both had their different news board, their different polls and different layout.

Is that possible?

mv540 04-30-2003 06:46 PM

Quote:

Today at 02:33 AM Tigga said this in Post #1176
Are you talking about the "View New Posts" link on the forums, or the Latest Threads section on mYvBindex?
i guess i would need to alter both, one for my forum and one for the vbindex

thanks tigga

Tigga 04-30-2003 08:54 PM

sjau - Yes, that is possible with a bit of hacking. To do that you would open your myvbindex.php file and look for:

// News

Right above that you would want to add something like this:
PHP Code:

if ($bbuserinfo['usergroupid']=='XX') {
    
$newsforum 'A';
} elseif (
$bbuserinfo['usergroupid']=='YY') {
    
$newsforum 'B';
} else { 

Then you would want to look for:
PHP Code:

  $DB_site->free_result($getnews);
  unset(
$news); 

And right below that add:

}


In the first bit of code you added you would need to change the variables accordingly. You would change the 'XX' and 'YY' there to the usergroupid's you want a different news forum for. Then you would change the place you see 'A' and 'B' to the forumid of the news forums you want for those usergroups. Then if you need to have more than two different groups that will see different news, you would add something like this, right above the } else { statement at the end there:

PHP Code:

} elseif ($bbuserinfo['usergroupid']=='ZZ') {
    
$newsforum 'C'

That should be about it. Any usergroups that you have specified above will see news from the forum specified, and anyone not in one of those usergroups will see your news from your default news forum.


mv540 - Off the top of my head I'm not sure what would need to be changed to have the new topics stay around longer. I'm pretty sure that goes by the last time a user visited your site, but I don't remember for sure. You could probably find an answer if you asked in the General Hacking Discussion forum though.

sjau 04-30-2003 09:48 PM

Hiya Tigga,

thx for that quick reply... I try to get some kind of modular hack. I know PHP but I have not all too good skills at it.
Maybe you want to integrate this then somehow....


All times are GMT. The time now is 09:49 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.02771 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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