• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > eCommerce Factory Suite for Joomla CMS. > Ads Factory > Questions & Answers
Pages: [1]
« previous next »
  Print  
Author Topic: Questions & Answers  (Read 5064 times)
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Questions & Answers
« on: May 04, 2009, 10:24:07 am »

Q: Hi I have a problem with the view profile section when not logged in. When you are not logged in if you click on view user profile it comes up with you are not allowed to view this resource, but the user profile info still comes up. I really need the info to not come up unless logged in.

A: edit file helper.php
the function getPublicTasks
delete the task "userprofile" from the existing array.
« Last Edit: May 25, 2010, 11:34:18 am by Erik » Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
General configuration proceedings
« Reply #1 on: May 06, 2009, 09:27:19 pm »

Just in case if it wasnt obvious Wink here a general proceeding:

check if these folders have writing rights (make them 777 to be sure):
[....]/components/com_adsman/templates/cache

make this configuration file writable (also 777 to be sure):
[...]/components/com_adsman/options.php
« Last Edit: May 06, 2009, 09:29:04 pm by Erik » Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
How to create a link to add new ads
« Reply #2 on: May 27, 2009, 09:22:17 am »

Q: How to create a link to add new ads?
A: Create a new menu item of the type "external link" with the Link :
index.php?option=com_adsman&view=adsman&task=new

PS. See also attached picture.
« Last Edit: June 22, 2009, 11:12:40 am by Erik » Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Search Function
« Reply #3 on: August 12, 2009, 09:39:58 am »

Adding a Search Function:
http://www.thefactory.ro/joomla-forum/ads-factory/search-function-2188.0.html.html
Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Smarty templates - client emails
« Reply #4 on: December 22, 2009, 11:13:46 am »

Q: How to add the client e-mail in the details page?

A: Edit the Smarty template as follows:
<tr>
<td style="padding-left:15px;">{$smarty.const.adsman_email}:&nbsp;{$user->email}</td>
</tr>

Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Slashes in messages
« Reply #5 on: December 28, 2009, 01:48:45 pm »

Q: Messages in ad have slashes, for example if you put ' it will show as /'

A: Edit the template: elements/t_details_add_tab.tpl
<td>{$mes->comment}</td>
becomes:
<td>{$mes->comment|stripslashes}</td>

or to add nl2br to same to remove CRLF:
<td>{$mes->comment|stripslashes|nl2br}</td>
« Last Edit: December 29, 2009, 10:26:49 am by Erik » Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Modules Item ID issues
« Reply #6 on: January 11, 2010, 04:09:00 pm »

this affects version 1.5.1

Here the solution:

You must require the route.php file, so add the following to the affected module file (ex. mod_adsman.php)

require_once (JPATH_ROOT.DS.'components'.DS.'com_adsman'.DS.'helpers'.DS.'route.php');


and replace
global $Itemid;

with
$Itemid = AdsmanHelperRoute::getMenuItemByTaskName("listadds");

For older versions a simple hardcoding of the itemid with actual ads menuid should do the trick.
Ex. Instead of global $Itemid; will be $Itemid=XX; (where XX means the ads menu item value).
« Last Edit: January 11, 2010, 04:12:10 pm by Erik » Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
author information
« Reply #7 on: March 22, 2010, 05:19:41 pm »

Q:
I am missing the Author information in the ad-list.
How to create a phonenumber by the Author?

A:
Check please the template documentation under:
http://www.thefactory.ro/support/documentation/ads-factory-tutorial---templating.-configuring-the-display.html

it will go something like this....
if(CB){
   integrate CB();
   manual template insert;
}else{
   create Custom Field;
   Manage Position();
}
Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Site admin notification on new ad
« Reply #8 on: July 21, 2010, 09:12:27 am »

Q: How do I get an email notification sent to the site admin when a new ad is posted?

A:
This function is actually already present in the code but is commented out.
All you have to do is to edit file:
models/adsman.php

search there for the saveAdd method and remove // from the beginning of the following lines:

//        if(!$error){
//         $mail_from = $mainframe->getCfg('mailfrom');
//         $site_name = $mainframe->getCfg('sitename');
//         $taskItemID = AdsmanHelperRoute::getMenuItemByTaskName("listadds");
//         JUTility::sendMail($mail_from, $site_name,$mail_from, "Add posted", "Add posted {$add->title} see here ".JURI::root()."index.php?option=com_adsman&task=details&view=adsman&id=$add->id&Itemid=$taskItemID", true);
//        }
//      
Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Demo Theme
« Reply #9 on: November 05, 2010, 10:29:31 am »

The "Demo" Theme is the exact theme used in the Demo and it is particularly designed for the Demo site. To fit best to this theme you either must have the same data structure (i.e. category images in the designated folder , category custom fields) either just remove them to fit your site' s structure.
Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
create linkable URL and e-mail Custom Fields?
« Reply #10 on: March 07, 2011, 04:54:48 pm »

Q: How can I create linkable URL and e-mail Custom Fields?

A: An example to create an email custom field

From admin area, Custom Fields ->toolbar button: New

Field configuration
Field Label: Ex: 'Contact e-mail'('Site URL')
DB Name: Ex: 'usermail' ('usersite')
Type: choose from drop down list ('TextBox')
Section: choose from drop down list (in generally 'Ad field')

Settings
Validate Type: choose Email (to be sure that the user enters a valid email)

Display settings
CSS Class Name: usermail
Field ID: usermail

Style Attributes: Ex: margin-bottom:5px; width:150px;

Category assignment
Select needed category

Save

toolbar button: Positions / Manage positions:
New position

complete the following fields:
Position: fill with a position title (ex.: My Ads Email Position )
Unique Name: field ID in template (ex. myadsemail)
Position description:    Position Info (ex. Position for My Ads Email Template )
Position Template: Select the component template you need from the list ( *.tpl file) where the position will be located. (ex t_details_add.tpl will display your custom field )
Position item: here you enter the custom layout of a field to be listed in this position (ex: <b>%LABEL% <a href="mailto:%VALUE%">%VALUE%</a></b>
 to make the mail address an email link), where "%LABEL%" is field title and "%VALUE%" is field html value
 
Save

toolbar button: Field Assignment
 
Positions / Fields display page
click on field name and from right column 'Assign Fields on pages' select the positions to be added.
Ex. for 'Contact e-mail( usermail )' field, Choose 'My Ads Email Position in t_details_add.tpl'
and for another field like 'Site URL( usersite )', choose 'My Ads Site Position ( myadssite )' to get different links (email, and URL).

Save.
Logged
Erik
Administrator
Hero Member
*****
Posts: 3120



View Profile
Adding images to categories
« Reply #11 on: August 04, 2011, 10:17:43 am »

You can ad images for each category in the YOUR_SITE_ROOT/images/ads_categories/ folder of your site like this:

If the 'ads_categories' folder does not exists, you will have to create it. The pictures must be named as "cat_%CAT_ID%.jpg" where %CAT_ID% is the id number of the category.

This path is used in template files t_catlist_level0.tpl and t_catlist_levelx.tpl from demo theme.
The default img width is set to 150. If you need a smaller img, change the width in this line
<img src="{$ROOT_HOST}/images/ads_categories/cat_{$categories[category]->id}.jpg" border="0" width="150"/>
according to your needs.
Logged
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script