vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links and Files Database (https://vborg.vbsupport.ru/showthread.php?t=60403)

13th_Disciple 02-28-2004 06:13 PM

pm a mod or admin and ask them to move it to the proper area of full release forums..

AndrewD 03-02-2004 10:12 AM

This has now gone to full release 1.0 and moved to the main hack forum

Zhin Jio 03-02-2004 08:23 PM

I'm having only one issue. It appears that any attempt to 'edit' an existing category automatically sets its catforum to 0. Since I'm not using forum based permissions, I'd like it to remain -999. I'm going to do some more looking around, but this creates some pretty odd behavior.

Otherwise, fantastic hack. I've been waiting for this one to appear. Install was smooth. I've made a slight mod to use to use 'star' images instead of a number rating, since I'm already using those star images on the page elsewhere, and they're cached. Nice and quick.

Installed.

- ZJ

trilOByte 03-02-2004 11:11 PM

Excellent Hack - fantastic.

[high]* trilOByte clicks install
[/high]

One problem though, I inseted a category as a sub category, when I wanted it as a parent. I tried to move it and got a nopermission error (I'm primary admin, group 6), every attempt to acces thereafter and I get nopermission (I have permissions set to a -ve value). I deleted the category (catid = 3) using phpMyadmin (does only having catid's 1,2,4 cause a problem?) and everything else seems to work OK. I dont know why this happened, just thought I'd bring it to your attention.

Thanks for a great hack. :)

trilOByte 03-02-2004 11:18 PM

Quote:

Originally Posted by Zhin Jio

I've made a slight mod to use to use 'star' images instead of a number rating, since I'm already using those star images on the page elsewhere, and they're cached. Nice and quick.

Installed.

- ZJ

What's that mod? I'd like to do that myself. ;)

trilOByte 03-02-2004 11:57 PM

Oops, fairly big problem - relating to my post on the previous page. If I attempt to edit any of the categories, I get a nopermission error and the category vanishes from the listing. I cant access the category thereafter. It shows in the statistics, but that is the only place I can see evidence of it's existance - aside from the dB itself.

As I said before, I'm primary admin, userid = 1, usergroup = 6. Changing permissions from a -ve value to +ve and specifying forums, makes no difference.

AndrewD 03-03-2004 04:18 AM

Quote:

Originally Posted by trilOByte
Excellent Hack - fantastic.

[high]* trilOByte clicks install
[/high]

One problem though, I inseted a category as a sub category, when I wanted it as a parent. I tried to move it and got a nopermission error (I'm primary admin, group 6), every attempt to acces thereafter and I get nopermission (I have permissions set to a -ve value). I deleted the category (catid = 3) using phpMyadmin (does only having catid's 1,2,4 cause a problem?) and everything else seems to work OK. I dont know why this happened, just thought I'd bring it to your attention.

Thanks for a great hack. :)

OK, I'll try to track this down - there's a couple of people finding that something goes wrong with editing categories. Thanks.

Natch 03-03-2004 04:53 AM

Quote:

Originally Posted by ???`S?LV?R???`
alright i understand all that... but what if they were on a custom page on vbindex, that rule wouldnt apply anymore right?

The links will display on the vBIndex front page with my addon regardless of permissions, but if a user does not have permission to download, then the link will point to a standard vB "No Permissions" page ...

Zhin Jio 03-03-2004 06:02 AM

Quote:

Originally Posted by trilOByte
What's that mod? I'd like to do that myself. ;)

Two steps: In the 'ratebit' template, change:
Code:

<br /><span class="smallfont">rated <b>$linkrate</b> star</span>
to:
Code:

<br /><span class="smallfont">rated: $linkrate</span>
Then, in the local_links.php file, find:
PHP Code:

                if (isset($links_totrate[$linkid])) {
                        
$linkrate round($links_totrate[$linkid] / $links_numrate[$linkid]);
                        eval(
"\$linkratebit = \"".fetch_template('links_ratebit')."\";"); 

and change it to:
PHP Code:

                if (isset($links_totrate[$linkid])) {
                        
$lr round($links_totrate[$linkid] / $links_numrate[$linkid]);
                        
$linkrate "";
                        
$i 0;
                        while ( 
$i $lr ) {
                                
$linkrate $linkrate '<img src="http://pebkac.trippy.org/forums/images/stars/level1.gif"> ';
                                
$i++;
                        }
                        eval(
"\$linkratebit = \"".fetch_template('links_ratebit')."\";"); 

Obviously, use your own URL to the star image. This isn't fancy, but it works. Hope that helps...

- ZJ

Zhin Jio 03-03-2004 06:04 AM

Quote:

Originally Posted by AndrewD
OK, I'll try to track this down - there's a couple of people finding that something goes wrong with editing categories. Thanks.

Yeah, I went as far as finding that this changed the catforum to '0', but not *why* it was doing this. Thanks for looking into this. It seems to apply to making *any* edit to a category... primary/secondary descriptions, parent, etc.

I did look in the code. There was a variable 'pforum' that is being saved to the catforum column in the db. Is that right variable? Was it initialized?

I'll butt out now *grin*....

- ZJ


All times are GMT. The time now is 10:58 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.01961 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)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