vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Make Photopost vBGallery v2.1 work with Zoints SEO. UpDate: V1.01 (https://vborg.vbsupport.ru/showthread.php?t=130893)

rsj1 11-05-2006 10:00 PM

Make Photopost vBGallery v2.1 work with Zoints SEO. UpDate: V1.01
 
There is a simple edit that will allow photopost vBGallery to work correctly with Zoints SEO. Every instance of the /gallery url being changed to the /forum url should now be fixed.

V1.01

Edit "gallery_config.php"
Find:
Code:

// ============================================
// Enter the full path to your forum here
// Example: /home/photopost/public_html/forum
// ============================================

Insert Below:
Code:

define('VB_AREA', 'vBGallery');
Save and upload.

To unistall the old version simply revert your Photopost vBGallery templates

DEMO URL: [CURRENTLY BLANK] (NOTE: I have not tested these edits on a live board, only on my localhost server. If you apply them and wish your forum to be listed as a live demo please let me know.)

Many Thanks to "Calash" for the idea!

Calash 11-06-2006 11:45 AM

I ran into a similar issue with a bridge I have been working on. The fix was not to alter the templates, but to put a define right before the call to global.php

Code:

define('VB_AREA', 'vBGallery);
This prevented Zoints SEO from changing the base directory to the forum.

I am not sure if this is the same problem, but it does sound the same.

rsj1 11-06-2006 03:26 PM

hmm thats possible, but I hate trawling through others php code :P The template edits seem to do the trick without too much fuss.

patsalko 11-14-2006 02:46 AM

Quote:

Originally Posted by Calash (Post 1111740)
I ran into a similar issue with a bridge I have been working on. The fix was not to alter the templates, but to put a define right before the call to global.php

Code:

define('VB_AREA', 'vBGallery);
This prevented Zoints SEO from changing the base directory to the forum.

I am not sure if this is the same problem, but it does sound the same.

where exactly do you put this?

rsj1 11-14-2006 07:19 AM

I would guess you would put it into the php file... I don't have my localhost server with me at the moment so can't check - I'll try looking into it tonight at work. If this is all you need to do it would make a lot more sense than replacing 99% of the templates.

gothicuser 11-14-2006 09:25 AM

Most of the navigation is fine, but still getting wrong path (/forum/ instead of /gallery/ ) when clicking the 'next image' or 'previous image'.

patsalko 11-14-2006 02:33 PM

when i try to upload images, I get red x. what could be the pb?

rsj1 11-14-2006 03:39 PM

Quote:

Originally Posted by patsalko (Post 1117129)
when i try to upload images, I get red x. what could be the pb?

This is more likely to be an incorrect upload path, incorrect GD settings or a permission error ;)

Quote:

Originally Posted by gothicuser
Most of the navigation is fine, but still getting wrong path (/forum/ instead of /gallery/ ) when clicking the 'next image' or 'previous image'.

Is that with my hack or before applying?

I'm working on my localhost server now so I will try the "define('VB_AREA', 'vBGallery);" edits soon.

rsj1 11-14-2006 03:46 PM

Quote:

Originally Posted by gothicuser (Post 1116948)
Most of the navigation is fine, but still getting wrong path (/forum/ instead of /gallery/ ) when clicking the 'next image' or 'previous image'.

Ah I just worked this one out, its a phrase that supplies the prev / next links - if the test i'm doing now fails i'll include instructions to edit them too ;)

gothicuser 11-14-2006 04:01 PM

Quote:

Originally Posted by rsj1 (Post 1117176)
Ah I just worked this one out, its a phrase that supplies the prev / next links - if the test i'm doing now fails i'll include instructions to edit them too ;)

Many thanks, keeping close eye on this one :D


All times are GMT. The time now is 03:50 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.01250 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (5)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
  • (10)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