View Full Version : photopost script works for forum and other custom script but just wont' work with VBA
Drache
10-28-2004, 07:03 PM
I am trying to use this hack that shows picture block in the forum. and it works fine with forum. But strangely when i try to make it work with vbadvance it just won't work.
I've added
require_once('./global.php');
include('../gallery/inc_photopost.php');
in VBA index.php and also added $photopostfeature into adv_portal template.
But somehow the script just won't show up on index page of VBA. How do i make it work? Please help urgent.
(Attachment removed. Please don't post full files like that.)
Brian
10-28-2004, 07:14 PM
Your best bet would be to add it as a module.
Also, have you checked the forum here? I'm pretty sure there's at least one PhotoPost random/new image module.
Drache
10-28-2004, 08:11 PM
Yeah I've spent hrs to search the forums and i found it here. but i get no reply
http://www.vbadvanced.com/forum/showthread.php?p=16782#post16782
It's urgent really want to get this fixed.
If adds as a module wouldn't the picture block fit between left and right blocks? but i want to make it show like this website. http://www.wambam.net/
I just have no idea why this wouldn't work for me. could you please help me out?
Drache
10-31-2004, 12:15 AM
Bumps* could anyone give a hand? Brian? :)
Popsicle Pete
11-01-2004, 06:55 AM
im having the EXACT same problem. works fine in the regular forums, but not VBadvanced. if i get it sorted out today i will let u know.
ill keep lookin :confused:
i can suggest that it IS something that vbadvanced is not running. if i put $photopostfeature into the navbar template for instance, it works on vb pages but not vbadvanced pages. similarly, if i just stick $navbar2 into the adv_portal page, it does not show up. is it possible that this is related to something not being cached?
Billy
11-01-2004, 07:54 AM
I am in the process of purchasing photopost for my car website ... I have vbadvanced on my site, after reading these threads above, I am thinking I might have problems ... is this going to be the case?
Popsicle Pete
11-01-2004, 08:25 AM
well im kinda stumped...for example, $photpostfeature is populated before the print_portal_output() function. but somewhere inside there the variable gets lost.
if i move include('../photopost/inc_photopost.php'); to inside that function i can get it to show $photopostfeature, but only on the adv_portal template. not on any others.
billy, its not going to be a huge problem. i personally am just trying to get it to work with vba because im a huge fan of the way vba allows some things to work... worst case i'll just run photopost alone...not a big deal, it should be transparant to any user whats happening. (ie: they wont know if its through vba or not)
Billy
11-01-2004, 08:32 AM
Thanks Pete!well im kinda stumped...for example, $photpostfeature is populated before the print_portal_output() function. but somewhere inside there the variable gets lost.
if i move include('../photopost/inc_photopost.php'); to inside that function i can get it to show $photopostfeature, but only on the adv_portal template. not on any others.
billy, its not going to be a huge problem. i personally am just trying to get it to work with vba because im a huge fan of the way vba allows some things to work... worst case i'll just run photopost alone...not a big deal, it should be transparant to any user whats happening. (ie: they wont know if its through vba or not)
Brian
11-01-2004, 09:20 AM
Try adding the variable in the global set in the 'construct_adv_navbar' function.
Popsicle Pete
11-01-2004, 09:35 AM
Try adding the variable in the global set in the 'construct_adv_navbar' function.
nada :(
thats if this is in the cmps_index.php file....include('../photopost/inc_photopost.php');
any ideas where this should be added to get the variable to last?
Popsicle Pete
11-01-2004, 02:13 PM
actually after messing around with this, i no longer see a reason to integrate photopost with vba. as i previously mentioned, it would be transparant to a user anyway. so apart from a module theres not much point
Drache
11-01-2004, 05:40 PM
It's a very good idea to show and tell your vitsitors that you have a gallery on the mainpage as soon as they go to your site. I mean if you just have a little gallery buttom there alot ppl will not see it. That's why i been trying to put that feature into the front page of VBA. But someone it just wont' work. I've tried it on other scripts it works fine but just not with VBA Brian do you have any idea why this is not working or could you look into it?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.