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-04-2004 01:15 PM

Quote:

Originally Posted by DeMiNe0
ermmm, the download is currupted. Can somone pleae upload a new one? Or send me a good one at demine0@digitaltoxicity.net?

The zip file d/l's and opens ok for me... What is happening to yours?

13th_Disciple 06-07-2004 02:36 AM

Quote:

Originally Posted by AndrewD
The zip file d/l's and opens ok for me... What is happening to yours?

When you get a no permission to access link error, there is no navbar or register button in the error box.. what template should I edit to at least have the navbar show? Also, what template for the error permission denied on accessing a link?

AndrewD 06-07-2004 04:02 PM

Quote:

Originally Posted by 13th_Disciple
When you get a no permission to access link error, there is no navbar or register button in the error box.. what template should I edit to at least have the navbar show? Also, what template for the error permission denied on accessing a link?

Unfortunately, these messages are all generated using print_standard_error, which uses the standard_error template. I don't think you will be able to change this to include a navbar - not least because there is not necessarily a navbar available at the point at which print_standard_error is called.

AndrewD 06-07-2004 04:05 PM

Quote:

Originally Posted by joeychgo
Well -- I come across site who "offer' to do a link trade-and ask me to link first. Ok, so I provide them with a link and send my info to them..... However they dont always provide that link back - so its important to verify that they actually linked you back.

Since its reasonable to expect a few days for the link to appear, it is easy to forget to check after a few days and veryify that link. So it would be nice to simply have a check box to let me know if I have already verified they linked me back.

How about using the moderation facility to achieve this? Enter your cross-links using an account that is required to have new entries moderated, then accept them once you've checked the status.

13th_Disciple 06-07-2004 06:12 PM

Quote:

Originally Posted by AndrewD
Unfortunately, these messages are all generated using print_standard_error, which uses the standard_error template. I don't think you will be able to change this to include a navbar - not least because there is not necessarily a navbar available at the point at which print_standard_error is called.

oh ok.. but i could go to the phrase and do a $vboptions[bburl]/register.php link in there somewhere, i guess..

would that be the correct assumption?

AndrewD 06-08-2004 04:22 AM

Quote:

Originally Posted by 13th_Disciple
oh ok.. but i could go to the phrase and do a $vboptions[bburl]/register.php link in there somewhere, i guess..

would that be the correct assumption?

Having had a couple of decent night's sleep, I realise what you're asking :tired:

We need to change one or two of the calls to print_standard_error to print_no_permission. I'll try it this evening. Sorry for the delay.

13th_Disciple 06-08-2004 01:25 PM

Quote:

Originally Posted by AndrewD
Having had a couple of decent night's sleep, I realise what you're asking :tired:

We need to change one or two of the calls to print_standard_error to print_no_permission. I'll try it this evening. Sorry for the delay.

Quite alright Andrew.. i appreciate your answers and your work on this..

The only other thing for this my members have requested is instead of all of the links appearing on one page, have it so when you click on one from the full list, it opens in it's own page.. I have thought about trying to mess with that a bit, but have had zero to no time myself..

again, thanks Andrew for this hack.. the only thing i would ever want to see added, would be an upload function.. :p

Ian Montgomerie 06-12-2004 09:10 PM

I found a bug, but I'm not sure how to fix it or even if it's fixable. If a user has an apostrophe in their user name, SQL gives an error when they try to insert into the database. Example:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL:

                INSERT INTO local_linksdownloads (linkid, linkurl, username, userid,
userip, userbrowser, usertime)

                VALUES (

                '54',

                'http://www.geocities.com/Area51/Corridor/2298/index.html',

                'Strategos' Risk',

                '290',

                '12.72.192.151',

                'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; AT&T CSM6.0)',

                1087061901

                )


AndrewD 06-13-2004 05:59 AM

Quote:

Originally Posted by Ian Montgomerie
I found a bug, but I'm not sure how to fix it or even if it's fixable. If a user has an apostrophe in their user name, SQL gives an error when they try to insert into the database.

Indeed, it's fixable. Sorry about that. I'll correct it in the next upload, which is currently being tested.

In the meantime, if you want a fix:
- Edit local_links.php.
- Find function record_hit($id, $url, $status), which in version 1.22 is at line 1827

Replace
PHP Code:

    $DB_site->query("
        INSERT INTO "
.THIS_TABLE."linksdownloads (linkid, linkurl, username, userid, userip, userbrowser, usertime) 
        VALUES ( 
        '"
.$id."', 
        '"
.$url."', 
        '"
.$username."', 
        '"
.$userid."',
        '"
.$userip."', 
        '"
.$userbrowser."', 
        
$time 
        ) 
    "
); 

with

PHP Code:

    $DB_site->query("
        INSERT INTO "
.THIS_TABLE."linksdownloads (linkid, linkurl, username, userid, userip, userbrowser, usertime) 
        VALUES ( 
        '"
.$id."', 
        '"
.$url."', 
        '"
.addslashes(htmlspecialchars($username))."', 
        '"
.$userid."',
        '"
.$userip."', 
        '"
.addslashes(htmlspecialchars($userbrowser))."', 
        
$time 
        ) 
    "
); 


13th_Disciple 06-14-2004 10:41 AM

Andrew, will the error page be changed to the no permission page in this next version?


All times are GMT. The time now is 03:58 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.01671 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)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