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)

AndrewD 06-28-2005 03:50 PM

Quote:

Originally Posted by LeeWicKeD
hiho

just updated to 1.60c and now i can't add any new links. it always shows up a message "no category specified"

and in the box "parent categories" there are no categories listed? what did i wrong?

:(

I'll bet that you didn't upload the new templates, or put them in the wrong place. I can reproduce your error exactly by installing the 1.60 code and the 1.55 templates

AndrewD 06-28-2005 04:04 PM

Quote:

Originally Posted by CHIngs
I updaraded to the latest and I have to say its the BEST yet. But I have one question, I set the timeout_hit_allow to 300 seconds (5 minutes), though I would like it in minutes (suggestion for next version), its no big deal. But I want to show them how much time they have left. The script must be storing that time limit somewhere in the database and I want to show it on the page where it says "Please wait before trying another access - timeout period (seconds): 300."

I want to show it as "Please wait before trying another access - timeout period (seconds): 300, you have *** seconds left for you next download" or something like that. Can anyone please help me out here :).

Thanks.

This is an easy change to make. Two edits:

edit local_links.php. Find these lines

Code:

// Prevent multiple hits within specified timeout
        if ($links_defaults["timeout_hit_allow"]>0) {
                $timeout = $time - $links_defaults["timeout_hit_allow"];
                $jumplink = $DB_site->query("
                        SELECT userid, usertime FROM ".THIS_TABLE."linksdownloads
                WHERE userid='".$bbuserinfo[userid]."'
                ORDER BY usertime DESC
                LIMIT 1
        ");
            while ($jump=$DB_site->fetch_array($jumplink)) {
                if ($jump['usertime'] > $timeout) {
                    eval(print_standard_error($vbphrase['ll_wait'].' '.$links_defaults["timeout_hit_allow"],0));
                    exit;
                }
            }
        }

and replace with
Code:

// Prevent multiple hits within specified timeout
        if ($links_defaults["timeout_hit_allow"]>0) {
                $timeout = $time - $links_defaults["timeout_hit_allow"];
                $jumplink = $DB_site->query("
                        SELECT userid, usertime FROM ".THIS_TABLE."linksdownloads
                WHERE userid='".$bbuserinfo[userid]."'
                ORDER BY usertime DESC
                LIMIT 1
        ");
            while ($jump=$DB_site->fetch_array($jumplink)) {
                $timeleft = $jump['usertime'] - $timeout;
                if ($timeleft>0) {
                                $wait = construct_phrase($vbphrase['ll_wait'], $timeleft, $links_defaults["timeout_hit_allow"]);
                                eval(print_standard_error($wait,0));
                    exit;
                }
            }
        }

Then edit local_links_phrases.xml and find the line
Code:

                <phrase name="ll_wait"><![CDATA[Please wait before trying another access - timeout period (seconds):]]></phrase>
and replace by
Code:

                <phrase name="ll_wait"><![CDATA[Please wait {1} seconds. Timeout period between accesses: {2} seconds]]></phrase>
I'll make this a permanent fix for version 2.00 but I don't plan any more changes to 1.60 unless there are serious bugs.

CHIngs 07-02-2005 04:21 AM

Possible BUG...NOTHING SERIOUS... Just a suggestion for a FIX in 2.0...

When I rate a file, the rating is correctly logged and all. But unlike the forum's rating system, your rating system allows members to CHANGE the rating once they have given a rating. Its no big deal but I think in your version 2.0 should have an option in the ADMIN PANEL where the admin can set to allow the members to rate once OR more than once, this way its more flexible depending on the admin's needs.

AndrewD 07-02-2005 04:33 AM

Quote:

Originally Posted by CHIngs
Possible BUG...NOTHING SERIOUS... Just a suggestion for a FIX in 2.0...

When I rate a file, the rating is correctly logged and all. But unlike the forum's rating system, your rating system allows members to CHANGE the rating once they have given a rating. Its no big deal but I think in your version 2.0 should have an option in the ADMIN PANEL where the admin can set to allow the members to rate once OR more than once, this way its more flexible depending on the admin's needs.

Yes, this was by design - actually they can't give more than one rating - only the latest one that is counted. I'll note your suggestion - thanks.

LeeWicKeD 07-05-2005 01:19 PM

ok i have now fully translated 1.60c to german ;)

@andrew: do you want it via email or as an attachment in the forum here?

NxTek 07-07-2005 09:24 PM

Quote:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM local_linksadmin mysql error: Table 'forums.local_linksadmin' doesn't exist

mysql error number: 1146

Date: Thursday 07th of July 2005 05:21:47 PM
Script: http://www.xxxxxxxxxx.com/forums/local_links.php
Super. heh

lovevn 07-19-2005 04:49 AM

Hi,

This is every good hack. I installed version 1.3 and did not use it because I bought the Vbadvanced links directory. But now I tested the newest version and realized that it is excellent now and I want to use it for my music page.
Things work well. Howerver,I want to give a user group pessmission for ONLY listen(play )the music file but not to DOWNLOAD(it mean that the hyper link to the music file will be hidden). If anyone know how to do this please help me!

Thanks a lot!

AndrewD 07-23-2005 03:38 PM

Quote:

Originally Posted by LeeWicKeD
ok i have now fully translated 1.60c to german ;)

@andrew: do you want it via email or as an attachment in the forum here?


Sorry for the delay - I've been on holiday. Could you post the translation here? I'll pick it up and include it in the official release.

AndrewD 07-23-2005 03:43 PM

Quote:

Originally Posted by lovevn
Hi,

This is every good hack. I installed version 1.3 and did not use it because I bought the Vbadvanced links directory. But now I tested the newest version and realized that it is excellent now and I want to use it for my music page.
Things work well. Howerver,I want to give a user group pessmission for ONLY listen(play )the music file but not to DOWNLOAD(it mean that the hyper link to the music file will be hidden). If anyone know how to do this please help me!

Thanks a lot!

It is an easy edit to the links_linkbit template - you just need to remove the hyperlinks to local_links.php?action=jump - let me know if you need help. I'm not going to make any further releases to the vb 3.0x version of this hack - efforts concentrate on the 3.5x version and I'll include this as an option.

AndrewD 07-23-2005 03:44 PM

Quote:

Originally Posted by NxTek
Super. heh

Can't help you with this ;)


All times are GMT. The time now is 04:02 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.01957 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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