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)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

TECK 04-07-2002 07:51 PM

you have to hack the index.php file the same way you hack your /forum/index.php one.
be more specific. what hack (the name) you installed on your forum homepage? and you want it added to your main page?

Gutspiller 04-08-2002 03:18 AM

I'm using the Pluhnews hack. It's just a new php file with normal html/php stuff, but the news sections are using a tweaked version of pluhnews. Other than that, there isn't a whole lot that is special about the page.

The hack that I wanted to work on the front page was a hack that shows out many new threads had been created since your last visit, however I am going to need it to work a little differently. Instead of show the number since your last visit, I need it to show the number of threads created in a specific forum for that day. So it would just show a number and that number would represent the number of threads that have been created in that forum for the day.

The hack that I have right now doesn't do that so I was also wondering if you knew how to do this? Or if not, I will request it, since it's probably pretty simple.

TECK 04-08-2002 03:43 AM

for the latest threads, place this code:
PHP Code:

// latest threads and posts, since your last visit (by MrLister)
$getnewthreads=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE dateline > '$bbuserinfo[lastvisit]'");
$getnewposts=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'"); 

below:
Code:

///////////////////////////////////
// vBulletin code                //
///////////////////////////////////

then call the 2 variables in your [high]home[/high] template.
Quote:

Originally posted by Gutspiller
Instead of show the number since your last visit, I need it to show the number of threads created in a specific forum for that day. So it would just show a number and that number would represent the number of threads that have been created in that forum for the day.
open a thread in Requests area.

Xelation 04-08-2002 07:31 PM

I'm so confused it's not even funny. :( I know you don't want anyone to ask you stuff on msn nakkid but can I please I.m. you? it would be a ton easier just to ask you things in real chat then through posts. here is my handle : tau4ever@hotmail.com I'm gonna be waiting :)

TECK 04-08-2002 08:17 PM

i will help you here Xelation. ;)
please ask your questions in the thread.

Xelation 04-08-2002 08:19 PM

Warning: ChDir: No such file or directory (errno 2) in /home/xelation/public_html/home/index.php on line 19

I get this problem right now, I fixed some of my other problems.

TECK 04-08-2002 08:25 PM

this is the chdir("path/to/forum");
it's changing the folder so it can find global.php (needed for vbHome).

in your case it should look like:
PHP Code:

chdir("/home/xelation/public_html/forum"); 

or whereever your forum folder is located.

Xelation 04-08-2002 08:33 PM

ok, thats fixed... now I get this error...

Parse error: parse error in /home/xelation/public_html/home/index.php on line 20

TECK 04-08-2002 08:34 PM

that is your global file right? post the exact code as you have it there... line 19 and 20

Xelation 04-08-2002 08:39 PM

Quote:

Originally posted by nakkid
that is your global file right? post the exact code as you have it there... line 19 and 20
lol, I'm dumb ;)

TECK 04-08-2002 08:45 PM

i assume you fix it. ;)
if you have any other problems, post them here.

Xelation 04-08-2002 09:06 PM

Quote:

Originally posted by nakkid
i assume you fix it. ;)
if you have any other problems, post them here.

Yup, thanks! ;)

Xelation 04-08-2002 10:16 PM

may be a stupid question.... how can I tell what my forum id is? for this part

NOTE: Don't forget to set the $newsforum variable in index.php to the
| right value. For example, if your NEWS forum have the ID 38, your
| variable should look like:
|
| $newsforum=38;
|

?

wooolF[RM] 04-08-2002 10:21 PM

]go to your forum, move mouse over link and look at the status bar ;)

Xelation 04-08-2002 10:30 PM

Quote:

Originally posted by wooolF[RM]
go to your forum, move mouse over link and look at the status bar ;)
thx, I appreciate it! I know I'm stupid, but I have to learn somewhere. :)

wooolF[RM] 04-08-2002 10:31 PM

]by the way... thanx for Silver/Blue button set ( http://www.bbaddons.com/vb/pafiledb....ion=file&id=42 ), Xelation. I use them and it looks very good.
Never had a chance to thank you. Here it was ;)
By the way, u're not stupid! :)

TECK 04-08-2002 10:32 PM

ur not stupid. you just have to get familiar with php a little. that's why vB.org is here, to help eachothers. ;)

wooolF[RM] 04-08-2002 10:35 PM

]lol, I tried to connect to your forum, thought it was http://www.bbaddons.com/vb/ but I got

Leech Request Denied!

What do you think you are doing in here? You are not authorized to view this directory. Your attempt to leech the images or files contain here in has been recorded as well as your IP address and sent to the webmaster at this time. Any further actions will result in contacting your host or ISP.

We have the following recorded on you:

IP Address: ***.***.***.***

LOL, nice protection! :D

Xelation 04-08-2002 11:02 PM

Quote:

Originally posted by wooolF[RM]
lol, I tried to connect to your forum, thought it was http://www.bbaddons.com/vb/ but I got

Leech Request Denied!

What do you think you are doing in here? You are not authorized to view this directory. Your attempt to leech the images or files contain here in has been recorded as well as your IP address and sent to the webmaster at this time. Any further actions will result in contacting your host or ISP.

We have the following recorded on you:

IP Address: ***.***.***.***

LOL, nice protection! :D

lol, I don't own http://www.bbaddons.com I know the guy that owns it and I supply him with button sets for that site. :) I own http://www.xelation.com disregard my slpash...lol and your welcome for the buttons! ;)

wooolF[RM] 04-08-2002 11:06 PM

]http://www.xelation.com/forum

If ya know that pass, then come on in. ^_^'


;)

Xelation 04-08-2002 11:13 PM

Quote:

Originally posted by wooolF[RM]
http://www.xelation.com/forum

If ya know that pass, then come on in. ^_^'


;)

I have to, you wouldn't believe how many people try to access that url... I don't want anyone to see my forum before I release it. ;)

wooolF[RM] 04-08-2002 11:14 PM

]well... I understand why... ;)
but... maybe a lil screenshot for little helping wooolFie? :D

Xelation 04-08-2002 11:20 PM

Quote:

Originally posted by wooolF[RM]
well... I understand why... ;)
but... maybe a lil screenshot for little helping wooolFie? :D

nothing much to see, basically a normal vb when you install it, I'm working on adding all the things you wont see right now such as extra admin options and other useful things you can see with the eye. I'm also working on getting my vbhome to work at full capability.

Xelation 04-09-2002 12:36 AM

I need a lil help here... ok, I want to add the pm info on the right side of the forum, sorta like how wooolF[RM] has his... my problem is I dont know where to begin, I read your instructions on how to add it in the install info file. but I could not get it to work, I would just need to see how to do this once and I can hopefully add everything else afterwards.

TECK 04-09-2002 02:20 AM

Add PM info to your vbHome page

1. In forum/index.php, find the code segment:
PHP Code:

//check usergroup of user to see if they can use PMs
  
...[vB code]...
  eval(
"\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
  
$pminfo='';


Copy that code into the vB marked area, in your home/index.php file.

2. Replace this code:
PHP Code:

eval("\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
  
$pminfo='';


With::
PHP Code:

eval("\$homepminfo = \"".gettemplate('home_pmloggedin')."\";");

} else {
  
$homepminfo='';


Create a new template (home_pmloggedin) and copy into it the forumhome_pmloggedin contents (edited to match your homepage).

Let me know if that helped you.

TECK 04-09-2002 03:36 AM

There was a little bug when displaying the html code in the news.

home/index.php
Find this code:
PHP Code:

$newstext=bbcodeparse($getnewssql[pagetext]); 

Replace it with:
PHP Code:

$newstext=bbcodeparse($getnewssql[pagetext],$newsforum,1);
$newstext=str_replace("<br />","",$newstext); 

Thanks to Gimp and FireFly for helping on this. ;)

wooolF[RM] 04-09-2002 09:35 AM

]grrrrrrr... hate to fix bugz... :p ;) thanx for telling us :D

Xelation 04-09-2002 02:58 PM

ok, thx... I'll try it when I come home today ;)

netman 04-09-2002 04:21 PM

I am an admin of a forum this was already existing. They did it with php3. Can i still use this? I have tried with no luck. I get this error.

Parse error: parse error in /usr/sites/www.dssworld.tv/www/pages/test/index.php on line 20

I did modify index.php to look for global.php3 instead. What else could it be.

Thanks,
Netman

TECK 04-09-2002 04:23 PM

i never test it in php3. so i cannot give you an exact answer.
also make sure to put in there the right path, in chdir.

netman 04-09-2002 04:27 PM

I did the member2.php3 trick and copied the ulr so I know it is correct. I would really like to get this working. I dont think they will let me redo the board and start over with php.

Netman

netman 04-09-2002 04:52 PM

This would sure be nice to have for php3.

Netman

TECK 04-09-2002 05:08 PM

what VB version you have? can you post the url?
i see that your site is all built in .asp

netman 04-09-2002 05:28 PM

I am running 224

www.dssworld.tv/forums

Netman

TECK 04-09-2002 05:30 PM

i'm glad you got it fixed.
PHP Code:

// set your root path 
chdir ("/usr/sites/www.dssworld.tv/www/pages/forums"); 
require(
"./global.php3"

just for some other users who might run into the same problem.

follow closely the instructions included in install.php. please let me know if you have any other problems.

TECK 04-09-2002 05:34 PM

is funny. the post #158 should be right after 161. how did end up there???

netman 04-09-2002 05:41 PM

Its weid though. My scrollbars are the same color as my forum and also the links are not the same color.

TECK 04-09-2002 05:45 PM

i dont want to be "picky" but xelation had the exact problem. ;)
can you make me a favour and post line 19-20 here? thanks.

netman 04-09-2002 05:52 PM

///////////////////////////////////
// variables settings //
///////////////////////////////////
// set your root path
chdir /usr/sites/www.dssworld.tv/www/pages/forums");
require("./global.php3");

netman 04-09-2002 06:06 PM

I found my problem. I deleted the (" right before the chdir.

I dont have the error any longer. I now get just a blank page. I have to finish the instruction and modify the paths for the images. Exactly waht files do i need to modify with the url.

Thanks,
Netman


All times are GMT. The time now is 08: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.06260 seconds
  • Memory Usage 1,838KB
  • 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
  • (8)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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