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)

mforster 02-07-2003 06:07 AM

Excellent hack, installed no probs A++++ Check it out at http://www.boogle.org.uk.

Found it very easy to customise, hoping to get a new skin on it over the weekend.

WELL DONE!

Tigga 02-07-2003 12:14 PM

Units - Please check post #634 in this thread. If that doesn't help let me know.


Prophet2002 - If you'll open your myvbindex.php file and look for this line:
PHP Code:

FROM thread WHERE open='1' AND open<>10 $iforumperms 

Replace that with:
PHP Code:

FROM thread WHERE open='1' AND open<>10 AND forumid!=XX $iforumperms 

Replace XX there with the forum id that you do not want to appear in the latest threads.


mforster - Thank you. Hope you enjoy the hack. :)

Prophet2002 02-07-2003 01:51 PM

you are the man PP, thx for the info.:D

slabuda 02-08-2003 01:27 PM

attempted to use this Hack ... looks good ...

But going through the install I found that in the step to edit the pages ..

(Q1)
Step 3 - File Modifications

Find:
'1')");

Replace it with:
'1','Y')");

I could not find this in my file.

(Q2)
In step 2, was I supposed to clear out all the data in those templates and replace with the data in the instructions?

(Q3)
I can't seem to log out of my Forums now.

Any help would be appreciated ... thanks

Tigga 02-08-2003 02:00 PM

1. What version of vBulletin are you running? Unless you have another hack that's changed that part of the file, that code should be just a couple of lines below the first line you edited.

2. For the first 2 template mods, yes. For the 3rd one you are only supposed to change the link to point to the full url to your forums.

3. Did you set the Cookie Domain to .yoursite.com as instructed in the install file? Also be sure your Cookie Path (the option right under the Cookie Domain) is set to /

slabuda 02-08-2003 02:03 PM

Ok figured out my first question, but still need on the other two. Thanks

slabuda 02-08-2003 02:09 PM

Trying to Post to the News Forum .. I recieve this error ..

Database error in vBulletin 2.2.6:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,isnews) VALUES (NULL,'4330','Test','Kiko','1','1044720361','0','T est','1','1','66.61.50.249','0','1')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Saturday 08th of February 2003 11:06:01 AM
Script: http://www.consilioetarmis.com/forum.../newthread.php
Referer: http://www.consilioetarmis.com/forum...ead&forumid=85


And on an existing Thread ...

Database error in vBulletin 2.2.6:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,isnews) VALUES (NULL,'4331','Test','Kiko','1','1044720985','0','T EST','1','1','66.61.50.249','0','1')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Saturday 08th of February 2003 11:16:25 AM
Script: http://www.consilioetarmis.com/forum.../newthread.php
Referer: http://www.consilioetarmis.com/forum...read&forumid=8


----------------------------------



Ok when i tried both of these, it gave the error, but still created the thread, but didnt have the body of the message in it ..

Also any new post I put in an existing thread seems to clean that thread ...

Tigga 02-08-2003 05:34 PM

You didn't edit the newthread.php file correctly and make the 2nd change listed in the install file.

arracing 02-09-2003 07:58 AM

I found a problem in latest threads. Basically if you have a forum such as a moderator forum where you want the forum visible on the board yet restricted so that only mods can get in. I have such a forum and the thread topics are showing up in the myvbindex latest thread table even when the permissions such as for guest say you cannot see in that folder. I know if I make this a private forum the thread topics will not show but I do not want to make the forum private because it will disapear. I really do not want others that cannot get into the mod forum to see what the thread topics are. Is their anything i can do to change this?

jarvis 02-09-2003 01:20 PM

This is answered about 5 or so posts up in post #642.

Just make sure that you change the XX to the forum that you do not want to show in your latest threads list.

Also, there is a typo in the post. fourmid should be forumid. :D

HTH,
Jarvis

www.mhogaming.com

Tigga 02-09-2003 05:35 PM

If permissions are set for that forum so that those groups can't view other's threads then they shouldn't be visible in the latest forum topics. If for some reason that doesn't work though just check the post jarvis pointed out above. And thanks for pointing out that typo jarvis. :)

arracing 02-09-2003 07:50 PM

whats the code if i wanted to put more than 1 forum in that XX ?

arracing 02-09-2003 08:02 PM

