11
domecc
Re: SOLVED
  • 2006/8/10 2:49

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


Quote:

irmtfan wrote:
domecc and the others:
i still cant understand your problem with smarty variable.

it can be done eaily in xlanguage 3 and you have selected languages as "Links" ,"images" , ... anywhere you like.

this problem you mentioned is the one i mentioned 1 month ago and phppp solve it by define the smarty var.
see this topic in xoopsforge.com:

xlanguage: how to hard code "select languages" in theme?


Just like #6 said:
<a href="xxxx"><img src="<{$xoops_imageurl}>images/english.gif"></a>
<
a href="yyyy"><img src="<{$xoops_imageurl}>images/schinese.gif"></a>


I just need ability to difine xxx and yyy, but not the whole links code. Thus, it would be more flexible in theme design.

If you visit my website,http://www.malan.com.cn, you may understand what I want.

And now, I use this solution:
<{php}> 
    
/** 
    * code by: scottlai 
    * mailto: scottlai1983 at hotmail dot com 
    */ 
    
global $xoopsTpl
    
$url "http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; 
    
$query_string_arg = array(); 
    if (
count($_GET) > 0) { 
        if (isset(
$_GET['lang'])) unset($_GET['lang']); 
        foreach (
$_GET as $key => $val) { 
           
$query_string_arg[$key] = "$key=$val"
        } 
        
$query_string implode("&"$query_string_arg)."&"
    } 
    
$query_string .= "lang="
    
$url .= "?".$query_string
    
//echo $url; 
    
$xoopsTpl->assign("url"$url); 
<{/
php}> 

<
a href="<{$url}>english">English</a>  
<
a href="<{$url}>schinese">&#31616;&#20307;&#20013;&#25991;</a>  
<a href="<{$url}>tchinese">&#32321;&#39636;&#20013;&#25991;</a>  
<a href="<{$url}>UTF-8">UTF-8</a>
XoopsChina Webmaster



12
domecc
Re: SOLVED
  • 2006/8/9 17:37

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


one problem:

Original URL:
http://localhost/xoops2014/index.php?lang=english

change to URL:
http://localhost/xoops2014/index.php?lang=english&lang=spanish

but not:
http://localhost/xoops2014/index.php?lang=spanish
XoopsChina Webmaster



13
domecc
SOLVED
  • 2006/8/9 5:57

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


Scottlai from XOOPS China has given me a solution:
Is there any better solution?

/** 
      * code by: scottlai 
      * mailto: scottlai1983 at hotmail dot com 
      */ 
     
global $xoopsTpl
         
$url "http://".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; 
         
$query_string_arg = array(); 
           if (
count($_GET) > 0) { 
             if (isset(
$_GET['lang'])) unset($_GET['lang']); 
               foreach (
$_GET as $key => $val) { 
                   
$query_string_arg[$key] = "$key=$val"
               } 
               
$query_string implode("&"$query_string_arg)."&"
           } 
         
$query_string .= "lang="
         
$url .= "?".$query_string
         echo 
$url
         
$xoopsTpl->assign("url"$url); 
     <{/
php}> 

<
a href="<{$url}>english">English</a>   
<
a href="<{$url}>schinese">&#31616;&#20307;&#20013;&#25991;</a>   
<a href="<{$url}>tchinese">&#32321;&#39636;&#20013;&#25991;</a>   
<a href="<{$url}>UTF-8">UTF-8</a>
XoopsChina Webmaster



14
domecc
Re: SOLVED
  • 2006/8/9 2:15

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


Quote:

irmtfan wrote:
using xlanguage 3 final:
https://xoops.org/modules/news/article.php?storyid=3216
it has a new feature to put "select langauge" anywhere in your theme.html


You are right. But it's still not flexible enough.
For example, we have design the theme like this:

<a href="xxxx"><img src="<{$xoops_imageurl}>images/english.gif"></a>
<
a href="yyyy"><img src="<{$xoops_imageurl}>images/schinese.gif"></a>


Thus, we can't use xlanguage's smarty var.
XoopsChina Webmaster



15
domecc
Re: SOLVED
  • 2006/8/8 17:05

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


Quote:

il_berry wrote:
Hi!
in the meantime, I've resolved the trouble!!
Before, I've tryed like you have suggest me. But not only putting a link
with an url like: index.php?lang=english
but adding at the end of the url a $querystring var.
So was good...


Please tell us detail.
Thanks!
XoopsChina Webmaster



16
domecc
Re: Sending mail fails if using SMTP with authentication
  • 2006/4/4 4:15

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


If your admin mail is same as SMTPAUTH‘s name,maybe it can run.

https://xoops.org.cn/modules/newbb/viewtopic.php?post_id=24957

BTW:how to update phpmailer?
Just replace class.phpmailer.php and class.smtp.php?
XoopsChina Webmaster



17
domecc
Re: News 1.44 duplicatable?
  • 2006/3/31 4:06

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


How do I clone a module?

https://xoops.org/modules/smartfaq/faq.php?faqid=274
XoopsChina Webmaster



18
domecc
Re: can you give me the themes>> Sinerji themes ! thanks
  • 2006/3/25 11:41

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


XoopsChina Webmaster



19
domecc
Re: Remove url link from Article module
  • 2006/3/23 9:14

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


Just open template file "article\templates\art_article.html", and comment or delete the following lines:

<!--
<
div class="item">
<
span class="title"><{php}>echo art_constant("MD_URL");<{/php}>:</span>
<
input name="a<{$article.id}>" id="a<{$article.id}>" value="<{$xoops_url}>/modules/<{$dirname}>/view.article.php<{$smarty.const.URL_DELIMITER}>c<{$article.category}>/<{$article.id}>" type="hidden">
<
span class="copytext" onclick="copytext('a<{$article.id}>')" title="URI - <{php}>echo art_constant("MD_CLICKTOCOPY");<{/php}>" ><{$xoops_url}>/modules/<{$dirname}>/view.article.php<{$smarty.const.URL_DELIMITER}>c<{$article.category}>/<{$article.id}></span>
</
div>
-->
XoopsChina Webmaster



20
domecc
News 1.44: UTF-8 encoding in mailto
  • 2006/3/22 2:51

  • domecc

  • Just popping in

  • Posts: 71

  • Since: 2005/10/30


My XOOPS has charset UTF-8, and I use News 1.44 UTF8:

My problem is associated with URL type mailto (Send this Story to a Friend).

When user will click on this link then the e-mail client (such as outlook express) is opening with filed inputs: to,subject and body.

All is great until I will put special characters like Chinese. Microsoft Outlook Express produce some rubbish.

Did anybody know how to specify charset for those parameters like body,subject that e-mail client will understand the character encoding which I used.

Is there any additional attribute like encode to set in this URL.

Thanks a lot for help
XoopsChina Webmaster




TopTop
« 1 (2) 3 »



Login

Who's Online

232 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

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

Latest GitHub Commits