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)

Rickie3 05-04-2007 06:13 AM

Quote:

Originally Posted by imported_Alpine (Post 1239574)

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.

here you go
Code:

<tr>
<td class="alt1" align="center">
<a href="sr_classifieds.php?do=ad&id=$newad[classifiedid]">
<img src="$vboptions[bburl]/sr_classifieds/uploaded/thumbnails/$newad[image]">
</a>
<div><b><a href="sr_classifieds.php?do=ad&id=$newad[classifiedid]">$newad[title]</b></a></div>
<div class="smallfont">by $newad[username]</div>
</td>
</tr>


dizzy100 05-04-2007 12:45 PM

Quote:

Originally Posted by imported_Alpine (Post 1239574)
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,

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.

Sorry about that, i forgot i altered a lot of the layout when i used the code before.

You could have just reverted the template though.

Heres a fix to allow your forum home to work as you wanted without affecting your classified ads system

Create a new template. Call it sr_classifieds_forumhome

In that paste

PHP 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

Then Create a plugin and hook it to forumhome_start (if you haven't already. If you have, just paste the code in to it below),

Insert the following code

PHP 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_forumhome') . '";');
    } 

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

I haven't tested that as i no longer use that particular classifieds system but all we've effectively done is change the template we call when outputting the plugins data.

Rickie3 05-04-2007 01:13 PM

i'd love it to look like this on my forumhome

dknelson 05-09-2007 08:15 PM

At this time I'm using Photopost classifieds on my site. It has worked fine but they seem to have little interest in adding any new requested features.

One feature that I am looking for is a link in each ad to "email ad to friend". Does anybody know if this system has that.

Don

mpasternak 05-28-2007 05:30 PM

When adding or editting "extra fields" options, There is no way to make it applicable to all forums. The options available are presented in a drop down box with a list of the categories. However the description says this should be a text box.

is there a way to change this as I have a lot of categories and don't wish to have to enter new feild for each category.

Thanks

bugriders 06-14-2007 10:54 AM

Date Joined: %Europe/Amsterdam %815 %2006

:confused:

I can't find a solution for that...
Thanks for the support.

Konstantinos 06-23-2007 06:30 PM

when someone doesnt fill the title he doesnt get a warning that he has to ...

dricho 07-26-2007 10:41 AM

I am delighted with this mod...
...I hope this doesn't sound like a silly question, but is there an easy way I can change the paypal field to a phone number (it is being used as an application in a local area and paypal is not needed)...?

And, do you have a module for VB CMPS to show random ads from SR Classifieds?
I tried the one from
https://vborg.vbsupport.ru/showthread.php?t=129053
and it skewed up the pages...but the idea is magnificent!

Johnny Utah 08-03-2007 07:46 PM

Quote:

Originally Posted by dricho (Post 1302077)
I am delighted with this mod...
...I hope this doesn't sound like a silly question, but is there an easy way I can change the paypal field to a phone number (it is being used as an application in a local area and paypal is not needed)...?

And, do you have a module for VB CMPS to show random ads from SR Classifieds?
I tried the one from
https://vborg.vbsupport.ru/showthread.php?t=129053
and it skewed up the pages...but the idea is magnificent!


I am looking for the same thing! I've tried that same module and it didn't work either.

LCN2007 08-11-2007 06:23 PM

This script cannot be redistributed, reproduced, or published in any way unless given written permission by myself. Modifying this script and sharing your modification elsewhere without the author's knowledge is not allowed as well. The following text on the script is not to be taken off:

Can we change the Navbar button to just say classifieds instead of SR Classifieds?
I know how to change it, I just want to make sure if i need permission i get it.


All times are GMT. The time now is 01:12 AM.

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.01197 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_php_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