Thread: mYvBindex v3.1
View Single Post
  #947  
Old 03-25-2003, 04:57 AM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I apologize to everyone for not being around this last week+. I had to go to Miami on business and only had my laptop on a dial-up connection. I barely had enough time to check my own forum let alone any others.


arracing - Sorry, but I don't know much about music files, though I'm sure you can find some sort of online tutorial if you search for one.


D|ver - Open your myvbindex.php file and look for:
PHP Code:
SELECT thread.threadid,thread.title,thread.replycount,thread.postusername,thread.postuserid,thread.dateline,thread.views,thread.iconid 
Change that to:
PHP Code:
SELECT thread.threadid,thread.title,thread.replycount,post.username,post.userid,post.dateline,thread.views,post.iconid 

Heffe2000 - To add a link to the admin/mod cp, open your myvbindex.php file and look for:
PHP Code:
  $getbgrow=getrowcolor();
  eval(
"\$welcometext = \"".gettemplate('index_welcometext')."\";"); 
Right above that Add:
PHP Code:
  $adminlink='';
  if (
$bbuserinfo['usergroupid']==6) {
    
$adminlink="<a href=\"$bburl/admin/\" target=\"_blank\">Admin CP</a>";
  }
  if (
$bbuserinfo['usergroupid']==5) {
    
$adminlink="<a href=\"$bburl/mod/\" target=\"_blank\">Mod CP</a>";
  } 
Then just add the variable $adminlink in your index_welcometext template wherever you would like the link to appear.


attroll - The reason you still appear logged in when you're not is because you did not actually log out before you closed your browser window. If you log out first you shouldn't have a problem.
As for uploading the newthread.php file, that was a mistake on my part. In the previous versions of the script it was necessary to also edit that file, but I accidentally forgot to remove that part in the instructions. Thank you for pointing that out.
As for the weather part... I'm guessing that msnbc.com changed something in their settings and that's why it's no longer working. I'll see if I can figure out what was done and post a fix when I can, or you can check the vB Weather Mk 2 thread to see if a fix has been posted there.


mcyates - I have answered this question for you several times now. Search the thread.


Lacrosse Boy - Open your myvbindex.php file and look for:
PHP Code:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder'); 
Change that to:
PHP Code:
$forums=$DB_site->query("SELECT * FROM forum WHERE displayorder<>0 AND active=1 AND forumid!=$newsforum ORDER BY parentid,displayorder"); 

kevinnguyen - Yes. It should be possible with a few simple template changes.


frankenberrie - That's something to do with your index_header template. Just look to see what the difference is between that template and your normal header template (I would guess there's a <p> or <br> missing after your logo).
As for pulling the news from multiple forums, you should be able to enter something like this for your News Forum ID - XX OR forumid=YY - And you would just change XX and YY to your forum id's.


Rebel38 - You missed one of the template modifications in the readme file. Check to make sure that you edited your forumhome_loggedinuser template properly.


kevinnguyen - Open your myvbindex.php file and look for:
PHP Code:
  $iforumperms 'AND forumid=' implode(' OR forumid='$iforumperms); 
Change that to:
PHP Code:
  $iforumperms 'AND thread.forumid=' implode(' OR thread.forumid='$iforumperms); 
Then look for:
PHP Code:
$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,dateline,views".iif($showthreadicon,   ',thread.iconid','')." FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 
Change that to:
PHP Code:
$threads=$DB_site->query("SELECT threadid,thread.title,thread.replycount,postusername,postuserid,dateline,views,iconid,thread.lastposter,thread.lastpost, thread.forumid,forum.title AS forumtitle FROM thread 
LEFT JOIN forum ON (thread.forumid=forum.forumid) WHERE open<>10 
$iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 

Intex - Try changing the path to c:\program files\apache group\apache\htdocs\forum


imageconstrux - As far as I know, if the forum permissions are set correctly then there should not be a problem. Would you mind taking a screen shot of the permissions page one of those forums that should be private and posting it here for me to check out?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01184 seconds
  • Memory Usage 1,824KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete