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 08-24-2003 02:49 PM

well i didnt say it did :P

what i origilany showed was what to exclude not what to only include

zeidlern 08-24-2003 02:53 PM

Quote:

Today at 04:49 PM Faranth said this in Post #1681
well i didnt say it did :P

what i origilany showed was what to exclude not what to only include


You lost me.

This is just what forums to exclude.

Zachery 08-24-2003 02:53 PM

just ignore me :P

zeidlern 08-24-2003 03:03 PM

I have another problem. I made the things on the sides smaller, to 120 pix.

So now, when the poll is full size it doesn't fit.

Does anyone know where I can edit this? I played with the poll template as you can see but I can only seem to adjust the height not thw width.

I know the width depends on the votes but perhaps I could scale it down by 60% or something.

I'll attach a pic.

Tigga 08-24-2003 05:18 PM

mv540 - I'm really not sure why the install file wouldn't be working for you. If you'd like to pm me with your FTP info I'll be glad to see if I can figure out what the problem is.

zeidlern - If you'll look in your myvbindex.php file for:
PHP Code:

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

Change that to:
PHP Code:

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

Change XX and YY in that code to the forums you wish to exclude. If you need to exclude more than 2 forums, just add another "AND forumid!='ZZ'" after the other 2. And I probably will add an option to exclude forum id's in the vB3 version once I'm able to release it. ;)
As for the polls, if you'll look in the file for:
PHP Code:

$option['barnumber'] = round($option[percent])*1.3

The 1.3 at the end of that code determines how long the bar will be. It works perfectly for the default setup, but since your boxes are a little smaller you would need to change that (I would think 1.1 or so would work).

zeidlern 08-24-2003 08:00 PM

Tigga: Thanks, good call on 1.1, it was perfect. :)

For the latest topics, I orginally tried your method to block some forums and it didnt' seem to work for me.

Then I tried this. Is there a reason why this shouldn't work or I wouldn't want to do it this way. It seems to work for me.

https://vborg.vbsupport.ru/showthrea...352#post428352

zeidlern 08-24-2003 10:59 PM

Tigga:

Ok, new question. I have some pages on my current site that just replace the middle part. So all the sides and top remain the same but I want to put something else in the middle where the news and latest threads go.

I was thinking I could create a new template file and someone have it call that but I'm not sure what to edit on the index file.

So basically I want to copy the index to something new. Then remove the middle and insert some new stuff in there.

EDIT: NVM I figured it out.

Cal Poly Forum 08-24-2003 11:43 PM

On the myvbindex page, when my main post is showing in the middle, how come my images do not show up?
Rather than the image, the url link shows up?

I have allowed bb image.

zeidlern 08-25-2003 12:48 AM

can you attach a screen shot for us?

Cal Poly Forum 08-25-2003 01:33 AM

Here ya go.

Notice it is a URL link instead of the image.

Zachery 08-25-2003 06:36 AM

that code is wrong :P

should be

PHP Code:

[img]path/to/file/name[/img


EzX5U 08-25-2003 12:20 PM

it really looks great
good job :)

but should i edit the style to work with mYvBindex?

mv540 08-25-2003 02:46 PM

Quote:

Yesterday at 04:32 PM Faranth said this in Post #1675
i wasnt refering to you mv540, im sorry

honestly im not sure why its doing that,

you can attemtp to reupload all your files making sure its in ASCII mode

and try to re run the installer

i just preformed an install on 2.3.0 a while ago and i didnt have any problems

ive had no troubles at all either installing it myself before, this is mind blowing to me... im doing it for a friend who wants it on his site. How would i know or how would i make sure the files are in ASCII mode?

Tigga check your pms :glasses:

zeidlern 08-26-2003 01:37 AM

OK new problem. Currentally I have this on my homepage in the lower right: check it out live http://www.insanejustice.com or view the pic: http://www.insanejustice.com/images/servers.jpg

ok, here is the code for it:

PHP Code:

<?php require("counterstrike.php");?> <?
  $csinfo=new CounterStrike;

  // Get The Players
  $status=$csinfo->getServerPlayers("64.5.59.120","27015",1000);

  // Get The Serverinfo $status=$csinfo->getServerInfo("146.20.83.196","27015",1000);

  // Get The Serverrules $status=$csinfo->getServerRules("146.20.83.196","27015",1000);

  if ($status) { ?> <table>
<?php if (is_array($csinfo->m_playerinfo)) { ?> <?php
    $i
=0;
    while (list(,
$player) = each ($csinfo->m_playerinfo)) { $i++;
?> <tr>
<td><font style="font-size: 5pt"> <?=$player["name"]?></font></td><td><font style="font-size: 5pt"><?=$player["frags"]?></font></td>
</tr>
    <? } ?>
    <? } else {?>empty<? } ?> <? }  ?></table>

When I add that to myvbindex I get this error:

Parse error: parse error, unexpected T_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Inetpub\test.insanejustice.com\index.php(736) : eval()'d code on line 200

any reason why this wouldn't carry over from my other site? I've added this to the index_custom1 and the index where would I want to add this to make it show simlar to how it does now.

Cal Poly Forum 08-26-2003 06:12 AM

Oops. It worked. :lick:

edit: How can I make more gap between the header and the tables?

Zachery 08-26-2003 10:40 AM

add more <br />'s to either the index template or in the other templates them self

Cal Poly Forum 08-26-2003 09:59 PM

Thanks got that.


My board is turned off at the moment (www.calpolyforum.com) and on the index page, when I click on the buttons, it gives me the 404 error.

It is because the url (navigation buttons) does not contain /forum/ . If you lost me, go check it out and you will know right away.
Where would I adjust this?

Zachery 08-26-2003 10:03 PM

yes

add forums/

to your urls or the full url always works too

Cal Poly Forum 08-27-2003 02:57 AM

Here's the trick,

my board is turned off. When I log in (admin), all the navigation links (buttons) work perfectly.
But when I log off (no cookie), I get the "forum is closed" message and my navigation buttons do not work.

When I am loggin , the url of the buttons have "/forum/"
but when I am logged off, the url doesn't have "/forum/" :surprised:

Very strange, I just checked my index header, and it has /forum/ in the code. Don't know why it doesn't work when I am logged off.

Zachery 08-27-2003 04:54 AM

because its showing the $header not $index_header

frankenberrie 08-27-2003 10:19 PM

Excuse me for being lazy... There are an awful lot of pages to this post.

Is there a way to use more than one forum for the front page information?

News Forum ID
The ID number of your news forum.

Is there a way i can use a value like

3,4??

Thanks

arracing 08-28-2003 01:58 AM

my latest threads on the index portal is showing topics in my mod forum. I noticed that when i log out I can still see the thread titles from the mod forum on the latest threads list.

my site is www.teamrevolution.net

the mod forum is not private but the permisions are set so that only mods and leaders can view the threads inside. What do i do to hide the thread titles from specific forums on the latest thread section?

Zachery 08-28-2003 02:16 AM

look a few pages back for how to exclude speicif forums

arracing 08-28-2003 02:21 AM

i did a search and got the stuff i posted a long while back when i had vb 2.2.5 but my question now is for vb2.3.0 and myvbindex.

I dont know if its the same or not. The thing is when i had 2.2.5 I had made the hack to change this but when I upgraded its gone and Im not sure what to do again with the new version and if the code was different then from before. Can someone just repeat it here. I would really appreciate it.

Thanks

arracing 08-28-2003 02:35 AM

Quote:

01-01-03 at 09:27 PM Tigga said this in Post #373
DarkDraco - What mini-hack?

Jarvis - Glad it works for you too! The way it was written before, it would insert ?C or ?F in the database with the temperature. Now it just inserts the number, then later in the script it will see if it's supposed to be C or F. I guess some versions of mySQL don't like the ? symbol being in the database. ;)

Chris - Yea, I know about the problem when leaving a news or poll forum id blank. I added in a little more 'error checking' in v3.1 so that it will first make sure that field isn't blank before continuing with the database queries. That way the news or poll area will simply be blank rather than returning a nasty sql error. That should help cut down on the number of people having problems with fresh installs too since many go to check the page before setting all the options, and then think they have installed it wrong when they see the error.
As for the latest threads part... For now you can hard code it in the script what forum id's you would like it to check. You would just open mYvBindex.php and look for:
PHP Code:

AND open<>10 $iforumperms 

You would replace that with:
PHP Code:

AND open<>10 AND forumid=OR forumid=OR forumid=

Then of course just change X, Y, and Z to the forum id's you would like it to check. I may add this as an option in a future version, but that should help you for now. :) Oh, also note that this will not do any kind of permission checking, so if you have a private forum id specified, all users will be able to see that topic. Of course they won't actually be able to read it, but they will see the title of the post on the homepage.

Tony - I'm not sure why the install script wouldn't work then. I'm sure there are many other possible reasons, just not sure exactly which one it would be. Didn't you already run the queries manually and get it working ok though?

I just did this to my index by adding those lines of code but the titles of the threads are still showing and I am shur i correctly entered in the correct forum ids. By code is below, the only difference is the first AND is a WHERE but I tried both ways and it didnt help.
Quote:

WHERE open<>10 AND forumid=49 OR forumid=59 OR forumid=47 OR forumid=64 OR forumid=40 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");

arracing 08-28-2003 02:40 AM

I just noticed that what i did is making those forum ids show up only. I need to put a not command, I believe its the ! but I forget where it goes in the code. before or after the equal sign?

arracing 08-28-2003 02:47 AM

hmm its not before or after it seems. So how do i make it not show the specified forums?

arracing 08-28-2003 02:54 AM

i figured it out, the correct code uses AND not OR and for me starts with the WHERE

Quote:

WHERE open<>10 AND forumid!=49 AND forumid!=59 AND forumid!=47 AND forumid!=64 AND forumid!=40 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");

EzX5U 08-28-2003 12:53 PM

Quote:

but should i edit the style to work with mYvBindex?
Waiting the answer :bored:

Zachery 08-28-2003 12:59 PM

EzXu5: the style is totally based off your style from vbulletin

arracing : if you upgraded you will need to reinstall and the code hasnt changed

EzX5U 08-28-2003 01:31 PM

thanks for answer :}

Cal Poly Forum 08-29-2003 01:17 AM

Is there a way I can remove the link buttons because my board is closed as of now (www.calpolyforum.com) and would like to get rid of the buttons, only when the board is closed.

Solution?

Tigga 08-29-2003 12:25 PM

Cal Poly - If you ask in the General Hacking Discussion forum someone there can probably help you.

Littlebit 08-29-2003 11:48 PM

Hey Tigga, I'm going to be upgrading, but I wanted to talk to you first when you get some down time. When you get a chance, will you check your PMs? I know you have your hands full... :)

alqafelah 08-30-2003 06:07 AM

hi all,
Tigga, i have big problem but not for this hack , in database ..
the query altering news id is very slowly after submit , only in the post table .
i tried to alter it in other table it is ok !
only post and thread ( my big tables ) .
in my personal server all things fine !

what's the problem ? do you have any idea ?

sory for bad english .
thanx.

Tigga 08-31-2003 11:59 PM

alqafelah - The query will not be any slower when submitting a post. It's only adding a 'Y' in the isnews column if the post is a new thread, so it would not affect the speed at all.

Tigga 09-01-2003 12:06 AM

Just a heads up to everyone - I'm moving tomorrow and I'm not sure when I'll have an internet connection again, so I will most likely be unavailable for at least a week. If anyone has problems please post them here as normal and hopefully Faranth or someone else will be able to help out. :)

Zachery 09-01-2003 12:36 AM

good luck with the move... try to check your pms and reply tonight if you can

i might not be able to help for a few days as my pc is acting up hopefully ill get this all fixed up by tommrow

pixelpunk 09-04-2003 10:57 AM

I know Tigga's moving but I'm hoping someone else might be able to help me out. My brain's fried, i've looked through everything I can and I'm not seeing the problem so here it is...

My frontpage news isn't being updated with the latest news but it will update with the latest poll. It's still got a news post from last month coming up so I know it's pulling from the right forum, it'll show 1 or 2 or how ever many posts I allow it to show but only starting from the one last month! It's so friggin weird.

Anyone? Anyone?

I know it's looking in the right place I just can't figure out why it won't show the new(er) posts.

Zachery 09-04-2003 12:27 PM

hmm my only thought as to why this might be happening is , have you upgraded your vB as of late?


All times are GMT. The time now is 10:30 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.04696 seconds
  • Memory Usage 1,845KB
  • 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
  • (7)bbcode_php_printable
  • (6)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