PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Inc_Template on forumhome (http://www.photopost.com/forum/photopost-pro-how-do-i/131414-inc_template-forumhome.html)

Jack-Flash April 16th, 2007 03:45 PM

Inc_Template on forumhome
 
I tried to install this plugin to have a random picture block appear on my forum home page according to these instrctions:
PhotoPost Featured Block Plugin for VB 3.5
http://www.photopost.com/forum/showthread.php?t=122207

Tried creating a plugin using the vBulletin plugin manager and set it to start in forumhome and added the code that was downloaded into the text box.
Then I edited forumhome template and added the following:
$header
$navbar
$photopostfeature
Then added the $photopostcats under the forumbits section
Received the following message when I tried to load the forum home page:
Parse error: syntax error, unexpected '<' in /home/archeryb/public_html/forums/index.php(63) : eval()'d code on line 1

Can you tell me where I went wrong?

Thanks,

JF

Chuck S April 16th, 2007 03:47 PM

You sure you just added a plugin you did not edit your index file in any way right?

http://www.reeftalk.com/forums/index.php?

Does it work if you take out $photopostcats because that has nothing to do with the plugin you are including in the post you link.

Jack-Flash April 16th, 2007 04:13 PM

I didn't touch the index.php file.

But, I really don't know if I did the plugin correctly, especially the hook location.
Here is a detailed description of what I did.

Went to vBulletin CP/ Plugins & Products/ Add New Plugin/
Type - vBulletin
Hook Location - forumhome-start There are a lot of choices there, not sure if this is correct!
Title: Photo Block
Execution order: 5
Opened the plugin code that I downloaded with dreamweaver and copy and pasted it to the text box.
Plugin is active - Yes

Was this done correctly?
I'll try it again without the $photopostcats, but do I still need to edit the forumhome template and insert $photopostfeature underneath
$header
$navbar

Is that what calls in this plugin?

JF

Chuck S April 16th, 2007 04:44 PM

The plugin you can actually upload and it will install correctly in the vb plugin manager. It is forumhome_complete where it needs to be

Jack-Flash April 16th, 2007 06:23 PM

Hi Chuck,

I see, you just need to import it. I did it and added the $photopostfeature under the $navbar in the forumhome template and it worked!
Yesterday I couldn't spell programmer now I are one. :)

I want to ask how can I enable members gallery pictures with the packaged inc_features.php for external page inclusion.
Are there any drawbacks from removing the c.cattype = 'c' from inc_feature.php?

JF

Chuck S April 16th, 2007 06:42 PM

It will show album photos if you do that.

Not sure what you mean by external inclusion no doubt you would need to create your own script for this

eastestuary December 4th, 2007 11:21 PM

inc_feature.php file assistance
 
Chuck I am very close to getting this working. My old thumbincluder has been working for years, but I noticed it stopped working when the server switched to php5. Since I must upgrade the server soon I need a solution. Just having a bit of trouble getting inc_features to work. I read through all the posts but there is not one that puts it all together. I have pp6.01 and NO forum integration.

Can you or someone post the proper code? I am just getting a blank box where the photos should be. (Also, will this work with php5?)

I uncommented the link and mysql_select_db line and filled in the variables. Can any provide the proper code for the file with no VB integration (including any commenting out of lines). Getting rather frustrated trying on my own. Must be missing something.:confused:

Thanks

Chuck S December 5th, 2007 09:01 AM

Not really sure what your issue is or what your trying to do other than someone was asking about how to alter files to work a different way thus far which is not covered under product support. At least this is what I see thus far in this specific thread here.

Please post real urls to the forum and gallery so we may see the issue and thus respond. Please make sure to use unmodified code so we may give an accurate response based on our default code.

eastestuary December 7th, 2007 01:49 AM

I am trying to get the latest few thumbnail images on my homepage as I have had for the last few years. PHP 5 seems to break thumbincluder, so I have turned to inc_features.php to try and fix it. Once again, I have NO forum integration.

Sample available here:
http://test.dutchchamber.hk/_newsite/
running under PHP4. Photopost is here:
http://test.dutchchamber.hk/photosdba/

Thanks

Chuck S December 7th, 2007 07:59 AM

Dont honestly know what to tell you there. You can search the mod forums in search of some code that might help you but i would not be able to tell you how to install it. inc_features.php will not work as thats a block written for vbulletin.

http://www.photopost.com/forum/showthread.php?t=116182

thats a random photo block

http://www.photopost.com/forum/showp...5&postcount=13

thats a thumbincluder script.

However any support for those mods you need to post in those specific threads.


All times are GMT -5. The time now is 07:00 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97