vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   VBJv | mEssenger v2.02 (https://vborg.vbsupport.ru/showthread.php?t=127655)

bashy 09-28-2006 09:34 PM

Quote:

Originally Posted by Spikeman
Its ok I grabbed the old one hacked it and now got it all working a treat :)

Can you not help us out, we aint all coders m8 :(

Spikeman 09-28-2006 10:11 PM

Quote:

Originally Posted by Karabaja
Yes thats the same error I got in my logs. I tried editing vbulletin_3.xx_plugin.php to add db info right in the file like:
Code:

$VAR["db_username"]    = 'mydbusername';
$VAR["db_password"]    = 'mydbpassword';

and so on.
And then I didn't get error that it can't connect to database but I got just blank page when I go to /vbmessenger/index.php

Do not change any of the mysql settings as those settings are pulled from your own config file.

Karabaja 09-28-2006 10:20 PM

Quote:

Originally Posted by Spikeman
Do not change any of the mysql settings as those settings are pulled from your own config file.

I realize that they are supposed be pulled from config file but as you can see from Pehchaan's error log they are not, or not correctly at least. And I was getting:
Cannot connect to database using Vbulletin Board site settings

After I changed it like I wrote it didn't display that error anymore so it must have connected to database fine. But it just displayed a blank page.
Anyway, I hope we'll see 2.03 soon. Looking forward to it.

Spikeman 09-28-2006 10:24 PM

Quote:

Originally Posted by bashy
Can you not help us out, we aint all coders m8 :(

Its working on my site, but at the moment you have to be registered for messenger to log you straight in, have tested messenging one to one and all is good, just trying to fix marquee.php, alot of the code is old.

Give me a little time (maybe hour) and i will give you some more here as i work through it.

Spikeman 09-28-2006 10:30 PM

Quote:

Originally Posted by Karabaja
I realize that they are supposed be pulled from config file but as you can see from Pehchaan's error log they are not, or not correctly at least. And I was getting:
Cannot connect to database using Vbulletin Board site settings

After I changed it like I wrote it didn't display that error anymore so it must have connected to database fine. But it just displayed a blank page.
Anyway, I hope we'll see 2.03 soon. Looking forward to it.

I got the blank screen first time in then i uploaded the install.inc file :confused: then i changed the paths in vbulletin_3.xx_plugin changed some more paths and now works.

ztempuser 09-28-2006 10:57 PM

yes as i had said before the marquee.php is very old im haveing trouble with it

i hope i can get the 2.03 version up by tonight
i been busy moveing my server

Breathex 09-29-2006 03:18 AM

loking forward to see v2.03

Spikeman 09-30-2006 02:26 AM

Here is marquee.php, it should work ok, I need to clean the code up some, just need to find a spare 10mins which always turns into an hour :)

Code:

<?php
// you may edit the below to suit your own needs

define('MARQUEE_SPEED', '2');
define('MARQUEE_WIDTH', '100%');
define('MARQUEE_HEIGHT', '145');
define('MARQUEE_NAME', 'Latest Posts');
define('THREAD_LIMIT', '20');

// no need to change anything below this line :)


error_reporting(E_ALL & ~E_NOTICE);
require ('global.php');

?>
<!-- Scrolling Marquee -->
<body bgcolor="#91BEDE" text="#000000" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000">
<marquee id="threadticker" direction=up scrollAmount=<?php echo MARQUEE_SPEED; ?> style="width:<?php echo MARQUEE_WIDTH; ?>;height:<?php echo MARQUEE_HEIGHT; ?>;border:0px solid black;
padding:0px" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=<?php echo MARQUEE_SPEED; ?>">

<table border=0 cellpadding=4 cellspacing=0 width="<?php echo MARQUEE_WIDTH; ?>">
<tr>

<td colspan=3>
<font size=2 face="Verdana, Arial, sans-serif, Helvetica, Times">
<b><a href="<?php echo $bburl; ?>"><?php echo MARQUEE_NAME; ?></b></font>
</td>
</tr>

<?php

// connect to the database and pull the info we need.

$threads = $db->query_read("
SELECT threadid, forumid, title, replycount, lastposter, postuserid, postusername
FROM " . TABLE_PREFIX . "thread AS thread
ORDER BY thread.lastpost DESC LIMIT 10");

while ($thread = $db->fetch_array($threads)) {

// make sure the user has the permission to view the current thread.
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"]; {
 

// if he can, go ahead and output the goods.

    $postctr++;
    if ($thread['replycount'] == 0) {
      $numreplies = "No Replies";
    }
    elseif ($thread['replycount'] == 1) {
      $numreplies = "Reply";
    }
    else {
    $numreplies = $thread['replycount'];
    $numreplies .= " Replies";       
    }

    echo "<tr>\n";
    echo "<td width=\"$marquee_width\" style=\"border-bottom: 1px inset #000000; background-color: #4C6CA4\" onMouseover=\"this.style.backgroundColor='#607DAE';\" onMouseOut=\"this.style.backgroundColor='#4C6CA4';\">\n";
    echo "<font size=1 face=\"Verdana, Arial, sans-serif, Helvetica, Times\">\n";
    echo "<b><a href=\"$bburl/forums/showthread.php?s=&threadid=" . $thread['threadid'] . "\" target='_blank'>" . $thread['title'] . "</a></b><br>\n";
    echo "Started by: <a href=\"$bburl/forums/member.php?s=&action=getinfo&username=" . $thread['postusername'] . "\" target='_blank'>" . $thread['postusername'] . "</a><br>\n";
    echo "Last Post by: <a href=\"$bburl/forums/member.php?s=&action=getinfo&username=" . $thread['lastposter'] . "\" target='_blank'>" . $thread['lastposter'] . "</a><br>\n";
    echo $numreplies;
    echo "\n</font>\n";
    echo "</td>\n</tr>\n\n";
       
  }
}
?>

</marquee>

<!-- End Scrolling Marquee -->

I thought it just easier to cut and paste and replace entire contents of file.

Lionel 09-30-2006 03:26 AM

So how do we install without the install file in the zip?

COBRAws 09-30-2006 03:56 AM

any working demo?


All times are GMT. The time now is 06:31 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.01423 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_code_printable
  • (5)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
  • (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