Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Photopost vbGallery Addon For vBSEO Google/Yahoo Sitemap Details »»
Photopost vbGallery Addon For vBSEO Google/Yahoo Sitemap
Version: 1.10, by Lizard King Lizard King is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.5 Rating:
Released: 06-30-2006 Last Update: 10-25-2006 Installs: 30
Additional Files  
No support by the author.

All Credits go to benFF as he created the original script for photopost pro.

I manually edited the file to work with Photopost vbGallery

Download the attached file , upload it to your vbseo_sitemap/addon/ folder.
In your vbulletin settings vBseo Google/yahoo sitemap settings add vbseo_sm_vbagallery.php to your Addon Generator Modules and save your settings.

Edit php file and change $gallery_url = according to your gallery folder

If you are using Photopost vBGallery v2.0 or v2.1 download vbseo_sm_gallery1.php otherwise you can still use the old one.

This mod also works for vB 3.6.x

For vBSEO users if you use CRR (Custom Rewrite Rules) for your gallery you may modify the file to work with your CRR's. Here is the url example :

Categorie Links (don't forget to change the url's to match your CRR's)

Code:
$url = $gallery_url.'/kategori-'.$mod['catid'].'-album.html';
Image Links (don't forget to change the url's to match your CRR's)

Code:
$url = $gallery_url.'/resim-'.$mod['imageid'].'.html';
Thanks to loonytune15 as reminding me that the database tables have changed.

26.10 : Updated the script to work with the new Photopost vbgallery since the database tables have changed. Corrected a bug fix with url priority.

15.07 : Updated the script since there was a small bug with it. Also gallery categories are also included in the new version.

Show Your Support

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

Comments
  #42  
Old 08-12-2010, 12:31 AM
0ptima 0ptima is offline
 
Join Date: Feb 2002
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah View Post
Hey man !

/vbseo_sitemap/addons/vbseo_sm_vbagallery.php

This is my file:

PHP 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 (without trailing forwardslash ex: 'http://www.ayyas.com/galeri'; )
    
$gallery_url 'http://www.website.com/gallery';

    
$mods $db->query("SELECT catid,title,lastimagedateline FROM " TABLE_PREFIX "ppgal_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'0.3'$mod['lastimagedateline'], 'daily');
    }

    
$mods $db->query_read('SELECT imageid,dateline,originalname FROM ' TABLE_PREFIX 'ppgal_images');
    while (
$mod $db->fetch_array($mods))
    {    
        
$url $gallery_url.'/showimage.php?i='.$mod['imageid'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url'0.4'$mod['dateline'],'daily');

        if (
$mod['originalname']){
        
$url $gallery_url.'/showimage.php?i='.$mod['imageid'].'&original=1';

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url'0.4'$mod['dateline'],'daily');
        }
    }
?>
Don't forget to fill out : website
$gallery_url = 'http://www.website.com/gallery';
This works perfectly on VBG 2.5.1 and VB 3.8! Thanks!
Reply With Quote
  #43  
Old 08-24-2010, 03:25 AM
sweetguy2004's Avatar
sweetguy2004 sweetguy2004 is offline
 
Join Date: Feb 2007
Location: uk
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much
Reply With Quote
  #44  
Old 12-19-2010, 12:51 AM
0ptima 0ptima is offline
 
Join Date: Feb 2002
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work with the 3.0 version of the sitemap generator?

https://vborg.vbsupport.ru/showthread.php?t=253516
Reply With Quote
  #45  
Old 09-25-2011, 04:59 PM
appsfinder appsfinder is offline
 
Join Date: Apr 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just testing now

Quote:
Originally Posted by Zachariah View Post
Hey man !

/vbseo_sitemap/addons/vbseo_sm_vbagallery.php

This is my file:

PHP 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 (without trailing forwardslash ex: 'http://www.ayyas.com/galeri'; )
    
$gallery_url 'http://www.website.com/gallery';

    
$mods $db->query("SELECT catid,title,lastimagedateline FROM " TABLE_PREFIX "ppgal_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'0.3'$mod['lastimagedateline'], 'daily');
    }

    
$mods $db->query_read('SELECT imageid,dateline,originalname FROM ' TABLE_PREFIX 'ppgal_images');
    while (
$mod $db->fetch_array($mods))
    {    
        
$url $gallery_url.'/showimage.php?i='.$mod['imageid'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url'0.4'$mod['dateline'],'daily');

        if (
$mod['originalname']){
        
$url $gallery_url.'/showimage.php?i='.$mod['imageid'].'&original=1';

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url'0.4'$mod['dateline'],'daily');
        }
    }
?>
Don't forget to fill out : website
$gallery_url = 'http://www.website.com/gallery';
Reply With Quote
Reply

Thread Tools

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 12:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04666 seconds
  • Memory Usage 2,285KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete