Go Back   68 Classifieds Forums > v4 Help & Support > v4 Modules / Modifications

v4 Modules / Modifications Information about modules and script modifications for v4. Questions here are beyond "typical" 68classifieds support and not supported by the 68classifieds team.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2008, 06:03 PM
Tim_A Tim_A is offline
Senior Member
 
Join Date: Sep 2006
Posts: 169
Rep Power: 10
Tim_A is on a distinguished road
Default Total Listings problem?? Weird one :P

Okay, this has me stumped....

on my layout.tpl I use the command: {total_listings} to show the total listings of the site which works great

However... when I use an include for a calendar script:

{php}
$LIST=1;
$listWeeks = 52;
$listEvents = 3;
$noOld = 1;
$DF = "D - M d";
$template="monthly.php";
require ("calendar/calendar.php");
{/php}

the calendar shows up fine, but the listing number disappears!!!

If I use a regular include such as: {php} include "banners.php"; {/php} they both work fine!

any ideas about a possible conflict??

Cheers all
__________________
V4.0.1 Developer
Reply With Quote
  #2  
Old 01-10-2008, 08:49 PM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 2,426
Rep Power: 61
Lhotch is just really niceLhotch is just really nice
Default

There may be a variable conflict. Thats one problem about using code snippets, you have to make sure they dont use variables already in use.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #3  
Old 01-11-2008, 04:37 AM
Tim_A Tim_A is offline
Senior Member
 
Join Date: Sep 2006
Posts: 169
Rep Power: 10
Tim_A is on a distinguished road
Default

that would make sense, no doubt there's a 'total listings' with the calendar include.

Is there an alternative way around this? Could I use a SQL query to bring in the total 68 listings? If so, could anyone tell me how please

Always grateful for any help

Tim
__________________
V4.0.1 Developer
Reply With Quote
  #4  
Old 01-11-2008, 11:01 AM
suzkaw suzkaw is offline
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 3,019
Rep Power: 70
suzkaw is a jewel in the rough
Default

Tim,

Here is the post with the total listings function:
http://www.68classifieds.com/forums/...total_listings

You should be able to use it to get the query used.
__________________
Eric Barnes
68 Classifieds Developer
"If a wood chuck could chug beer how much beer could a wood chuck chug?"
Customer Area | Issue Tracker | Knowledge Base | User Manuals | Twittering
Reply With Quote
  #5  
Old 01-11-2008, 03:35 PM
Tim_A Tim_A is offline
Senior Member
 
Join Date: Sep 2006
Posts: 169
Rep Power: 10
Tim_A is on a distinguished road
Default

I'm sorry for being a numpty... but how would i get it to display the total on the page without conflicting?

Thanks again
__________________
V4.0.1 Developer
Reply With Quote
  #6  
Old 01-11-2008, 04:49 PM
suzkaw suzkaw is offline
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 3,019
Rep Power: 70
suzkaw is a jewel in the rough
Default

What I would recommend is opening the total listings function and changing this portion:
PHP Code:
$total_listings=$rs['total'];
return
$total_listings;

Maybe change it to:
PHP Code:
$my_total_listings=$rs['total'];
return
$my_total_listings;
__________________
Eric Barnes
68 Classifieds Developer
"If a wood chuck could chug beer how much beer could a wood chuck chug?"
Customer Area | Issue Tracker | Knowledge Base | User Manuals | Twittering
Reply With Quote
  #7  
Old 01-11-2008, 07:28 PM
Tim_A Tim_A is offline
Senior Member
 
Join Date: Sep 2006
Posts: 169
Rep Power: 10
Tim_A is on a distinguished road
Default



sadly just makes the page go blank when I call it????
__________________
V4.0.1 Developer
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with searching the Listings sporthorsebreeder v3.1 Questions & Support 5 11-16-2007 11:56 AM
How to display category total listings? dankellaway v3.1 Questions & Support 2 03-13-2007 01:25 PM
weird problem after receiving "hash error" dawyatt v3.1 Modifications 8 11-09-2006 02:46 PM
Weird Listing ID problem Bucketman v3.0 Questions & Support 4 04-25-2006 11:46 PM
Display Total Number of Listings suzkaw v3.0 Questions & Support 2 03-30-2006 02:29 PM



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Design by HTWoRKS