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)

Zachery 11-06-2003 04:19 PM

Quote:

Originally Posted by eclectica
In post #1430, the instructions are given on how to modify the index.php file in order to exclude forums from showing up in the Latest Forum Topics section.

This is what I have now in my modified index.php file:
Code:

$forums=$DB_site->query('SELECT forumid,parentid,displayorder FROM forum WHERE forumid != 4 AND forumid != 8 AND

displayorder<>0 ORDER BY parentid,displayorder');

My news forums are 5 and 7. Despite the modified index.php file, the posts from forums 4 and 8 still show up in the "Latest Forum Topics" section. I can't figure out why.

that looks right to me >.> i dont know why it would still be showing them

eclectica 11-08-2003 12:16 AM

Thanks for the reply anyhow. I wanted to block those forums from showing up in the "Latest Forum Topics" because they are only accessible to all registered members, but not unregistered guests. They're not really "private" in the sense that only moderators and administrators would be able to see them. The content of the threads is still blocked for guests. At least it will keep those sections from becoming a private +++++ing & gossip club.

By the way, is this portal hack expected to work on vBulletin 3X series?

Tigga 11-08-2003 02:15 AM

eclectica - If you have your forum permissions set correctly then it will already exclude those forums from guests. Also, the code you posted above is correct. You may want to double check that you uploaded the correct file because there's no way that code would not work.

And the vB3 version of this hack can be found here -
http://www.vbulletin.nl/community/showthread.php?t=479 ;)

Zachery 11-08-2003 03:04 AM

btw congrats on the 800th post ^^

:D

the vb3 version roxors

pixelpunk 11-11-2003 08:56 PM

Is there a way to center news topics on the front page?

Zachery 11-11-2003 09:01 PM

Quote:

Originally Posted by pixelpunk
Is there a way to center news topics on the front page?

edit your index template >.>

eclectica 11-13-2003 08:55 PM

I just upgraded my board from 2.3.2 to 2.3.3 and it went well. member.php, newthread.php, admin/template.php were not upgraded, so you can take those out of your ftp upload. Otherwise you will have to modify the code in everything again.

The only thing you have to do after upgrading, is to run admin/myvb_install.php, and select "Click here to install ONLY the templates" option.

Zachery 11-14-2003 03:22 AM

Quote:

Originally Posted by eclectica
I just upgraded my board from 2.3.2 to 2.3.3 and it went well. member.php, newthread.php, admin/template.php were not upgraded, so you can take those out of your ftp upload. Otherwise you will have to modify the code in everything again.

The only thing you have to do after upgrading, is to run admin/myvb_install.php, and select "Click here to install ONLY the templates" option.

this is standard proceadure :)

liquidblaze 11-15-2003 07:47 PM

Quote:

Originally Posted by Tigga
To have multiple mYvBindex scripts running that will pull the news from different forums, simply follow these instructions...
First open your myvbindex.php file and look for:

seeing its possible to get myvbindex to run from different forums I was asking myself (and now you lot) if its possible to lets say if the user visits the site from domain1.com that the portal only shows news that are "tagged" like [NEWS1]

if the user visits from domain2.com the news should be [NEWS2] and so on.

now I understand that this will need both a http host check and a sql query using something similar to "WHERE title LIKE [NEWS1]" but I personally do not know where I would have to put this?!

another option for this would be to tweak various myvbindex files to reflect the querie above but that would mean that I would have 2 or more vbindex files in the root folder which is something I do not want.

liquidblaze 11-16-2003 03:28 PM

what I basically think needs to be done is have a variable for the title query. as stated above:

if the user is comming from domain1.com only news tagged like this should be used and so on. I dont think its that hard but it would be really usefull for me.

nauticx 11-20-2003 02:15 AM

I must say this is very nice. One of the best Ive seen. But I have a question. If I just wanted to use bits of this on my homepage I already have created, and put the items where I have left space fro them, can this be done? Or should I look at other solutions for the below?

For me All I want right now is:

User Login box
Latest 5 or so threads
News from a specific Forum (site news forum) to show on my homepage.

Zachery 11-20-2003 02:38 AM

Quote:

Originally Posted by nauticx
I must say this is very nice. One of the best Ive seen. But I have a question. If I just wanted to use bits of this on my homepage I already have created, and put the items where I have left space fro them, can this be done? Or should I look at other solutions for the below?

For me All I want right now is:

User Login box
Latest 5 or so threads
News from a specific Forum (site news forum) to show on my homepage.

yes just mofidy the template :)

Zachery 11-20-2003 04:05 AM

Quote:

Originally Posted by MaDCaT75
I just wanna say this hack ruined my forums you son of a b i t c h

please, im trying to help you rightnow, im sorry i cant login to the ftp and im gettin a bad pw notice

please dont say that type of thing also please dont avoid the word fliter

liquidblaze 11-20-2003 12:20 PM

Quote:

Originally Posted by MaDCaT75
I just wanna say this hack ruined my forums you son of a b i t c h

oh cmon please. tigga is / was working very hard to accomplish this. if you dont know how to use it, you shouldnt blame us. yes - I also messed up my board once or twice (faranth - do you still remember :P ) but I just started from scratch again or had a backup I could use. so please dont use such language here and learn that a hack should never be performed without backups. I learned it the hard way but I know now...

Zachery 11-20-2003 02:44 PM

Quote:

Originally Posted by liquidblaze
oh cmon please. tigga is / was working very hard to accomplish this. if you dont know how to use it, you shouldnt blame us. yes - I also messed up my board once or twice (faranth - do you still remember :P ) but I just started from scratch again or had a backup I could use. so please dont use such language here and learn that a hack should never be performed without backups. I learned it the hard way but I know now...

i fixed the problem >.>

Tigga 11-21-2003 05:08 PM

Quote:

Originally Posted by MaDCaT75
I just wanna say this hack ruined my forums you son of a b i t c h

If anything, YOU ruined your forums. There is nothing in this hack that could harm your forums in any way. Perhaps if YOU did not follow the instructions properly and modified the code wrong, then you could have temporarily disabled a file from working properly, but that's about it.

Zachery 11-21-2003 07:28 PM

Quote:

Originally Posted by Tigga
If anything, YOU ruined your forums. There is nothing in this hack that could harm your forums in any way. Perhaps if YOU did not follow the instructions properly and modified the code wrong, then you could have temporarily disabled a file from working properly, but that's about it.

like i said i fixed the problem :) i also yelled at her for saying that while i was trying to help, i drop you an email about several things :)

nauticx 11-21-2003 11:55 PM

Quote:

Originally Posted by Faranth
yes just mofidy the template :)

Not sure what you mean? But do I go through the whole process of installing, then pull out what I want to add to my current homepage?

MindTrix 11-22-2003 01:09 PM

Quote:

Originally Posted by Tigga
If anything, YOU ruined your forums. There is nothing in this hack that could harm your forums in any way. Perhaps if YOU did not follow the instructions properly and modified the code wrong, then you could have temporarily disabled a file from working properly, but that's about it.


YOU forgot to change the last YOU into one thats all caps. Shame on YOU :)

Nice one for sticking up for yourself though Tigga. Great addition and alot of hardwork no doubt.

Zachery 11-22-2003 03:19 PM

Quote:

Originally Posted by nauticx
Not sure what you mean? But do I go through the whole process of installing, then pull out what I want to add to my current homepage?

no just modify the INDEX and other INDEX_ templates to make your home page appear how youd like it :)

liquidblaze 11-22-2003 03:37 PM

Quote:

Originally Posted by Faranth
no just modify the INDEX and other INDEX_ templates to make your home page appear how youd like it :)

and if you cant do it yourself or dont want to do it yourself you can always get faranth for a paid job. He has a good rate and does outstanding work.

liquidblaze 11-22-2003 07:06 PM

removing certain parts from the script

just out of curiosity - would the script stop working if I would kill the calendar and weather parts in it - considering that I do not use them!?

Tigga 11-22-2003 07:19 PM

Pretty much every option (except for the login/welcome box) can be disabled in the Admin CP. Also, the weather part has a seperate install script, so that is not even installed unless you choose to.

https://vborg.vbsupport.ru/external/...achmentid=9495

liquidblaze 11-22-2003 09:32 PM

Quote:

Originally Posted by Tigga
Pretty much every option (except for the login/welcome box) can be disabled in the Admin CP. Also, the weather part has a seperate install script, so that is not even installed unless you choose to.

https://vborg.vbsupport.ru/attachmen...achmentid=9495

thats true but the source of the myvbindex.php still includes some 100 lines of code I dont use. I was just wondering if I could get rid of them.

- also I have another question:

If I want to set the "latest posts" to only get posts from a certain forum - how would I do that but still having the news id unchanged?

Zalastri 11-24-2003 02:09 AM

