1 _ext_sieg Nov 12, 2006 13:28
3 _ext_sieg Nov 12, 2006 13:50
I changed the blog number to one that matches but what I get is some default b2e blog not the Gallery default page , this is what I want to show up when I click the link on my blog link( http://siegrist.us/gallery2/main.php but this is what shows up
4 edb Nov 12, 2006 14:11
If I understand correctly you want the blog link to point to the Gallery2 installation. That's no problem, but stubs won't do it for you. Stubs only handle stuff inside b2evolution.
So on the blog settings for your gallery blog tell it "gallery2/" in the field for "Relative to baseurl". Now tell it your stub name is "main.php". This is cheating, as you'll see in the "URL preview" section. You don't need to actually create a stub in this situation because you're telling b2evolution, for all practical intent, to run a different application.
5 _ext_sieg Nov 12, 2006 15:18
OK like all things b2e after I mess with it for half a day I get it to work, was just a wrong URL so now Im good to go:)
Thanks for the help
What default gallery?
Stubs are amazingly easy. You create a blog, or pick an existing one, and select "Explicit reference to stub file (Advanced):". Let's pretend it's blog #4 - the linkblog in the default installation. You make up a name for it's stub, like maybe 'linkblog.php' and put that in the "Stube name:" field. Finally in the "URL blog name" field you tell it something like "linkblog". Now you open a_stub.php in a text editor and find the line that says
and change it to
Save that file as "linkblog.php" and upload it to your installation root on your server.
There's a ton of stuff you can do with stubs, but that's the bare minimum to get it going.