|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
What I would recommend is opening the total listings function and changing this portion:
PHP Code:
Maybe change it to: PHP Code:
__________________
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 |
|
#7
|
|||
|
|||
![]() sadly just makes the page go blank when I call it????
__________________
V4.0.1 Developer |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |