|
Welcome, Guest.
Please login or register.
Forgot your password?
|
Members
Total Members: 4216
Latest: ezycc New This Month: 0 New This Week: 2 New Today: 0
Stats
Total Posts: 42796
Total Topics: 7456
Most Online Today: 54
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online Members: 0 Guests: 31 Total: 31
|
|
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - dan4ever
1
« on: March 17, 2023, 01:35:44 am »
Is this mod working on 2.1?
/Dan
2
« on: February 04, 2019, 04:36:11 pm »
Ok, will tell him to try.
But if you want to renew?
/Dan
3
« on: February 04, 2019, 03:15:51 pm »
Hi
A customer has bought ads in 2 places but does not understand what to do next? In the database there is a place called "packageused" and it is set to 0. And he have payed. There is also no manual for those who are stuck. And I don't know, when I'm not shopping from myself ....
/Dan
4
« on: November 11, 2018, 04:29:00 am »
Fil: /****/public_html/forum/classifiedsipn2.php Rad: 267
$smcFunc['db_query']('', $strQuery);
Is this wrong or???
/Dan
5
« on: April 17, 2018, 01:53:00 am »
hmm user was deleted.
Yes, a spammer or he act very bad... /Dan
6
« on: April 12, 2018, 07:05:11 am »
Sorry.. The user does not exist. Thats why....
Thanx anyway
/Dan
7
« on: April 12, 2018, 03:48:57 am »
Yes
9
« on: March 13, 2018, 07:18:39 am »
It's coming every day. 5 - 10 times a day... But with different "id=" and different "t=" (time?)
Always a "Guest" with no IP-address in the errorlog
/Dan
10
« on: March 11, 2018, 07:27:49 am »
Getting this error , is it Ad Pro making this?
http://www.guldforum.se/forum/index.php?action=adpro;sa=v&id=3&l=1&m=0&t=1520770302 2: session_start(): Failed to decode session object. Session has been destroyed Fil: /******/public_html/forum/Sources/Load.php Rad: 2549 /Dan
11
« on: June 28, 2016, 06:53:57 am »
Strange try updating it with this file
Can't see any file!! /Dan
12
« on: June 23, 2016, 03:08:26 am »
Hi
I'm starting to get this error:
http://www.guldforum.se/forum/index.php?action=dlattach;attach=1924;type=avatar Databasfel: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' l.membergroups))
AND FIND_IN_SET(1, a.adlocations) AND l.removed = 0 AND' at line 11
SELECT a.ID_AD, a.ID_MEMBER, a.adtype, a.customadcode, a.isphp, a.maximpressionsperday, a.countviews, a.align, a.ad_title, a.ad_body, a.ad_link, a.ad_link_color, a.ad_body_color, a.ad_title_color, a.ad_bg_color, a.ad_bg_border_color, a.ad_url, a.banner_filename, a.banner_url, l.showbuyadspacelink, l.membergroups, l.boards, l.removed, a.banner_imageurl FROM smf_seller_ad AS a, smf_seller_ad_location AS l WHERE l.ID_LOCATION = 1 AND a.approved = 1 AND a.removed = 0 AND (a.startdate = 0 OR a.startdate <= 1464680536) AND (a.enddate = 0 OR a.enddate >= 1464680536) AND (a.impressionslimit = 0 OR (a.total_views < a.impressionslimit)) AND (a.maximpressionsperday = 0 OR (a.todayimpressions < a.maximpressionsperday)) AND (a.clickslimit = 0 OR (a.total_clicks < a.clickslimit)) and (a.geoip = 0 OR (a.geoip = 1 and FIND_IN_SET('SE', a.geocountries)))
AND (FIND_IN_SET(, l.membergroups))
AND FIND_IN_SET(1, a.adlocations) AND l.removed = 0 AND l.disabled = 0 AND a.isRevShare = 0 ORDER BY RAND() LIMIT 1 Fil: /storage/content/******/guldforum.se/public_html/forum/Sources/adseller2.php Rad: 2574 /Dan
13
« on: May 20, 2016, 03:15:37 pm »
Hi, can I change the height and width, inside this code? Like "max_width" and "max_height"?? /Dan Try this in a php block you have uncomment out one of the examples
// ClassifiedsBlock(2,4, 'random','vertical'); // ClassifiedsBlock(1,1, 'random','vertical'); ClassifiedsBlock(2,4, 'random','horizonstal');
function ClassifiedsBlock($rows = 4, $listings = 4, $type = 'recent', $category = 0, $format = 'vertical', $startHtml = '', $endHtml = '') { global $smcFunc, $scripturl, $txt, $modSettings, $boardurl, $user_info, $context, $sourcedir, $boarddir;
$rows = (int) $rows; $listings = (int) $listings; $category = (int) $category;
// Html Header echo $startHtml; // Load the language files if (loadlanguage('classifieds') == false) loadLanguage('classifieds', 'english'); $g_manage = allowedTo('smfclassifieds_manage'); $groupsdata = implode($user_info['groups'],','); if (empty($modSettings['class_url'])) $modSettings['class_url'] = $boardurl . '/classifieds/';
if (empty($modSettings['class_path'])) $modSettings['class_path'] = $boarddir . '/classifieds/'; $maxrowlevel = $rows; echo '<table cellspacing="0" cellpadding="5" border="0" align="center" width="100%"> '; // Check what type it is $query = ' '; switch($type) { case 'recent': $query = "SELECT i.ID_LISTING, i.commenttotal, i.primaryID_PICTURE, i.title, p.thumbfilename, p.remotefilename, i.currentbid,i.currency, i.datelisted, i.views, i.is_auction, i.totalbids, i.ID_CAT, c.noprice, i.expiredate FROM {db_prefix}class_listing as i LEFT JOIN {db_prefix}class_listing_pic as p ON (i.primaryID_PICTURE = p.ID_PICTURE) LEFT JOIN {db_prefix}class_cat as c ON (i.ID_CAT = c.ID_CAT) LEFT JOIN {db_prefix}class_catperm AS r ON (r.ID_GROUP IN ($groupsdata) AND r.ID_CAT = i.ID_CAT) WHERE i.removed = 0 AND i.approved = 1 AND (r.view IS NULL || r.view =1) GROUP BY i.ID_LISTING ORDER BY i.ID_LISTING DESC LIMIT $listings"; break;
case 'viewed': $query = "SELECT i.ID_LISTING, i.commenttotal, i.primaryID_PICTURE, i.title, p.thumbfilename, p.remotefilename, i.currentbid,i.currency, i.datelisted, i.views, i.is_auction, i.totalbids, i.ID_CAT, c.noprice, i.expiredate FROM {db_prefix}class_listing as i LEFT JOIN {db_prefix}class_listing_pic as p ON (i.primaryID_PICTURE = p.ID_PICTURE) LEFT JOIN {db_prefix}class_cat as c ON (i.ID_CAT = c.ID_CAT) LEFT JOIN {db_prefix}class_catperm AS r ON (r.ID_GROUP IN ($groupsdata) AND r.ID_CAT = i.ID_CAT) WHERE i.removed = 0 AND i.approved = 1 AND (r.view IS NULL || r.view =1) GROUP BY i.ID_LISTING ORDER BY i.views DESC LIMIT $listings"; break; case 'random': $query = "SELECT i.ID_LISTING, i.commenttotal, i.primaryID_PICTURE, i.title, p.thumbfilename, p.remotefilename, i.currentbid,i.currency, i.datelisted, i.views, i.is_auction, i.totalbids, i.ID_CAT, c.noprice, i.expiredate FROM {db_prefix}class_listing as i LEFT JOIN {db_prefix}class_listing_pic as p ON (i.primaryID_PICTURE = p.ID_PICTURE) LEFT JOIN {db_prefix}class_cat as c ON (i.ID_CAT = c.ID_CAT) LEFT JOIN {db_prefix}class_catperm AS r ON (r.ID_GROUP IN ($groupsdata) AND r.ID_CAT = i.ID_CAT) WHERE i.removed = 0 AND i.approved = 1 AND (r.view IS NULL || r.view =1) GROUP BY i.ID_LISTING ORDER BY RAND() DESC LIMIT $listings"; break;
case 'mostcomments': $query = "SELECT i.ID_LISTING, i.commenttotal, i.primaryID_PICTURE, i.title, p.thumbfilename, p.remotefilename, i.currentbid,i.currency, i.datelisted, i.views, i.is_auction, i.totalbids, i.ID_CAT, c.noprice, i.expiredate FROM {db_prefix}class_listing as i LEFT JOIN {db_prefix}class_listing_pic as p ON (i.primaryID_PICTURE = p.ID_PICTURE) LEFT JOIN {db_prefix}class_cat as c ON (i.ID_CAT = c.ID_CAT) LEFT JOIN {db_prefix}class_catperm AS r ON (r.ID_GROUP IN ($groupsdata) AND r.ID_CAT = i.ID_CAT) WHERE i.removed = 0 AND i.approved = 1 AND (r.view IS NULL || r.view =1) GROUP BY i.ID_LISTING ORDER BY i.commenttotal DESC LIMIT $listings"; break;
case 'featured': $query = "SELECT i.ID_LISTING, i.commenttotal, i.primaryID_PICTURE, i.title, p.thumbfilename, p.remotefilename, i.currentbid,i.currency, i.datelisted, i.views, i.is_auction, i.totalbids, i.ID_CAT, c.noprice, i.expiredate FROM {db_prefix}class_listing as i LEFT JOIN {db_prefix}class_listing_pic as p ON (i.primaryID_PICTURE = p.ID_PICTURE) LEFT JOIN {db_prefix}class_cat as c ON (i.ID_CAT = c.ID_CAT) LEFT JOIN {db_prefix}class_catperm AS r ON (r.ID_GROUP IN ($groupsdata) AND r.ID_CAT = i.ID_CAT) WHERE i.removed = 0 AND i.approved = 1 AND i.featuredlisting = 1 AND (r.view IS NULL || r.view =1) GROUP BY i.ID_LISTING ORDER BY i.ID_LISTING DESC LIMIT $listings"; break; } // Execute the SQL query $dbresult = $smcFunc['db_query']('', $query); $rowlevel = 0; while($row = $smcFunc['db_fetch_assoc']($dbresult)) { if ($rowlevel == 0) echo '<tr class="windowbg2">';
echo '<td align="center"><a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '">', $row['title'], '</a><br />'; if (!empty($row['primaryID_PICTURE']) && $modSettings['class_catlist_showimage']) { if (empty($row['remotefilename'])) echo '<a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '"><img src="', $modSettings['class_url'], $row['thumbfilename'], '" alt="" /></a><br />'; else echo '<a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '"><img src="', $row['remotefilename'], '" alt="" /></a><br />'; } echo '<span class="smalltext">'; if (!empty($modSettings['class_catlist_currentprice']) && $row['noprice'] == 0) echo $txt['class_text_price'] . SMFEzformatprice($row['currentbid'],$row['currency']) . '<br />';
if (!empty($modSettings['class_catlist_listingdate'])) { if (!empty($modSettings['class_set_date_format_mdy'])) echo $txt['class_text_date'] . date($modSettings['class_set_date_format_mdy'],$row['datelisted']), ' ', date($modSettings['class_set_date_format_hia'],$row['datelisted']) . '<br />'; else echo $txt['class_text_date'] . date("m/d/Y",$row['datelisted']) . ' ' . date("h:i a",$row['datelisted']) . '<br />'; } if ($modSettings['class_catlist_timeleft']) { echo $txt['class_txt_time_left'] ; echo ($row['expiredate'] == 0 ? $txt['class_expire_never'] : SMFezblockclass_cattimeleft( date("Y",$row['expiredate']), date("m",$row['expiredate']), date("d",$row['expiredate']), date("H",$row['expiredate']), date("i",$row['expiredate']),date("s",$row['expiredate'])) ) , '<br />'; } if (!empty($modSettings['class_catlist_numofbids']) && $row['noprice'] == 0 && $row['is_auction'] == 1) echo $txt['class_text_totalbids'] . ' ' . $row['totalbids'] . '<br />'; if (!empty($modSettings['class_catlist_comments'])) echo $txt['class_text_comments'] . ' (<a href="' . $scripturl . '?action=classifieds;sa=view;id=' . $row['ID_LISTING'] . '">' . $row['commenttotal'] . '</a>)<br />'; if ($g_manage) { if ($row['is_auction'] == 0) echo ' <a href="' . $scripturl . '?action=classifieds;sa=editlisting;id=' . $row['ID_LISTING'] . '">' . $txt['class_text_edit'] . '</a>'; else echo ' <a href="' . $scripturl . '?action=classifieds;sa=editauction;id=' . $row['ID_LISTING'] . '">' . $txt['class_text_edit'] . '</a>'; echo ' <a href="' . $scripturl . '?action=classifieds;sa=deletelisting;id=' . $row['ID_LISTING'] . '">' . $txt['class_text_delete'] . '</a>'; } echo '</span></td>';
if($rowlevel < ($maxrowlevel-1)) $rowlevel++; else { echo '</tr>'; $rowlevel = 0; } } if($rowlevel !=0) { echo '</tr>'; }
echo ' </table><br />'; // Free the Mysql Resoruces $smcFunc['db_free_result']($dbresult); // Html Footer echo $endHtml; } function SMFEzformatprice($price,$currency) { if ($currency == 'USD') return '$' . number_format($price, 2, '.', ''); else if ($currency == 'GBP') return '£' . number_format($price, 2, '.', ''); elseif ($currency == 'CAD') return '$' . number_format($price, 2, '.', ''); elseif ($currency == 'AUD') return '$' . number_format($price, 2, '.', ''); elseif ($currency == 'ZAR') return 'R ' . number_format($price, 2, '-', ''); else return $price . ' ' . $currency; }
function SMFezblockclass_cattimeleft($year, $month, $day, $hour, $minute, $seconds) { global $txt; // make a unix timestamp for the given date $the_countdown_date = mktime($hour, $minute, $seconds, $month, $day, $year, -1);
// get current unix timestamp $today = forum_time(false);
$difference = $the_countdown_date - $today; if ($difference < 0) $difference = 0;
$days_left = floor($difference/60/60/24); $hours_left = floor(($difference - $days_left*60*60*24)/60/60); $minutes_left = floor(($difference - $days_left*60*60*24 - $hours_left*60*60)/60); $seconds_left = floor(($difference - $days_left*60*60*24 - $hours_left*60*60 - $minutes_left*60));
if ($days_left == 0 && $hours_left == 0 && $minutes_left < 5 && ($minutes_left != 0 && $seconds_left !=0)) { echo '<font color="#FF0000">'; } echo '<span class="smalltext">'; if ($days_left > 0) { echo $days_left . 'd ' . $hours_left . 'h ' . $minutes_left . 'm'; } else { if ($hours_left > 0) echo $hours_left . 'h ' . $minutes_left . 'm'; else { if ($minutes_left > 0) echo $minutes_left . 'm ' . $seconds_left . 's'; else { if ($seconds_left > 0) echo $seconds_left . 's'; } } }
echo '</span>'; if ($days_left == 0 && $hours_left == 0 && $minutes_left < 5 && ($minutes_left != 0 && $seconds_left !=0)) { echo '</font>'; } }
14
« on: May 16, 2016, 08:32:36 am »
Pity, Expired!
I think I have to upgrade....
/Dan
15
« on: May 14, 2016, 08:28:54 am »
Hi
I don't get any alert when I need to approve a ad... Is it normal? Can I change that?
/Dan
|
Using SMF's Built-in Search Algorithm
by shuban
March 27, 2023, 09:15:10 am
|
Permissions query
by davejo
March 26, 2023, 04:43:48 am
|
prettyurls - TroubleShooting.wiki
by SMFHacks
March 25, 2023, 01:49:35 pm
|
Download Gallery Option
by SMFHacks
March 23, 2023, 09:34:02 am
|
Lost attachments
by pete
March 22, 2023, 10:24:17 am
|
Additional Permissions
by mickjav
March 18, 2023, 05:21:23 am
|
[Mod]Discord Web Hooks
by SMFHacks
March 17, 2023, 08:48:30 am
|
Site upgrade to 2.1
by SMFHacks
March 12, 2023, 08:51:19 am
|
Theme/CSS design wanted
by mickjav
March 11, 2023, 12:10:11 pm
|
Category Images
by Anmer
March 10, 2023, 06:20:04 am
|
|
|