vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Unread Posts and Reputation Comments (welcome box) (https://vborg.vbsupport.ru/showthread.php?t=123886)

Paul M 11-23-2006 08:46 AM

The only way I can see that you could get that error is if you had no 'lastvisit' time, which makes no sense at all. I can only guess that you are accessing it in some bizarre/unusual way, or some other mod is intefering with it (those script & referrer fields look very strange ......).

flynnibus 12-05-2006 08:36 PM

(from other.. incorrect thread :) )

I've noticed some differences between this and your 3.5 version

the 3.5 version says 'no unread posts' this one shows '0 unread posts'

the 3.6 version hyperlink does not include the number only the 'unread posts' text is the hyperlink.

Intentional? I kinda like the 3.5 styles a bit better.

Paul M 12-05-2006 09:30 PM

Quote:

Originally Posted by flynnibus (Post 1132727)
the 3.5 version says 'no unread posts' this one shows '0 unread posts'

Yes, a minor difference, it means simpler code and less phrases. It's possible I may eventually change it, but certainly not in the next few weeks - maybe when I get round to making the 'plural' code more flexible.

Quote:

Originally Posted by flynnibus (Post 1132727)
the 3.6 version hyperlink does not include the number only the 'unread posts' text is the hyperlink.

You can edit the phrase to change that if you want.

nicker 12-09-2006 11:01 PM

I had this working before, great idea, now suddenly I am getting

Warning: file_get_contents(/homepages/42/d186719104/htdocs/forum/includes/database_error_message.html) [function.file-get-contents]: failed to open stream: No such file or directory in /includes/class_core.php on line 910

Warning: file_get_contents(/homepages/42/d186719104/htdocs/forum/includes/database_error_page.html) [function.file-get-contents]: failed to open stream: No such file or directory in /includes/class_core.php on line 944

Any ideas?.

Paul M 12-10-2006 01:43 AM

Those errors are not generated by this (at least not directly) - It looks like your vb installation is missing some files (from the forum root) that are needed to generate database error message screens (database_error_message.html & database_error_page.html). You need to upload them to see the real error.

nicker 12-10-2006 10:36 AM

Thanks Paul, I copied them over and opened them, this is what it's showing

Database error in $this->appname $vboptions[templateversion]: $errortext MySQL Error : $this->error Error Number : $this->errno Date : $date Script : http://$_SERVER[HTTP_HOST]$scriptpath Referrer : $referer IP Address : $ipaddress Username : $bbuserinfo[username] Classname : $classname

sorry to be a pain but I can't work this one out, any help is appreciated.

Paul M 12-10-2006 04:46 PM

Opening the files doesn't mean anything. If you get another database error those files will allow vb to display the error (you should also get the error e-mailed to you).

Reece^B 12-18-2006 08:41 PM

Hi Paul,
Great hack, need some help though. Works a treat, only on default style though. I cant get it to work on the style im using currently, if you click my sig to PBC you can see.

Paul M 12-18-2006 08:55 PM

Quote:

Originally Posted by Reece^B (Post 1141178)
if you click my sig to PBC you can see.

Not really, it's not available to guests.

TrikkeTalk 12-19-2006 04:05 AM

Hi Paul,

Is there a way to put the output which is displayed in the welcome part of the navbar to my portal page.

This page contains the same block as in the forum home. It only uses another template (P_block_navbar). Something has to be added there to show up in the Portals Navbar.

The portal I use is VB-Portal.

Since I am a complete noob, please help me out.

Thanks in advance.

jerrygad 12-19-2006 04:20 AM

Thank you Paul.
*Installed*

Paul M 12-19-2006 04:55 AM

Quote:

Originally Posted by TrikkeTalk (Post 1141405)
Hi Paul,

Is there a way to put the output which is displayed in the welcome part of the navbar to my portal page.

This page contains the same block as in the forum home. It only uses another template (P_block_navbar). Something has to be added there to show up in the Portals Navbar.

The portal I use is VB-Portal.

This updates the navbar template "on the fly" so it would be difficult. You could try adding the variable $unread in whatever template is used, but I have no idea if it will work. I have no knowledge of vb portal.

Reece^B 12-19-2006 10:47 AM

Hi Paul,
I have made a test account:

User: *removed: no longer needed*
Pass: *removed: no longer needed*

And heres a link to the two styles:
http://www.pitbikeclub.co.uk/index.php?styleid=26 (works fine)
http://www.pitbikeclub.co.uk/index.php?styleid=25 (Doesnt) this is the default style.

Any idea how to go about getting it to work in the red default style.

Paul M 12-19-2006 04:59 PM

It won't work in that style, it's a totally different "Welcome" box, so the code this looks for to insert the message is not present. See post #132

Reece^B 12-19-2006 05:41 PM

Ok Paul, thanks.

|oR|Greg 12-19-2006 06:26 PM

So, the only thing different about my style is that the code for the welcome box is in the Header template. So I changed the plugin to look in the header, instead of the navbar... doesn't work.

Then I put in the necessary missing code, back into the navbar, doesn't work. Then I tried a default style... doesn't work.

Thoughts?

|oR|Greg 12-19-2006 06:31 PM

Take a looksee... http://www.amacny.com/vb/index.php?styleid=32

Reece^B 12-19-2006 07:08 PM

Just to confirm that $unread worked. However when you click I get taken to a new page that doesnt exist.

EX:
Links to /"search.php?do=getnew\"

but the whole address is: pitbikeclub.co.uk/\"search.php?do=getnew\"

which doesnt exist. ;)

transitbus 12-19-2006 11:35 PM

becareful, this mod will interfere with checking for new posts

https://vborg.vbsupport.ru/showthread.php?t=131239

Paul M 12-20-2006 07:07 AM

Quote:

Originally Posted by Reece^B (Post 1141781)
Just to confirm that $unread worked. However when you click I get taken to a new page that doesnt exist.

EX:
Links to /"search.php?do=getnew\"

but the whole address is: pitbikeclub.co.uk/\"search.php?do=getnew\"

which doesnt exist. ;)

ATM, your site does not seem to exist, just a Plesk default page. Anyway, you can edit the phrase that creates the link.

Reece^B 12-20-2006 01:48 PM

*Edit* Server Back Online

Reece^B 12-20-2006 02:06 PM

Could you tell me what exactly what I have to edit?

Paul M 12-20-2006 09:19 PM

The phrase - dup_posts_visit or dup_posts .

|oR|Greg 12-20-2006 11:22 PM

Any help Paul? Posts 136 & 137

Paul M 12-21-2006 02:24 AM

Sorry, but I cannot help with individual custom styles. See post #132.

SAT2M 12-21-2006 08:56 AM

Thanks A lot

|oR|Greg 12-21-2006 05:51 PM

Quote:

Originally Posted by Paul M (Post 1142597)
Sorry, but I cannot help with individual custom styles. See post #132.

Please see post 137, this is a DEFAULT VB style.

SCRIPT3R 12-21-2006 06:02 PM

Quote:

Originally Posted by |oR|Greg (Post 1142952)
Please see post 137, this is a DEFAULT VB style.

that link is NOT going to a default vB style.

|oR|Greg 12-21-2006 08:01 PM

Woops, try again.

http://www.amacny.com/vb/index.php?styleid=32

|oR|Greg 12-21-2006 08:04 PM

What's it matter, yall won't be able to see that the plugin doesn't even show up, because you don't have accounts.

Paul M 12-21-2006 09:04 PM

Please provide a test login.

|oR|Greg 12-21-2006 09:42 PM

Check your PMs Paul.

Paul M 12-21-2006 10:50 PM

Quote:

Originally Posted by |oR|Greg (Post 1143109)
Check your PMs Paul.

Indeed, and I soon found your problem.

You seem to have overlooked the rather important note in the first post.

Quote:

Note: This hack only works if you use the database thread marking system.
You are not using database thread marking, you are using the [old] cookie based system.

|oR|Greg 12-22-2006 12:46 PM

DUHHHHHHHHHHHH!!! Thanks, fixed, and working. Clicks install.

nicker 12-28-2006 03:09 AM

Quote:

Originally Posted by nicker (Post 1135428)
I had this working before, great idea, now suddenly I am getting

Warning: file_get_contents(/homepages/42/d186719104/htdocs/forum/includes/database_error_message.html) [function.file-get-contents]: failed to open stream: No such file or directory in /includes/class_core.php on line 910

Warning: file_get_contents(/homepages/42/d186719104/htdocs/forum/includes/database_error_page.html) [function.file-get-contents]: failed to open stream: No such file or directory in /includes/class_core.php on line 944

Any ideas?.

Quote:

Originally Posted by Paul M (Post 1135487)
Those errors are not generated by this (at least not directly) - It looks like your vb installation is missing some files (from the forum root) that are needed to generate database error message screens (database_error_message.html & database_error_page.html). You need to upload them to see the real error.

Quote:

Originally Posted by nicker (Post 1135611)
Thanks Paul, I copied them over and opened them, this is what it's showing

Database error in $this->appname $vboptions[templateversion]: $errortext MySQL Error : $this->error Error Number : $this->errno Date : $date Script : http://$_SERVER[HTTP_HOST]$scriptpath Referrer : $referer IP Address : $ipaddress Username : $bbuserinfo[username] Classname : $classname

sorry to be a pain but I can't work this one out, any help is appreciated.

Quote:

Originally Posted by Paul M (Post 1135772)
Opening the files doesn't mean anything. If you get another database error those files will allow vb to display the error (you should also get the error e-mailed to you).

It's sorted thanks, ended up in my url settings, thanks for your help.

|oR|Greg 12-28-2006 11:17 AM

Quote:

SQL Changes to use slave.
Which means what?

adonfun 12-28-2006 11:26 AM

Great mod!! :)

Clicked Installed

Paul M 12-28-2006 01:32 PM

Quote:

Originally Posted by |oR|Greg (Post 1146292)
Which means what?

If you don't know what it means then you don't need to worry, it's just an internal code change related to mysql slaves. :cool:

|oR|Greg 12-28-2006 02:26 PM

We outlawed slavery in the US a while back, so I think this hack now violates some regulatory statutes of the Geneva convention and the Treaty of Versailles.

Paul M 12-28-2006 08:10 PM

:)


....


All times are GMT. The time now is 05:00 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.01801 seconds
  • Memory Usage 1,823KB
  • 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
  • (15)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