Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 11-10-2006, 11:42 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing
Yes good question.. ANYONE?
Hello is the author still here?
Reply With Quote
  #23  
Old 11-10-2006, 11:43 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and is it supposed to change the showimage.php to showimagine.html something something?
Reply With Quote
  #24  
Old 11-16-2006, 08:45 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aacircle View Post
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.
Reply With Quote
  #25  
Old 11-16-2006, 08:49 AM
aacircle aacircle is offline
 
Join Date: Jun 2005
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! Thanks Lizard King. Will install this hack right away. Cheers.
Reply With Quote
  #26  
Old 12-03-2006, 11:46 AM
aacircle aacircle is offline
 
Join Date: Jun 2005
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 12-03-2006, 12:21 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aacircle View Post
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.
Reply With Quote
  #28  
Old 02-10-2007, 06:40 PM
bulbasnore bulbasnore is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #29  
Old 10-05-2007, 11:37 PM
puregraf's Avatar
puregraf puregraf is offline
 
Join Date: May 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 06-17-2008, 01:36 AM
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Location: Disneyland, CA
Posts: 363
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bulbasnore View Post
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
Reply With Quote
  #31  
Old 07-17-2008, 05:14 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks i'll test it out
Reply With Quote
Reply


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 07:50 PM.


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.05467 seconds
  • Memory Usage 2,333KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (4)bbcode_php
  • (6)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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