Edit Site-Sift Deep Links in Admin Panel

Discussion in 'Directories' started by an0n, May 6, 2007.

  1. #1
    As everyone knows terryuk of linksjuice.com had wrote a tutorial on how to do site-sift deep links.

    Well I was toying on popotalk's IndexSniff Web Directory(site-sift driven) and he asked if i could install the deep links for him and so I did.
    Well anywho, I thought that is sucked for erroneous submissions that would make you have to go into phpMyAdmin in order to fix it, so I went ahead and just figured how to add it all into the admin for easy edits. Nothing really rocket science about it, but anywho, i will go by terryuk's naming convention so things don't get mixed up.

    this is easy editing, but still, back your stuff up before you do any editing:

    goto and open up: admin/pages/edit.php

    line: 45 (the insert)

    Replace it with this one.
    
      $updateSQL = sprintf("UPDATE pages SET rLink=%s, rLinkStatus=%s, url=%s, title=%s, description=%s, keywords=%s, active=%s," .$pdatestr . "exp=%s, mid=%s, ip=%s, catID=%s, o_url1=%s, o_url2=%s, o_url3=%s, o_url4=%s, o_url5=%s, o_title1=%s, o_title2=%s, o_title3=%s, o_title4=%s, o_title5=%s WHERE id=%s",
                           GetSQLValueString($_POST['rLink'], "text"),
                           GetSQLValueString($_POST['rlstat'], "text"),
                           GetSQLValueString($_POST['url'], "text"),
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['keywords'], "text"),
                           GetSQLValueString($_POST['active'], "text"),
    					   GetSQLValueString($_POST['exp'], "int"),
    					   GetSQLValueString($_POST['mid'], "int"),
                           GetSQLValueString($_POST['ip'], "text"),
                           GetSQLValueString($_POST['catID'], "int"),
    					   GetSQLValueString($_POST['o_url1'], "text"),
    					   GetSQLValueString($_POST['o_url2'], "text"),
    					   GetSQLValueString($_POST['o_url3'], "text"),
    					   GetSQLValueString($_POST['o_url4'], "text"),
    					   GetSQLValueString($_POST['o_url5'], "text"),
    					   GetSQLValueString($_POST['o_title1'], "text"),
    					   GetSQLValueString($_POST['o_title2'], "text"),
    					   GetSQLValueString($_POST['o_title3'], "text"),
    					   GetSQLValueString($_POST['o_title4'], "text"),
    					   GetSQLValueString($_POST['o_title5'], "text"),
    					   GetSQLValueString($_POST['id'], "int"));
    
    Code (markup):
    scroll down to like: 116 and drop this in there:

    
    			  <tr id="row1">
    			  <td align="right" nowrap class="colTextNoBG">URL 1:</td>
    			  <td class="rowTextNoBG"><input name="o_url1" type="text" size="50" maxlength="254" value="<?php echo $row_page['o_url1']; ?>"></td>
    			  </tr>
    			  <tr id="row2">
    			  <td align="right" nowrap class="colTextNoBG">Title 1:</td>
    			  <td class="rowTextNoBG"><input id="title1" name="o_title1" type="text" size="50" maxlength="100" value="<?php echo $row_page['o_title1']; ?>"></td>
    			  </tr>
    			  <tr id="row3">
    			  <td align="right" nowrap class="colTextNoBG">URL 2:</td>
    			  <td class="rowTextNoBG"><input name="o_url2" type="text" size="50" maxlength="254" value="<?php echo $row_page['o_url2']; ?>"></td>
    			  </tr>
    			  <tr id="row4">
    			  <td align="right" nowrap class="colTextNoBG">Title 2:</td>
    			  <td class="rowTextNoBG"><input id="title2" name="o_title2" type="text" size="50" maxlength="100" value="<?php echo $row_page['o_title2']; ?>"></td>
    			  </tr>
    			  <tr id="row5">
    			  <td align="right" nowrap class="colTextNoBG">URL 3:</td>
    			  <td class="rowTextNoBG"><input name="o_url3" type="text" size="50" maxlength="254" value="<?php echo $row_page['o_url3']; ?>"></td>
    			  </tr>
    			  <tr id="row6">
    			  <td align="right" nowrap class="colTextNoBG">Title 3:</td>
    			  <td class="rowTextNoBG"><input id="title3" name="o_title3" type="text" size="50" maxlength="100" value="<?php echo $row_page['o_title3']; ?>"></td>
    			  </tr>
    			  <tr id="row7">
    			  <td align="right" nowrap class="colTextNoBG">URL 4:</td>
    			  <td class="rowTextNoBG"><input name="o_url4" type="text" size="50" maxlength="254" value="<?php echo $row_page['o_url4']; ?>"></td>
    			  </tr>
    			  <tr id="row8">
    			  <td align="right" nowrap class="colTextNoBG">Title 4:</td>
    			  <td class="rowTextNoBG"><input id="title4" name="o_title4" type="text" size="50" maxlength="100" value="<?php echo $row_page['o_title4']; ?>"></td>
    			  </tr>
    			  <tr id="row9">
    			  <td align="right" nowrap class="colTextNoBG">URL 5:</td>
    			  <td class="rowTextNoBG"><input name="o_url5" type="text" size="50" maxlength="254" value="<?php echo $row_page['o_url5']; ?>"></td>
    			  </tr>
    			  <tr id="row10">
    			  <td align="right" nowrap class="colTextNoBG">Title 5:</td>
    			  <td class="rowTextNoBG"><input id="title5" name="o_title5" type="text" size="50" maxlength="100" value="<?php echo $row_page['o_title5']; ?>"></td>
    			  </tr>
    
    Code (markup):
    save it and you're done. now you can edit your deep links from within the admin if there is a problem.

    I hadn't seen anyone provide this, but if someone has, let me know and i'll provide them with full credit.

    :D
     
    an0n, May 6, 2007 IP
    terryuk, hsaleem, jmort732 and 2 others like this.
  2. popotalk

    popotalk Notable Member

    Messages:
    4,840
    Likes Received:
    522
    Best Answers:
    0
    Trophy Points:
    260
    #2
    Another FINE improvements from Rob. Thank you.
     
    popotalk, May 6, 2007 IP
  3. britishguy

    britishguy Prominent Member

    Messages:
    7,949
    Likes Received:
    892
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Another top OP
    Thanks for the 'heads up'
    :)
     
    britishguy, May 6, 2007 IP
  4. malcolm1

    malcolm1 Prominent Member

    Messages:
    7,148
    Likes Received:
    758
    Best Answers:
    0
    Trophy Points:
    310
    #4
    well im finally glad the boy in the bubble finally decided to work on other scripts also as i remeber you telling me if its not phpld you wouldnt touch it. So i have an adult directory that has your name written all over it lol

    Nice work an0n as always....

    thx
    malcolm
     
    malcolm1, May 6, 2007 IP
  5. popotalk

    popotalk Notable Member

    Messages:
    4,840
    Likes Received:
    522
    Best Answers:
    0
    Trophy Points:
    260
    #5
    I feel very special. :)
     
    popotalk, May 6, 2007 IP
  6. jl255

    jl255 Well-Known Member

    Messages:
    2,762
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    185
    #6
    tks for this initiative! will be installing it soon on my 2 directories...
     
    jl255, May 6, 2007 IP
  7. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #7
    Nice to see an0n working for site-sift too.. :)
     
    MeetHere, May 6, 2007 IP
  8. wwws

    wwws Notable Member

    Messages:
    3,385
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    225
    #8
    What a nice gesture An0n and also thanks to Terry for providing the tuts and An0n for improving it or making it easy.

    Thanks guy's!!!
     
    wwws, May 6, 2007 IP
  9. jmort732

    jmort732 Peon

    Messages:
    543
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Very nice.
    Thank you for sharing, will play around with it on my site-sift directory.

    Morty
     
    jmort732, May 6, 2007 IP
    britishguy likes this.
  10. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #10
    Anyone give it a try and did everything work out for you without any problems?
     
    an0n, May 6, 2007 IP
  11. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #11
    Yeah I installed it on http://www.herdir.com/ and everything worked.

    Thanks Rob!
     
    Richie_Ni, May 7, 2007 IP
  12. wamchu

    wamchu Peon

    Messages:
    2,133
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I can see one problem on http://www.indexsniff.com if click on Sponsor then paid (which dose not have deeplinks) the deep link dose not despair. Is should be a easy fix for anOn i assume.
     
    wamchu, May 7, 2007 IP
    an0n likes this.
  13. jetbrains

    jetbrains Well-Known Member

    Messages:
    1,747
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    133
    #13
    Cool! Rob, thanks for you sharing.
     
    jetbrains, May 7, 2007 IP
  14. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #14
    This thread is for the admin section, not the submit. But thanks for letting me know about the submit page. 10 second fix ;)
    I'll give ya some green for doing popotalk's job hahaha :p

    Rob
     
    an0n, May 7, 2007 IP
  15. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #15
    Nice work :) I never got around to making that part of the mod.. i'll be installing it for sure
     
    terryuk, May 7, 2007 IP
  16. iPod

    iPod Notable Member

    Messages:
    3,013
    Likes Received:
    409
    Best Answers:
    0
    Trophy Points:
    205
    #16
    Yo Babes! You did it again. Nice work :D
    Glad to see the beginning of a revolution here :)

    Now i have more solid reason to make more directories on sitesift :D

    Well done and great thanks!
     
    iPod, May 7, 2007 IP
  17. popotalk

    popotalk Notable Member

    Messages:
    4,840
    Likes Received:
    522
    Best Answers:
    0
    Trophy Points:
    260
    #17
    popotalk, May 7, 2007 IP