PDA

View Full Version : Miscellaneous Hacks - Make Photopost vBGallery v2.1 work with Zoints SEO. UpDate: V1.01


rsj1
11-05-2006, 10:00 PM
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:

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


Insert Below:

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


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


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

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

rsj1
11-14-2006, 04:39 PM
Many thanks, keeping close eye on this one :D

New instructions have fixed the problem ;) Revert your templates and add the line of code to gallery_config.php

gothicuser
11-14-2006, 05:25 PM
Spot on my friend https://vborg.vbsupport.ru/https://vborg.vbsupport.ru/

Neal-UK
01-25-2007, 06:20 AM
What about the vBadvanced Links Directory?

rsj1
01-25-2007, 07:07 PM
As I do not have a copy of the links directory I am unable to test... however I would assume you need to do something along the same lines... Look for a config file and before

?>
insert

define('VB_AREA', 'vBLinks');


If that does not work I will be unable to help ;)

Neal-UK
01-26-2007, 06:22 AM
Yes that works fine, nice modification. Can you get the Google Map to work now please? ;-)

rsj1
01-26-2007, 06:35 PM
Can you give me a link to that modification (saves me searching and finding the wrong one)? I'll have a quick play with it if I get a chance over the weekend.

Please also tell me the name of the config file you edited for the links directory hack - then I can create a new thread for it to help others with the same problem out ;)

Neal-UK
01-26-2007, 08:13 PM
links_config.php in the links directory

Erox
03-21-2007, 03:55 PM
THANK YOU!!!!

I was going nuts last night trying to figure out why all of my Gallery forms and links were pointing back to my forums. I figured out it was because of vBSEO and turned it off until I found your solution.:up:

dtzy
08-26-2007, 02:40 AM
that this mod is GREAT !!!!!

phifou
12-22-2009, 07:13 AM
Nice deal.

Is there a way to make Zoints SEO rewrite URLs in VBGallery ??