| Topic: | Anyone know how to modify this? |
|---|---|
|
starteck2002
Noob
Posts: 4 Posted: |
This bit of code will display a gif image if there is any unread PM's. I purchased PMBOX Messenger from PortalZine and this code does not work for that (looks at wrong tables). Alex (of PortalZine) has not been around for a while due to illness so I can't ask him and to add to that he has encoded his block with ioncube so i can't look at that either Anyone have any ideas? I can give full access to my site for anyone who is interested in getting this working. TIA, Dave |
|
Chestnut
Site Admin Posts: 1320 Posted: |
Little clean up first Now I modified the table call to give you a more easy way to change the table the code must look in : And I added the pnModDBInfoLoad that you will probably need if you are getting the tables of the pmBOX instead of the original ones. Just remove the // in front of it. Lastly, remember to change the "pathto/flashing/image....." :wink: Chestnut ! ![]() Site Admin |
|
starteck2002
Noob
Posts: 4 Posted: |
I must be doing something wronmg I've changed the tables, added a bit to show the number of messages as well as the graphic but it's still not working. I've attached a screen grab of the DB. I suppose it might help if I actually understood what I was doing. Thanks very much for your help so far Frank ![]() |
|
Chestnut
Site Admin Posts: 1320 Posted: |
Variables are not parsed between single quotes : And lastly, it is better to check if you have an sql error... As for the rest................ :?: By the way... only to put that question away... I hope for you that you have at least 1 unread message because if not... :wink: Chestnut ! ![]() Site Admin |
|
Chestnut
Site Admin Posts: 1320 Posted: |
aw dammit....... SIGH !!!! SO WRONG !!!!!!! Should be : Chestnut ! ![]() Site Admin |
|
starteck2002
Noob
Posts: 4 Posted: |
yes, there is at least one unread message I'll give this a go tonight and see if it works. This is all because I designed a theme and it requires the number of unread pm's to be displayed - i thought it was a really easy task Anyone heard any news about Alex (PortalZine)? Hope he's ok. |
|
starteck2002
Noob
Posts: 4 Posted: |
This is now working but shows all messages, not just unread messages. Any ideas on what to do next? Thanks for your help, Dave EDIT : Code tag, code tag, code tag, code tag.... |
|
Chestnut
Site Admin Posts: 1320 Posted: |
mmm... I don't see much... The where is there. Chestnut ! ![]() Site Admin |