vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Photopost vbGallery Addon For vBSEO Google/Yahoo Sitemap (https://vborg.vbsupport.ru/showthread.php?t=120047)

Lizard King 06-30-2006 10:00 PM

Photopost vbGallery Addon For vBSEO Google/Yahoo Sitemap
 
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.

Murty 07-01-2006 01:43 PM

yeah first post, dunno what this hack does yet

Lizard King 07-01-2006 01:47 PM

Quote:

Originally Posted by Murty
yeah first post, dunno what this hack does yet

This addon allows you to add your Photopost vbGallery url's to your sitemap and google , yahoo and other search engines can crawl your images easier.

Jim O 07-01-2006 05:06 PM

Quote:

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.
You probably should add that the script needs to be edited before uploading to your site. I haven't installed it yet but likely will.

Snake 07-01-2006 07:03 PM

Thank you very much! :)

sensimilla 07-01-2006 10:01 PM

Thanks I was in need of this one :)

trackpads 07-15-2006 01:57 PM

Outstanding!!

Lizard King 07-15-2006 04:27 PM

Updated the script. I advise everyone to download the new file and replace with the previous file.

trackpads 07-15-2006 04:50 PM

Thanks for the update!!

rinkrat 07-15-2006 04:55 PM

Thanks! Any help in getting more pages on Google is a good thing :)

glorify 07-28-2006 01:09 AM

Hey lizard--

Does this work with vbadvanced gallery 1.0.1?

Also, the URL's do not have to be rewritten by VBSEO for this to work, correct?

bada_bing 07-28-2006 02:38 AM

This is cool will update tomorrow.. Subscribing

Sean James 08-05-2006 01:51 AM

nice, does this work for vbulletin 3.6.0?

SaN-DeeP 09-12-2006 09:09 PM

Quote:

Originally Posted by Griffin80
nice, does this work for vbulletin 3.6.0?

yes it does :)

loonytune15 10-23-2006 12:08 PM

But it doesn't work with the new gallery 2.0
*edit*

To get it work without errors, open the file in an editor,

Find:
Code:

adv_gallery_categories
Replace with:
Code:

ppgal_categories
Then find:
Code:

adv_gallery_images
Replace with:
Code:

ppgal_images
Should work fine then..

Lizard King 10-26-2006 04:17 AM

Quote:

Originally Posted by loonytune15
But it doesn't work with the new gallery 2.0
*edit*

To get it work without errors, open the file in an editor,

Find:
Code:

adv_gallery_categories
Replace with:
Code:

ppgal_categories
Then find:
Code:

adv_gallery_images
Replace with:
Code:

ppgal_images
Should work fine then..

Thanks , totally forget that the database structure have been changed.

I also applied a small fix that caused error in sitemaps.

loonytune15 10-26-2006 02:55 PM

cool no worries :D

aacircle 10-27-2006 04:05 AM

vbGallery has now been renamed to Photopost quite a while back. So does this hack work on PhotoPost PHP Pro v5.5? Or is this hack only for those who still use the old vbGallery?

bada_bing 10-30-2006 05:05 PM

Quote:

Originally Posted by aacircle
vbGallery has now been renamed to Photopost quite a while back. So does this hack work on PhotoPost PHP Pro v5.5? Or is this hack only for those who still use the old vbGallery?

Yes good question.. ANYONE?

MissKalunji 11-10-2006 11:41 AM

Quote:

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';
I dont understand that part?

am i supposed to change #gallery_url to something? or kategory? (not talking in the php but inside vbseo)

bada_bing 11-10-2006 11:42 AM

Quote:

Originally Posted by bada_bing
Yes good question.. ANYONE?

Hello is the author still here?

MissKalunji 11-10-2006 11:43 AM

and is it supposed to change the showimage.php to showimagine.html something something?

Lizard King 11-16-2006 08:45 AM

Quote:

Originally Posted by aacircle (Post 1105286)
vbGallery has now been renamed to Photopost quite a while back. So does this hack work on PhotoPost PHP Pro v5.5? Or is this hack only for those who still use the old vbGallery?

It already has the answer in the thread name. It says Photopost vBGallery.

Photopost have couple products but only one Photopost vBgallery.

Quote:

Originally Posted by MissKalunji
I dont understand that part?

am i supposed to change #gallery_url to something? or kategory? (not talking in the php but inside vbseo)

If you prepared CRR's for your Photopost vBGallery then you can imply your CRR's to the file in order to prevent duplicate content. I just showed you a way to how to do that.

For categorie links please check your CRR and change the green code to match your CRR. The codes below in Green is prepared to match my CRR settings ;) Since everyone uses different you need to modify it according to your settings.

Categorie
Code:

$url = $gallery_url.'/kategori-'.$mod['catid'].'-album.html';
ShowImage
Code:

$url = $gallery_url.'/resim-'.$mod['imageid'].'.html';
If you still didn't understand please drop me a Pm with your gallery CRR settings so i can modify these two lines for you.

aacircle 11-16-2006 08:49 AM

Great! Thanks Lizard King. Will install this hack right away. Cheers.

aacircle 12-03-2006 11:46 AM

Well this hack no longer works in 3.6.4 with Photopost. Following database error occurs:

Quote:

MySQL Error : Table 'anime10_forums.adv_gallery_categories' doesn't exist

ConqSoft 12-03-2006 12:21 PM

Quote:

Originally Posted by aacircle (Post 1130703)
Well this hack no longer works in 3.6.4 with Photopost. Following database error occurs:

It's not related to vBulletin 3.6.4, it's related to vBGallery 2.1 which changed some tables around.

bulbasnore 02-10-2007 06:40 PM

First off, great stuff. We have a lot of treasure in our gallery, and we'd like to get it out there and into the search.

I can't get google to accept the map for the gallery section (rev1 of your hack, vB364, PPVB2.1, no seo). Apparently, google is wanting the lastmod object populated.

PHP Code:

Line:
27076
Invalid date 
An invalid date was found
Please fix the date or formatting before resubmitting.    [?]     Parent tag:
Tag:
Value:     url
lastmod 

The line shows up like this:

PHP Code:

<url>
  <
loc>http://mysite.com/gallery/showimage.php?i=15995</loc>
  
<priority>0.4</priority>
  <
lastmod></lastmod>
  <
changefreq>daily</changefreq>
</
url

It looks like your code and the standard vbacmps module addon that comes with the vbseo mapper pass a url much like the 'extra_urls' format to the hack. There isn't a place there for the date.

Is that the problem, no place to send the date modified to the parent hack?

If its a matter of helping extract that data from ppgal_ tables, I could submit some code to you. But if its a matter of the parent hack's API (what they'll take from the addons) then maybe I should talk to them, first.

Please let me know and thanks again!

[for now, disabled add-on]

puregraf 10-05-2007 11:37 PM

hi, will this also work with Photopost ? not photopost vbgallery , the other one and how would this effect when upgrading photopost, would i need to remove this hack before upgrading?

thanks

Neo_obs 06-17-2008 01:36 AM

Quote:

Originally Posted by bulbasnore (Post 1179317)
First off, great stuff. We have a lot of treasure in our gallery, and we'd like to get it out there and into the search.

I can't get google to accept the map for the gallery section (rev1 of your hack, vB364, PPVB2.1, no seo). Apparently, google is wanting the lastmod object populated.

PHP Code:

Line:
27076 Invalid date 
An invalid date was found
Please fix the date or formatting before resubmitting.    [?]     Parent tag:
Tag:
Value:     url
lastmod 

The line shows up like this:

PHP Code:

<url>
  <
loc>http://mysite.com/gallery/showimage.php?i=15995</loc>
  
<priority>0.4</priority>
  <
lastmod></lastmod>
  <
changefreq>daily</changefreq>
</
url

It looks like your code and the standard vbacmps module addon that comes with the vbseo mapper pass a url much like the 'extra_urls' format to the hack. There isn't a place there for the date.

Is that the problem, no place to send the date modified to the parent hack?

If its a matter of helping extract that data from ppgal_ tables, I could submit some code to you. But if its a matter of the parent hack's API (what they'll take from the addons) then maybe I should talk to them, first.

Please let me know and thanks again!

[for now, disabled add-on]

I found the error. Was getting the same issue here and decided to look at the other add-ons as a template.

Find in vbseo_sm_vbagallery(1).php
Code:

vbseo_add_url($url, '0.3', 'daily');
and replace with
Code:

vbseo_add_url($url, '0.3','', 'daily');
Then find
Code:

vbseo_add_url($url, '0.4', 'daily');
and replace with
Code:

vbseo_add_url($url, '0.4','', 'daily');
the sitemap generator will add the dates automatically between the '' so basically just add a ,'' to your code lizard

MissKalunji 07-17-2008 05:14 PM

thanks i'll test it out

MissKalunji 07-18-2008 05:49 PM

how would i know if the gallery sitemap was done properly?

tiger 03-17-2009 10:48 PM

Does this work with 3.8 and the new site map version?

rinkrat 05-25-2009 08:24 PM

It's a shame that Google is oblivious to my VBGallery images. This looks like it is no longer supported so I guess I'm screwed.

Zachariah 08-02-2009 10:52 PM

Hey LIZ !!!!!
- Add this too man "if large image add another link for large image"
- also copy / contenue this thread into VB3.8 area

Code:

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');
        }


Quote:

Originally Posted by MissKalunji (Post 1578555)
how would i know if the gallery sitemap was done properly?

AdminCP => vBSEO => vBSEO Sitemap Reports
- log-in
-- Show Reports List
--- View details of the last report "by Date"

Here will list all the site maps created:
HTML Code:

Sitemap Files
Index File sitemap_index.xml.gz
Sitemap File #1 sitemap_1.xml.gz (5,000 URLs, 1,016.85Kb) 1,016.53Kb uncompressed
Sitemap File #2 sitemap_2.xml.gz (5,000 URLs, 1,072.91Kb) 1,072.58Kb uncompressed
Sitemap File #3 sitemap_3.xml.gz (5,000 URLs, 1,119.71Kb) 1,119.38Kb uncompressed
Sitemap File #4 sitemap_4.xml.gz (5,000 URLs, 954.18Kb) 953.85Kb uncompressed
Sitemap File #5 sitemap_5.xml.gz (5,000 URLs, 900.40Kb) 900.08Kb uncompressed
Sitemap File #6 sitemap_6.xml.gz (5,000 URLs, 901.66Kb) 901.34Kb uncompressed
Sitemap File #7 sitemap_7.xml.gz (5,000 URLs, 899.61Kb) 899.29Kb uncompressed
Sitemap File #8 sitemap_8.xml.gz (5,000 URLs, 901.21Kb) 900.88Kb uncompressed
Sitemap File #9 sitemap_9.xml.gz (5,000 URLs, 901.05Kb) 900.73Kb uncompressed
Sitemap File #10 sitemap_10.xml.gz (5,000 URLs, 902.53Kb) 902.20Kb uncompressed
Sitemap File #11 sitemap_11.xml.gz (5,000 URLs, 905.58Kb) 905.25Kb uncompressed
Sitemap File #12 sitemap_12.xml.gz (5,000 URLs, 905.75Kb) 905.43Kb uncompressed
Sitemap File #13 sitemap_13.xml.gz (5,000 URLs, 905.42Kb) 905.10Kb uncompressed
Sitemap File #14 sitemap_14.xml.gz (5,000 URLs, 906.07Kb) 905.75Kb uncompressed
Sitemap File #15 sitemap_15.xml.gz (10 URLs, 2.14Kb) 1.81Kb uncompressed
Text Format File urllist.txt.gz (3,564.45Kb)

It will be in some of the later GZ files as the images are added after the threads,posts,members (all other forum options) in your forum.

You should see URLS pointing to your gallery.
Code:

- <url>
  <loc>http://www.xxxx.xxx/gallery/image-10694.html</loc>
  <priority>0.4</priority>
  <lastmod>2009-07-24T18:28:04+00:00</lastmod>
  <changefreq>daily</changefreq>
  </url>

Quote:

Originally Posted by tiger (Post 1770778)
Does this work with 3.8 and the new site map version?

yes
Quote:

Originally Posted by rinkrat (Post 1817117)
It's a shame that Google is oblivious to my VBGallery images. This looks like it is no longer supported so I guess I'm screwed.

working on that @ the moment w/ VBSEO addon I may work on a stand alone version if I get some time.

Keyword Rich URLS with Photopost vBGallery - http://www.vbseo.com/f23/request-key...62/index2.html

Xencored 08-13-2009 12:48 PM

All i get is errors :mad:

Code:

Warning: gmdate() expects parameter 2 to be long, string given in /home/**********/public_html/forums/vbseo_sitemap/vbseo_sitemap_functions.php on line 920
Over and over again

tiger 08-26-2009 05:52 PM

Hey Zach, where do we add that code exactly?

Zachariah 09-18-2009 10:50 PM

Quote:

Originally Posted by tiger (Post 1874927)
Hey Zach, where do we add that code exactly?

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';

tiger 09-21-2009 09:07 PM

Thanks big time Zach.

0ptima 07-04-2010 11:42 PM

Anyone use this on VBgallery 2.5? Has it increased traffic to your gallery?

tpearl5 07-15-2010 04:24 PM

Any word on this for v3.0 and vbulletin 4?


All times are GMT. The time now is 06:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01457 seconds
  • Memory Usage 1,875KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (19)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete