Registered: 09/05/00
Posts: 61
Loc: Vancouver, British Columbia, C...
This is a fantastic piece of work -- thanks for this. <br /> <br />The "Help" link doesn't work on the Upload Photo page. I've tried this on a couple sites. Doesn't work on mine, threadsdev.com, or reeftalk.com. (Works at other PhotoPost sites)
Interesting as I have not touched any of the specific code for that but should be an easy track down. I will look into it. <br /> <br />There is also a new release of this hack for the NEW TEMPLATED PHOTOPOST BETA 2
dimopoulos
Kahuna
Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Chuck I found what is wrong with my installation and why I cannot get into the admin area. The modification is identical to your files but I found out that in the pp.inc file you have a check to see the script name adm-index.php or adm-menu.php and if they are not the send_header of the .threads is sent. If they are then it goes on normally to the admin area with its own header. For some reason on my server the SCRIPT_NAME is blank hence it never validates on the if statement.<br /><br />Is there another way to find out the script name? My register_globals are off. (Windows box)<br /><br />Thanks
Your the PHP Guru <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />Being a windows box can you change the register globals or I assume since you have not that your server people will not. <br /> <br />The script simply checks that those two scripts do not include the Threads send_header. If you know of another way than it is coded you got me on that one. Yeah you are right though the header can not be send that is why that arguement is there. A frame needs to be send before a header thus why your admin section does not work.
dimopoulos
Kahuna
Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
I haven't played with it at all (and I am not a php guru - yet <img src="/forum/images/graemlins/wink.gif" alt="" />). Also I don't want to set the globals on. I will have a look at it and possibly make a couple of changes so that it works similarly to the .threads admin area (with the frames)<br /><br />Thanks Chuck.
<img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Yeah the reason those are excluded from loading the threads header is the frame needs to load first before the body tag is loaded.
I use sidebars for my threads forum and they are always visible but I can't get them to show up with PhotoPost.<br />I have applied this hack and it works fine (exept the slideshow).<br />Can this be done or should I switch over to the "real" sidebar hack?<br /><br />My mods...<br /><br />ubbt.inc.php<br /> include("$thispath/templates/$tempstyle/ubbt_registerednav.tmpl");<br /> }<br /> }<br /> <br /> // Side Bar code modification<br /> include("$thispath/templates/$tempstyle/sidebar_rightopen.tmpl");<br /> <br /> // ------------------------------------------------------<br /> // If the forum is closed then we only let admins proceed<br /> // But they can try to login<br /> if ($What != "login") {<br /> if ($config['isclosed'] && $user['U_Status'] != "Administrator") {<br />.<br />.<br />.<br />// Sidebar mod code<br /> include("$thispath/templates/$tempstyle/sidebar_rightclose.tmpl");<br /><br /> @include("$thispath/templates/$tempstyle/ubbt_footer.tmpl");<br /> }<br /><br /><br /> // #######################################################################<br /> // Send the footer for admin section<br /> // #######################################################################
Well 4.1 is almost out but anyway if the sidebar does not work withphotopost then you have it turned off in pp-inc.php? <br /> <br />Remember this part??? <br /> <br />// If you use IIP's sidebar you may want to uncomment the line below <br />// to disable the sidebar on Photopost pages <br />// $config['iip_call'] = 1; <br /> <br /> <br /> <br />Okay if you want to make slideshow's work then rehack your pp-inc.php file with the attached <br /> <br />
DOH! Well it seems to run okay. <br /> <br />One question, on the index page, the links : <br /> <br />My Gallery | My Favorites Admin | Home | Profile | Upload Photos | Logout <br /> <br />Should be in a menubar, but aren't. What did I miss? Any ideas? <br /> <br />
Got it <img src="/forum/images/graemlins/smile.gif" alt="" /> Lil sugegstion, there is an overuse of the tag menubar, I spent the evening removing it and replacing it with small. You might want to go thru your mod and do the same. Not your fault, photopost got a lil tag happy.<br /><br />
Your talking about the font tags <img src="/forum/images/graemlins/wink.gif" alt="" /> Although my mod has nothing to do with font tags. The only ones I changed where the ones needed for the menubar. There is one thing I could change and that would be the menubar tags in pp-inc.php for the menu they can be small <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />In version 4 which is for the new 4.1 BETA3 you should try out the templated version.
Has a random mod been made to put thumbnails on a non pp page? <br /> <br />It's a client install, rather not play with betas. <img src="/forum/images/graemlins/wink.gif" alt="" /> But thanks for the tip. <br /> <br /> <br />
You can use this mod I made for IIP You should easily be able to adapt it to a NON PP or Threads page. If not let me know it is easy. <br /> <br />I have attached the custompalbox
Yup, all fixed. Spent a long time with the layout cleaning it up etc.. One thing, I did have to alter some of the code added to showgallery.php. The last bit I left as it was, otherwise it caused the copyright area to show within a table...weird...<br /><br />Otherwise it's fine <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Live site