July 28 2017 09:37:49
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· News Categories
· Contact Me
· Search
Demos
· Glossary
· Netquery
Users Online
· Guests Online: 1

· Members Online: 0

· Total Members: 1,892
· Newest Member: skalsted
Last Seen Users
· batbaru131 weeks
· Froberg37 weeks
· skalsted42 weeks
· muscapaul42 weeks
· webcheck53 weeks
· HopeyS54 weeks
· WildHaggis105 weeks
· grover114 weeks
· fawwaz120 weeks
· tigracar135 weeks
PHP Classes
Support sites
Fusion Sites
PHP-Fusion
PHP-Fusion Mods
PHP-Fusion Themes
PHP-Fusion Beta

PHPfusion-mods.net
StarglowOne
SiteMaster style
wibix.de

Noyoshi.dk



Fuzed Themes
View Thread
Who is here? 1 guest(s)
 Print Thread
Terms Infusion v2.xx
muscapaul
#1 Print Post
Posted on 17-12-2007 18:59
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

There is a major update of the Terms Infusion.

ADDED GENERAL FEATURES
* The Update Publication Date feature that appeared to be incorporated in the Infusion is now functional.

ADDED GLOSSARY FEATURES
* Moving the mouse over the question mark image signifying a Glossary Term will show a popup layer with the Term Title, Explanation and (if given) Image.
* Clicking a marked Term that is not yet included in the Glossary will lead to an error page. (In the popup layer a message will appear with a similar message).
* Clicking a marked Term that has two different explanations in the Glossary will lead to a page with the the possible options. (In the popup layer the same is noticed and the visitor is requested to click the link to see the options.)
* Previously modified core files updated to add above mentioned features. In addition several other core files were modified (see separate instructions).

Updating from the v1.0x can be done by overwriting the existing files in the Infusion folder (beware to appropriately rename your infusion.php files!). To add the full Glossary features when using the glos tags requires the modification of several core files. For an otherwise unmodified site you can upload all files from the changed-files folder. If you have already modified core files you need to check whether changes for the Glossary also apply to previously modified files (in which case you need to modify the file manually) or not (in which case you can upload the supplied modified file).

DOWNLOAD:
Terms_v2.00 (last updated: 21.12.2007)
Edited by muscapaul on 21-12-2007 07:15
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
muscapaul
#2 Print Post
Posted on 17-12-2007 19:19
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

Example items:
Orange
PHP-Fusion
Potato
Edited by muscapaul on 18-12-2007 08:18
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
helmuth
#3 Print Post
Posted on 19-12-2007 14:09
User Avatar

Member

Posts: 23
Joined: 26.04.06

I'm translating to Danish and I wondered about this:

$locale['term104'] = "1.01";

shouldn't be

$locale['term104'] = "2.0";
 
http://helmuth.dk/
helmuth
#4 Print Post
Posted on 19-12-2007 18:46
User Avatar

Member

Posts: 23
Joined: 26.04.06

attached Danish locales for v2.0 Wink
helmuth attached the following file:
danish.zip
 
http://helmuth.dk/
muscapaul
#5 Print Post
Posted on 19-12-2007 18:58
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

Er..., helmuth, thanks, but there are three sets of locales...
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
helmuth
#6 Print Post
Posted on 19-12-2007 19:50
User Avatar

Member

Posts: 23
Joined: 26.04.06

I know ... but as far as I could see they are identical ... or ...?

EDIT

just discovered they aren't Sad

back to translation mode Smile
Edited by helmuth on 19-12-2007 19:52
 
http://helmuth.dk/
helmuth
#7 Print Post
Posted on 19-12-2007 20:44
User Avatar

Member

Posts: 23
Joined: 26.04.06

attached the fully translated Danish locales ... I have choosen to zip all the local folders Wink
helmuth attached the following file:
terms_danish.zip
 
http://helmuth.dk/
muscapaul
#8 Print Post
Posted on 19-12-2007 20:59
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

Thx. I will add them tomorrow.
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
muscapaul
#9 Print Post
Posted on 21-12-2007 07:16
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

helmuth wrote:
I'm translating to Danish and I wondered about this:

$locale['term104'] = "1.01";

shouldn't be

$locale['term104'] = "2.0";

Actually, no, because I moved the version number back to the infusion files. Forgot to remove them from the locales, though.
I have added the Danish locales to the download package and emptied the locale definitions that were previously for the version number.

Download link: See first post in the thread.
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
franktombino
#10 Print Post
Posted on 30-05-2008 18:59
Member

Posts: 2
Joined: 30.05.08

hi muscapaul, great work!

I've a problem with this infusion...

In all of pages of news, forum, articles, i see that:

Warning: preg_replace() [function.preg-replace]: Empty regular expression in C:\xampp\htdocs\www\infusions\terms\include\functions.php on line 112

Warning: preg_replace() [function.preg-replace]: Empty regular expression in C:\xampp\htdocs\www\infusions\terms\include\functions.php on line 151

At line 112, the file funcions.php says:
$text = preg_replace($search, $terms, $text);

The same string at line 151.

Please, can you help me?

And sorry 4 my english, i'm italian Smile

Bye
 
muscapaul
#11 Print Post
Posted on 30-05-2008 20:30
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

I cannot give a ready solution. I will try to look at this tomorrow.
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
muscapaul
#12 Print Post
Posted on 31-05-2008 19:01
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

Sorry, I have not been able to reproduce the error. As far as I can tell, all downloadable files are identical to the once I have on my test site. Can you please re-upload all the files and/or perform the file modification again and see if the problem persists?
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
franktombino
#13 Print Post
Posted on 03-06-2008 08:43
Member

Posts: 2
Joined: 30.05.08

Hi.

I've modificated the files, no upload.

I can to try modificate the files another time and I will see if error persist.
 
muscapaul
#14 Print Post
Posted on 03-06-2008 09:23
User Avatar

Super Administrator

Posts: 368
Joined: 24.03.06

I'll await the results.
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
villantz
#15 Print Post
Posted on 16-06-2008 20:13
Member

Posts: 2
Joined: 15.06.08

I test it clever, useful work, regal! i27.tinypic.com/i55b80.gif

King very full!
i29.tinypic.com/izrcc1.jpg

@franktombino
Tipp: correctly necessary and to insert codes into the particular files... for me came in.

Warning: ...... infusions\terms\include\functions.php on line 112
answer:
1. this is e search:
Download source  Code
        else {
            $terms_s .= "".$data_a['term_descript']."_ ";
        }
    }



delete: }
2. this is e search:
Download source  Code
    $text = preg_replace('#\The Glossary contains no matching items.
It may have been added using different lettering,
so you can click the Term to check this.
Otherwise, contact the Administrator to report this error.#si', $locale['term806'], $text);
    $text = descript($text,false);

    return $text;
}



}
return $text; - above it do

in this way correct:
Download source  Code
// Parse text to replace term title with term description and strip url bbcode from text
function parseterm($text) {
    $dsettings = dbarray(dbquery("SELECT * FROM ".DB_PREFIX."term_settings"));
    $type = $dsettings['term_type'];
    if (file_exists(INFUSIONS."terms/".$type."locale/".$settings['locale'].".php")) {
        include INFUSIONS."terms/".$type."locale/".$settings['locale'].".php";
    }
    else {
        include INFUSIONS."terms/".$type."locale/English.php";
    }

    $result_a = dbquery("SELECT term_title, term_descript FROM ".DB_PREFIX."terms ORDER BY term_id ASC");
    $search_s = '';
    $terms_s = '';
    while ($data_a=dbarray($result_a)) {
        $result_b = dbquery("SELECT term_title FROM ".DB_PREFIX."terms WHERE term_title = '".$data_a['term_title']."'");
        $rowsb = dbrows($result_b);
        $search_s .= "'The Glossary contains no matching items.
It may have been added using different lettering,
so you can click the Term to check this.
Otherwise, contact the Administrator to report this error.', ";
        if ($rowsb != 1) {
            $terms_s .= "".$locale['term805']."_ ";
        }
        else {
            $terms_s .= "".$data_a['term_descript']."_ ";

    }
       
    $search_a = substr($search_s, 0, -2);
    $terms_a = substr($terms_s, 0, -2);
    $search = explode(', ', $search_a);
    $terms = explode ('_ ', $terms_a);
    $text = preg_replace($search, $terms, $text);
    $text = preg_replace('#\[b\](.*?)\[/b\]#si', '\1', $text);
    $text = preg_replace('#\[i\](.*?)\[/i\]#si', '\1', $text);
    $text = preg_replace('#\[u\](.*?)\[/u\]#si', '\1', $text);
    $text = preg_replace('#\[center\](.*?)\[/center\]#si', '\1', $text);
    $text = preg_replace('#\[code\](.*?)\[/code\]#si', '\1', $text);
    $text = preg_replace('#\[quote\](.*?)\[/quote\]#si', '\1', $text);
    $text = preg_replace('#\[small\](.*?)\[/small\]#si', '\1', $text);
    $text = preg_replace('#\[url\](.*?)\[/url\]#si', '\1', $text);
    $text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)\](.*?)([\r\n]*)\[/url\]#si', '\4 (\2\3)', $text);
    $text = preg_replace('#\[url=([\r\n]*)([^\s\'\";\+]*?)\](.*?)([\r\n]*)\[/url\]#si', '\3 (\2)', $text);
    $text = preg_replace('#\[img\](.*?)\[/img\]#si', '\1', $text);
    $text = preg_replace('#\The Glossary contains no matching items.
It may have been added using different lettering,
so you can click the Term to check this.
Otherwise, contact the Administrator to report this error.#si', $locale['term806'], $text);
    $text = descript($text,false);
        }
    return $text;
}




Warning: ...... infusions\terms\include\functions.php on line 151
answer:
1. this is e search:
Download source  Code
        else {
            $images_s .= "".$data_a['term_image'].", ";
        }
    }



delete: }
2. this is e search:
Download source  Code
    $text = descript($text,false);

    return $text;
}



}
return $text; - above it do

in this way correct:
Download source  Code
// Parse text to replace term title with term image
function parsetermimg($text) {
    $result_a = dbquery("SELECT term_title, term_image FROM ".DB_PREFIX."terms ORDER BY term_id ASC");
    $search_s = '';
    $images_s = '';
    while ($data_a=dbarray($result_a)) {
        $result_b = dbquery("SELECT term_title FROM ".DB_PREFIX."terms WHERE term_title = '".$data_a['term_title']."'");
        $rowsb = dbrows($result_b);
        $search_s .= "'-img-".$data_a['term_title']."-img-', ";
        if ($data_a['term_image'] == '' || $rowsb != 1) {
            $images_s .= "".INFUSIONS."/terms/images/no_image.gif, ";
        }
        else {
            $images_s .= "".$data_a['term_image'].", ";

    }
       
    $search_a = substr($search_s, 0, -2);
    $images_a = substr($images_s, 0, -2);
    $search = explode(', ', $search_a);
    $images = explode (', ', $images_a);
    $text = preg_replace($search, $images, $text);
    $text = preg_replace('#\-img-(.*?)\-img-#si', INFUSIONS."/terms/images/no_image.gif", $text);
    $text = preg_replace('#\[glos\](.*?)\[/glos\]#si', '\1', $text);
    $text = descript($text,false);
        }
    return $text;
}



Enjoy!!
Edited by villantz on 17-06-2008 19:17
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Infusion extended profile Infusions 2 24-06-2011 09:19
Terms Infusion v3.XX Infusions 46 27-04-2011 18:39
Button Panel Infusion v2.xx Infusions 20 09-03-2011 02:16
Newsletter Infusion v2.xx Infusions 92 11-06-2010 15:02
Open Newsletter Infusion v2.00 Infusions 4 04-02-2010 17:26
Donate
Please help to make
muscapaul.com
possible and enable
further improvements!
Login
Username

Password



Forgotten your password?
Request a new one here.
Temporary email addresses
Please note: While activating new accounts I usually check them out. If I notice an account registered with a temporary email address it will be deleted.
Newsletter
Newsletters are for registered members only.
Shoutbox
You must login to post a message.

10/11/2013 18:48
Cool! This site is still around!

18/10/2013 15:28
hey! Smile

24/06/2011 20:40
My name is Andreo, I'm new member Smile

24/06/2011 20:39
Hello Muscapaul, is there anyone here ?

12/09/2010 20:02
nice mod thanks Smile

10/07/2010 10:01
Paul, hows thing?

06/07/2010 22:47
Who becomes the world champion on football? We wil

02/07/2010 10:11
Do you like buritas or tako? Britney likes it

01/07/2010 09:38
And after all and the truth it has well turned out.

25/06/2010 15:53
I hate Spammers, and whats about that very silly cop-thing?

Render time: 0.16 seconds 3,729,746 unique visits