31
V6-Maniac
Re: how do you set theme ?
  • 2006/2/9 22:22

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


I use this scropt for 2 months now.
And already used the "if user" command.
If no user it wil simple say "login - Register"
But still thank for the tip.
Quote:

shank wrote:
<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>



32
V6-Maniac
Re: A xoops module generator to test
  • 2006/2/9 1:52

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


I'll will watch this project.
I'm look forward to the end result...



33
V6-Maniac
Re: how do you set theme ?
  • 2006/2/8 23:32

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


Hack made by Shank... so al the credits go to him.

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.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>



34
V6-Maniac
Re: how do you set theme ?
  • 2006/2/8 23:01

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


Quote:

RoMeO wrote:
@V6-Maniac
thank you veryyy much :))

its working !!


:: OFFTOPIC - MODE::
I saw your registration later on.
And looked in your profile.
Seems you live in a place that my XOOPS thinks it is an #oops# word. LoL
And althougt i have installed Xlanguage the static info issn't translated yet.
Aren't you queries where it is about...


:: ONTOPIC - MODE::



35
V6-Maniac
Re: how do you set theme ?
  • 2006/2/8 22:38

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


Quote:

RoMeO wrote:
@V6-Maniac
thank you veryyy much :))

its working !!


Your welcome...!



36
V6-Maniac
Re: how do you set theme ?
  • 2006/2/8 20:50

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


Edit your theme.html
Look for:
<td rowspan="2" id="leftcolumn">
        <!-- 
Start left blocks loop -->
        <{foreach 
item=block from=$xoops_lblocks}>
          <{include 
file="obscene_v2/obblock.html"}>
        <{/foreach}>
        <
br />
        <
img src="<{$xoops_imageurl}>/images/1px.gif" class="obSpacer" alt="spacer" />        <!-- End left blocks loop -->

      </
td>



replace with:

<{if $xoops_showlblock == 1}> 
<
td rowspan="2" id="leftcolumn">
        <!-- 
Start left blocks loop -->
        <{foreach 
item=block from=$xoops_lblocks}>
          <{include 
file="obscene_v2/obblock.html"}>
        <{/foreach}>
        <
br />
        <
img src="<{$xoops_imageurl}>/images/1px.gif" class="obSpacer" alt="spacer" />        <!-- End left blocks loop -->

      </
td>
<{/if}>



37
V6-Maniac
Re: SmartPartner 1.02
  • 2006/2/8 15:30

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


My Original version of Smartpartner 1.02 work fine on php5.
Maybe (correct me if i'm wrong) it has something todo with the php5 config...
Like:

- php_flag register_globals
- php_admin_flag allow_url_fopen
- php_flag session.use_trans_sid



38
V6-Maniac
Re: Xoops 2.0.13.2 Blocks weight issue
  • 2006/2/7 13:05

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


It is the issue off XOOPS 2.0.13.* and below.
The Block layout no mather what weight you assign is as following...

center-center blocks
center-left block - center-right block
Frame-Left block - Frame-Right block

By editing your theme.html you can put the right frame block under the center left and right blocks.
On my site i installed the multiblock hack.
Which make it possible to create more blocks then the orignal XOOPS can do.
Her is the link to that topic: Click here



39
V6-Maniac
Re: CBB - Viewing Options
  • 2006/2/7 11:39

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


Go to your Adminpage -> Template Set Manager -> your Theme -> Forum -> newbb_thread.html.
The first line says: <a id="forumpost<{$topic_post.post_id}>"></a>
If you deleted this line then a user whenever he is selecting a topic.
Will always start at the top off a topic.

Beware: make an backup off "newbb_thread.html with copy and past first.
For if something goes wrong.



40
V6-Maniac
Re: Looking to hire xoops expert for custom user registration!
  • 2006/2/2 13:18

  • V6-Maniac

  • Just popping in

  • Posts: 86

  • Since: 2005/2/15


You've got mail...




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



Login

Who's Online

163 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 163


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