vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Toplist (https://vborg.vbsupport.ru/showthread.php?t=98646)

derekivey 09-10-2006 01:47 AM

Quote:

Originally Posted by DementedMindz
I have a strange problem in admincp when someone submits a site and I go to approve it I get this. There are %1$s sites in the Toplist to be validated. To view and validate them, go here. Then when I recieve the email it dont show the site it shows this.

Site Name: Array[sitename]
URL: Array[url]
Description: Array[description]
Username: Wicked

I'll take a look at this, it might be a bug. Looks like something went wrong with the construct_phrase() function.

Derek

EDIT: Yup, seems to be happening for me as well, I'll look into it.

DementedMindz 09-10-2006 02:10 AM

thanks wasnt sure if it was just me

Ninth Dimension 09-10-2006 02:15 AM

This addon is GREAT, everything I could imagine.. and more!!! Got it running on my vB3.6.0 site and it's working great.

One question, and I'm sure it's a silly one, but I just want to be sure... when you set the usergroup permissions, I assume the options of 'edit sites' and 'delete sites' options only apply to sites that that user has added?

A suggestion for an addition, to let the number of sites each user is allowed to add to be based on usergroup, rather than a global setting for all.

Anyway, great hack, looking forward to any and all updates you make :D

derekivey 09-10-2006 03:46 PM

Quote:

Originally Posted by Ninth Dimension
This addon is GREAT, everything I could imagine.. and more!!! Got it running on my vB3.6.0 site and it's working great.

One question, and I'm sure it's a silly one, but I just want to be sure... when you set the usergroup permissions, I assume the options of 'edit sites' and 'delete sites' options only apply to sites that that user has added?

A suggestion for an addition, to let the number of sites each user is allowed to add to be based on usergroup, rather than a global setting for all.

Anyway, great hack, looking forward to any and all updates you make :D

Yes, the edit site and delete site permissions are just for the sites added by that user. The last option (I think it's called administrate sites or moderate sites) allows that usergroup to edit each site, even if it wasn't submitted by them.

Thanks for the suggestion about changing the limit to be based on usergroups instead of being a global setting. I will try and add that to the next version as well.

Derek

Ninth Dimension 09-10-2006 04:47 PM

I have another suggestion, if you don't mind... How about the ability for the IN page to be diffrent, based on which category the site is in?

For example, I'm running two sites, TheICE.co.uk and UnknownTales.net. What I'd like to do, in theory, is set-up a category for each of these sites, and when someone clicks on my button, it checks which category the site is in, and forwards it to the relevent page.

Of course, extended options to this feature could be the ability to define diffrent link-in buttons for each category, as well as the ability for the top-ten toplist sites data, based on category, to be displayed on a non-vB page (I might even try building that one myself).

Anyway, I hope you like the ideas :D

derekivey 09-10-2006 07:08 PM

Quote:

Originally Posted by Ninth Dimension
I have another suggestion, if you don't mind... How about the ability for the IN page to be diffrent, based on which category the site is in?

For example, I'm running two sites, TheICE.co.uk and UnknownTales.net. What I'd like to do, in theory, is set-up a category for each of these sites, and when someone clicks on my button, it checks which category the site is in, and forwards it to the relevent page.

Of course, extended options to this feature could be the ability to define diffrent link-in buttons for each category, as well as the ability for the top-ten toplist sites data, based on category, to be displayed on a non-vB page (I might even try building that one myself).

Anyway, I hope you like the ideas :D

Nice suggestion! I will see if I can add it to the next version. Also in the next version I will have a file that will output XML and RSS feeds with the top x sites (you specify this in the url). I will also be making a simple API to show that stuff on a non-vB page.

Derek

Derek

Ninth Dimension 09-10-2006 10:25 PM

Quote:

Originally Posted by derekivey
Also in the next version I will have a file that will output XML and RSS feeds with the top x sites (you specify this in the url). I will also be making a simple API to show that stuff on a non-vB page.

So based on the query in the URL, you get to choose which category you wish to display... This sounds fantastic :D I assume it'll contain all the info you see on the main toplist site, as well as things like the buttons.

While I'm here, I'm interested... The veryify option you have, to check that the user had put the code on their site - exactly how does this work? I should imagine it goes to the site and looks for something, but what exactly does it look for?

Seriously, I'm blown away by how good this hack is.... keep up the good work :D

derekivey 09-10-2006 11:08 PM

Yes, that is correct :).

Chicago_VLNU_4s 09-11-2006 12:54 AM

i had to load a backup of my site and last time i backed up was BEFORE i added this hack.. heres the error i'm getting.

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
CREATE TABLE `toplist_ratings` (
`id` int(10) NOT NULL auto_increment,
`site_id` int(10) NOT NULL default '0',
`username` varchar(255) NOT NULL default '',
`rating` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;;

MySQL Error : Table 'toplist_ratings' already exists
Error Number : 1050
Date : Sunday, September 10th 2006 @ 09:42:03 PM
Script : http://www.offthaave.com/forums/admincp/plugin.php
Referrer : http://www.offthaave.com/forums/admi...?do=productadd
IP Address : **.*.***.**
Username : 4 CORNER HUSTLA
Classname : vB_Database
so, there's site ratings that have been made in the "plugin.php" that's holding me back from re-importing the product. Any ideas on what i can do?

derekivey 09-11-2006 12:57 AM

Either delete all of the toplist_ tables, or you will have to manually edit the product XML file to remove the confilicting tables from it since they already exist. I will have better install code in the next version so these errors shouldn't show then.

Derek


All times are GMT. The time now is 08:14 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.02339 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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