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)

blind-eddie 02-18-2007 03:29 AM

Are you going to admincp via mod or admin....you need admin, also go to usergroups/Administrator Permissions...edit your permissions..see if that helps

aktifnet 02-24-2007 01:02 PM

good.

http://www.isimticaret.com/sr_classifieds.php?

:)

Merriweather 02-25-2007 11:50 PM

Quote:

Originally Posted by Merriweather (Post 1184940)
QuarterBore ~ Is there no way for a user to easily see all of the ads they've created? I've been looking around, but can't find anything. I believe this is a very important feature to have because when someone sells something, they should be able to quickly get back to their ad without having to remember where they posted it, etc.

Also, I've noticed that when you view an ad, it does not tell you anywhere on the ad what category you are in, nor does it give you a breadcrumb link back to that category. Is this something that could be added with a simple template change?

QB, are you still around?

dizzy100 03-01-2007 01:32 PM

Does anybody know how to display the latest advertisements on the forum home page ?

I've tried creating a plugin with the following -

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 
$newadlimit
    "
);

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

I enabled that under the forumhome_start hook and then added

PHP Code:

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

In my FORUMHOME template but i get an SQL error. What am i doing wrong ?

dizzy100 03-01-2007 02:09 PM

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 :)

dizzy100 03-01-2007 10:08 PM

Has anybody managed to get pagination working in this plugin ?

joiner42 03-06-2007 06:04 AM

how do i change the $ sign in paypal to the £ sign when i get to the payment page on paypal i get the $ sign instead of the £ sign

blind-eddie 03-06-2007 11:52 AM

in your admincp/srclassifieds

touba 03-11-2007 11:12 AM

hi all, i have a problem with date in my sr_classifieds page.

each date (joined date and created ads date) have a % before number :
ex : %08/%10%2006

why ?

what can i do ?
thanks for your support ! :up:

RedGTiVR6 03-11-2007 03:06 PM

Is there a version check URL?


All times are GMT. The time now is 09:43 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.01550 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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