Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 10 of 46

Thread: Sitemap Generator integration

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #34

    Default

    Same problem as usually. You should start thinking easy, just provide FINISHED code for every need.

    I try to edit it, but it doesnt work. Look how much ppl in this thread has problems, just make some samples like:

    Sitemap without SEO links

    Sitemap with SEO Links

    Sitemap without SEO links, multiple pages

    Sitemap with SEO Links, multiple pages

    Would save you alot of time.

    How i understand your tutorial i edited the .php this way:

    Code:
                	vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
    $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(  
    //additional code 
    require_once(DIR. '/includes/vbenterprisetranslator_functions_vbseo.php');
    $alanguages = array ('en','fr'); 
    if(!$archived) { 
      $strlenhost = strlen($vbseo_vars['bburl']."/"); 
      $currentthreadurl = vbseo_url_thread($threadrow, %p, $archived);
      $currentthreadurl_before = substr($currentthreadurl,0,$strlenhost);
      $currentthreadurl_after = "/".substr($currentthreadurl,$strlenhost);
      $lastpost =& $threadrow['lastpost'];
      $vbseo_stat['t'] += sizeof($alanguages);
      foreach($alanguages as $language) { 
        vbseo_add_url($currentthreadurl_before.$language.$currentthreadurl_after, $prior, $lastpost, $freq); 
      } 
    }   
    //end additional code  
    
        			for($p=1; $p<=$totalpages; $p++)
    But it isnt working...

    What problems i found?

    1.) FIND "vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");"

    This string doesnt exist. Theres "only" "vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");"

    If i would add it where you says it breaks the code.

    2.) other steps are okay and understandable.

    3.) OPTIONAL:
    If you want to add to sitemap also links for other thread pages (if thread have several pages), then additional code from last step must be added in other place - BEFORE:
    PHP Code:
    $vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
    Also in this additional code you have to change 1 to $p.

    This is absolutly not understandable. I dont know what to do. I cant understand it simply. Just clarify what and where...
    Last edited by r.dziadusz; 14-04-12 at 16:20. Reason: BBCode corrected

Tags for this Thread

Posting Permissions

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