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)

DWZ 08-15-2002 10:35 PM

Quote:

Originally posted by DWZ
Yeah, that was my first guess. I used vBhacker to do the changes origanaly, and I just went over it again now, and it looks fine.
*bump* :(

NTLDR 08-15-2002 11:06 PM

Sorry DWZ, I thought that you meant that you looked over it and its fine.

Have you added any other hacks that require changes to usergroup.php as that may be what the problem is. The code you should have is:

PHP Code:

// ###################### Start insert #######################
if ($HTTP_POST_VARS['action']=="insert") {

  
//vbindex addon
  
$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,canview,canviewvbindex,showgroup,cansearch,canemail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caneditpost,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,canpublicevent,canpublicedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm,canwhosonline,canwhosonlineip,cangetattachment)
    VALUES (NULL,'"
.addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$canviewvbindex,$showgroup,$cansearch,$canemail,$canpostnew,$canmove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$caneditpost,$candeletepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpublicevent,$canpublicedit,$canthreadrate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm,$canwhosonline,$canwhosonlineip,$cangetattachment)");

  
$action="modify";

  echo 
"<p>Record added</p>";



Under the
PHP Code:

// ###################### Start insert ####################### 

Section, if thats for an unhacked 2.2.6, if you have that and it doesn't work you must have hacked usergroup.php before:

If so I hope you have a backup, restore that and the changes for the $DB_site->query bits make sure you add canviewvbindex after canview on all of them and $canviewvbindex after $canview in the second part.

NeRilkA 08-16-2002 08:33 PM

Hi everyone

i translate vbIndex 2 in French so i post my modifications :)

Enjoy :bunny: :cool:

ExAvIoUr 08-16-2002 10:27 PM

hey... i need to know.. will this work if i dont have the default Style as the one vbb comes with.. cuz like i have changed around the default style and stuf..?

NTLDR 08-16-2002 10:46 PM

Quote:

Originally posted by ExAvIoUr
hey... i need to know.. will this work if i dont have the default Style as the one vbb comes with.. cuz like i have changed around the default style and stuf..?
Yes, this will work if you have changed the style. Check out the demo site which shows how easy you can make it look like your forums.

drives fast 08-17-2002 06:28 AM

has anyone thought of changing the news to have a $maxchars option and it inserts a "read more" link at the bottom?

if someone makes a lenghtly post and someone makes another long one after that the center colum becomes quite long if set to show 5 and makes the left and right colums look out of place because they are now super short in comparrison.

also maybe a way to make a stickey thread stay on top on the vbindex and have the news post return to the top if it is replied to (on vbindex)

I noticed that if a post is made in the news forum it shows on top on vbindex and if someone makes another new thread it then shows on top but if the previous one is replied to it remains second in order on vbindex never to return to the top as it does in the forum itself.

same thing when you make a post stickey....in the forum it goes to the top of the list but on vbindex it moves down as other threads are posted.

just some thinking I was doing during testing

wadayallthink?

NTLDR 08-17-2002 05:14 PM

Quote:

Originally posted by drives fast
has anyone thought of changing the news to have a $maxchars option and it inserts a "read more" link at the bottom?
I plan to properly integrate this in a later version of the hack ;)

Quote:

also maybe a way to make a stickey thread stay on top
It would probably be easier to set vBindex to display a certain thread(s) in a block you specify.

Quote:

I noticed that if a post is made in the news forum it shows on top on vbindex and if someone makes another new thread it then shows on top but if the previous one is replied to it remains second in order on vbindex never to return to the top as it does in the forum itself.
It seems to me at least very illogical to have the latest news in any other order then it was posted in.

Quote:

same thing when you make a post stickey....in the forum it goes to the top of the list but on vbindex it moves down as other threads are posted.
Thats the point, to show the lastest threads posted. Although you could specify a block to have sticky threads from specific forum ids.

Donkeyballz 08-17-2002 06:19 PM

Hey, I have a problem with installing this hack, I get the next error:

Code:

start vBulletin original code
Warning: Cannot add header information - headers already sent by (output started at /home/endoria/frontwor/public_html/community/vbindex.php:1) in /home/endoria/frontwor/public_html/community/admin/functions.php on line 1604

I'm not very in coding with vB, so can you help me please :)

Thx

NTLDR 08-17-2002 06:35 PM

Does this line:

Code:

start vBulletin original code
Have 2 // in front of it in the PHP file? and can you post a few lines before and after that line for me to see?

drives fast 08-17-2002 08:31 PM

NTLDR,
you are correct in all your answers about the logical way it works.

however on my forum in the news forum there are news that we want to stay on top for certain periods of time and with the present situation the only way to get it back on top is to delete it and re-post it.

thank you for your reply...I will be looking forward to the $maxchars addition. I tried to do it myself but wasn't able to get it to work.

thanks again.


All times are GMT. The time now is 06:18 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.02019 seconds
  • Memory Usage 1,760KB
  • 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
  • (2)bbcode_code_printable
  • (2)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
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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