Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Need suport - Can't get Hacks Creator to Help Details »»
Need suport - Can't get Hacks Creator to Help
Version: , by JakeC JakeC is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-23-2003 Last Update: Never Installs: 0
 
No support by the author.

Is anyone familiar with DrkFusion's Links database hack? It's quite nice but I am having trouble with it. He is too busy working on his next release in order help figure out what is going on with my hack installation.

Basically whenever I add an apostrophe to the Title or the description of the link; the link will not be added to the database. It does not show up for moderation and therefore I don't even see it. My users are getting a little frustrated when the link that they submit does not show up in the database. Someone else was having the same problem and I tried the fix that they used but my code was different than theirs and it was not a simple cut and paste operation. Anyone have any ideas? If I need to post any code let me know. Thanks in advance.

Jake

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-23-2003, 08:04 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paste just the part that is giving you trouble and I think it might just need an unhtmlcharacters in a place ot two.
Reply With Quote
  #3  
Old 01-24-2003, 09:55 PM
JakeC JakeC is offline
 
Join Date: Sep 2002
Location: Yakima, WA
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not too sure on how to do that. Could you be more specific?

Thanks

JakeC
Reply With Quote
  #4  
Old 01-24-2003, 10:49 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paste whatever part of the code that is giving you problems, in here, and I will see if I can figure out what is happening.
Reply With Quote
  #5  
Old 01-24-2003, 11:57 PM
JakeC JakeC is offline
 
Join Date: Sep 2002
Location: Yakima, WA
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the code that seems to be at the root of the problem:

PHP Code:
// #################### Do Add New ####################
if ($HTTP_POST_VARS['action']=="doaddnew") {
if (
$catid == '0'){
    eval(
"dooutput(\"".gettemplate('drkslinks_error2')."\");");
}elseif (
$linkname == ''){
    eval(
"dooutput(\"".gettemplate('drkslinks_error2')."\");");
}elseif (
$linkurl == 'http://' or $linkurl == ''){
    eval(
"dooutput(\"".gettemplate('drkslinks_error2')."\");");
}elseif (
$linkdesc == ''){
    eval(
"dooutput(\"".gettemplate('drkslinks_error2')."\");");
}else{
 if (
$valid == '1'){
     
$vd "0";
 }else{
     
$vd "1";
 }
$result mysql_query("INSERT INTO gportal_weblinkslink (catagoryid, linkname, linkurl, linkdesc, valid) VALUES ('$catid', '".addslashes(htmlspecialchars($linkname))."', '$linkurl', '$linkdesc', $vd)");
     eval(
"dooutput(\"".gettemplate('drkslinks_doneaddlink')."\");");
}

Thanks in advance

JakeC
Reply With Quote
  #6  
Old 01-25-2003, 01:21 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try changing this:

PHP Code:
$result mysql_query("INSERT INTO gportal_weblinkslink (catagoryid, linkname, linkurl, linkdesc, valid) VALUES ('$catid', '".addslashes(htmlspecialchars($linkname))."', '$linkurl', '$linkdesc', $vd)");
     eval(
"dooutput(\"".gettemplate('drkslinks_doneaddlink')."\");"); 
To this:

PHP Code:
$result mysql_query("INSERT INTO gportal_weblinkslink (catagoryid, linkname, linkurl, linkdesc, valid) VALUES ('$catid', '".addslashes($linkname)."', '$linkurl', '".addslashes($linkdesc)."', $vd)");
     eval(
"dooutput(\"".gettemplate('drkslinks_doneaddlink')."\");"); 
and let me know what you get.
Reply With Quote
  #7  
Old 01-25-2003, 01:44 AM
JakeC JakeC is offline
 
Join Date: Sep 2002
Location: Yakima, WA
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still not working. It's working if the apostrophe is in the title but not the description.

JakeC
Reply With Quote
  #8  
Old 01-25-2003, 01:53 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to try it again. I changed the code above after I posted it. You might have tried the old code. Try what I have up there now and let me know.
Reply With Quote
  #9  
Old 01-25-2003, 02:56 AM
JakeC JakeC is offline
 
Join Date: Sep 2002
Location: Yakima, WA
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool! Thanks a bunch. Works like a charm. I appreciate it very much.

JakeC
Reply With Quote
  #10  
Old 01-25-2003, 08:35 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're very welcome.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:32 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.04390 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete