vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vbPager log - simulate MSN,ICQ... (https://vborg.vbsupport.ru/showthread.php?t=129546)

Ntfu2 10-21-2006 04:58 PM

No worky

Invalid SQL:
SELECT field21 as avatar FROM vb3_userfield WHERE userid=12 LIMIT 1;

MySQL Error : Unknown column 'field21' in 'field list'
Error Number : 1054

Renmiri 10-21-2006 10:50 PM

Quote:

Originally Posted by Ntfu2
No worky


Invalid SQL:
SELECT field21 as avatar FROM vb3_userfield WHERE userid=12 LIMIT 1;

MySQL Error : Unknown column 'field21' in 'field list'
Error Number : 1054

STEP 5

5) Getting fancy with Avatars:
To get the avatar of the pager receiver you need to do the following:
5.1 - Add a custom user text field on admin CP. (See blue screen cap)Write the number of your new field down.
5.2 - Edit the first line of the pagelog plugin (on the parse_templates section). Change $field="21" ; to $field="x" ; where x is your custom user text field number (9 or whatever)
5.3 - Edit the new pager_newpager template and replace it with your field name (field9 or whatever)

**Note: Step 5 now allows receivers to have their custom avatar. Soon it will allow senders to use custom avatars (version 1.1)

See the blue screen shot to ee how to fill up the user profile field screen

legion! 10-22-2006 02:46 AM

i did this and it messed my whole database up if yall install thia hack be sure TO BACK UR DATABASES UP!!!!

Renmiri 10-22-2006 04:21 PM

Quote:

Originally Posted by legion!
i did this and it messed my whole database up if yall install thia hack be sure TO BACK UR DATABASES UP!!!!

Huh ?

My hack just reads the database. It doesn't add any fields but the custom user profile field.

Are you talking about vbPager ?
Yes, vbPager DOES change the database and there's a big warning at the install page about backing up your database.

Meh, backups are good precaution in any case. I'll add to the instructions above.

SnapOff Racing 10-24-2006 05:11 AM

Quote:

Originally Posted by legion!
i did this and it messed my whole database up if yall install thia hack be sure TO BACK UR DATABASES UP!!!!

messed mine up too...but if you edit the PLUGIN'S code itself, as instructed and change it to the profile field you created, it works perfect.

nice hack, i like it...just not the fact it doesnt pick up on your default avatar from the forum.

Renmiri 10-24-2006 12:40 PM

Quote:

Originally Posted by SnapOff Racing
nice hack, i like it...just not the fact it doesnt pick up on your default avatar from the forum.

Oh really ?
Easy enough to fix :D
I'll post an update with it soon. The custom avatar code is refusing to work still :( so I might as well post the code with default avatar.
Done!

It shouldn't cause any more SQL errors, even for people who didn't do step 5

SnapOff Racing 10-24-2006 08:29 PM

Quote:

Originally Posted by Renmiri
Oh really ?
Easy enough to fix :D
I'll post an update with it soon. The custom avatar code is refusing to work still :( so I might as well post the code with default avatar.
Done!

It shouldn't cause any more SQL errors, even for people who didn't do step 5

you mean you uploaded a new .zip with an upgraded .xml that we need to import?

Renmiri 10-25-2006 05:46 PM

Quote:

Originally Posted by SnapOff Racing
you mean you uploaded a new .zip with an upgraded .xml that we need to import?

===================
Upgrading from 1.0 to 1.1
===================
Steps
1) Modify the pager_newpager template:

Replace the entire template with the code on the pager_newpager11.txt file

2) Modify the pagerlog plugin:

Find the plugin under "parse_templates". Replace the entire plugin code with the code on the pagerlog11.txt file

After that you should be all set. You won't need that new field you added before so you can either leave it, delete it or change it to be invisible to the user

vbreal 11-01-2006 01:23 AM

yo i don't want that pager number or know what pager nuber i am replying to in the pager window. how can i remove that. if u in a pager window with someone. all u really care about is the time the page was sent and the messages. great hack btw i always forget what i have said the next day ha ha

vbreal 11-01-2006 02:52 AM

yo its giving me the wrong avatars for the message. i see why u got the pager number now. what's the point in this mod if it doesn't give u the correct person u replying to.


All times are GMT. The time now is 11:51 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.01052 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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