The Arcive of vBulletin Modifications Site. |
|
PM 'You have X New Message(s)' relocation Details »»
|
|||||||||||||||||||||||||||
|
PM 'You have X New Message(s)' relocation
Developer Last Online: Feb 2016
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 Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Hacking is probably required as that variable is only coded to work in that one template.
|
|
#3
|
|||
|
|||
|
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? |
|
#4
|
||||
|
||||
|
No this is a hacking issue.
Try this but it's not tested. In global.php find: PHP Code:
PHP Code:
- miSt |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
Im having the same problem but with the following.
Code:
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><a href="private.php?s=$session[sessionhash]" title="Click Here to Open Your Private Messages $inboxname"><normalfont color="{categoryfontcolor}"><b>Private Messages</normalfont></b></a></td>
</tr>
<tr>
<td width="50" bgcolor="{secondaltcolor}" align="center" valign="top">
<img src="{imagesfolder}/$lightbulb.gif" alt=""></td>
<td width="453" bgcolor="{firstaltcolor}" align="left" valign="top">
<smallfont>$welcometext <b>$newposts</b></smallfont>
$headpmsmessage= "You have $headpms[messages] new message(s)";
<smallfont>Members: $numbermembers , Threads: $totalthreads , Posts: $totalposts<br>
Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
</smallfont>
</td>
<td bgcolor="{firstaltcolor}" colspan="5"><smallfont>
Your current private message status.<br>
<a href="private.php?s="><b>$newpm[messages]</b> : New messages.</a><br>
<a href="private.php?s="><b>$unreadpm[messages]</b> : Unread messages<br></a>
</smallfont></td>
</tr>
and this is located inside "forumhome_pmloggedin" |
|
#7
|
||||
|
||||
|
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 |
|
#8
|
|||
|
|||
|
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,
|
|
#9
|
||||
|
||||
|
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 ![]() - miSt |
![]() |
|
|