vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Photopost Classifieds Recent Ad Block on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=134098)

JimmyN 12-15-2006 10:00 PM

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
right under this place:
Code:

$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

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

Quote:

Originally Posted by Sunstroke (Post 1139689)
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.
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

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 mod?

JimmyN 12-16-2006 08:12 PM

Quote:

Originally Posted by Sunstroke (Post 1139689)
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

Quote:

Originally Posted by RaceJunkie (Post 1139778)
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

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?

Quote:

Originally Posted by RaceJunkie (Post 1139788)
Is it possible to use this with the Right side column on forum home only 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

Quote:

Originally Posted by JimmyN (Post 1139915)

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.

Code:

<!-- 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

Quote:

Originally Posted by JimmyN (Post 1139937)
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

Quote:

Originally Posted by JimmyN (Post 1139942)
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

Quote:

Originally Posted by JimmyN (Post 1140061)
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:

Quote:

Warning: getimagesize(http://www.f-bodyhideout.com/forums/...11P7031738.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/...-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/...icture_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/...11P7031738.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

Quote:

Originally Posted by RaceJunkie (Post 1140606)
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

Quote:

Originally Posted by smoknz28 (Post 1140610)
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

Quote:

Originally Posted by smoknz28 (Post 1140605)
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/...11P7031738.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?

Code:

<!-- 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

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

Quote:

Originally Posted by JimmyN (Post 1148718)
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


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
  • Page Generation 0.01315 seconds
  • Memory Usage 1,848KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete