IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Mod_Latest Ads
deejay
сообщение 16.11.06 - 03:53
Сообщение #1


Member
**

Группа: Members
Сообщений: 17
Регистрация: 25.04.06
Пользователь №: 1,841



Hi,

I would like to add at the bottom of the module:

Total Adverts: (example) 568
Post your adverts Here Link to add Advert

Think this would be great!

thanks,
Dave
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Alecfyz
сообщение 19.11.06 - 23:15
Сообщение #2


Gorsk.net Studio
***

Группа: Admin
Сообщений: 1,852
Регистрация: 24.02.05
Пользователь №: 3



Link you can add without any help. Just open code of module and add the link in place you want.
About "total ads" I`ll tell you some later. There is no troubles. wink.gif


--------------------
Ибу ибу ди - хуэй дао муди - [Шаг за шагом можно достигнуть цели (кит.)]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
deejay
сообщение 08.12.06 - 22:28
Сообщение #3


Member
**

Группа: Members
Сообщений: 17
Регистрация: 25.04.06
Пользователь №: 1,841



(Alecfyz @ 19.11.06 - 19:15) *

Link you can add without any help. Just open code of module and add the link in place you want.
About "total ads" I`ll tell you some later. There is no troubles. wink.gif

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$sql = "SELECT COUNT(id) FROM #__classifieds WHERE published = 1 AND confirmed = 1 AND approved = 1";

$database->setQuery($sql);
$result = $database->loadResult();
if (!$result) {
        echo "No ads found";
        } else {
                echo "Total ads is: ".$result;
                }

?>

Now I am looking for a module like latest adds module - but to show the latest ads submitted in the last week or last month.
Any ideas or help please,
Thanks,
Dave
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Alecfyz
сообщение 11.12.06 - 19:09
Сообщение #4


Gorsk.net Studio
***

Группа: Admin
Сообщений: 1,852
Регистрация: 24.02.05
Пользователь №: 3



smile.gif You are smart man smile.gif
--
About module which you have required. If there will much of adds, how do you want to display it in the module? For example, 100 adds by last week|month.....
But just technically this uncomplicated.
cool.gif


--------------------
Ибу ибу ди - хуэй дао муди - [Шаг за шагом можно достигнуть цели (кит.)]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
deejay
сообщение 11.12.06 - 19:28
Сообщение #5


Member
**

Группа: Members
Сообщений: 17
Регистрация: 25.04.06
Пользователь №: 1,841



how do you want to display it in the module? For example, 100 adds by last week|month.....
But just technically this uncomplicated.
cool.gif


I would like to display all of the ads from this. Thats really why I would be looking for either the last week or last month - to show on a seperate page? (Can this be done?)

Thanks Alecfyx
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Alecfyz
сообщение 13.12.06 - 12:15
Сообщение #6


Gorsk.net Studio
***

Группа: Admin
Сообщений: 1,852
Регистрация: 24.02.05
Пользователь №: 3



So... I`ll give you that.
cool.gif


--------------------
Ибу ибу ди - хуэй дао муди - [Шаг за шагом можно достигнуть цели (кит.)]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
deejay
сообщение 18.12.06 - 13:36
Сообщение #7


Member
**

Группа: Members
Сообщений: 17
Регистрация: 25.04.06
Пользователь №: 1,841



(Alecfyz @ 13.12.06 - 08:15) *

So... I`ll give you that.
cool.gif

Thanks Alecfyz. Look forward to seeing it. smile.gif

Cheers,
Dave
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 



Lo-Fi Version Time is now: 18.05.12 - 07:43
Рейтинг@Mail.ru Rambler's Top100 Яндекс цитирования