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)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

Kohhal 12-05-2002 04:22 PM

Quote:

Originally posted by NTLDR


My index.php is just a standard redirect that points to vbindex.php so I can see exactly where they are:

I see what you mean, had a look at your site. I'd rather not have a redirect for my site homepage though, just don't like the idea of it.
Is it possible to get .htaccess to redirect to www.mysite.com/vbindex.php rather than just calling the .php file which I guess it does?

NTLDR 12-05-2002 04:50 PM

The only way I know how to do a .htaccess redirect is to redirect the entire directory there, which will only work if thats the only file there. I'm not sure if subdirectories will redirect or not:

Code:

redirect / /vbindex.php
From memory I think thats the code, if not its similar.

-=dm=- 12-05-2002 07:34 PM

Quote:

Originally posted by NTLDR


Just add this part in the while loop:

[/php]

thanx NTLDR this worked for the smilie part.

any fix for the other stuff, like forum and the date/time?

also I have updated all counters the new part still not showing up, I tried to reinstall the whole script on another test board but still nothing apears...

NTLDR 12-05-2002 07:53 PM

If you have followed the instructions theres no reason for this not to work. Make sure you have done each step and make sute you uploaded the new admin/misc.php that you changed for the update counters.

ukliam 12-05-2002 09:14 PM

Couldn't see an answer to this:

Quote:

Originally posted by lemarsu
Hi,

When looking at Who's Online, if someone is in vbindex you get something like :

Unknown Location: /monster/vbindex.php?

is there a way to fix that ?

can anyone help?

Also.. and yes I know this has been asked.
I have the mini calendar working fine at the moment, but don't know where to add the php in the vbindex.php file and where/how to call it from the templates. Can anyone help?

Thanks

Sean

NTLDR 12-05-2002 09:24 PM

Both issues have been addressed earlier on in the thread. For the WOL you either add the two blocks of PHP to online.php or install the Admin CP hack by Chen, aka FireFly. I posted instructions on how to do the calender towards the first half of the thread.

-=dm=- 12-05-2002 10:09 PM

Quote:

Originally posted by NTLDR


Find:

PHP Code:

$postforum=$latestforum['title']; 

Replace with:

PHP Code:

$postforum=$latestthread['title']; 


hmm....this show the latest thread title not the forum?

Tony DiMera 12-05-2002 10:42 PM

How would you set up the cookie domain if the vbindex homepage is at www.yoursite.com and your board is it forums.yoursite.com Most likely .yoursite.com correct? What if later on I put in a second board(witha second license of course) at <u>subdomain.yoursite.com/forums/</u> and a vbindex at <u>subdomain.yoursite.com</u>, how would i set up the cookie domains for both boards and what would i put in place where it has a / for both boards?

mv540 12-06-2002 02:12 PM

I would like to know how to add more areas on the portal so that i can add more/other info manually....

for example..in the middle i have news and on either end i have the navigations...i would like to add more boxes to fill it up abit with information..

Please answer in detail for i am very new at this...let me know step by step where to go and what to do

Thanks

I~

NTLDR 12-06-2002 03:58 PM

Quote:

Originally posted by Tony DiMera
How would you set up the cookie domain if the vbindex homepage is at www.yoursite.com and your board is it forums.yoursite.com Most likely .yoursite.com correct? What if later on I put in a second board(witha second license of course) at <u>subdomain.yoursite.com/forums/</u> and a vbindex at <u>subdomain.yoursite.com</u>, how would i set up the cookie domains for both boards and what would i put in place where it has a / for both boards?
As far as I know that isn't going to work. It may, but I have no idea what settings you would need.

NTLDR 12-06-2002 04:00 PM

Quote:

Originally posted by -=dm=-
hmm....this show the latest thread title not the forum?
So it would, I don't know what I was thinking. Currently you can't get the forum title up, you'd need to do a left join on the forum table to get it I expect.

Buddha 12-06-2002 04:01 PM

hey ntldr, i've found a little quirk, and am hoping you can help me with it.
so far, everything's going great. got both styles done and the site's running beautifully... however...
:)
i have some forums set up with moderation queues, because the content appears elswhere on the site (pages i've created using vbindex). i don't want potentially offensive or inappropriate matter appearing on those pages (very unprofessional), so i set up the moderation queue. this obviously works in the forum... posts made by regular users in these moderated forums don't appear in the forum until i pass em through... however they do appear right away on vbindex.
this is not good.
any thoughts?

NTLDR 12-06-2002 04:03 PM

Check the news and threads queries have AND visible=1 in the WHERE clause, I may have missed it out by mistake ;)

Buddha 12-06-2002 04:08 PM

nope, it's not there.
where do i put it?

Quote:

$newsquery=$newsquery=$DB_site->query("SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.tpostid = threadpost.postid) WHERE forumid = '$newsforum' ORDER BY thread.dateline DESC LIMIT $newsposts");
thanks for the quick reply.

ukliam 12-06-2002 04:17 PM

Quote:

Originally posted by NTLDR
You would need to add the PHP from that hack to the vbindex.php file and any HTML to the relevent template.
Got my other problem sorted but this is all I could see in the thread on the mini calendar hack.

I have put the code in the vbindex.php file but the calendar just gets displayed at the top of the page.

I know I am not doing it right and I just need to know where in the file I should be putting the code and how to call it from a template.

Cheers

Sean

NTLDR 12-06-2002 04:23 PM

Quote:

Originally posted by Buddha
nope, it's not there.
where do i put it?

PHP Code:

$newsquery=$newsquery=$DB_site->query("SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.tpostid = threadpost.postid) WHERE forumid = '$newsforum' AND thread.visible='1' ORDER BY thread.dateline DESC LIMIT $newsposts"); 

That should do it ;)

Buddha 12-06-2002 04:29 PM

nope.
giving me a db error.

ukliam 12-06-2002 04:29 PM

Think I have worked it out... :D

NTLDR 12-06-2002 04:38 PM

Quote:

Originally posted by Buddha
nope.
giving me a db error.

OK give it a try now, I changed the code (put thread.visible instead).

mv540 12-06-2002 05:07 PM

aaaheeemmm excuse guys hate to break up the party for a second but about 10 posts back i had a question... :ermm:

Any ideas..???

here is the question:
(post #1169)

I would like to know how to add more areas on the portal so that i can add more/other info manually....

for example..in the middle i have news and on either end i have the navigations...i would like to add more boxes to fill it up abit with information..

Please answer in detail for i am very new at this...let me know step by step where to go and what to do

Thanks

I~

NTLDR 12-06-2002 05:29 PM

You need to edit the home_left and home_right templates. As I've already said in the thread customising the templates and the look is the users job. I provide a default layout, thats all.

Buddha 12-06-2002 05:34 PM

Quote:

Originally posted by NTLDR


OK give it a try now, I changed the code (put thread.visible instead).

genius.
thank you very much buddy... knew i could count on you.


mv540, just add several <tr><td>info</td></tr> on both the left and right templates.

if you need more detail than that, you need to learn html before you start modifying this hack.
just a suggestion

xevious 12-07-2002 07:17 PM

Ok, my news is havin the same problem, news title but no text is showin up. I tried the update counter in the acp and that didnt work. Im usin 2.2.8 and i have the news forum in public so anybody can post in it. Any help?

NTLDR 12-07-2002 07:28 PM

You haven't followed the instructions properly. Please go back through and check each step, this works fine in 2.2.8.

xevious 12-07-2002 07:44 PM

OMG, yep, i was doin two sites and i just skipped a couple things :) doh!! Thnx hehe Thanks for the awesome hack and for the quick reply.

NTLDR 12-07-2002 07:53 PM

No problem ;) I know how easy it is to miss the odd step out :)

koggit 12-10-2002 04:23 AM

I think this is the right thread for the version I have ^_^


http://www.erecellstudios.com/vB/vbindex.php

I just got it installed, so please ignore how nothing is customized yet. You can log-in under guest/guest if you need to test something. :)


Three things.

1) [url=http://www.erecellstudios.com/Image1.jpg]This[url] should explain everything. I just don't know where to put it.

2) If you switch skins, the header and footer stay as the default, and it looks really funky. Although it's probably because I havn't done step 11 yet. :)

3) How can I put it so that the latest thread list doesn't include the admin-section threads when being viewed by a regular user?

fury 12-10-2002 04:53 AM

I haven't installed this hack yet but I am considering it for one of my sites.

koggit:
Quote:

1) This should explain everything. I just don't know where to put it.
$bburl is usually the URL to your forums WITHOUT the /index.php - you put $bburl in there just after the first " in all anchor tags, then slash, then member.php or calendar.php or whatever.

So it looks like these examples:

<a href="$bburl/memberlist.php?s=$session[sessionhash]">

and

<a href="$bburl/usercp.php?s=$session[sessionhash]">

But this is only the case if the vbindex file is not in the same directory as the forums. With your forum, you have the vbindex file in the same directory, so you shouldn't need to add $bburl anywhere

koggit 12-10-2002 03:15 PM

Thanks, man. Instead of just giving me an answer, you explained it. Very helpful for someone like me, a noob to all scripting languages. ;] Thanks.

So, if I don't need to modify that, then what's the problem with the header/footer? =\

NTLDR 12-10-2002 03:17 PM

Quote:

Originally posted by koggit
2) If you switch skins, the header and footer stay as the default, and it looks really funky. Although it's probably because I havn't done step 11 yet. :)

3) How can I put it so that the latest thread list doesn't include the admin-section threads when being viewed by a regular user?

2. Copy the header and footer templates to the home_header and home_footer templates of all your styles, making sure you add $bburl to the links as explained above if its not in the forums directory.

3. Check back a few pages this has been covered lots and lots of times.

koggit 12-10-2002 03:57 PM

Quote:

Originally posted by NTLDR


2. Copy the header and footer templates to the home_header and home_footer templates of all your styles, making sure you add $bburl to the links as explained above if its not in the forums directory.

3. Check back a few pages this has been covered lots and lots of times.


Can you please elaborate a bit on #2?


And sorry about asking something that was answered, I'm going to read back some. :)

NTLDR 12-10-2002 06:19 PM

Under your templates you have the "sets" for each style. Click the edit button for the footer template and copy the code in it, then edit the home_footer template and delete the code in it and paste in the copied code there, repeat this for the header.

Change any links that point to your site to add $bburl eg:

Code:

<a href="$bburl/usercp.php?s=$session[sessionhash]">User CP</a>

koggit 12-10-2002 07:57 PM

Thanks man, I've gotten it pretty much up and ready.


If someone could help me out with my template for vbindex, I'd really appeciate it.

http://www.erecellstudios.com/vB/vbindex.php <= You can log in under guest/guest to see it in the Ekko template. See, the sites are white, but they should be that same grid-thing as the forum.

xevious 12-11-2002 01:00 AM

I am trying to add more pages to my site, and i created a new template using the home template. So i named the new template home_generalrules and the address is www.blahblah.com/vbindex.php?page=generalrules. But when i click the link, all i get is a blank white page. Yes , i did copy the html to the new template and change it accordingly lol.

Zr0 Designs 12-11-2002 04:46 AM

Quote:

Originally posted by xevious
I am trying to add more pages to my site, and i created a new template using the home template. So i named the new template home_generalrules and the address is www.blahblah.com/vbindex.php?page=generalrules. But when i click the link, all i get is a blank white page. Yes , i did copy the html to the new template and change it accordingly lol.
I'm getting the same thing too. When I installed this there were already 80 pages in this thread. . . and after reading up to page 10. . sorta hard to follow some things. . .

http://wisdomtrip.sytes.net/site/

at the bottom will be a user agreement link in the footer. . . that is the only thing I've tried. . .and I followed ur instructions 100% from the ones on page 4. . .

>edit<

I made the template "home_agreement" and replaced $news with the content I wished to be viewed. . . so is that link right?

NTLDR 12-11-2002 05:24 PM

Templates should be named home_extra_pagename and the URL should follow the syntax:

Code:

vbindex.php?s=$session[sessionhash]&page=pagename

flup 12-11-2002 05:33 PM

Nice script!
Keep it coming

Zr0 Designs 12-11-2002 05:47 PM

Thnx for the responce. . .it works now. . . great portal system, very easy to use if u know how to code semi-decent!!

Buddha 12-12-2002 02:42 PM

Quote:

Originally posted by xevious
I am trying to add more pages to my site, and i created a new template using the home template. So i named the new template home_generalrules and the address is www.blahblah.com/vbindex.php?page=generalrules. But when i click the link, all i get is a blank white page. Yes , i did copy the html to the new template and change it accordingly lol.
in addition to the url redirect that NTLDR suggested above, you can also make copies of vbindex.php as i have done. rename the copied file 'generalrules.php', and have it pull from a seperate forum. that way, you can populate your entire off-forum site with vbindex copies that pull from different forums. ntldr explained all of this in previous posts if you are interested. makes for an excellent, dynamic site that can easily be administered from the forum. works great on my site.

Zr0 Designs 12-12-2002 04:22 PM

Thats a great tip man, Maybe I'll try it out. . .


All times are GMT. The time now is 10:55 AM.

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.02850 seconds
  • Memory Usage 1,848KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (16)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