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 02-02-2007 02:12 AM

Quote:

Originally Posted by Quarterbore (Post 1172661)



I wish I could advise you to use the lite version and I would help you upgrade later but the database structure to the lite script is completely different then the premium script so it has been a real challange. I hope to have something that will work in the future but as of now I have not been able to transfer my SR Classifieds site data to the new script (so I just close it to new ads and have everybody repost or their old ads were lost).

youve done a fantastic job so far,i will be buying vbclassifieds from you when the $$ come through,I might see if members are preprared to chip in,as i love the layout thankyou

blind-eddie 02-02-2007 02:42 AM

Thats it, I'm not messing around with the lite version anymore, I'm getting the premium
version. I'm not sure how many of you have registered on vB Classifieds.com but, there is alot more with the full version. I (we) are asking for alot of the items that are in the full version. Save yourself some time & get the full version. I am......

Merriweather 02-02-2007 10:05 PM

I looked at the demo of this mod, and see that one item is showing -500h left in the ad. Do ads not disappear after they have expired?

I also see on the demo homepage that the ad stats show 2 active ads (correct) but if you look at the category boxes, it shows a total of 3 active ads (not correct, as one category showing an active ad does not actually have one). Is this just something with the demo, or is it a bug?

When a user deletes an ad, or it expires, is it removed from the DB or is it still there, just not shown to the end user?

Can usergroup permissions be set so only certain usergroups can (1) view ads (2) place ads?

Thank you!

Quarterbore 02-02-2007 11:32 PM

No, it works... On my site I deleted everything when working on the 1.0.4. release and just forgot to turn the cron back on...

http://www.vbclassified.com/sr_class...y&categoryid=2

The same applies for the wrong category counts... I was doing development work on that site in the past so I am sure I just changed something in the database. The script has a option in the AdminCP to rebuild the counts.

Now, there is a BUG in that times should say closed when the ad is closed and I will fix that in an update soon... Also note the cron does run on the hour so it is possible to have negative times (just not that negative!)

Now, closed ads do remain in view and I will be releasing a cron file for this script soon that will remove the expired ads from the database (along with the uploaded images).

masons 02-03-2007 03:55 AM

Hello,

I am sorry to ask, but I am not so good at this stuff, I will copy my forumhome template down below, and hope you might be able to cut and pase the code I look for somewhere in between.

On the left site of my site, I have boxes, and I want to add more with relevant links and information about mods installed. this is my site http://novusordosaeculorum.com

Right now I hope to add a box with the title "classifieds" and in the box it shows 3 lines of text with info on the mod, a sell now and a buy now link and a random listing.

I am sorry if this is asking too much, but I have no idea how to implement these things.

Here is my forumhome


Quote:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
$photoplog_forumhome
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="250" valign="top" style="padding-right: 15px;">
<table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
<thead>
<tr>
<td class="tcat" colspan="2"><if condition="$show['guest']">Login<else />Control Panel</if></td>
</tr>
</thead>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
<tr>
<td class="alt1">
<if condition="$show['member']">

<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>

<else />

<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
<tr>
<td class="smallfont" nowrap="nowrap"><label for="navbar_username">$vbphrase[username]:</label></td>
<td><input type="text" name="vb_login_username" id="navbar_username" size="20" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" class="textfield" /></td>
</tr>
<tr>
<td class="smallfont" nowrap="nowrap"><label for="navbar_password">$vbphrase[password]:</label></td>
<td><input type="password" name="vb_login_password" id="navbar_password" size="20" tabindex="102" class="textfield" /></td>
</tr>
<tr>
<td colspan="2" class="smallfont" align="center"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label> &nbsp;&nbsp;&nbsp;<input type="submit" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" class="textfield" /></td>
<tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</if>
</td>
</tr>
</table>

<br />

