![]() |
Photopost Classifieds Recent Ad Block on Forumhome
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: Code:
$navbar Code:
$classifiedsfeature 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 Please click Install, and tell me if you like it Paypal donations welcome :) regards Jimmy |
First post reserved, waiting for feedback :)
thanks |
Is this for photopost pro or just vbgallery?
It would be awesome if it were pro. |
Quote:
|
I get the following error at the top of my forums.
Code:
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 |
Is it possible to use this with the Right side column on forum home only mod?
|
Quote:
Quote:
Quote:
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. |
Quote:
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. Code:
<!-- Classifieds --> |
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 |
Quote:
|
Ok, then please confirm the inc_ads.php file is in the folder.
|
Quote:
|
what version are you running? is it one of the latest ones?
|
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..
|
yeah ok, what version classifieds was it?
|
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. |
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 |
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? |
Download the whole pageage from the members area.
i think 2.5 is standard and 2.6 is a beta |
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... |
Thanx for this great plugin. It works Just fine for me, Without any problems.
Gr, Tom |
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. |
Quote:
Classifieds v2.5 |
vB 3.6.4
Classifieds 2.5 K, got the connection it appears now with my databases. However, I'm getting the following errors: Quote:
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/...11P7031738.JPG |
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 |
Quote:
Thanks RaceJunkie |
Quote:
|
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: |
Quote:
|
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. ;) |
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 |
update: all working
needed the ../class... in the plug in, as it was a different folder lol |
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? Code:
<!-- Classifieds --> Here is a pic of my side bar. I have the sponsors box collapsed. |
Will this work with vbPortal ?
|
Does not seem to.
|
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.
|
Where is the classifieds/inc_ads.php file? I couldn't see it :(
|
Quote:
|
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 |
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 |
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|