31
przemeks
Re: News module +keywords
  • 2005/7/14 9:56

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


I'm also thinking about "related articles" in News 1.1 (in this version i add much modygications). I create a "keywords" row in table xoops_stories, with "full text" and other values from News 1.3.1 but when i put any code in article.php to read a keyowrds (for example $story['keywords'] = $article->keywords();) the article.php is displaying blank page.

What i made wrong, why i can't connect to keywords row ?

Something blocks this :/



32
przemeks
Re: News module +keywords
  • 2005/7/13 19:58

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


OK, all works correctly, sorry for stupid posts ;)



33
przemeks
Re: News module +keywords
  • 2005/7/13 19:54

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


OK, i found it, I done all but links aren't displayed :|

Maybe i put this code in wrong place in article.php

Where i musy put this ?



34
przemeks
Re: News module +keywords
  • 2005/7/13 19:20

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


Hi, I have installed News 1.3.1 but there isn't anything what i wont. I can't see anything like a input for keywords for describe the news.



35
przemeks
modifications
  • 2005/6/2 11:48

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


Hello, I have two questions about modifications my Xoops

1. Where i can modify content of page search.php

2. Text between code and /code i changing by file module.textsanitizer.php. How change functions to add function nl2br() but without changing <BR> (maked by nl2br() ) to html code.

I wont transform text by this functions but standard <PRE> isn't satisfacting me and i'm trying to put nl2br() somwhere to change enters (signs of noew line) to <BR>.

function codeConv($text$xcode 1$image 1){
        if(
$xcode != 0){
            
$patterns "/[code](.*)[/code]/esU";
            if (
$image != 0) {
                
// image allowed
                
                
$replacements "'<pre><div class="XoopsCode">'.MyTextSanitizer::codeSanitizer('$1').'</div></pre>'";

                
//$text =& $this->xoopsCodeDecode($text);
            
} else {
                
// image not allowed
                
                
$replacements "'<pre><div class="XoopsCode">'.MyTextSanitizer::codeSanitizer('$1', 0).'</div></pre>'";
                
                
//$text =& $this->xoopsCodeDecode($text, 0);
            
}
            
$text =  preg_replace($patterns$replacements$text);
        }
        return 
$text;
    }


Can anyone help me ?



36
przemeks
News module +keywords
  • 2005/5/20 18:19

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


Hello guys, i search a hack for news module which make a one additional place in news table where will be saved a keywords best describing a current news (for example: google, search, gMail).

The keywords will be adding in admin panel when news i makeing. I serach this hack because i wont create a block in which will be displayed a related links - this calculations will be based on this keywords from table.

Has anyone know anything about this ?



37
przemeks
Re: Sessions in URL
  • 2005/5/7 13:06

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


I don't have acces to php.ini but i add a this line:

php_flag session.use_trans_sid off


to my .httacess file in root directory.

I use simplefield_urls and this hack also require a code in .httacess.

In my .httacess i have:

#<Simplified URL Hack>

RewriteEngine on

RewriteCond 
%{REQUEST_FILENAME}   !-s
RewriteRule 
^.*.(htm|htmlloadpage.php [L]
RewriteRule ^$ loadpage.php [L]

#</Simplified URL Hack>

php_flag session.use_trans_sid off


I don't know much about .httacess but i hope that it shoud work correctly.

Can you check it ?

And thanks for all.



38
przemeks
Re: Sessions in URL
  • 2005/5/7 11:47

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


I reomve this code forum functions.php

if (defined('SID') && (! isset($_COOKIE[session_name()]) || ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '' && !isset($_COOKIE[$xoopsConfig['session_name']])))) {
        if (!
strstr($url'?')) {
            
$url .= '?' SID;
        } else {
            
$url .= '&'.SID;
        }
    }


And SID still is showing in my URL's. Any othetr suggestions ?



39
przemeks
Re: Module with different them
  • 2005/5/5 12:54

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


Yes, this forum is a great place for XOOPS users. I always get answers for my question.



40
przemeks
Re: Module with different them
  • 2005/5/5 12:10

  • przemeks

  • Just popping in

  • Posts: 57

  • Since: 2005/1/29


So i must instal a module "theme_changer" and all will be ok ? :)

Yes i wont to change a themes (this themes inhttp://www.mysite.pl/themes/theme_name).

Thanks for answers ;)




TopTop
« 1 2 3 (4) 5 6 »



Login

Who's Online

209 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

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

Latest GitHub Commits