Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 32

Add-on for vBadvanced Gallery URLs

This is a discussion on Add-on for vBadvanced Gallery URLs within the Sitemap Features Archive forums, part of the vBulletin Links & Resources category; I would like to request an add-on module for including PhotoPost (was vBadvanced) Gallery URLs in my sitemap. Can the ...

  1. #1
    Member
    Real Name
    Joe
    Join Date
    Oct 2005
    Posts
    30
    Liked
    0 times

    Question Add-on for vBadvanced Gallery URLs

    I would like to request an add-on module for including PhotoPost (was vBadvanced) Gallery URLs in my sitemap.

    Can the vbseo_sm_vba.php add-on be modified to perform that operation?

    Thanks.
    Last edited by Ocean; 05-26-2006 at 04:01 PM.

  2. #2
    Junior Member
    Join Date
    Jul 2005
    Posts
    19
    Liked
    0 times
    Anything can be done with some code-hacking.

    I'd rather have this as a core-feature, I don't like modifying code and doing that seems like the only thing you could do.

  3. #3
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    The module support was added for just this sort of thing; so it *is* a core feature.

    Someone should be able to use the included CMPS module as a guide to make one for Gallery.

  4. #4
    Member
    Real Name
    Joe
    Join Date
    Oct 2005
    Posts
    30
    Liked
    0 times
    Is there anything (example links, etc.) I can provide to help this along?

  5. #5
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,361
    Liked
    540 times
    Blog Entries
    4
    I tried to modify the photopost addon for vba gallery but as i am not a php guru i am not sure if this will work Can someone check if this will work or not

    Code:
    <?
    	# vbSEO Google Sitemap Generator - PhotoPost Add On.
    	# Written by Ben Griffiths (http://www.fiatforum.com)
    	
    	# NOTE: THIS ONLY WORKS IF YOUR PHOTOPOST DB IS THE SAME AS YOUR VB ONE
    
    	# Full HTTP path to your gallery root (including trailing forwardslash)
    	$gallery_url = 'http://www.ayyas.com/galeri/';
    	
    	# Priority you want to assign to the sitemap pages
    	$sitemap_priority = 0.5;
    	
    	# How often you wish to flag for updates
    	$sitemap_update = 'weekly';
    
    	# PP Table Prefix
    	//$pp_tableprefix = 'pp_';
    
    
    	# DON'T EDIT PAST HERE #############################################
    	$adv_gallery_images = $db->query_read('SELECT id,lastpost,date FROM ' . TABLE_PREFIX . 'adv_gallery_images');
    	while ($adv_gallery_images = $db->fetch_array($adv_gallery_images))
    	{
    		$modified = $adv_gallery_images['lastpost'];
    		$modifiedphoto = $adv_gallery_images['date'];
    		if ($modified == '0')
    		{
    			$modified = gmdate("Y-m-d",  $modifiedphoto );
    		}
    		else
    		{
    			$modified = gmdate("Y-m-d",  $modified );
    		}
    
      		vbseo_add_url(
      			$gallery_url . 'showimage.php?' . $adv_gallery_images['id'],
         		$sitemap_priority, $modified, $sitemap_update
      		);
    	}
    ?>
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  6. #6
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,361
    Liked
    540 times
    Blog Entries
    4
    I believe this addon shall work

    Create a file named vbseo_sm_vbagallery.php with the following code inside.
    Upload it to your addon folder , add it to your settings in admincp and save it.

    Code:
    <?
    	# vbSEO Google Sitemap Generator - PhotoPost Add On.
    	# Written by Ben Griffiths (http://www.fiatforum.com)
    	
    	# NOTE: THIS ONLY WORKS IF YOUR PHOTOPOST DB IS THE SAME AS YOUR VB ONE
    
    	# Full HTTP path to your gallery root (including trailing forwardslash)
    	$gallery_url = 'http://www.ayyas.com/galeri/';
    	
    	# Priority you want to assign to the sitemap pages
    	$sitemap_priority = 0.5;
    	
    	# How often you wish to flag for updates
    	$sitemap_update = 'weekly';
    
    	# PP Table Prefix
    	//$pp_tableprefix = 'pp_';
    
    
    	# DON'T EDIT PAST HERE #############################################
    	$adv_gallery_images = $db->query_read('SELECT imageid,lastpostdateline,dateline FROM ' . TABLE_PREFIX . 'adv_gallery_images');
    	while ($adv_gallery_images = $db->fetch_array($adv_gallery_images))
    	{
    		$modified = $adv_gallery_images['lastpostdateline'];
    		$modifiedphoto = $adv_gallery_images['dateline'];
    		if ($modified == '0')
    		{
    			$modified = gmdate("Y-m-d",  $modifiedphoto );
    		}
    		else
    		{
    			$modified = gmdate("Y-m-d",  $modified );
    		}
    
      		vbseo_add_url(
      			$gallery_url . 'showimage.php?' . $adv_gallery_images['imageid'],
         		$sitemap_priority, $modified, $sitemap_update
      		);
    	}
    ?>
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  7. #7
    Member
    Real Name
    Joe
    Join Date
    Oct 2005
    Posts
    30
    Liked
    0 times
    Thanks, I will try this today.

    Do I need to include the .php extension when adding it the the admincp?
    Last edited by Ocean; 07-06-2006 at 04:33 PM.

  8. #8
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,361
    Liked
    540 times
    Blog Entries
    4
    Quote Originally Posted by Ocean
    Thanks, I will try this today.

    Do I need to include the .php extension when adding it the the admincp?
    It works
    You need to upload php to vbseo_sitemap addon folder and write the exact filename with extensin in admincp
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  9. #9
    Member
    Real Name
    Joe
    Join Date
    Oct 2005
    Posts
    30
    Liked
    0 times

    Question

    I don't think this is working for me. The reports don't show an increased number of URLs in the sitemap. Since I have 1500+ images in the gallery, I think it should show those URLs added the first time I run it.

    Is there another way to see if it worked?

    Some info:
    the path to my gallery root is like http://gallery.mydomain.com
    my table prefix is adv_

    What is the significance of the setting:
    # How often you wish to flag for updates
    $sitemap_update = 'weekly';

  10. #10
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,361
    Liked
    540 times
    Blog Entries
    4
    Check your sitemap folder the results are not in the reports also for me but i have 7 new sitemaps created after running the plugin.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  11. #11
    Member
    Real Name
    Joe
    Join Date
    Oct 2005
    Posts
    30
    Liked
    0 times
    I checked the folder. Still doesn't work.
    I set //$pp_tableprefix = ''; since my tables only have the adv_ prefix
    and then ran Sitemap again. It doesn't add any sitemaps or URLs to the existing sitemap files.

    Is there anything else I can try?

    Thank you for your help with this.

  12. #12
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,361
    Liked
    540 times
    Blog Entries
    4
    You don't need to enter any table prefix. adv_gallery_images is the regular table that is added by photopost vbgallery.
    I am not sure but maybe it is not working for you because you have your gallery in subdomain but what i think it shall work

    for your gallery url can you try with $gallery_url = 'http://www.yourdomain.com/gallery/';

    Code:
    [addon module] vbseo_sm_vbagallery.php [29,125s (+0)]<br/>
    [create sitemap file] filename: sitemap_23.xml.gz, number of urls: 1492 [29,125s (+0)]<br/>
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  13. #13
    Member
    Real Name
    Joe
    Join Date
    Oct 2005
    Posts
    30
    Liked
    0 times
    I tried the gallery URLs both ways with the same result. I don't see any 'showimage.php' URLs in my sitemaps. I don't know what I'm missing here...:(

  14. #14
    Member
    Real Name
    Joe
    Join Date
    Oct 2005
    Posts
    30
    Liked
    0 times
    When I run sitemap, I see this :

    [addon module] vbseo_sm_vbagallery.php [79s (+6)]
    [create sitemap file] filename: sitemap_3.xml.gz, number of urls: 8152 [79s (+0)]
    [create sitemap in text format] part #4 [79s (+0)]
    [create sitemap index] filename: sitemap_index.xml.gz, number of sitemaps: 3 [79s (+0)]
    But, then I don't see any URLs with 'showimage.php' in the urllist.txt file or any of the xml sitemap files.

  15. #15
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,361
    Liked
    540 times
    Blog Entries
    4
    Can you try with this

    Code:
    <?php
    	# vbSEO Google Sitemap Generator - PhotoPost vbGallery Add On.
    	# Written by Lizard King (http://www.ayyas.com)
    	# Full HTTP path to your gallery root (including trailing forwardslash)
    	$gallery_url = 'http://www.ayyas.com/galeri';
    	
    	$mods = $db->query("SELECT catid,title FROM " . TABLE_PREFIX . "adv_gallery_categories ORDER BY `displayorder`");
    	while ($mod = $db->fetch_array($mods))
    	{	
    		$url = $gallery_url.'/browseimages.php?c='.$mod['catid'];
    
    		if(VBSEO_ON)
    			$url = vbseo_any_url($url);
    
      		vbseo_add_url($url, 1.0, '', 'daily');
    	}
    
    	$mods = $db->query_read('SELECT imageid,dateline FROM ' . TABLE_PREFIX . 'adv_gallery_images');
    	while ($mod = $db->fetch_array($mods))
    	{	
    		$url = $gallery_url.'/showimage.php?'.$mod['imageid'];
    
    		if(VBSEO_ON)
    			$url = vbseo_any_url($url);
      		vbseo_add_url($url, 1.0, '', 'daily');
    	}
    ?>
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Sitemap generating a lot more urls
    By poprulz in forum Troubleshooting
    Replies: 13
    Last Post: 02-28-2007, 05:15 PM
  2. Google Sitemap-Listing of old url's option-from 1.7
    By T2DMan in forum Member Articles
    Replies: 0
    Last Post: 04-02-2006, 09:46 AM
  3. what to do with old urls?
    By Jonathan in forum General Discussion
    Replies: 6
    Last Post: 08-04-2005, 04:57 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
  •