<div align="left">
<table width="250" border="0" align="center" cellpadding="8" cellspacing="0" style="border: 1px solid #000000;">
<thead>
<tr>
<td class="tcat" colspan="2">Forum Statistics</td>
</tr>
</thead>
</table>
<table width="250" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" style="border-top: 0px;">
<tr>
<td class="alt1">
<div class="smallfont">
<strong>Forum Members:</strong> $numbermembers<br />
<strong>Total Threads:</strong> $totalthreads<br />
<strong>Total Posts:</strong> $totalposts<br/>
<br/>
There are currently <strong>$totalonline</strong> users browsing the forums. </div> </td>
</tr>
</table><br>
<table width="250" border="0" align="center" cellpadding="8" cellspacing="0" style="border: 1px solid #000000;">
<thead>
<tr>
<td class="tcat" colspan="2">Masonic Sponsors</td>
</tr>
</thead>
</table>
<table width="250" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" style="border-top: 0px;">
<tr>
<td class="alt1">
<div class="smallfont">
<div align="center"><a href="http://www.freemasonry.fm" target="_blank"> <img src="http://www.freemasonry.fm/ffmSiteImages/ffmLogo2.jpg"
alt="freemasonry, freemason, masonic links " ></a> </div>
</div> </td>
</tr>
</table>
<br>

</div>

</td>
<td valign="top">
<!-- main -->

<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase></td>
</tr>
</table>
<br />
</if>
<!-- / guest welcome message -->

$forumbits

<!-- /main -->

<!-- what's going on box -->
<table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_key')"><img id="collapseimg_forumhome_key" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_key].gif" alt="" border="0" /></a>
Forum Key
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_key" style="$vbcollapse[collapseobj_forumhome_key]">
<tr>
<td colspan="2" class="alt2">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="33%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /><br /><div class="smallfont">$vbphrase[forum_contains_new_posts]</div></td>
<td width="34%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /><br /><div class="smallfont">$vbphrase[forum_contains_no_new_posts]</div></td>
<td width="33%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /><br /><div class="smallfont">$vbphrase[forum_is_closed_for_posting]</div></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
&nbsp; &nbsp;
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div>
</td>
</tr>
</tbody>
</table>
<!-- end what's going on box -->
</td>
</tr>
</table>

$footer
</body>
</html>

Quarterbore 02-03-2007 03:59 AM

I have updated the SR Classifieds Lite scipt to add a number of new features and to fix a couple minor bugs...

Feb 3 2007 1:00 AM EST
Version 1.0.5.

Changes:

Fixed Cron, sr_classifieds.php, and templates so CLOSED always "0" (Script used 0 and 2 before)
Fixed code to Open and Close ads to update category counts
Fixed layout of category display
Made closed Ads show "CLOSED" in time column instead of negative numbers.
Fixed layout issues in View Ad template
Added NEW Cron that will delete listings, uploaded images, and upload table values after ad has been closed for 90-days
NOTE - Webmasters can edit 90-days in the new CRON FILE (Line is adequately commented!)



Enjoy :up:

Quarterbore 02-03-2007 04:06 AM

Quote:

Originally Posted by masons (Post 1173457)
Hello,

I am sorry to ask, but I am not so good at this stuff, I will copy my forumhome template down below, and hope you might be able to cut and pase the code I look for somewhere in between.

On the left site of my site, I have boxes, and I want to add more with relevant links and information about mods installed. this is my site http://novusordosaeculorum.com

Right now I hope to add a box with the title "classifieds" and in the box it shows 3 lines of text with info on the mod, a sell now and a buy now link and a random listing.

I am sorry if this is asking too much, but I have no idea how to implement these things.

Here is my forumhome


To do what you want will require a pluggin to pull the random ad and a little template change. Please post on my site in this forum:

http://www.vbclassified.com/forumdisplay.php?f=36

You can delete your code from here too... On my site, just upload the code as a .txt file and I will try to give you a hand. Your questiion is just not really about this hack (you want to hack your site to show this system)...

Merriweather 02-04-2007 03:04 AM

I am liking this so far! :) Is there a way to not show any classified as stats on the member profile if the user doens't have access to the classifieds?

zajako 02-04-2007 03:21 PM

OK, I'm stumped. Are you not allowed to have people buy stuff in the lite version?
How do you buy an item if they do not enter a paypal address?
I wanted to set my classifieds site so that people could buy stuff with in game currency so using paypal (pay real life cash for in game items) would be against the EULA.

Merriweather 02-04-2007 03:31 PM

It's not a shopping cart, it's a classified system. As in Craigslist or eBay, you contact the person and arrange payment offline. The PayPal button is just a nice addition to facilitate the process. If they don't have PayPal, then they have to handle payment another way.


All times are GMT. The time now is 03:30 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.01390 seconds
  • Memory Usage 1,806KB
  • 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
  • (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