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)
-   -   Major Additions - SR Classifieds 1.0.5 Light (https://vborg.vbsupport.ru/showthread.php?t=135896)

IAWBody 04-21-2007 03:09 PM

This is just a suggestion, something that I wouldn't mind. Is there anyway that the users that start an ad can put a link to their ad in their signature? Or some way of automatically putting a link in the postbit, or signature area?

How else are people going to know there are new classifieds in the SR Classifieds? Besides clicking on SR Classifieds in the Navbar every time they visit the forum?

Otherwise I think this is a really awesome mod! I have replaced my classifieds forums for this! :D

auctionguy 04-22-2007 07:35 AM

Are you going to have the ability to have a multiple item ad or an inventory in an ad in the future?? Is it even possible?? What I really need myself is an ad that I can sell one particular thing that never goes away when someone buys it so that it can be sold again and again without having to relist the ad!

KSMatic 04-22-2007 09:16 AM

nm guys, i fixed it by reinstalling the product. It was weird.

KSMatic 04-22-2007 09:38 AM

Quote:

Originally Posted by dizzy100 (Post 1193350)
OK solved :)

Create a plugin and hook it to global_start (i wanted my ads to appear at the top of every forum),

Insert the following code

Code:

$newads_get = $vbulletin->db->query_read("
        SELECT classified.classifiedid AS classifiedid, classified.categoryid AS categoryid, classified.userid AS userid,
        classified.dateline AS dateline, classified.timeframe AS timeframe, classified.title AS title, classified.price AS price,
        classified.type AS type, user.*,
        upload.classifiedid, upload.image AS image
        FROM " . TABLE_PREFIX . "sr_classifieds AS classified
        LEFT JOIN " . TABLE_PREFIX . "sr_classifieds_uploads AS upload ON (upload.classifiedid=classified.classifiedid)
        LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid=classified.userid)
        ORDER BY dateline DESC
        LIMIT 7
    ");

    while($newad = $vbulletin->db->fetch_array($newads_get)){
    $newad[dateline] = vbdate($vbulletin->options['dateformat'], $newad['dateline'], '', '');
    eval('$newadbit .= "' . fetch_template('sr_classifieds_newadbit') . '";');
    }

The RED is how many new Adverts you wish to list.

The add in your NAVBAR template (At the bottom)

Code:

<table cellpadding="5" cellspacing="$stylevar[sellcellspacing]" width="100%" >
<tr><td colspan="7" class="thead">Latest Classified Ads</td></tr>
<tr>
$newadbit</tr>
</table>

Hope that helps somebody.

EDIT. I changed mine to display in just FORUMHOME (paste the last bit of Code under $navbar in FORUMHOME) and modify the hook on the first to forumhome_start). Seems better :)


nice script, I tried this but it shows on a new ad per row, anyway to make it show on the same row?

Like right now it has a huge space on top with 5 ads while the sides are all empty :(

akulion 04-22-2007 12:25 PM

is there a way to use this for adverts for penpals/e-pals as well?

I mean some adverts are FOR SALE, BUYING etc...but then 2 categories are E-PALS and PEN PALS and these 2 dont contain the payment options but other options

would this be possible?

jellybaby 04-22-2007 07:06 PM

I wonder if anyone can help. I have the problem that when someone has bought an item the item bought is still staying live and can be bought again

How do I end the sale on purchase?

Thanks

KSMatic 04-23-2007 07:22 PM

Quote:

Originally Posted by jellybaby (Post 1233544)
I wonder if anyone can help. I have the problem that when someone has bought an item the item bought is still staying live and can be bought again

How do I end the sale on purchase?

Thanks

probably have to do it manually. The non-light version which cost 49.99 will have this feature.

imported_Alpine 04-25-2007 02:11 PM

Has anyone managed to put them side by side rather than down the page.

Like the photoplog ones on ForumHome.

dizzy100 04-27-2007 01:25 PM

Quote:

Originally Posted by KSMatic (Post 1233257)
nice script, I tried this but it shows on a new ad per row, anyway to make it show on the same row?

Like right now it has a huge space on top with 5 ads while the sides are all empty :(

try editing your

sr_classifieds_newadbit

and replace its contents with

HTML Code:

<td><a href="sr_classifieds.php?do=ad&id=$newad[classifiedid]">
<img src="$vboptions[bburl]/sr_classifieds/uploaded/thumbnails/$newad[image]" border="0">
</a></td>

This is from memory though as i no longer use the mod, far too buggy. This should however, if your using the code i posted, align them next to each other.

imported_Alpine 05-02-2007 08:34 AM

That worked lovely for my Forum home, But now the prob is reversed in the Actual Classified section, Looks like I will have to live with it,

https://vborg.vbsupport.ru/external/2007/05/21.jpg

Can someone please post up the original sr_classifieds_newadbit code, As per the instructions above I over wrote it and the disk I saved it on is corrupt.


All times are GMT. The time now is 09:36 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.01257 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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