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)

Brahm 01-08-2003 12:21 AM

Okay I made a few edits to my own tastes and put it all in a text file: Check it out Plurplanet and let me know what you think.

This is the addin info on how to integrate the TWTcommish "Shoutbox" hack onto the Myvbindex page.

Brahm 01-08-2003 12:37 AM

Quote:

Problem.
I replaced my forum from http://forum.mydomen.com to the http://mydomen.com/forum - just copied all files into other folder on the same server. And everythings works fine, except News - News is not showing in center of main page - what is problem? I changed all links in AdminCP and myvbindex.php...
Maybe I forgot something else?
News shows like usual threads in right panel...
Did you go in myvbindex.php and edit the below line to look like this:

PHP Code:

// Enter The Full Path To Your Forums Here
chdir('forum');
// No Further Editing Necessary 


Tigga 01-08-2003 12:39 AM

Zalbard - I just moved servers a little while ago and have a few issues to straighten out, so as soon as I finish that I'll post instructions on how to turn it into a 'portal'.

AZone - Were the news posts made before or after you installed the script? If they were made after you installed the script, check your newthread.php and newreply.php files to make sure that you edited them right. If the posts were made before the script was installed, see this post for quick instructions on how you can update them - https://vborg.vbsupport.ru/showthrea...825#post333825

Brahm - I'll check it out in a few and probably add it in with the mini-hacks on the first post. :)

AZone 01-08-2003 02:48 AM

I determined the causal factor - it is Thread Preview Hack. After I uninstall it - News works nice.

Zalbard 01-08-2003 08:45 PM

I do need a portal type site, so please help as soon as possible. Thanks!

Tigga 01-08-2003 10:16 PM

Zalbard - Ok, Here are instrutions to turn this hack into a portal. It will require a little work, but if you read carefully and follow these instructions you shouldn't have any problems.

First make a copy of the mYvBindex file and rename it "include.php" (of course you can call it whatever you'd like, that's just what I called mine). Then you should remove the parts of the script that are not used on those pages such as news, polls, weather, and calendar in my case. You don't really have to delete those parts, but it makes for a little faster loading time and less queries, so it really is best if you do. If you just start wherever the code for a specific function begins and remove all code up to where the next function begins it should work fine, and there are notes in the script telling where each part starts. Then you would want to create a new template in your Admin CP (I called mine "include"). You would put the same content in your include template that is in your index template, but you would cut out the $newsbits and everything below that. Then in your include.php file the last couple of lines looks like this:
PHP Code:

$getbgrow=getrowcolor();
eval(
"dooutput(\"".gettemplate('index')."\");"); 

Change the template there to "include" (or whatever you named your new template). Then near the top of the file you will see a list of every template the scipt uses. Be sure to change the very first place it says index to the name of your include file. You can also delete any templates in that section that won't be used with this file. It's not that big of a deal if you don't, but again it would be better to do so and will result in faster page loading times.


Now you will pretty much have your header file made. Next you would want to edit your html pages that you would like this header to appear on. There are a couple of ways to do this, so here are the best/easiest two.


One way is with the php include function. You will need to remove everything above the top of your files so that the only thing before any content is something like this:
PHP Code:

<?php

include('/home/path/to/your/include.php');

?>

Remember that should be the only code before any content of your pages. You will also have to rename any html files you change to have a php extension for that method to work. You do not need to have any <head> or <body > tags at the beginning as these will be pulled from the include template, but be sure to close them at the end of the files. Also be sure that the starting <hmtl> tag is not also in your include template. Then just upload the files to your server and it should work fine.


An alternative to using the PHP include function would be to use server side includes. You would do everything exactly the same except when editing your files to add the header, you would put some code like this at the very top of your file instead of the PHP tag:
Code:

<html><!--#include virtual="/include.php" -->
You will also not have to rename your html files to have php extensions if you use that method. One note though... You will have to be sure you can include php files on your server. This is something that is usually controlled by your host, so if you're not sure if you can do this or how to change it so that you can, you should contact your host and ask them to change it for you.


That should be everything you need to do. If you have any problems let me know and I'll do my best to help you out.

Tigga 01-08-2003 10:38 PM

Brahm - I added your shoutbox integration in with the mini-hacks on the first post. :)

AZone - Ahhh yes, a hack like that could affect your myvbindex page and vice versa. If you want to give me a link to the thread preview hack I can take a look at it and see if I can tell you what would need to be done differently so that both hacks would function properly.

Highlander 01-09-2003 04:02 AM

the news forum is not showing up .. hugh .. any idea?

http://www.spieleplanet.org/forum/myvbindex.php


and is it possible to ge tmore than one news forums.. i need minimum 4 forums to be shown as news forum .. please help me with this.. nobody the last 4 motnh could helpo me to mak e portal news forums more than one !

Brahm 01-09-2003 04:06 AM

Thanks Plurplanet, that's my first.

Tigga 01-09-2003 04:34 AM

Highlander - Were the news posts made before or after you installed the script? If they were made after you installed the script, check your newthread.php and newreply.php files to make sure that you edited them right. If the posts were made before the script was installed, see this post for quick instructions on how you can update them - https://vborg.vbsupport.ru/show...3825#post333825

Showing the news from multiple fourms isn't hard. Just open your myvbindex.php file and look for:
PHP Code:

thread.forumid=$newsforum 

Replace that with:
PHP Code:

forumid=OR forumid=OR forumid=OR forumid=

(replace x,y,z, & w with the id numbers of those forums)


All times are GMT. The time now is 02:22 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.02000 seconds
  • Memory Usage 1,757KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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