also i put in that code with the correct forum id where the xx were but it still shows in the myvbindex.

Tigga 02-09-2003 08:50 PM

Ahhh, it's probably still telling it to pull threads from that forum because of the forum permissions. That code you added in would tell it not to look in that forum, but the part for the forum permissions would tell it to look in that forum, so I guess the permissions are canceling that part out. If you look for this line of code instead:
PHP Code:

$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder'); 

Right before ORDER BY in that query, add AND forumid!=XX. If you wanted to exclude more than one forum, you would just add the AND forumid!=XX again right after the first one.

arracing 02-09-2003 10:18 PM

im a bit confused. Should i replace this new line you just gave me with the code from before? What do I do with the line I already replaced? Should I put it back to the original line or are you saying I should modify 2 lines of code with the XX line?

Tigga 02-09-2003 10:26 PM

You can change the first line in the threads query back to the way it was (removing the AND forumid!=XX).

Then look for this line of code:
PHP Code:

$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder'); 

Replace that with:
PHP Code:

$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 AND forumid!=XX AND forumid!=YY ORDER BY parentid,displayorder'); 

Then just change XX and YY there to the forum ids.

arracing 02-09-2003 10:44 PM

thanks plurplanet, that worked fabulously.

I have another question tho, I want to understand how the latest threads get picked to be displayed? I checked my latest threads and I know their are threads that are newer then some of the threads it picks for the latest threads table in myvbindex. So im wondering how it picks them?

arracing 02-09-2003 10:48 PM

nevermind i was looking at the thread creation date. But just to confirm how this work, it will look in all forums that do not have != and look for the latest post and display the value of how many you wanted in the table from what it finds? correct?

Tigga 02-10-2003 12:04 PM

Yes, it will check through all forums except those that you added with the != in front of them. It will also check the forum permissions, so if a user doesn't have access to a forum, those topics should be excluded as well. And yes, it looks for the latest X posts and displays those. By the way, did you ever check to see if the forum permissions for those forums were set to not allow those groups to view others' threads? If all the permissions are set correctly, I'm pretty sure those threads should't be displayed anyways.
Also, if you would prefer for it to show the last poster and time instead, search this thread for "lastposter". I know I've posted instructions for others on how to change this at least once or twice. ;)

certify 02-10-2003 02:57 PM

Which country's weather does the weather box report?

Yuber 02-10-2003 03:53 PM

Have you any ideas or plans on extra hacks or features that future versions of myvBindex will have?

Tigga 02-10-2003 05:15 PM

certify - The weather box has 247 countries and over 37,000 cities to choose from.

Yuber - If there are any future versions of this script it will probably be a couple of months before they are released, and will definitely be after vB 3.0 comes out. Lately I've been concentrating on a much bigger portal system that has been consuming the majority of my free time. There are already a couple of mini-hacks listed in the first post in this thread, plus there are a few others that I've posted throughout this thread that I will add to the first post as well once I get the time. If you have any suggestions for future versions or mini-hacks though please let me know. :)

Yuber 02-10-2003 06:08 PM

Will the current version of myvbindex work with vB 3.0? Or once vB 3.0 isreleased say I got picked for private beta, would i have to delete myvbindex until you make a higher version for 3.0?

Tigga 02-10-2003 06:20 PM

It's hard to say since I have no idea which variables and database tables will change, but it's very doubtful that everything would still work the same way. I've applied to beta test 3.0 as well, but since they're only picking 20 sites out of 600 that applied, I'll probably have to wait until the first public beta is released. Either way, as soon as I get my hands on 3.0 I will be rewriting the script since I will have to update it for my site as well, so I would expect to have it posted here within a couple of days after 3.0 is released.

maxxxxxx 02-11-2003 11:05 AM

I am sure that you have telled us how i can change the position of the boxes...

But my enlish is not so good that i can read the complete thread...

can somebody tell me how i can change the boxes and the positions...
specialy i want the last post box in the middle

i have deinstalled the portal....

i am sorry about it i nerv but i am an wbb user and a newbee in vb since yesterday

cu and thx
maxxxxxx

Tigga 02-11-2003 01:45 PM

That is mostly just a matter of editing some html. If you edit your index template and move the whole table that has the $threadbits variable to right underneath the $newsbits variable that should do the trick. And you'll probably want to edit your index_threadbit template as well to change the way each thread is displayed.

papa 02-12-2003 03:08 PM

quick question. Can I only show a custom box to registered users? I have the two custom boxes with one of them being links but we wanted to reserve that box for our members? Any easy way to do that?

Tigga 02-12-2003 05:16 PM

I'm assuming you just want this to be displayed for a user that has registered, and it doesn't matter if they have activated their account or whatnot, just simply that they have registered... If so, just open your myvbindex.php and look for this line:
PHP Code:

if ($showcustom1) { 

Replace that with:
PHP Code:

if ($showcustom1 AND $bbuserinfo[userid]!='0') { 

If you don't want it to be displayed to users if they haven't yet activated their account, instead replace that with:
PHP Code:

if ($showcustom1 AND $bbuserinfo[usergroupid]!='3' AND $bbuserinfo[userid]!='0') { 


Zachery 02-13-2003 12:55 AM

sorry if this has been posted before, but my images keep commin up as broken, any help?

arracing 02-13-2003 03:31 AM

on the myvbindex page in the news section their is those icons that print and mail to a friend. Well i want to change the icons to different ones but not have it affect the same icons on the forums. How can i do this?

Also my second question is I have a header.php file i want to load up on the myvbindex page that is different from the one on my forums. I know their is a post about this around post number 72 or such but i didnt understand what to do. I am trying to do a call function in the index_header template of the myvbindex group. I want this function to call that header.php file i have. Im not sure if this is possible or what. Basically in the header.php file is 1 table with an image in it. Can someone help me so that above the myvbindex page will be this image. Also eventually in this table i want to put code so that the image is a background and over to the right of it a banner also is their for sponsors.

alnany 02-13-2003 10:00 AM

Okay... news is not showing up at all. I looked in the post table and there isn't a isnews field.. please advise.. I have phpMyAdmin 2.3.2 thanks.

forum URL: http://www.serenepoets.com/myvbindex.php

alnany 02-13-2003 10:30 AM

Ok.. before I installed this hack I moved the forum to a new server... after installing everything and making the post above, I realized that I forgot to update my config.php to reflect the new settings... when I did that, I started getting a blank page at http://www.serenepoets.com/myvbindex.php however http://www.serenepoets.com/ still shows up fine... please help.

alnany 02-13-2003 11:22 AM

okay.. everything makes sense now... haha, sorry and thanks anyway :)

love the script.

Yuber 02-13-2003 05:40 PM

I had a poll on my vbindex page. But now that I posted a new poll nothing is there and I can't get it to show up? Could it be because of the number of choices? I have 25 choices. I made sure that the polls id was still correct which is 16

Zachery 02-13-2003 11:26 PM

just installed on 2.3.0 fresh install, no problems ^_^ works great

my first install i missed a step :bunny:

Tigga 02-14-2003 01:22 PM

arracing - To change those images you would edit the index_newsbits_printable & index_newsbits_sendtofriend templates. As for the header file, could you not just put the image and table in the index_header template?

Yuber - What version of myvbindex & vbulletin are you using? Is the poll and thread open, or was it moved from another forum? What happens if you try to post another poll in the polls forum?

Faranth & alnany - Hope you enjoy the hack. :)

frankenberrie 02-14-2003 01:57 PM

I have VBulletin 2.29 installed with VBindex 3.1
WWW.FRANKENBERRIE.COM

Now, I wanna upgrate to Vbulletin 2.30. Will I have to follow the steps of reinstallign VBindex after doing the 2.30 upgrade?

amykhar 02-14-2003 01:57 PM

Quote:

Originally posted by Faranth
sorry if this has been posted before, but my images keep commin up as broken, any help?
Look to see where the script is trying to find the images and if you don't have the coding expertise to change that, put the images there. ;)

Amy

Tigga 02-14-2003 02:02 PM

frankenberrie - You will have to re-apply the 3 (or 4 if using the weather part) file modifications listed in the readme file. Other than that you shouldn't have to do anything else, but if you do run into problems let me know.

Zachery 02-14-2003 09:59 PM

ok, so far everything looks good on my forums how ever the top section where the logo and buttons, looks like the default vbulletin sytle, the buttons and banner are correct, just not the layout

image attached is what it looks like


All times are GMT. The time now is 11:35 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.03085 seconds
  • Memory Usage 1,842KB
  • 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
  • (8)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
  • (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