View Full Version : Add-On Releases - Photopost Classifieds Recent Ad Block on Forumhome
JimmyN
12-15-2006, 10:00 PM
Hi everyone,
this is my first mod and i though it will really help people out.
Basicly it shows either random, most_viewed or latest and can show a custom set of ads across in either vertical or horizontal position. It uses a external file that comes included with your Photopost Classifieds install.
How to install
1)install the plugin
2)tempate modification (optional in custom places)
template FORUMHOME find this code or other place you would like
find:
$navbar
right under this place:
$classifiedsfeature
Note: Make sure this plug in is enabled. It should automaticly install the template code so you will not have to do it, but if not follow the instructions above.
Remember Yoy may modify options in the inc_features.php (this is a PhotoPost file).
In that file you may set the layout, how many ads to show, and what type e.g. random, recent etc
Please let me know if you have any questions, ideas or need help
Credit: www.oz-consolemods.net (http://www.oz-consolemods.net/forums)
Please click Install, and tell me if you like it
Paypal donations welcome :)
regards
Jimmy
JimmyN
12-16-2006, 05:54 AM
First post reserved, waiting for feedback :)
thanks
Sunstroke
12-16-2006, 11:40 AM
Is this for photopost pro or just vbgallery?
It would be awesome if it were pro.
RaceJunkie
12-16-2006, 02:28 PM
Is this for photopost pro or just vbgallery?
It would be awesome if it were pro.
This is for the Classifieds not Gallery..
RaceJunkie
12-16-2006, 03:18 PM
I get the following error at the top of my forums.
Warning: Unknown(./classifieds/inc_ads.php): failed to open stream: No such file or directory in /index.php(536) : eval()'d code on line 12
Warning: Unknown(./classifieds/inc_ads.php): failed to open stream: No such file or directory in /index.php(536) : eval()'d code on line 12
Warning: (null)(): Failed opening './classifieds/inc_ads.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(536) : eval()'d code on line 12
RaceJunkie
12-16-2006, 03:32 PM
Is it possible to use this with the Right side column on forum home only (https://vborg.vbsupport.ru/showthread.php?t=117989) mod?
JimmyN
12-16-2006, 08:12 PM
Is this for photopost pro or just vbgallery?
It would be awesome if it were pro.
This mod is for the Classifieds, i will make one for gallery also very soon
I get the following error at the top of my forums.
Warning: Unknown(./classifieds/inc_ads.php): failed to open stream: No such file or directory in /index.php(536) : eval()'d code on line 12
Warning: Unknown(./classifieds/inc_ads.php): failed to open stream: No such file or directory in /index.php(536) : eval()'d code on line 12
Warning: (null)(): Failed opening './classifieds/inc_ads.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(536) : eval()'d code on line 12
Racejunkie, Is it still not working?
Is it possible to use this with the Right side column on forum home only (https://vborg.vbsupport.ru/showthread.php?t=117989) mod?
yes you may use it else where, just use the $classifiedsfeature in the template, though you will need to edit the inc_features.php file so the ads go verticaly.
Thanks
Edit: for anyone using the classifieds in a different folder or location other then (./classifieds/inc_ads.php) you will need to edit the plugin to change the location. Post here and ill help you with it.
RaceJunkie
12-16-2006, 08:29 PM
Racejunkie, Is it still not working?
yes you may use it else where, just use the $classifiedsfeature in the template, though you will need to edit the inc_features.php file so the ads go verticaly.
Thanks
Edit: for anyone using the classifieds in a different folder or location other then (./classifieds/inc_ads.php) you will need to edit the plugin to change the location. Post here and ill help you with it.
No still not working.
My Classifieds folder is in my public_html folder
This is what I am using for my side colum right side. I have a vertical one on my portal page so the php file should be set correctly.
<!-- Classifieds -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('my_table')"><img id="collapseimg_my_table3" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_my_table3].gif" alt="" border="0" /></a>
Classifieds
</td>
</tr>
</thead>
<tbody id="collapseobj_my_table3" style="$vbcollapse[collapseobj_my_table3]">
<tr>
<td class="alt1">
$classifiedsfeature
</td>
</tr>
</tbody>
</table>
<!-- Classifieds -->
www.localracechat.com
JimmyN
12-16-2006, 08:41 PM
try takeing off any code you added (forum side), then uninstall the plugin and install it again.
Then check if it comes up on the top under the navbar.
If you get any code errors let me know
From there you can change the location lattter, just need to test that it works that way.
thanks
RaceJunkie
12-16-2006, 08:49 PM
try takeing off any code you added (forum side), then uninstall the plugin and install it again.
Then check if it comes up on the top under the navbar.
If you get any code errors let me know
From there you can change the location lattter, just need to test that it works that way.
thanks
I created a new style with no template edits and still get same error
JimmyN
12-16-2006, 08:56 PM
Ok, then please confirm the inc_ads.php file is in the folder.
RaceJunkie
12-16-2006, 08:59 PM
Ok, then please confirm the inc_ads.php file is in the folder.
Yes it is in the classifieds folder
JimmyN
12-16-2006, 10:27 PM
what version are you running? is it one of the latest ones?
RaceJunkie
12-16-2006, 11:02 PM
Version 3.6.4 I uninstalled it for now. I'll try it later when I have more time to try and figure it out..
JimmyN
12-17-2006, 01:24 AM
yeah ok, what version classifieds was it?
smoknz28
12-17-2006, 01:55 AM
I'm running vB 3.6.4 and Classifieds v 2.42.
I'd like to know if we need to make file changes in the code if we our Classifieds database is different than our vB database?
Chuck on PhotoPost's website created a plugin much like this, but mentions you need to do some uncommenting on some code.
Can you please verify on this?
Thank you.
EDITED
Actually, I just ran the import on the plugin and yes, it does appear that those of us using a different database than our vB databse will need to connect to the databases back and forth. But, I don't know where we make the changes in the code to do this.
JimmyN
12-17-2006, 04:40 AM
Smoknz28 - its in the inc_ads.php file
"if your classifieds is in a different database than vb you will need to uncomment by removing the // in from of the $link and mysql_select_db lines and fill out the needed databases variables to connect back and forth to the right databases"
Hope this helps
smoknz28
12-17-2006, 04:49 AM
You know...I've done a search on both my server and my local machine...and I cannot find inc_ads.php anywhere on either machine. I've looked especially in my root folder for my Classifieds....it doesn't exist. I'm running v 2.42.
How can I get this file?
JimmyN
12-17-2006, 05:26 AM
Download the whole pageage from the members area.
i think 2.5 is standard and 2.6 is a beta
smoknz28
12-17-2006, 05:29 AM
Ack....go figure....I had lost my laptop's hard drive nearly a year ago...and with it went out the door my untouched archived classifieds files.
Right now I'm only holding the PhotoPost Pro license as my Classifieds license expired. Now I gotta pay another $39.00 to get one file....argh!
Bummer...
tomkh25
12-17-2006, 10:04 AM
Thanx for this great plugin. It works Just fine for me, Without any problems.
Gr, Tom
smoknz28
12-17-2006, 07:19 PM
Uncommenting the lines....I'm confused as to what data I'm to put in the lines.
I have three databases....one for each - vB, Classifieds, and Photopost.
$link - I input my vB database information.
mysql_select_db - I input my PhotoPost database name.
Then....I uncommented line 193 and put my vB database name in the quotes.
Made these changes, but am getting errors. So, I'm thinking I am not putting the database information in the correct locations.
RaceJunkie
12-17-2006, 08:12 PM
yeah ok, what version classifieds was it?
Classifieds v2.5
smoknz28
12-17-2006, 10:26 PM
vB 3.6.4
Classifieds 2.5
K, got the connection it appears now with my databases. However, I'm getting the following errors:
Warning: getimagesize(http://www.f-bodyhideout.com/forums/classifieds/data1/thumbs/9511P7031738.JPG) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /classifieds/inc_ads.php on line 120
Warning: getimagesize(http://www.f-bodyhideout.com/forums/classifieds/data8/thumbs/2827oe-vette-zo6-b-rt-ft-4-x.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /classifieds/inc_ads.php on line 120
Warning: getimagesize(http://www.f-bodyhideout.com/forums/classifieds/data15/thumbs/1Picture_155.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /classifieds/inc_ads.php on line 120
I see the problem here....it's attempting to point to files from a path that is incorrect. Each one of these errors are pointing to incorrect paths in the urls. For instance....taking the first one... http://www.f-bodyhideout.com/forums/classifieds/data1/thumbs/9511P7031738.JPG
data1 doesn't exist. It should be /data/1/ :confused:
This would be the correct path in it's entirity:
http://www.f-bodyhideout.com/forums/classifieds/data/1/thumbs/9511P7031738.JPG
RaceJunkie
12-17-2006, 10:30 PM
There is also a version of this on Photo posts website. You may have better luck with that one.
http://www.photopost.com/forum/showthread.php?t=129349
smoknz28
12-17-2006, 10:34 PM
There is also a version of this on Photo posts website. You may have better luck with that one.
http://www.photopost.com/forum/showthread.php?t=129349
Hahahaa.....yea, I'm there too....I'm trying to get them both to work so I can evaluate which works best for my needs.
Thanks RaceJunkie
RaceJunkie
12-17-2006, 10:39 PM
Hahahaa.....yea, I'm there too....I'm trying to get them both to work so I can evaluate which works best for my needs.
Thanks RaceJunkie
Let me know if you have any luck because I have failed with both versions so far.:confused:
smoknz28
12-17-2006, 10:52 PM
Will do...I see that you too are in the same thread on PhotoPost as well. Between the two of us....we'll get to the bottom of this. ;)
Nice screen name by the way. :up:
JimmyN
12-18-2006, 01:52 AM
vB 3.6.4
Classifieds 2.5
K, got the connection it appears now with my databases. However, I'm getting the following errors:
I see the problem here....it's attempting to point to files from a path that is incorrect. Each one of these errors are pointing to incorrect paths in the urls. For instance....taking the first one... http://www.f-bodyhideout.com/forums/classifieds/data1/thumbs/9511P7031738.JPG
data1 doesn't exist. It should be /data/1/ :confused:
This would be the correct path in it's entirity:
http://www.f-bodyhideout.com/forums/classifieds/data/1/thumbs/9511P7031738.JPG
smoknz28, i see that you got this error i had got the same error on the second board i installed this one. I visited your forum and see theres no error there now, how did you get that fixed?
smoknz28
12-18-2006, 02:33 AM
Sorry...yea, I should have posted up how I fixed the errors.
First...one of my issues was that I had upgraded my Classifieds version...and with that came an error on my part. When I was transcribing the paths, etc...I screwed up the path to my data directory. Actually, I just left off the trailing "/" at the end of data so just went into my config-int.php of my Classifieds and edited line #23 $data_dir and added the ending "/".
Putting the "/" at the end of data directory cured the errors I was getting when the hack or inc_ads.php was trying to pull images.
Next up....
Second one I was having was the default directory that the plugin was pointing to for my inc_ads.php.
The default was set to: include('../classifieds/inc_ads.php');
Which didn't work for me because my inc.ads.php file was in my Classifieds directory. So, just edited the path to:
include('./classifieds/inc_ads.php');
So, vice ../classifieds I changed it to ./classifieds
Hopefully all of this made sense to you and the others who may be experiencing similar issues.
Thanks for this hack. ;)
JimmyN
12-20-2006, 06:11 AM
still didnt get this one to work on this forum, even though it worked on the first forum i did
even after the / on the data paths
JimmyN
12-20-2006, 06:49 AM
update: all working
needed the ../class...
in the plug in, as it was a different folder
lol
RaceJunkie
12-23-2006, 02:18 AM
I got this to show up on my forum home but Because I have it on a vertical module on my home page it shows up vertical on my forumhome and that's ugly..
I want to add it to a side bar and putting $classifiedsfeature in the table does not work
This is the code I have in my side column. Any ideas as to why the classifieds will not show up?
<!-- Classifieds -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('my_table3')"><img id="collapseimg_my_table3" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_my_table3].gif" alt="" border="0" /></a>
Classifieds
</td>
</tr>
</thead>
<tbody id="collapseobj_my_table3" style="$vbcollapse[collapseobj_my_table3]">
<tr>
<td class="alt1">
$classifiedsfeature
</td>
</tr>
</tbody>
</table>
<!-- Classifieds -->
I am using the Right side column on forum home only MOD (https://vborg.vbsupport.ru/showthread.php?t=117989)
Here is a pic of my side bar. I have the sponsors box collapsed.
Gholsie
12-30-2006, 10:13 PM
Will this work with vbPortal ?
bplinson
12-31-2006, 09:39 AM
Does not seem to.
JimmyN
01-01-2007, 08:53 PM
No its not made to, its based around the forum only, as thats what the php file is coded on. Im sure if you edit the paths on the file(s) you might get it to work.
aycan555
01-02-2007, 10:12 PM
Where is the classifieds/inc_ads.php file? I couldn't see it :(
bplinson
01-03-2007, 07:03 AM
No its not made to, its based around the forum only, as thats what the php file is coded on. Im sure if you edit the paths on the file(s) you might get it to work.
I'll give this a shot this weekend.
bplinson
01-03-2007, 07:20 AM
This is the error with vbportal with pp_classified as the classifieds directory which is in the root directory.
Warning: Unknown(./pp_classified/inc_ads.php): failed to open stream: No such file or directory in /index.php(536) : eval()'d code on line 1
Warning: Unknown(./pp_classified/inc_ads.php): failed to open stream: No such file or directory in /index.php(536) : eval()'d code on line 1
Warning: (null)(): Failed opening './pp_classified/inc_ads.php' for inclusion (include_path='.:') in /index.php(536) : eval()'d code on line 1
michaelsilvia
01-11-2007, 06:30 AM
Works well BUT the plug in should have this:
(./photopost/inc_ads.php):
Instead of this:
(./classifieds/inc_ads.php):
Photopost is the default folder when you upload the classifieds, not classifieds. I can see it has already caused a lot of errors for some people. If you are getting the errors like JimmyN, just edit the plugin and use the info I posted.
You can see it in action here:
http://www.sportstradercentral.com/forums.php
Mike
michaelsilvia
01-11-2007, 06:35 AM
If you guys need help doing this in the ADMIN CP go to PLUGINS & PRODUCTS then PLUG IN MANAGER.
Find:
Photopost Classifieds Ads Feature Block (by James Norman)
Click edit.
Replace.
include('./classifieds/inc_ads.php');
With This:
include('./photopost/inc_ads.php');
That will do the trick.
michaelsilvia
01-11-2007, 06:38 AM
Will this work with vbPortal ?
This will work ANYWHERE.
Simply place this code where you want it to show up:
$classifiedsfeature
If you want it in VB Advanced or on a portal I am sure you can make it work. Just go to the template in the portal you want it and add the code under the header or navbar if you have it turned on. In my forum I have it under the header instead of the navbar. You can put it in the footer, header anywhere!
Mike
Mike
JimmyN
03-28-2007, 09:11 AM
This hack is for the classifieds, so thats why its this:
include('./classifieds/inc_ads.php');
This is for the gallery (which you can use if you have that)
include('./photopost/inc_ads.php');
Unless you have named your classifieds a gallery, or something else then edit where needed.
Thanks
wrang
07-12-2007, 02:23 PM
It dosent work with PhotoPost Classified 2.61 :down:
touba
09-28-2007, 10:42 PM
hi all,
is there anybody knows how to add the asked price under thumbnail ?
thanks for your help,
Chuks on photopost board didn't know :(
tryance
10-02-2007, 10:04 PM
I want to use this with ultimate side columns. You said to edit the file to configure it to post vertically....what do I edit? Is there a way of you posting the edited file to use this with side columns?
Thanks!!
almansoori
12-22-2007, 09:34 AM
This plugin wonderful But is working on 3.6.8
ssandgirls
02-08-2008, 12:02 AM
Here is the error message I get on this one:
Warning: Unknown(./classifieds/inc_ads.php): failed to open stream: No such file or directory in /index.php(537) : eval()'d code on line 10
Warning: (null)(): Failed opening './classifieds/inc_ads.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php(537) : eval()'d code on line 10
Any ideas? Photopost classifieds is in same database as Vbulletin....
Floob
03-15-2008, 10:07 PM
Does this work with Classifieds version 3.0 ?
I keep getting an error message.
Puntoboy
10-26-2008, 12:36 PM
Does this work with Classifieds version 3.0 ?
I keep getting an error message.
I'd be interested to know this as well.
Also anyone tried to get it working on 3.7.x?
Goomzee
01-26-2009, 04:37 AM
I'd be interested to know this as well.
Also anyone tried to get it working on 3.7.x?
same my question anybody here used this mod on 3.7.x
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.