Took me lots of tweaking and the better part of a day, but this is my site www.zalastri.com (Notice the myVBindex install with the centered boxes and the $header just like a normal forum, darn aren't I tricky </sarcasm> ;) :squareeyed: :nervous:

Zachery 11-24-2003 02:17 AM

Quote:

Originally Posted by Zalastri
Took me lots of tweaking and the better part of a day, but this is my site www.zalastri.com (Notice the myVBindex install with the centered boxes and the $header just like a normal forum, darn aren't I tricky </sarcasm> ;) :squareeyed: :nervous:

you can rename myvbindex to index.php :)

jeffj 11-26-2003 04:06 PM

any hints on how to upgrade from version 2???

thanks in advance...

- jeff

jeffj 11-26-2003 04:07 PM

Quote:

Originally Posted by MaDCaT75
I just wanna say this hack ruined my forums you son of a b i t c h

I reported this post - what a loser!

Zachery 11-26-2003 04:10 PM

Quote:

Originally Posted by jeffj
I reported this post - what a loser!

jeff that wasnt nessary.

to upgrade you should just need to the installer again

jeffj 11-26-2003 04:13 PM

you know - Tigga really worked hard on this hack and I installed it with ease over a year ago and it's worked perfectly ever since. for someone to be so rude and post such a vile message when clearly to the rest of us with some basic talent for installing hacks is really way out of line. You don't chastise someone else for your own stupidity - that's just not right. Tigga is a great guy and has helped me in the past - it's just not right...

Zachery 11-26-2003 04:14 PM

Quote:

Originally Posted by jeffj
you know - Tigga really worked hard on this hack and I installed it with ease over a year ago and it's worked perfectly ever since. for someone to be so rude and post such a vile message when clearly to the rest of us with some basic talent for installing hacks is really way out of line. You don't chastise someone else for your own stupidity - that's just not right. Tigga is a great guy and has helped me in the past - it's just not right...

ive sorted the problem offline already, it was user error :\

jeffj 11-26-2003 04:16 PM

Quote:

Originally Posted by Faranth
jeff that wasnt nessary.

to upgrade you should just need to the installer again

well - the basic install says it creates VB templates and my existing templates are highly modified - although I have backed them up - will the install clobber them?

Zachery 11-26-2003 04:17 PM

Quote:

Originally Posted by jeffj
well - the basic install says it creates VB templates and my existing templates are highly modified - although I have backed them up - will the install clobber them?

i belive so, im not 100%, but if your upgrading from version 2 im sure the templates have changed some :)

jeffj 11-26-2003 04:20 PM

you're sure? - in what way or 'don't you know'.

I know you're trying to help, but sometimes the best help is to say nothing at all unless you're positive about what you're giving advice on.

Zachery 11-26-2003 04:32 PM

Quote:

Originally Posted by jeffj
you're sure? - in what way or 'don't you know'.

I know you're trying to help, but sometimes the best help is to say nothing at all unless you're positive about what you're giving advice on.

well i can honestly say im not 100% sure about the oldver verisoons, ive only been using mYvBindex since 3.0 and up, i can quote tigga on him saying that i know this script almost as well as he does.

with any advances in a program they usualy containt an updated code and tempaltes, im fiarly sure that the templates would have been updated / modified over time, your welcome to wait for tigga to comment on this if you wish however im not sure when he will be able to respond. :)

Tigga 11-26-2003 04:48 PM

Hi Jeff,
Unfortunatly there really is no good way to upgrade from v2.0 to 3.2. For version 3.0, virtually every template was changed when I revamped the style for the script. Many of the templates were also changed to add quite a few new options as well. It would have been way too hard to try and make an upgrade script from v2.0 - v3.x because of the number of changes, so the best way to upgrade would be to uninstall (using the uninstall included with the 2.0 version) and then re-install the script. Since you have a backup of your templates you could try to re-do any customizations you have done, but be careful to pay attention to what variables have been added/changed in the script. If I could actually remember what variables and such may have been changed then I would try to give you some more details, but it's probably been a year now since v2.0 was released and my memory's really not that good. ;)

Logician 11-26-2003 05:20 PM

Inappropriate post by Madcat75 is removed.

We want some respect for hack authors who are sharing their work without commercial intentions here and this includes even the hacks that are buggy. Also this hack is an old hack with a lot of successful installers so although I didn't use it myself, I wouldnt think it would ruin a board. Even if it does, it is board admin's responsibility to take safety precautions before applying any hacks to his board. Besides no bugs would justify such an aggressive comment so it is removed.

We can really use some gratitute and respect to hack authors in vb.org, obviously such remarks are not helping us. Thanks for reporting it.

Zachery 11-26-2003 06:04 PM

Thanks Logician :D

Tigga 11-26-2003 11:32 PM

Thanks Logician. The post didn't really bother me, but I do see your point.
I know this hack was probably a little buggy when I released 1.0 and 2.0, but that was quite a while ago. To this day there are no known bugs in the current version of the script, and there have never been any that could actually harm anyone's forum in any way. :cool:

jarvis 11-30-2003 11:17 PM

I have a question about the $getnewposts routine and am not enough of a coder to get past my self-inflicted mySQL errors. ;)

Anyways, I mirror some Usenet groups on our fourms and would like to have the getnewposts routine in myvbindex not count these posts during the welcome tasks.

PHP Code:

$getnewposts=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$bbuserinfo[lastvisit]'"); 

I would think that I should be able to add a WHERE forumid!=XX somewhere in that statement, but have not been able to get that to work.

Any suggestions? Thanks for the awesome hack, as I've continued to use it for almost a year now (and have hacked it up a bit myself for graphics ;) )

Thanks again!!


All times are GMT. The time now is 11:10 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.03654 seconds
  • Memory Usage 1,851KB
  • 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
  • (1)bbcode_php_printable
  • (22)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