vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Improved PM Folderview (https://vborg.vbsupport.ru/showthread.php?t=36764)

kreftt 07-07-2002 12:32 PM

hmm, that weird

@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226 :(
sorry

@aquariumpros
your files look fine, so i would need the templates that you added/changed too.
thx
kreftt

aquariumpros 07-07-2002 03:07 PM

Quote:

Originally posted by kreftt
@aquariumpros
your files look fine, so i would need the templates that you added/changed too.
thx
kreftt

Copies of the templates have been e-mailed to you.

Thanks again,
*~AJ~*

kreftt 07-07-2002 07:29 PM

@aquariumpros

you made a mistake in your privfolder template.
where the instructions say to add this:

Code:

<table cellpadding=5 cellspacing=0 border=0 width="{contenttablewidth}">
  <tr>
    <td width="200" valign="top">
    <table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
      <tr bgcolor="{tableheadbgcolor}" id="cat">
      <td align="center" height="28"> <normalfont><b>Folder</b></normalfont></td>
      </tr>
      <tr>
      <td  bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=0">Inbox</a></font></td>
      </tr>
      <tr>
      <td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a></font></td>
      </tr>
      <tr>
      <td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private2.php?s=$session[sessionhash]">Message Tracking</a></font></td>
      </tr>
$folderboxeshack
    </table>
          <br>

<form action="private.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
    <table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
      <tr bgcolor="{tableheadbgcolor}">
      <td  height="28" align="center"><normalfont><b>Add Folder</b></normalfont>$hiddenfolderboxes</td>
      </tr>
      <tr>
      <td bgcolor="{firstaltcolor}" width="100%">$newfolderboxes        <input type="hidden" name="action" value="doeditfolders">
        <input type="image" class="bginput" name="submit"  src="{imagesfolder}/go.gif">
</td>
      </tr>
    </table>
</form>





<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}">
<td colspan=3 align="center">
<normalfont><b>PM Quota</b></normalfont>
</td>
</tr>

<tr>
<td bgcolor="{firstaltcolor}" colspan=3><smallfont>You are using $pmpercent% of your quota.




</font>
</td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" colspan=3>

<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td bgcolor="{secondaltcolor}" width="200"><img src="$barimg" width="$pmpercent %" height="9">
</td>
</tr>
</table>

</td>
</tr>
<tr bgcolor="{firstaltcolor}">
<td width="33%"><smallfont>0%</font>
</td>
<td width="34%" align="center"><smallfont>50%</font>
</td>
<td width="33%" align="right"><smallfont>100%</font>
</td>
</tr>
</table>

</td>
<td width="100%" valign="top">

above this:

Code:

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">

$privatemessages

you added this:

Code:

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">

$privatemessages

instead resulting in this section being showed twice.
if u replace the upper instance of this:

Code:

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<form action="private.php" method="post" name="form">

$privatemessages

with the correct code you should be fine...

kreftt

aquariumpros 07-07-2002 08:36 PM

PERFECT!!!

That fixed it 100%.

Thank you again for taking the time to help me out!!

Great Hack!!!

*~AJ~*

Boofo 07-07-2002 08:50 PM

Wouldn't that have something to do with the specialcharacters variable? I'm just guessing here. :)

Quote:

Originally posted by kreftt
hmm, that weird

@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226 :(
sorry


tHE DSS 07-27-2002 05:32 PM

Hiya,

This hack is pretty smooth.... except, i'd like to implement that bit, showing in brackets, the number of PMs in each folder.

I fiddled with the SQL queries, and seemed to sort it... but, couldn't output.

Where is the output going... and could somone just confirm the query for me?

I'm in the process of fastracking a vB installation with loads of custom stuff, so can't really afford the time to tamper anymore with this.

Cheers.

Tim Wheatley 08-08-2002 12:51 AM

There's no delete button in the sent messages... ?

Tim Wheatley 08-08-2002 01:07 AM

Yes there is - my bad. :)

ryancooper 08-09-2002 12:53 AM

Awesome Hack, Installed Flawlessly!

Thanks!

Boofo 08-22-2002 12:01 AM

Well, sir, it is fixed. There are no more slashes messing up the folder view on Folders that have an apostrophe in the name. Instead of addslashes, stripslashes took care of the problem. :)

Quote:

Originally posted by kreftt
hmm, that weird

@boofo
i have installed the hack on vbb224, 225 and 226 again. i cannot reproduce your error on 224 and 226, while it happens to me too on a 225. i went through the files line by line without finding any reason for this. i exchanged the private.php and private2.php from the error-showing 225 then with the files from working 224 without having any change. i exchanged the files the other direction without the error occuring afterwards.
so my conclusion would be that the error comes from any other change not in the two files from 224 to 225 that was taken back in 226 again, but i cannot tell you which one as i simply dont know.
im sorry my support is that ad but i cant offer any other advice than: try the upgrade to 226 :(
sorry

thx
kreftt


kreftt 08-22-2002 08:15 AM

thank god there are people with more knowledge than me around

Boofo 08-22-2002 04:43 PM

It was perserverance and determination more than anything else, kreftt. "More Knowledge" was not even involved. :)

Quote:

Originally posted by kreftt
thank god there are people with more knowledge than me around

Googa 08-23-2002 04:58 AM

I seem to be having a problem.

The text field next to the button for adding folders is non-existant. Sup with that?

What's wrong here?

kreftt 08-25-2002 08:57 PM

are you sure that you have added te contents of the priv_showfolders_folderbit_add template?

Boofo 08-31-2002 01:55 AM

How can I make the folder list list them in alphabetical order instead of when they were added?

FleaBag 09-03-2002 01:59 AM

Working on 2.2.7, thanks. :)

Darkwolf 09-03-2002 11:56 AM

Well done dude :D

Buddha 09-19-2002 04:14 PM

excellent hack.
thanks.

*clicks installed*

FlyingDutchman 09-19-2002 06:24 PM

smoooooooth hack bro :)
*installs*

kreftt 10-06-2002 08:07 PM

works on 2.2.8 for me

Sc0rp 10-23-2002 07:10 PM

awesome hack:D installed right away! :) thanks mate:)

FleaBag 10-28-2002 11:06 PM

Working well with 2.2.8. Thanks for this hack. ;)

Dynamic One 11-11-2002 08:55 AM

Super hack kreftt. Will test it.

Dynamic One 11-13-2002 11:55 AM

Have installed it but don't get it working :(.

here's a screenschot of waht I get

I don't see the pic. and the amount of post after:
- inbox
- Sent Items
- Message Tracking.

Can you please help me with this, because it's a great hack and I also want it to work.

kreftt 11-13-2002 01:17 PM

hiya

you found the addon already in the beta hacks forum. this is the one that will make it show the number of messages after inbox/sent/tracking.

to your other question:

you are sure that you copied the 3 images to the { imagesfolder that you specified in your admincp? usually it would be /images, but as you are using a heavily modified style, you might have switched it to something like /images/style1, which would be the place for the three images to go too...

Dynamic One 11-13-2002 04:26 PM

Thanks for the fast reply kreftt will add the addon.

Bison 11-13-2002 07:36 PM

Installed!

Very professional look to the private message folder!

Esdee 11-14-2002 06:05 PM

awesome hack.

danrak 11-18-2002 11:54 AM

This is a great hack my users love it. I have gotten some request for something though. Would it be possible to put the buddy list on there too? So they can have the buddy list with the PM link so they can just click on the name and it brings up a new PM message for the buddy?

Thanks for a great hack.

kreftt 11-18-2002 12:30 PM

im glad you like it.

im not sure i have fully understood you though.
you want the buddylist table that is normally shown on the startpage of the usercp to be shown in the privatemessage section too right?

if thats the case, it shouldnt be too hard to do. just tell me if thats what you want and ill tell you the code.

greets

kreftt

350Chevy 11-27-2002 06:22 AM

Works perfect for 2.2.9! :)

Clicked install.

XFLBret 11-28-2002 04:37 AM

this hack is as cool as the other side of the pillow.

just one beef though...

the words "folder" "PM quota" and the "new folder" the text were the same color as the background. i had to go in the templates and adjust them with the normal font color code before the words, if that makes sense. sorry, its not in front of me right now.

anyway, good work

kreftt 11-28-2002 09:45 AM

im sorry youre right, the templates arent fully correct, some editing is still neccessary. ill fix that when vb3 is out...

greets

kreftt

Xer 12-02-2002 09:10 AM

this hack very nice..
but i dont know y i got width problem...
how can i fix it?? 100% width is no any problem..
but when i set it to 730...

kreftt 12-02-2002 03:04 PM

it looks from your screenshot like you didnt replace all neccessary occurences of
Code:

contenttablewidth
with the hardcoded 730. there should be 4 or 5 places to edit in the privfolder template.

greets

kreftt

ggus 12-02-2002 08:44 PM

Just downloaded and attempted to install. Keep getting a parse error on the 2nd hack on the private.php page. The part that starts "$bbuserinfo[usergroupid] !=6)..." If I remove that whole part of the hack then the page will display. Any thoughts? I just pasted directly from the install sheet.

GGus

kreftt 12-02-2002 09:34 PM

erm, the part that you mentioned is commented out at all occurences, and it isnt a start of a part.
to help you, i would need to know the error message that happens after you hacked the file, and your private.php to kreftt@uni.de
greets

kreftt

Xer 12-03-2002 01:22 AM

Quote:

Originally posted by kreftt
it looks from your screenshot like you didnt replace all neccessary occurences of
Code:

contenttablewidth
with the hardcoded 730. there should be 4 or 5 places to edit in the privfolder template.

greets

kreftt


thank you..!
and my Message Tracking page have same problem too...
which 1 template i need goto edit ?!

kreftt 12-03-2002 01:48 AM

if i remember right then this should be the privsent template

greets

kreftt

Xer 12-03-2002 02:32 AM

Quote:

Originally posted by kreftt
if i remember right then this should be the privsent template

greets

kreftt

i have try to edit my privsent..
but still cant fix out the problem...
this is my code from privsent.

Code:

{htmldoctype}
<html>
<head><title>$bbtitle - Private Messaging: $bbuserinfo[username] - Read Receipts</title>
$headinclude
<!-- message selection script -->
<script language="JavaScript">
<!--
function CheckAll(theform) {
        for (var i=0;i<theform.elements.length;i++) {
                var e = theform.elements[i];
                if ((e.name != 'allbox') && (e.type=='checkbox'))
                e.checked = theform.allbox.checked;
                }
        }
function CheckCheckAll(theform) {
        var TotalBoxes = 0;
        var TotalOn = 0;
        for (var i=0;i<theform.elements.length;i++) {
                var e = theform.elements[i];
                if ((e.name != 'allbox') && (e.type=='checkbox')) {
                        TotalBoxes++;
                        if (e.checked) TotalOn++;
                        }
                }
        if (TotalBoxes==TotalOn) theform.allbox.checked=true;
        else theform.allbox.checked=false;
        }
//-->
</script>
<!-- end message selection script -->
</head>
<body>
$header

<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td width="100%"><img src="{imagesfolder}/vb_bullet.gif" align="middle" alt="vBulletin">
        <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt;
        <a href="usercp.php?s=$session[sessionhash]">User Control Panel For $bbuserinfo[username]</a> &gt;
        <a href="private.php?s=$session[sessionhash]">Private Messages</a> &gt;
        Message Tracking</b></normalfont></td>
</tr>
</table>
<!-- /breadcrumb -->

<br>
$cpnav
<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td>$priv_dateselect</td>
        <td align="right">
       
        <table cellspacing="0" cellpadding="0" border="0">
        <form action="private.php" method="post">
        <tr>
                <td><input type="hidden" name="s" value="$session[sessionhash]">
                <smallfont><b>Jump to folder:</b>
                <select name="folderid" onchange="window.location=('private.php?s=$session[sessionhash]&folderid=' + this.options[this.selectedIndex].value + '&daysprune=$daysprune')">
                <option value="0">$inboxname</option>
                <option value="-1">$sentitemsname</option>
                $folderjump
                $readreceiptsoption
                </select>$gobutton</smallfont></td>
        </tr>
        </form>
        </table>
       
        </td>
