Page 1 of 3 123 LastLast
Results 1 to 15 of 37

Thread: Make your detail page spidered

  1. #1
    Join Date
    Sep 2001
    Posts
    170

    Default Detail Page

    Hi

    I am having problems getting my detail pages crawled by google
    and have just read that google does not crawl php id sessions and was wondering if this is the problem with the detail page

    http://......./detail.php?id=109

    So my question is how can I change the "id" part of the address - ie change it to something else like "s"

    I have had a look around in google at other indexu sites and I don't think I am the only one have this problem, but did notice that someone had changed the "id" to "u" and their detail pages where listed

    Has anyone got any ideas?

    Regards

  2. #2
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default ;)

    ai,

    we are working for a hack that shows /category/1, review/1, detail/1
    If it will work I will post a demo.
    But if I have to pay some dollars more for it, I will take some small money with Paypal for it.

    Greetings
    Frank

  3. #3
    Join Date
    Jul 2002
    Posts
    9

    Default

    I've been trying to fix this myself! But with no luck Dody or Sofiah do you guys have the answer?

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Perhaps, google will exclude pages with "id=" in url. Yes, I never see google result with ?id=xxx .
    If you want to change id to any text, it should be very easy.

    Put these lines in about row 56
    PHP Code:
        global $linkid;
        if(empty(
    $id)) $id $linkid
    Instead detail.php?id=xxx, it will make detail.php?linkid=xxx

    The code still hold compatibility with detail.php?id=xxx way. You may need to change other template to refer to detail.php?linkid=xxx even won't result any error. But it will make google spider your detail page with detail.php?linkid=xxx


  5. #5
    Join Date
    Sep 2001
    Posts
    170

    Default

    Thanks Dody

    I have made the changes and will now wait for google to come crawling!

    Regards

  6. #6
    Join Date
    Jan 2002
    Posts
    279

    Default

    I tried this on the old version of Indexu v3.04 and couldn't get it to work. How could I get it to work with it?

    Thanks,

    Craven

  7. #7
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    craven, it should work with 3.0.4 too. Just edit detail.php like is instructed above. And edit rows.html, change detail.php?id=<%link_id%> to detail.php?linkid=<%link_id%>

  8. #8
    Join Date
    Jan 2002
    Posts
    279

    Default

    Dody,

    When I try chaning these I always get the following errors?

    Detail Page error

    Fatal error: Call to a member function on a non-object in /home/httpd/mysite.com/html/lib/link.class.php on line 2562

    Go.php error

    Fatal error: Call to a member function on a non-object in /home/httpd/mysite.com/html/lib/link.class.php on line 2576


    Is there something that I need to change in link.class.php or do you think I'm doing something wrong?

    Craven

  9. #9
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    36

    Default Re: ;)

    Originally posted by Frank71
    ai,

    we are working for a hack that shows /category/1, review/1, detail/1
    If it will work I will post a demo.
    But if I have to pay some dollars more for it, I will take some small money with Paypal for it.

    Greetings
    Frank


    much cheaper

    you only have to use mod-rewrite
    ------------------------------------------------
    since I could listen i was ordered to talk - since i could talk i was ordered to listen
    ------------------------------------------------

  10. #10
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default post it...

    ai,

    hm, than post it how to do

    I'm using FORCE... in htaccess and some changes in the files...

    Frank

  11. #11
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    36

    Default Re: post it...

    Originally posted by Frank71
    ai,

    hm, than post it how to do

    I'm using FORCE... in htaccess and some changes in the files...

    Frank
    http://httpd.apache.org/docs/mod/mod_rewrite.html

    BUT: Your host must support mod-rewrite

    Last edited by Heiko; 05-15-2003 at 08:07 AM.
    ------------------------------------------------
    since I could listen i was ordered to talk - since i could talk i was ordered to listen
    ------------------------------------------------

  12. #12
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Fatal error: Call to a member function on a non-object in /home/httpd/mysite.com/html/lib/link.class.php on line 2562
    Craven, how do you call detail.php?
    detail.php?linkid=349 ??

    You can also attach your detail.php in this board so I can see what's wrong in your code.

    Go.php error
    Fatal error: Call to a member function on a non-object in /home/httpd/mysite.com/html/lib/link.class.php on line 2576
    I think it's no need to change go.php, because it's simply redirection and counter trigger, have no any content. Useless for google.

    BUT: Your host must support mod-rewrite
    Yes, you can do with this apache mod. But not all webhost support this. I myself never use it before.

  13. #13
    Join Date
    Jan 2002
    Posts
    279

    Default

    Here it is! I've tried several different locations but its still not working! Help me! I'm going crazy....

    $category_path = $category_obj->GetCategoryPath($cat,"");
    $category_path = $category_obj->separator.$category_path.$category_obj->separator;

    return $category_path;
    }

    function ShowDetailPage() {

    // vars global configuration

    global $dbServer, $dbHostname, $dbUsername, $dbPassword, $dbName, $theme_name,
    $theme_path, $rev_max_rows, $rev_max_pages, $rev_max_chapters, $category_separator;

    // vars url & form
    global $id;

    global $linkid;
    if(empty($id)) $id = $linkid;


    // vars messages
    global $msg;

    // vars template


    $links_obj = new clsLink;
    $links_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassw ord,$dbName);

    $links_obj->query = "select * from idx_link where link_id = $id";
    $links_obj->table_name = "idx_link";
    $links_obj->category_table_name = "idx_category";
    $links_obj->review_table_name = "idx_review";
    $links_obj->category_separator = $category_separator;
    $links_obj->max_rows = 1
    Last edited by craven; 05-15-2003 at 09:17 PM.

  14. #14
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    I added this hack, but I notice the link_title is not showing up. How do you get the link title back?

  15. #15
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Craven, it's strange. Are you using 3.1? Here where I put the code

    PHP Code:
    function ShowDetailPage() {

      
    // vars global configuration

      
    global $conn$dbServer$dbHostname$dbUsername$dbPassword$dbName$theme_name,
        
    $theme_path$rev_max_rows$rev_max_pages$rev_max_chapters$category_separator;
      
      
    // vars url & form
      
    global $id;
        
      
    // vars messages
      
    global $msg;
      
      
    // vars template
        
    global $link_detail,$pagination,$review_rows,$ofc_review;
        
        global 
    $linkid;
        if(empty(
    $id)) $id $linkid;


      
    $links_obj = new clsLink;
      
    $links_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassword,$dbName); 

Similar Threads

  1. affiliate link in url on detail page
    By morgankd in forum v5.x
    Replies: 4
    Last Post: 05-19-2004, 11:52 PM
  2. Replies: 7
    Last Post: 01-04-2004, 08:19 AM
  3. Random 10 links on Detail page.
    By at00m in forum v3.2
    Replies: 11
    Last Post: 12-04-2003, 11:38 AM
  4. Detail page instead of URL directly.
    By daweb in forum v5.x
    Replies: 5
    Last Post: 07-12-2003, 09:59 AM
  5. links showing but no detail page follows
    By janewest in forum v5.x
    Replies: 3
    Last Post: 07-02-2003, 07:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •