1
AAINC
Re: Removing right side and even left blocks...
  • 2006/3/19 4:38

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Its in your theme.html and probably your css file.

Though you could just change the theme.html, something like delete the td of the rightcolum.

you may have to play around with as it might throw the rest of theme off but it not hard to do.

If i had the theme you wanted changed, I could prolly do it in under half an hour. Easier for me to do than explain.



2
AAINC
Re: Need help with a simple Smarty insert
  • 2005/12/21 2:38

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Quote:

AAINC wrote:
This still works.


Create a php file and name it ex_assign.php

ex_assign.php
<?php
// $Id$
// FILE        ::    ex_assign.php
// AUTHOR    ::    Ryuji AMANO <info@joetsu.info>
// WEB        ::    Ryu's Planning <http://ryus.joetsu.info/>
//

global $xoopsUser$xoopsModule;
if (
is_object($xoopsUser)) {
    
$pm_handler =& xoops_gethandler('privmessage');

    
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
    
$criteria->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
    
$this->assign("ex_new_messages"$pm_handler->getCount($criteria));
}

if ( 
is_object($xoopsModule) ) {
    
$this->assign('ex_moduledir'$xoopsModule->getVar('dirname'));
}

?>


Put ex-assign.php inside the THEME folder.

Now call ex_assign.php into theme by placing the below code right after the body statement in the theme.html.
<{include_php file="$xoops_rootpath/themes/YOUR_THEME_NAME_HERE/ex_assign.php"}>


Now place the below code where you want the message alert to go inside the theme.html
<{if $ex_new_messages 1}>
<
a href="<{$xoops_url}>/viewpmsg.php">Private Messages</a>
<{/if}>
<{if 
$ex_new_messages 0}>
<{if 
$smarty.server.SCRIPT_NAME == "/index.php"}>
<
script language="javascript" type="text/javascript">
<!--
msg="<b>Hello! <{$xoops_uname}></b><br />You have <span style='color:#ff0000; font-weight: bold;'><{$ex_new_messages}></span> new Message(s)";
openwin (msg)
function 
openwin(message) {
open("""message""width=250,height=150,toolbar=no,scrollbars=yes,resizable=yes");
w.focus();
w.document.open();
w.document.write("<html><head></head><meta http-equiv='content-type' content='text/html; charset=<{$xoops_charset}>' /><title>You've Got Messages</title><body><br><br><center>");
w.document.write(message);
w.document.write("<br /><br /><a href="javascript:window.opener.location='<{$xoops_url}>/viewpmsg.php';window.close();">");
w.document.write("View</a>");
w.document.write("</center></body></html>");
w.document.close();
}
// -->
</script>
<{/if}>
<
a  href="<{$xoops_url}>/viewpmsg.php">
<
span style="color:#ff6600;"><{$ex_new_messages}>-Message(s)
</
span></a>
<{/if}>


With this you not only have a Red link saying how many new messages you have, when you return to front page a popup tells you also. If no new messages it just says "Private Message, linking to the inbox.

I am sure someone could clean up and update, but this works in XOOPS 2 XOOPS 2.2 and XOOPS 2.2.3a.



3
AAINC
Re: Need help with a simple Smarty insert
  • 2005/12/21 2:35

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18





4
AAINC
Re: New messages in theme as smarty; how to?
  • 2005/12/13 3:58

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


This still works.


Create a php file and name it ex_assign.php

ex_assign.php
<?php
// $Id$
// FILE        ::    ex_assign.php
// AUTHOR    ::    Ryuji AMANO <info@joetsu.info>
// WEB        ::    Ryu's Planning <http://ryus.joetsu.info/>
//

global $xoopsUser$xoopsModule;
if (
is_object($xoopsUser)) {
    
$pm_handler =& xoops_gethandler('privmessage');

    
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
    
$criteria->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
    
$this->assign("ex_new_messages"$pm_handler->getCount($criteria));
}

if ( 
is_object($xoopsModule) ) {
    
$this->assign('ex_moduledir'$xoopsModule->getVar('dirname'));
}

?>


Put ex-assign.php inside the THEME folder.

Now call ex_assign.php into theme by placing the below code right after the body statement in the theme.html.
<{include_php file="$xoops_rootpath/themes/YOUR_THEME_NAME_HERE/ex_assign.php"}>


Now place the below code where you want the message alert to go inside the theme.html
<{if $ex_new_messages 1}>
<
a href="<{$xoops_url}>/viewpmsg.php">Private Messages</a>
<{/if}>
<{if 
$ex_new_messages 0}>
<{if 
$smarty.server.SCRIPT_NAME == "/index.php"}>
<
script language="javascript" type="text/javascript">
<!--
msg="<b>Hello! <{$xoops_uname}></b><br />You have <span style='color:#ff0000; font-weight: bold;'><{$ex_new_messages}></span> new Message(s)";
openwin (msg)
function 
openwin(message) {
open("""message""width=250,height=150,toolbar=no,scrollbars=yes,resizable=yes");
w.focus();
w.document.open();
w.document.write("<html><head></head><meta http-equiv='content-type' content='text/html; charset=<{$xoops_charset}>' /><title>You've Got Messages</title><body><br><br><center>");
w.document.write(message);
w.document.write("<br /><br /><a href="javascript:window.opener.location='<{$xoops_url}>/viewpmsg.php';window.close();">");
w.document.write("View</a>");
w.document.write("</center></body></html>");
w.document.close();
}
// -->
</script>
<{/if}>
<
a  href="<{$xoops_url}>/viewpmsg.php">
<
span style="color:#ff6600;"><{$ex_new_messages}>-Message(s)
</
span></a>
<{/if}>


With this you not only have a Red link saying how many new messages you have, when you return to front page a popup tells you also. If no new messages it just says "Private Message, linking to the inbox.

I am sure someone could clean up and update, but this works in XOOPS 2 XOOPS 2.2 and XOOPS 2.2.3a.



5
AAINC
Re: Edit welcome message for new members?
  • 2005/12/11 22:33

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Customize/beautify your welcome message

Many thanks to thehttp://xoops-tips.com/ Team for there many tips.



6
AAINC
Many thanks to XOOPS developers worldwide.
  • 2005/11/27 18:46

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Its been awhile since i have used XOOPS.
Donwloading the new 2.2 core and briefly viewing the files I have to give a Huge Thank You to everyone involved.

You guys have given the world, IMHO, the best OO open source portal system. The flexibilty and extendabilty of this core package is amazing and has not even been tapped yet.

I am very greatful and have much appreciation for your work.

THANK YOU.

AAINC



7
AAINC
Re: "Include" some php code into my theme.html
  • 2005/4/28 3:25

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Glad it helped.
It did help? Did you get theme going?

I have been playing with the include_php file, off and on.
It is a fun and easy way to pull all sorts of hidden core functions through the theme. Outside function, within.

Peace



8
AAINC
Re: How to include my own php code?
  • 2005/4/28 3:07

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


Quote:

pembis wrote:
When i add it like this in a page that is on root
<?include("uo/huc.php");?>


it works.

But when i add it to the theme.html it never works? I tried adding my url at the beging of the code or the root path both didnt work?


Place the huc.php in your theme directory.

Call into theme.html like this.
<{include_php file="$xoops_rootpath/themes/your_theme/huc.php"}>



See this thread.

https://xoops.org/modules/newbb/viewtopic.php?topic_id=34191&start=19

Hope you figure it out.


PEACE



9
AAINC
Re: $xoopsMailer->setFromEmail does not set "from" address
  • 2005/4/7 2:57

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


$xoopsMailer->setFromName($usersName);




10
AAINC
Re: "Include" some php code into my theme.html
  • 2005/4/7 0:14

  • AAINC

  • Not too shy to talk

  • Posts: 121

  • Since: 2003/10/18


oops forgot i changed code.

Quote:
Now with the above code, if you have any PM's the number of PM's will show next to the static link 'Private Messages'.


is not true.

If no PM it says 'Private Messages' if 1 or more PM's it change to a red font that says "1-Message(s)" the number will reflect number of PM's.




TopTop
(1) 2 3 4 ... 10 »



Login

Who's Online

220 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 220


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