31
stuie200
Re: copying "inbox" w/ new indicator
  • 2007/11/7 19:27

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


I can only presume its a stylesheet issue but im not a coder so unfortunatly can not advise correctly.

Maybe somebody else may be able to offer help on this one?

regards

Stuart
"I'm as confused as a baby in a topless bar."



32
stuie200
Re: Does anyone has a working link for xcgal module?
  • 2007/11/7 19:17

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


I can assure it's not about the ammount of pictures uploaded at any one time as far as the module itself goes as i have upladed 100+ pics into albums several times without any problems.

Which version of xcGal are you using as i believe there was bugs in the original batch upload which have now been resolved.

As and when i get chance i will download my working xcGal module from my live site, remove my albums and zip it up so you know you are then working with correct code, hope that may be of some help to you. It does have some additional hacks also which may be of benefit for you (watermarking, page title and alt tag hacks e.t.c.)

Regards

Stuart

P.S. do i get a free beer also?
"I'm as confused as a baby in a topless bar."



33
stuie200
Re: copying "inbox" w/ new indicator
  • 2007/11/4 9:18

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Quote:

DjMikeWatt wrote:
Yeah, I don't really know what that means...

Why can't I copy the code from the system_block_user.html file? It works in that block, why would it not work in the theme.html?

Isn't there a piece of code I can paste in there that will provide the functionality I'm looking for?

Just a link that says "Inbox" and points to "/viewpmsg.php" but that will show new messages when they exist... as in:

Inbox(3)

Seems like this shouldn't be all that difficult...


Hi,

I have ammeneded your navbar code below to hopefully include what you are after, replace you current code with the example below. I am no way an expert at this but this should do the job for you but it may still require some formatting on your part to get it looking how you want it.

<td class="topnav" align="center" colspan="3"> <a href="<{$xoops_url}>/user.php?xoops_redirect=/">Login</a
            &
nbsp;&nbsp; <a href="<{$xoops_url}>">Home</a> &nbsp;&nbsp; <a href="<{$xoops_url}>/user.php">My 
            Account
</a> &nbsp;&nbsp;<class="highlight" href="<{$xoops_url}>/viewpmsg.php">Inbox</a> <{php}>
global 
$xoopsUser;
if( 
$xoopsUser )
{
$pm_handler =& xoops_gethandler('privmessage');
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
$criteria->add(new Criteria('to_userid'$xoopsUser->getVar('uid')));
$pm $pm_handler->getCount($criteria);
}

if( 
$pm )
{
echo 
"($pm)n";
}
<{/
php}>&nbsp;&nbsp
            <
a href="<{$xoops_url}>/notifications.php">Notifications</a> &nbsp;&nbsp
            <
a href="<{$xoops_url}>/user.php?op=logout">Logout</a></td>


I have a much more advanced top navigation bar in my theme which included a login form if the user is not logged in and once they are logged in they get a personal greeting along with a customised navigation bar to administer their account, notifications, personal messages and also if the user is an administrator it will also display a link to the admin page but for now i can't post the code as there is too much hacking required but if you are interested i can post it here later.

Regards

Stuart
"I'm as confused as a baby in a topless bar."



34
stuie200
Re: Inbox Notification
  • 2007/10/10 15:14

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Hi,

I presume the title bar as you call it is in your theme. If it is, directly after your link to your inbox place the following code. Include everything between the dotted lines.

---------------------------------------

<{php}>
global $xoopsUser;
if( $xoopsUser )
{
$pm_handler =& xoops_gethandler('privmessage');
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$pm = $pm_handler->getCount($criteria);
}

if( $pm )
{
echo "($pm)\n";
}
<{/php}>

--------------------------------------------

This will simply display the number of new messages in your inbox (logged on user that is) after your link to the inbox in question.

Example: INBOX (2)

Regards

Stuart
"I'm as confused as a baby in a topless bar."



35
stuie200
Re: Show us your Photo Galleries!!
  • 2007/10/10 12:44

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Quote:

JAVesey wrote:
Thanks Stuie200 - most helpful.

Cool site and theme, btw


Thanks

If i can help with anything on the xcGal side drop me a message and i'll see what i can do
"I'm as confused as a baby in a topless bar."



36
stuie200
Re: Show us your Photo Galleries!!
  • 2007/10/10 12:03

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Quote:

sinor wrote:
I think xcgal is a better one.


Out of all the gallery modules i have tried i also prefer xcGal.

I have a couple of blocks running on the home page and if you click the "image gallery" link on the top menu bar you can see xcGal working as it should be.

I have hacked the code to change page titles and display different "alt tags" for images and a few other things including watermarking but generally what you see is the latest release.

Link: Traction Time Image Gallery

Regards

Stuart

Edit: you can set the maximum file dimentions in the admin panel
"I'm as confused as a baby in a topless bar."



37
stuie200
Re: XOOPS 2.0.17.1 RC2 - Blocks and Modules
  • 2007/10/6 17:51

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Hi Catz,

Many thanks for the reply.

The hosting company said they had a corrupt 'mod_fastcgi', this originally was stopping me logging onto my site they say and they have now removed it, is this imperative to the operation of Xoops?

I have done the debug as you requested and the results are as follows although the update appears to have worked without problems:

Notice: Use of undefined constant _BL_MP_CONT - assumed '_BL_MP_CONT' in file /modules/mpmanager/xoops_version.php line 469

Notice: Use of undefined constant _MP_MI_MESSAGE - assumed '_MP_MI_MESSAGE' in file /modules/mpmanager/xoops_version.php line 482

Notice: Use of undefined constant _MP_MI_MESSAGE - assumed '_MP_MI_MESSAGE' in file /modules/mpmanager/xoops_version.php line 482

Notice: Use of undefined constant _MP_MI_LINK_TITLE - assumed '_MP_MI_LINK_TITLE' in file /modules/mpmanager/xoops_version.php line 484

Notice: Use of undefined constant _MP_MI_LINK_DESCRIPTION - assumed '_MP_MI_LINK_DESCRIPTION' in file /modules/mpmanager/xoops_version.php line 486

Notice: Undefined index: link in file /include/cp_functions.php line 241
"I'm as confused as a baby in a topless bar."



38
stuie200
Re: XOOPS 2.0.17.1 RC2 - Blocks and Modules
  • 2007/10/6 9:14

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


*** Bump ***

Sorry about the bump, kind of hoping the daytime shift may be able to offer a little assistance

Many thanks
"I'm as confused as a baby in a topless bar."



39
stuie200
Re: XOOPS 2.0.17.1 RC2 - Blocks and Modules
  • 2007/10/5 17:41

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


It appears to be a complete coincidence that this fault happened after i upgraded.

I have now checked an old XOOPS site i have running which has not been updated for ages and i have exactly the same problem on there also.

For some reason I can not administer the Modules or Blocks but from what i can tell, everything else appears to work ok.

I have noticed that the submit button on the bottom of these two pages just points to "admin.php", should this have further functions attached to the url?

I presume this now boils down to a hosting issue so can anybody tell me why it appears that its just these two functions that are failing and can you offer any advice i can give to my hosts to offer assistance in getting this issue resolved.

Many thanks

Stuart
"I'm as confused as a baby in a topless bar."



40
stuie200
Re: XOOPS 2.0.17.1 RC2 - Blocks and Modules
  • 2007/10/5 10:32

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Hi JAVesey,

Thanks for the reply, yes I did update the system module once I had carried out the upgrade script and everything appeared to work fine without any errors.

I am very familiar with XOOPS and its operations but this one has got me beat for now

For reference here is my setup:

Xoops Version: 2.0.17.1 RC2
PHP Version: 5.2.3
MySQL version: 5.0.27-standard
Apache version: 1.3.39 (Unix)
"I'm as confused as a baby in a topless bar."




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



Login

Username:
Password:

Lost Password? Register now!

Who's Online

72 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 72


more...

Donat-O-Meter

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

Latest GitHub Commits