</tr>
</table>
<br>
<table cellpadding=5 cellspacing=0 border=0 width="{contenttablewidth}">
  <tr>
    <td width="200" valign="top">
    <table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
      <tr bgcolor="{tableheadbgcolor}" id="cat">
          <td align="center" height="28"> <normalfont><b><font color="{tableheadtextcolor}">Folder</font></b></normalfont></td>
      </tr>
      <tr>
      <td  bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=0">Inbox</a> ($inbox_msgtotal)</font></td>
      </tr>
      <tr>
      <td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a> ($sent_msgtotal)</font></td>
      </tr>
      <tr>
      <td bgcolor="{firstaltcolor}" width="100%"><normalfont><a href="private2.php?s=$session[sessionhash]">Message Tracking</a></font></td>
      </tr>
$folderboxeshack
    </table>
          <br>

<form action="private.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
    <table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
      <tr bgcolor="{tableheadbgcolor}">
            <td  height="28" align="center"><normalfont><b><font color="{tableheadtextcolor}">Add
              Folder</font></b></normalfont>$hiddenfolderboxes</td>
      </tr>
      <tr>
      <td bgcolor="{firstaltcolor}" width="100%">$newfolderboxes        <input type="hidden" name="action" value="doeditfolders">
        <input type="image" class="bginput" name="submit"  src="{imagesfolder}/go.gif">
</td>
      </tr>
    </table>
</form>





<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tablebordercolor}" width="200">
<tr bgcolor="{tableheadbgcolor}">
          <td colspan=3 align="center"> <normalfont><b><font color="{tableheadtextcolor}">PM Quota</font></b></normalfont>
          </td>
</tr>

<tr>
<td bgcolor="{firstaltcolor}" colspan=3><smallfont>You are using $pmpercent% of your quota.




</font>
</td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" colspan=3>

<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td bgcolor="{secondaltcolor}" width="200"><img src="$barimg" width="$pmpercent %" height="9">
</td>
</tr>
</table>

</td>
</tr>
<tr bgcolor="{firstaltcolor}">
<td width="33%"><smallfont>0%</font>
</td>
<td width="33%" align="center"><smallfont>50%</font>
</td>
<td width="33%" align="right"><smallfont>100%</font>
</td>
</tr>
</table>

</td>
    <td width="100%" valign="top"> $privatemessages </td>
</tr>
</table>

<!-- message buttons -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td align="center">
        <a href="private.php?s=$session[sessionhash]&action=newmessage"><img src="{imagesfolder}/pm_sendnew.gif" alt="Send a new private message" border="0"></a>
        $buddypmlink
        <a href="private.php?s=$session[sessionhash]&action=editfolders"><img src="{imagesfolder}/pm_folders.gif" alt="Organise your private message folders" border="0">
        </td>
</tr>
</table>
<!-- /message buttons -->

<br>

<!-- timezone & forum jump -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
        <td>$forumjump</td>
        <td align="right"><smallfont>$timezone</smallfont></td>
</tr>
</table>
<!-- /timezone & forum jump -->

<br>

<!-- icon key -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr><td width="50%">&nbsp;</td>
        <td nowrap><img src="{imagesfolder}/newpm.gif" border="0" alt="Unread Message"></td>
        <td nowrap><b><smallfont>Unread Message</smallfont></b></td>
        <td nowrap><img src="{imagesfolder}/pm.gif" border=0 alt="Message"></td>
        <td nowrap><b><smallfont>Message</smallfont></b></td>
        <td nowrap><img src="{imagesfolder}/trashcan.gif" border="0" alt="Cancelled Message"></td>
        <td nowrap><b><smallfont>Cancelled Message</smallfont></b></td>
<td width="50%">&nbsp;</td></tr>
</table>
<!-- icon key -->

$footer

</body>
</html>



All times are GMT. The time now is 09:08 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
  • Page Generation 0.01555 seconds
  • Memory Usage 1,873KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete