31
shank
Re: Tables Drawn around Forum Descriptions (w/Picture Goodness)
  • 2006/2/10 23:25

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


It looks fine to me in both IE and FF.
s l s h a n k l e @ b e l l s o u t h . n e t



32
shank
Re: how do you set theme ?
  • 2006/2/10 15:45

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


I could tell you had it right, I was just specifying that for anyone who reads this and trys it. When you were telling RoMeo how to do it you didn't specify that and if it is not wrapped it errors.

Anytime you tell someone how to do this make sure and tell them the code has to be inside the if user clause. At least the insert part of the code does.

Later,
Steve
s l s h a n k l e @ b e l l s o u t h . n e t



33
shank
Re: how do you set theme ?
  • 2006/2/9 18:39

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


<offtopic>

Looks like that thing is getting more use than I thought it was.

I made a new one that will show a pop up on new messages if your interested.

one thing though...

Quote:

V6-Maniac wrote:
and in your theme.html this code wherever you want the alert to show.

<{insert name="pms"}>
<
a href="<{$xoops_url}>/viewpmsg.php">
<{if 
$msgcount 0}>
<{if 
$msgcount 1}>You Have <{$msgcount}> New Messages
<{else}>You have <{$msgcount}> New Message
<{/if}>
<{else}>Private 
Messages
<{/if}></a>


this should be wraped in if $xoops_isuser like so:

<{if $xoops_isuser}><{insert name="pms"}>
<
a href="<{$xoops_url}>/viewpmsg.php">
<{if 
$msgcount 0}>
<{if 
$msgcount 1}>You Have <{$msgcount}> New Messages
<{else}>You have <{$msgcount}> New Message
<{/if}>
<{else}>Private 
Messages
<{/if}></a><{/if}>


or you'll probably get errors

</offtopic>
s l s h a n k l e @ b e l l s o u t h . n e t



34
shank
Re: Switching Main Menu and Login?
  • 2006/2/9 1:00

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Go to admin sytem blocks and change the weight of the login, and main menu blocks. the lower the number the closer to the top of the page.
s l s h a n k l e @ b e l l s o u t h . n e t



35
shank
Re: PHP error code
  • 2006/2/1 16:46

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


s l s h a n k l e @ b e l l s o u t h . n e t



36
shank
Re: PHP Error
  • 2006/2/1 0:47

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


I don't know what to tell you, but everyone else is going to tell you that a notice is of no importances, and to go to admin system preferances and turn off php debug.
s l s h a n k l e @ b e l l s o u t h . n e t



37
shank
Re: User menu time update and pm popup
  • 2006/1/31 3:55

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Check out this thread!

Particularly post # 10
s l s h a n k l e @ b e l l s o u t h . n e t



38
shank
Re: Adding Xoops variables to a block
  • 2006/1/31 3:52

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Why not just code it into the theme?
s l s h a n k l e @ b e l l s o u t h . n e t



39
shank
Re: How can i put INBOX in other bloc that User Menu ???
  • 2006/1/31 3:08

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Or, if you don't want to mix php and html codes in your theme (That is bad style ya know) you could do this:

Save this code as insert.pms.php in the class/smarty/plugins/ folder

<?
function 
smarty_insert_pms()
{
GLOBAL 
$xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
$criteria->add(new Criteria('to_userid'$uid));
$msgcount $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount'$msgcount);
}
?>


and in your theme place this code wherever you want thealert to show
<{if $xoops_isuser}><{insert name="pms"}>
<
a href="<{$xoops_url}>/viewpmsg.php">
<{if 
$msgcount 0}>
<{if 
$msgcount 1}>You Have <{$msgcount}> New Messages
<{else}>You have <{$msgcount}> New Message
<{/if}>
<{else}>Private 
Messages
<{/if}></a><{/if}>



And if you want a pop up on new messages check This Thread. The zip file contains the smarty file.
s l s h a n k l e @ b e l l s o u t h . n e t



40
shank
Re: coding question
  • 2006/1/31 2:57

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Save this code as insert.pms.php in the class/smarty/plugins/ folder

<?
function 
smarty_insert_pms()
{
GLOBAL 
$xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
$criteria->add(new Criteria('to_userid'$uid));
$msgcount $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount'$msgcount);
}
?>


and in your theme place this code wherever you want thealert to show
<{if $xoops_isuser}><{insert name="pms"}>
<
a href="<{$xoops_url}>/viewpmsg.php">
<{if 
$msgcount 0}>
<{if 
$msgcount 1}>You Have <{$msgcount}> New Messages
<{else}>You have <{$msgcount}> New Message
<{/if}>
<{else}>Private 
Messages
<{/if}></a><{/if}>



And if you want a pop up on new messages check This Thread. The zip file contains the smarty file.
s l s h a n k l e @ b e l l s o u t h . n e t




TopTop
« 1 2 3 (4) 5 6 7 ... 15 »



Login

Who's Online

235 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 235


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