xoops forums

Forum Index


Board index » All Posts




Anonymous

Posted on: 2002/2/28 11:06
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#292231

Re: Hacked the REF Hack :o)

Damn! I gotta stop playing with this hack :o)

Just added the possibility to make tags from any section of the site: forum, downloads, links, faq..

It'll be on the main XOOPS news page soon, so stay tuned


Anexia

Just popping in
Posted on: 2002/2/27 21:41
Anexia
Anexia (Show more)
Just popping in
Posts: 3
Since: 2002/2/22
#292232

Re: Hacked the REF Hack :o)

Euh ! Linamix vu que tu parle français/anglais tu pourrais nous traduire ça sur le forum de XOOPS France avec le lien de la nouvelle version de Ref_hack !!!

Sorry ! My english is very bad.
I read english.... but, not speak or write...

<small>[ Edited by Anexia on 2002/2/28 7:36:54 ]</small>


Anonymous

Posted on: 2002/2/27 21:31
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#292233

Re: Hacked the REF Hack :o)

Just updated the hack again, and added the possibility to define unwanted words in the config file...very usefull to remove common crap

Repacked REF Hack

---
updated link

<small>[ Edited by Half-Dead on 2002/3/1 23:59:56 ]</small>


volker

Just popping in
Posted on: 2002/2/27 15:22
volker
volker (Show more)
Just popping in
Posts: 1
Since: 2002/2/27
#292234

Re: PostgreSQL support? Why not ADODB?

Hello,

one more supported database is fine, but why not use the ADODB-lib. So we could have a lot of supported databases. It is also Open-Source and under the GNU/BSD licence.[quote]


<small>[ Edited by volker on 2002/2/27 15:22:32 ]</small>


Anonymous

Posted on: 2002/2/27 15:05
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#292235

Re: Hacked the REF Hack :o)

Tnx all

BUT...Just hacked it up even more and exported all the settings to a config file: much easier to customize. hehe

See: here

If ya wanna fix it up, i'd do it from the version in the above link..much cleaner


---------
Line breaks aint a bug, since keywords shouldnt have any, but your right about the language characters: wasnt thinking about non english sites when i changed it

<small>[ Edited by Half-Dead on 2002/2/27 16:25:28 ]</small>


ZPC

Official Support Member
Posted on: 2002/2/27 13:53
ZPC
ZPC (Show more)
Official Support Member
Posts: 76
Since: 2002/1/16
#292236

Re: Hacked the REF Hack :o)

I found some bugs, like deleting line breaks, deleting country specific characters etc.

I will try to create some addition soon.


linamix

Just popping in
Posted on: 2002/2/27 13:48
linamix
linamix (Show more)
Just popping in
Posts: 6
Since: 2002/1/8 8
#292237

Re: Hacked the REF Hack :o)

Merci Half-Dead... Bien joué !

Vive XOOPS !!!


A-dog

Just popping in
Posted on: 2002/2/27 11:20
A-dog
A-dog (Show more)
Just popping in
Posts: 19
Since: 2002/1/25
#292238

Re: Hacked the REF Hack :o)

really sweet. man thats nice. Just installed it. Thanks for the cleanup.
I really enjoyed playing with this one.. headers look great..the SE's will really do their jobs with these keywords...


Anonymous

Posted on: 2002/2/27 10:17
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#292239

Hacked the REF Hack :o)

Liked the idea of the ref hack to make the article into keywords for the meta tags, but hated the way it actually made the keywords... so i hacked it at my turn

No more words with more than 3chars, no more html entities in the keywords, and most importantly: no keyword doubles... and all keywords are made uppercase 1st letter

/* article page output */
global $bodytext;
$htmlless strip_tags($metatitle.",".$bodytext);
$search = array(
        
"/&amp;gt;/i",
        
"/&amp;lt;/i",
        
"/&amp;amp;/i",
        
"/&amp;quot;/i",
        
"/&amp;#039;/i",
        
"/[^-w']/i",
        
"/s+/",
        
"/ (.{1,3}),/i",
        
"/(, )$/"
        
);
$replace = array(
        
">",
        
"<",
        
"&",
        
""",
        "'",
        " ",
        ", ",
        "",
        ""
        );
$metatags = preg_replace($search, $replace, $htmlless);
$metatags = explode(", ",$metatags);
$metatags = array_unique($metatags);
$metatags = implode(", ",$metatags);
echo "<meta http-equiv="keywords" content="".ucwords($metatags).""></meta>n";
}
else
{
echo "<meta name="keywords" content="".$meta.""></meta>n";
}
echo "<meta name="description" content="".$xoopsConfig['
slogan'].""></meta>n";
echo "<meta name="generator" content="".$xoopsConfig['
version'].""></meta>nnn";
echo "<meta http-equiv="Content-Type" content="text/html; charset="._CHARSET."" />n";
// Fin - Hack référencement


Feel free to integrate it into the actual ref hack

<small>[ Edited by Half-Dead on 2002/2/27 11:26:00 ]</small>


ZPC

Official Support Member
Posted on: 2002/2/20 19:01
ZPC
ZPC (Show more)
Official Support Member
Posts: 76
Since: 2002/1/16
#292240

Re: This page loaded in x seconds

yes..it's not about the transfer of the page from the server to your browser, it's the time that took the server to parse all the php and sql command and print-out the output...

the time depends on things like server hardware (CPU, memory), operating system, apache+php+sql setup etc...