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)

Tigga 12-04-2002 03:54 AM

No problem. At least now I know to make the query that way in future versions and hopefully prevent anyone else from having a problem. :)

mv540 12-05-2002 02:12 AM

On my portal page, the threads on the right, the private threads are showing up there as well, the link just goes to the you don't have permission page, but is there a way to make them not show up at all???
Thanks

Tigga 12-05-2002 02:30 AM

Are you sure all your forum permissions are set correctly in the Permissions part under "Forums & Moderators" in your admin CP? There's no reason they should be visible to anyone that doesn't have permission to view them. Double check those settings and let me know if it's still showing them.

mv540 12-05-2002 02:42 AM

Thanks for the response, I had the catagory set properly and thought that the sub forums would inherit the settings, but they didn't seem to in the portal, I set all reg users to no all down the list in all the sub forums, and it worked.

While I've got you here, I have the myvbindex all set up and ready to go, but I don't understand how to make it work with the login. I have placed the file myvbindex in the root folder and renamed it to index.php, but the login goes directly to the forums/index.php??

Tigga 12-05-2002 02:49 AM

That sounds like you missed the step to edit member.php in the install file, or maybe you forgot to upload it?
Check your member.php file and make sure it has these changes...

Find:
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"index.php?s=$sess ion[dbsessionhash]\");");

Replace with:
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");

Find:
eval("standarderror(\"".gettemplate("error_cookiec lear")."\");");

Replace with:
eval("standardredirect(\"".gettemplate("error_cook ieclear")."\",\"\$url\");");

mv540 12-05-2002 02:53 AM

Here's what I got, looks like its ok

if ($url!="" and $url!="index.php" and $url!=$HTTP_REFERER) {

if (strpos($url,"?")>0) {
$url.="&s=$session[dbsessionhash]";
} else {
$url.="?s=$session[dbsessionhash]";
}
//header("Location: $url");

$url = str_replace("\"", "", $url);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
} else {
$bbuserinfo=getuserinfo($userid);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
}

}

mv540 12-05-2002 02:57 AM

correction, that doesn't look ok, I will change it

mv540 12-05-2002 03:06 AM

Guess it does look ok, I redid the code again and uploaded it and tried again, still the same, I go to forums/index.php

Tigga 12-05-2002 03:16 AM

Hmm... Can you either post here or PM me with the url to your site? Also, what version of vB are you running?

mv540 12-06-2002 05:14 PM

Maybe ill get an answer here, ive been completely ignored for tha past 4 hours....Im using this hack for my forum..its been installed but i have a question....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 on the right and on the left of the page..

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~

Tigga 12-06-2002 05:22 PM

mv540 - If you'll refer to posts 194 & 196 in this thread that's already been explained. Either of those ways will work and should be pretty simple, but if you have any problems let me know.

mv540 12-06-2002 07:17 PM

this question i just asked recently is diferent, i got the index forum to work so when people register or sign in the see the portal...i just want to know basickly how to add more tables if thats what they are called..but ill have a looks see and check if thats what im looking for..

thanks for the help..

mv540 12-06-2002 07:29 PM

Quote:

Originally posted by 350Chevy
alkatraz,

I would imagine you would just change this

Code:

// Custom Boxes
$custom1='';
$custom2='';
if ($showcustom1) {
  $getbgrow=getrowcolor();
  eval("\$custom1 .= \"".gettemplate('index_custom1')."\";");
}
if ($showcustom2) {
  $getbgrow=getrowcolor();
  eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}

to something like this...

Code:

// Custom Boxes
$custom1='';
$custom2='';
$custom3='';
$custom4='';
$custom5='';
if ($showcustom1) {
  $getbgrow=getrowcolor();
  eval("\$custom1 .= \"".gettemplate('index_custom1')."\";");
}
if ($showcustom2) {
  $getbgrow=getrowcolor();
  eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}
if ($showcustom3) {
  $getbgrow=getrowcolor();
  eval("\$custom3 .= \"".gettemplate('index_custom3')."\";");
}
if ($showcustom4) {
  $getbgrow=getrowcolor();
  eval("\$custom4 .= \"".gettemplate('index_custom4')."\";");
}
if ($showcustom5) {
  $getbgrow=getrowcolor();
  eval("\$custom5 .= \"".gettemplate('index_custom5')."\";");
}

And create templates for each.

Then edit the 'index' template located under mYvBindex Templates and add $custom3, $custom4, $custom5 where ever you want the templates to be displayed.

ok i really dont understand this, in the INDEX template of myvbindex i dont see // custom boxes...

Tigga 12-06-2002 07:34 PM

That would be because it's in the myvbindex.php file, not a template. ;)

mv540 12-06-2002 07:36 PM

DAMIT!...lol

mv540 12-06-2002 07:45 PM

k found the php file, how do i rename it or open it to edit it..??

Tigga 12-06-2002 07:50 PM

What do you mean? You would open it or rename it with a text editor just like you would any other file.

mv540 12-06-2002 07:59 PM

i would just rename it like the config.php file..when i need to edit that i name it config.php.new correct?

mv540 12-06-2002 08:00 PM

its ok im gonna use the 2 custom index ones that are already in there...much easier..lol..thanks

Tony DiMera 12-07-2002 12:03 AM

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?

350Chevy 12-07-2002 01:08 AM

Quote:

Originally posted by mv540


ok i really dont understand this, in the INDEX template of myvbindex i dont see // custom boxes...

Sorry, guess I should've been a little more clear. ;)

350Chevy 12-07-2002 06:39 AM

Quote:

Originally posted by PlurPlanet
That's not hard to do at all and won't affect the queries one way or another. Just open up your myvbindex.php file and look for:
PHP Code:

$threads=$DB_site->query("SELECT thread.threadid,thread.title,thread.replycount,thread.postusername 

You would just replace "thread.postusername" at the end of that with "thread.lastposter". Then you would want to edit your index_threadbit template and replace this:

by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a>

with this:

by <a href="$bburl/member.php?action=getinfo&find=lastposter&threadid =$thread[threadid]">$thread[lastposter]</a>

Since I have the last user who posted would it be hard to also slow the last date and time posted instead of the date and time the thread started? :D

Tigga 12-07-2002 05:03 PM

Tony - I would think that the cookie domain should still be set to .yoursite.com, but I don't know that much about the way cookies and subdomains work. You may want to search vb.com or here for something like "cookie domian subdomain" and you can probably find a better answer.

350Chevy - I knew I should have mentioned how to do that too since it makes more sense to do it that way... All you'd do is look for this line in the threads section:
PHP Code:

  if ($showthreaddate) {
      
$thread['time'] = vbdate($timeformat$thread['dateline']);
      
$thread['date'] = date("m-d-y"$thread['dateline']); 

You would just change 'dateline' at the end of both of those lines to 'lastpost'.

350Chevy 12-07-2002 08:07 PM

LOL.. I was looking and looking and knew it was something simple. I can't believe I passed that up. Thanks once again. You da man!

And I'd have to say that this one is 10x's better than ANY other portal Pay or Free! It looks nice, runs nice, and has all the options needed!

Tony DiMera 12-07-2002 10:48 PM

Thanks Plur

Graphics 12-13-2002 01:53 PM

i got the error Warning: ChDir: No such file or directory (errno 2) in /home/virtual/site139/fst/home/da_real_rpg/public_html/myvbindex.php on line 21
but i entered my forum

could you please say exactly what i should put there is my url to my forum is host.com/~[myname]/forum

please help

Tigga 12-13-2002 08:45 PM

Thanks for the compliment Chevy. Glad you're enjoying the hack. :)

Graphics - The path should be /home/virtual/site139/fst/home/da_real_rpg/public_html/forum

RavenBeauty 12-14-2002 02:52 AM

I marvel at how hateful some reply's are to certain things that are done here. How are people to learn if they don't experiament? Is there not a nice way to ask a question or make a comment without being catty and insulting? I don't care what you think someone has done right or wrong, there is no cause for what I see on these helps and how to boards.

PlurPlanet I do need some help of course.. I wonder what would happen if I EVER did any of these hacks right the first time :(

I have done all but do not see this new created page anywhere... it has not replaced my home page nor has it replaced the index of the forum which Im glad of..but anyway can you help me? or somebody ... anybody?

and guys.. lifes too short to be anything but kind to one another :)

350Chevy 12-14-2002 04:40 AM

Quote:

Originally posted by RavenBeauty
I marvel at how hateful some reply's are to certain things that are done here. How are people to learn if they don't experiament? Is there not a nice way to ask a question or make a comment without being catty and insulting? I don't care what you think someone has done right or wrong, there is no cause for what I see on these helps and how to boards.
Who's being rude? :)

Quote:

Originally posted by RavenBeauty
I have done all but do not see this new created page anywhere... it has not replaced my home page nor has it replaced the index of the forum which Im glad of..but anyway can you help me? or somebody ... anybody?
You need to upload the myvbindex.php to the root of your site. Once you have it working the way you wish just rename your old index to something like index.bak and rename myvbindex.php to index.php. :)

350Chevy 12-14-2002 04:42 AM

Plur,

Seems a friend of mine has stumbled upon something. He's testing this mod out on his site and he noticed if you place text in the search box then press search it just takes you to the search.php page without atcually performing the search.

I've tested this on my site with the same results but see nothing wrong with the code. Are we missing something? TIA

:D

350Chevy 12-14-2002 06:25 AM

Nevermind.

Thanks to EvilLS1, he found the fix.

You need to add this

Code:

<input type="hidden" name="action" value="simplesearch">
in the index_search template. :)

Graphics 12-14-2002 10:48 AM

THX ALLOT

EvilLS1 12-14-2002 11:31 AM

Nice one. Thanks. :) *installed*

Tigga 12-14-2002 08:56 PM

RavenBeauty - If you followed the instructions and uploaded the myvbindex.php file to your server then you should be able to go to http://yoursite.com/myvbindex.php. Then after you've done that and made sure it's working correctly you would just rename it to index.php and it would of course become your homepage. If you're still having problems let me know exactly what you did and I'll help you out.

Chevy - Thanks for pointing that out. I don't use the search box on my site at the moment, so I never noticed it wasn't working correctly. I'll be sure to include that with the release of v2.1, which I will try to go ahead and finish this week.

Oh, and if anyone else has some suggestions for some new features to be added please let me know. There will be a couple of new features with 2.1, but I'm just about out of ideas. ;)

BaBa2002 12-15-2002 09:49 AM

damm i'm having probs whit installing the weather_install file
when i'm trying to run it it says "The page cannot be displayed"

anybody? who canb help my

EvilLS1 12-15-2002 11:11 AM

Quote:

Originally posted by PlurPlanet


Oh, and if anyone else has some suggestions for some new features to be added please let me know. There will be a couple of new features with 2.1, but I'm just about out of ideas. ;)

The top posters would definitely be a good add-on for the next release..

I also added a forum info box that shows total members, threads, posts, newest member, etc. (screen-shot attached).. And in the UserCP box, I added "new posts since last visit".. Those might be a good addition aswell.

Tigga 12-15-2002 06:46 PM

BaBa - Did you upload the weather_install.php file to forums/admin folder and are you sure you're going to the right url?

EvilS1 - Not a bad idea at all. I'll most likely include that and maybe a few other stats with 2.1. Thanks for the feedback. :)

Tony DiMera 12-15-2002 10:14 PM

Quote:

Originally posted by BaBa2002
damm i'm having probs whit installing the weather_install file
when i'm trying to run it it says "The page cannot be displayed"

anybody? who canb help my

I have the exact same problem. I had to put it in manually.

Tigga 12-16-2002 08:57 PM

Well I'm just about done with v2.1. I still have to set all the new options so they can be turned on/off via the Admin CP, update the install file, create an update file so 2.0 users can easilly update, test and try to break it a little more, and then try the upgrade process with my personal site. After all that, it'll be ready for release here. :)

Here are some of the new features...
  • Forum Stats (Total members, threads, posts, newest member, top poster, and today's birthdays).
  • Today's event's under the calender.
  • Ability to allow or disable smilies and your signature per post in the news section (just as you would with a regular post).
  • Ability to allow or disable vB image code and HTML on your forums homepage (not affecting the settings for the forum).
  • Number of times a news post has been viewed and the news posts rating (if any).
  • Users Avatar with news posts (with no extra queries ;)).
  • "Show Printable Version" & "Send to Friend" features for news posts.
  • Fixed a couple of small bugs and cleaned the coding up a bit more.

I think that's everything I've added for now, so if anyone has any suggestions for some more features please let me know. :)

Goldknight 12-17-2002 06:55 AM

PlurPlanet, very nice! =D You seem cover everything what I need. Thanks!


All times are GMT. The time now is 03:26 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.03046 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
  • (3)bbcode_code_printable
  • (2)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
  • (1)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