121
tzvook
Re: Catads, a feature request..
  • 2008/12/23 19:37

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


English translation:

Hello all,

The module Catads evolving with new features requested by users.

This module allows you to publish ads on your site.

You can test here


Description:

Key features: Key features:
- The member can follow his ads (sub-menu 'my ads')
- It can edit or delete their postings.
- It may suspend (and resume) their publication.
- It may revive the publication of an announcement expired.
- It can choose the mode of contact.
- Possibility to be notified of new publications
- Possibility to make comments

Options: The options:
- Moderation or not
- Anonymous poster or may not
- Number of ads per page
- Number of new (index)
- Number of ads per page hotel
- Duration of publication ads
- Number of re-authorized publications
- Announcing new day for x
- Form bbcode or not
- Upload images authorized or not.
- Size, height and width parameters image
- Displaying a map of France (www.france-map.fr)

Administration:
- System Overview - System General
- Management of topics
- Management options dropdowns (currency ,...)
- List of ads waiting (if moderation), published expired
- Approval, editing, deletion of ads
- Erase ads expired more than x days
- Changing the statutes batch of ads.
- Remove ads per user or global or date.
- Addition of a renewal announcement.
- Addition of an approaching expiration.
- Creation of a block "Sending email at the approach of the end".
- Add access permissions Submissions categories and ads in categories.
- Reorganization of the administration.
- Moving images in the file uploads to the site root
- Creating vignettes

Users
- Sorts in ascending or descending ads.
- Changing the form to choose to receive email expiration or not.
- Improved interface lists of ads.
- Improving the interface of the announcement.
- System agradable image ads ajax "Popbox"
- Overview of images
- Bug display printer, adding a photo.
- The user fear renew his announcement when he receives by email or pm.
- Bug: the number of reading the ad does more increases after the number 127.
- Bug: Problem display categories.
- Renew ads

You can download this version here

I urge you to read the documentation little "A lire.txt"

The media is here.

Thank you to Eparcyl92 and Tatan for testing and Mariane (from www.arabxoops.com) for the translation into English.



122
tzvook
Re: Blocks admin usabiity: Could do MUCH MUCH better.
  • 2008/12/9 15:06

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Quote:

sailjapan wrote:
I never tried 2.2 but that sounds like a great way of handling blocks!


Yep - it's one of the greatest thins in the 2.2.x and there were some modules that really took advantage of it .... Weblinks module gave the option to put blocks in it's main categories - Imagine you can put relavant blocks for your module's pages content !!!!
It opens a lot of posibilities - like put relevant ads in the right forum or the right article-category ... etc'

SO - yes - the 2.3 series is good , but still has to adopt some 2.2.x abilities



123
tzvook
Blocks admin usabiity: Could do MUCH MUCH better.
  • 2008/12/9 14:06

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Unfortunately, unlike the 2.2.x. series - the 2.3.x has only the ability to put blocks "in the module" and not the ability to choose "pages in the module"

The 2.2.x has the ability to put a block (lets say Videotube)
in:
- all module pages
- View by user
- search youtube
- Video help

And that is the BIG BIG minus in it !!!



124
tzvook
Re: Customizing the look of individuals blocks
  • 2008/12/5 16:56

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


I'm back

now ..... in your theme.html you can use it like this:

lets say we deal with the 'center-center block'

we can use it in our theme like this:

<div style="padding: 5px;">
<{if 
$block.title|mb_truncate:11:"":'UTF-8' == "green-block"}>
<{elseif 
$block.title|mb_truncate:9:"":'UTF-8' == "red-block"}>
<
div class="bl"><div class="br"><div class="tl"><div class="tr">
<{elseif 
$block.title != ""}>
<
div class="bl"><div class="br"><div class="ttl"><div class="ttr">
<
div style="font-size: 16px; color:#4b5676; font-weight: bold; vertical-align: middle; line-height: 34px; height:36px; background-image : url(<{xoImgUrl pix/divHeader.gif}>);"><img align="right" src="<{xoImgUrl pix/arrHeader.gif}>" width="13" height="35" alt="" hspace="12" border="0"><{$block.title}></div>
    <{/if}>
<
div class="blockContent"><{$block.content}></div>
</
div></div></div></div>
<
div class="clear">&nbsp;</div>
</
div>


and it works like this
mb_truncate:9 (the number 9 here tels smarty to see if the 9 first chars of your block title equals to "red-block" and if it does - in the sample above it won't write the title, and will start the block with:

<div class="bl"><div class="br"><div class="tl"><div class="tr">


beginning your block title with "green-block" will simply give nothing (to block-title and no html) and so on ...



125
tzvook
Customizing the look of individuals blocks
  • 2008/12/5 16:21

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


A few of you probably knows my way of customizing the look of individuals blocks by giving them a custom title (posted here:https://xoops.org/modules/newbb/viewtopic.php?post_id=265122#forumpost265122 )

With this method I can name (title) blocks like
green-block + whatever title needed
red-block + whatever title needed
blue-block + whatever title needed

And those 3 blocks will look completely different (just by giving them a few characters in the begining of their title) ... via CSS and/or HTML each of those block can look different (so you can make a few "reusable blocks types" and use them whenever needed in your site blocks )

Well - this method won't work with UTF-8 (default in 2.3.x) since the smarty "truncate" is not working with UTF-8

I use this method a lot to give a few of my front-page blocks a unique look
( breaking the XOOPS look a bit )

There is a way to do it in UTF-8 too ( adding a smarty plugin to /xoops/class/smarty/plugins/ )

make a new file ( /class/smarty/plugins/modifier.mb_truncate.php ) with this code:
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty truncate modifier plugin
 *
 * Type:     modifier<br>
 * Name:     mb_truncate<br>
 * Purpose:  Truncate a string to a certain length if necessary,
 *           optionally splitting in the middle of a word, and
 *           appending the $etc string or inserting $etc into the middle.
 *           This version also supports multibyte strings.
 * @link http://smarty.php.net/manual/en/language.modifier.truncate.php
 *          truncate (Smarty online manual)
 * @author   Guy Rutenberg <guyrutenberg@gmail.com> based on the original
 *           truncate by Monte Ohrt <monte at ohrt dot com>
 * @param string
 * @param integer
 * @param string
 * @param string
 * @param boolean
 * @param boolean
 * @return string
 */
function smarty_modifier_mb_truncate($string$length 80$etc '...'$charset='UTF-8',
                                  
$break_words false$middle false)
{
    if (
$length == 0)
        return 
'';

    if (
strlen($string) > $length) {
        
$length -= min($lengthstrlen($etc));
        if (!
$break_words && !$middle) {
            
$string preg_replace('/s+?(S+)?$/'''mb_substr($string0$length+1$charset));
        }
        if(!
$middle) {
            return 
mb_substr($string0$length$charset) . $etc;
        } else {
            return 
mb_substr($string0$length/2$charset) . $etc mb_substr($string, -$length/2$charset);
        }
    } else {
        return 
$string;
    }
}

/* vim: set expandtab: */
?>


..... I'll post the rest in here in an hour since I've been called in the middle of my post



126
tzvook
Re: Classifieds help Please
  • 2008/12/5 10:40

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


@ robertelo
Your question is about basics in XOOPS customization, so I'll answere a general answere ...
(almost) all the module's apearance acheived via it's _modules_/_your-module_/templates/whatever.php files.

Block apearance via it's _modules_/_your-module_/templates/blocks/whatever.php ....

So go there and edit the file you need to (you'll probably understand from the /templates/blocks/ file names which block file should be edited ...

Since Classifieds module need the user to submit the ADD from within a category, adding it to the block may be a bit useless

Don't forget to update the module afterwards (via Site Admin ==> modules admin)

Advice: read a beat @ Xoops FAQ



127
tzvook
Re: Ajax autocompletion feeded with isearch module and video clips
  • 2008/11/10 16:39

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


One more feature suggestion:
Recording the "searched terms" makes more sense then just "words" since you don't know what was really searched ...



128
tzvook
Ajax autocompletion feeded with isearch module and video clips
  • 2008/11/6 21:53

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


I use the search results to dynamiccaly wake-up my inTHEtube module with youtube videos in the searched values ... mysearch with dynamic video clips

Try to search the site (to get results with 5 video clips for the searched term) after the mudules search loop ( try Fashion for instance ) .

This demonstrates how both mysearch and inTHEtube can be extended and linked to other modules .



129
tzvook
Re: Ajax autocompletion feeded with isearch module
  • 2008/11/2 14:31

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Quote:
Maybe in the drop down sugestions we could add an advertise sugestion, is that it? Or you want the advertise to display in search results? Maybe both?


Probably as options on both (though I originaly meant in the scriptaculous dropdown)



130
tzvook
Re: Ajax autocompletion feeded with isearch module
  • 2008/11/2 10:18

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


@ trabis
If you're looking for a feature suggestion:

It would be great if there will be a way to connect the search-results with the ajax suggestions:
adding a html-enable field to search results so that under chosen suggestion (search terms) you''ll have the ability to add links or little banner - so youcould link to inside pages or to external advertizers.
this feature will make the module "a must have"

One more: in the index page, linking the keywords to a url with the search results is very SEO-wise

Have you ever tried to search for Honest politicians ....





TopTop
« 1 ... 10 11 12 (13) 14 15 16 ... 60 »



Login

Who's Online

178 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits