![]() |
PM 'You have X New Message(s)' relocation
I'm wanting to relocate just the text and variable from the forumhome_pmloggedin template (You have $newpm[messages] new message(s) since your last visit) to the header.
I'm relatively new at this, so I just copied PHP Code:
What else do I need to call out in from the forumhome_pmloggedin template to make the # of new messages show up? Thanks, Jeff |
Hacking is probably required as that variable is only coded to work in that one template.
|
Would it be possible to have the header call out a new template, and then make that new template just like forumhome_pmloggedin, without any of the formatting?
Would that work? |
No this is a hacking issue.
Try this but it's not tested. In global.php find: PHP Code:
PHP Code:
- miSt |
This what i use (no seperate template):
Place this in your phpinclude template.. PHP Code:
It does add a query to every page. Just to hijack this thread for a related question.. I use images that change if there are new PMs (using a variant of the above code) - I want to have $headpmsmessage as the alt text for the images but I cant seem to get it to parse the variable. I know it can be done (a variable as alt text) as the header image uses $bbtitle for it's alt text. Any ideas? Thanks. |
Im having the same problem but with the following.
Code:
and this is located inside "forumhome_pmloggedin" |
You can't use the number of threads and posts etc in the forumhome_pmloggedin template. You can only use them in your forumhome template :)
Regards - miSt |
impossible to make it work ? becouse i want that info to be seen ONLY by the registered ppl thats logged in besides the pm info,
|
It's not impossible to make it work. It just requires hacking and this is not the correct forum for hacking ;). I'm sure if you make a request in the requests forum for this someone wil help you out :D
- miSt |
All times are GMT. The time now is 03:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|