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)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

Tigga 01-20-2003 10:05 PM

3dfly - Ok, here's the best way I can tell you to upgrade from 2.0 w/o switching the templates style. Download v3.1 and upload the myvbindex.php file over your old one. Then download the update.php file from this post. That post tells exactly what that upgrade script does, so read it carefully before continuing. And lastly, you can download the 3.0 redme file from here (by the way, that file has a php extension since I couldn't upload a html file here, so just open it with your browser as you normally would). At the bottom of that file, it will give you a list of templates you need to edit. Make those changes, and then check the bottom of the 3.1 readme file for one last template change you will need to make and that should be it. It really shouldn't be too hard and still shouldn't take more than a few minutes, but if you have any problems/questions let me know. Oh, you will also NOT need to run the upgrade script that comes with 3.1 as the alternate upgrade script will make the necessary changes for you.

cbwadmin - In the url to your avatar it has your forum url twice, so I'm guessing you have the "Path to image" for your avatar set to the full url to your site. You should be able to fix that by opening your myvbindex.php file and looking for this line:

$newsavatarurl = "$bburl/$news[avatarpath]";

Remove the $bburl in that line and it should fix the problem. Alternatly you could edit your avatar's path's and remove the http://yoursite.com/ from them, but I figured the above fix would be easier. And if that doesn't correct the problem let me know and I will be sure to find something that will. ;)

maverick1236 01-20-2003 10:59 PM

looking for some more addons though

I love this page

http://www.wxchat.com/index.php

things im lookin to add

1.top 10 posters
2.a shoutbox that fits
3.random photos box
4.affiliates box
5.supporting members box

ive tried adding these things-the template never comes out right though

has anyone added these?-and if so-could you please share your templates?
i would be very grateful

great hack anyway-installed without a hitch

cbwadmin 01-20-2003 11:09 PM

what you said didnt work, but it lead me in the right direction.

Its working now. Thanks.

Tigga 01-21-2003 04:06 AM

maverick - Most everything you mentioned shouldn't be too hard to add...
The top 10 posters wouldn't be hard at all. I can tell you how to do that tomorrow after I get some sleep.
There are 2 shoutbox integration mini-hacks in the first post on this thread. Have you tried either of those?
Random photo's shouldn't be hard, but I would have to know where they would be coming from... Ex - Do you use Photopost or something like that?
An affiliates box could be done by adding or editing a custom template couldn't it?
I'm sure a supporting members box would be possible, but how do you distinguish a 'supporting member' from a regular one?

cbwadmin - Glad you got it working. :)

Littlebit 01-21-2003 05:21 AM

Hi Plurplanet,
I decided to have attchements work for news too and went thru the instructions you gave matrix and ended with nothing showing but no errors (template made and newsbits edited as well as the myvbindex) and I was wondering what info you gave matrix in pm that got it goin'
Quote:

Originally posted by PlurPlanet
Matrix - Check your PM's. :)
:bunny:

Tigga 01-21-2003 09:05 AM

Littlebit - What exactly is it showing? Does it display the broken images as it did with Matrix, or does it just show nothing at all? The problem when Matrix tried it was he forgot to change the news query to add in the call to the attachment table. If all that seems to be correct, you can email me a copy of your file and I'll take a look to see why it's not working properly.

Tigga 01-21-2003 09:37 AM

maverick - Here is how you can add the top X posters...

Open your myvbindex.php and look for:

PHP Code:

$topposter=$DB_site->query_first("SELECT userid,username,posts FROM user ORDER BY posts DESC LIMIT 1"); 

Remove that line, then look for:

// Forum Permissions

Right above that line, add:
PHP Code:

$topposters=$DB_site->query("SELECT userid,username,posts FROM user ORDER BY posts DESC LIMIT 10");
while (
$tposter=$DB_site->fetch_array($topposters)) {
    eval(
"\$posterbits .= \"".gettemplate('index_topposterbits')."\";");
}
  eval(
"\$topposters = \"".gettemplate('index_topposters')."\";"); 

Then you will want to create a new template called index_topposters with the following content:
PHP Code:

<table cellpadding="{ tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{ tablebordercolor}" tableouterextrawidth="100%"><tr><td>

<
table cellpadding="4" cellspacing="{ tableinnerborderwidth}" border="0" tableinnerextrawidth="100%">
<
tr id="cat"><td bgcolor="{ tableheadbgcolor}"><smallfont color="{ categoryfontcolor}"><b>Top Posters</b></smallfont></td></tr>

<
tr><td bgcolor="$getbgrow"><smallfont>$posterbits
</smallfont></td></tr></form></table></td></tr></table><p

(Be sure to remove the space after each { in that template)

Then create a template called index_topposterbits with the following content:
PHP Code:

<a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$topposters[userid]">$tposter[username]</a> ($tposter[posts])<br

Then just add the variable $topposters in your index template where you would like the "top posters box" to appear. You may also want to remove the top poster part in the stats section too. ;)

Oh, and that's set up to display the top 10 posters for your forum. If you would like to change that number, just change the part "DESC LIMIT 10" in the code you added to whatever you would like the number to be.

jjj0923 01-21-2003 09:54 AM

in the FWIW department. I use PhotoPost and I added code to Myvbindex to display the 3 most recent photos posted in PhotoPost. Ther's also logic to 'exclude' one of my photo galleries since one of them contain only pictures of hot looking babes in thongs (part of the high performance boating scene). I only show the boat pictures on the myvbindex page.

:)

Tigga 01-21-2003 10:02 AM

So where are these pictures of the hot babes in thongs??? :p

Littlebit 01-21-2003 02:25 PM

PlurPlanet,
yeh, nothing at all is showing. I bet for the same reason. I'll pm you the file all the same just as a added measure. :).


All times are GMT. The time now is 12:47 PM.

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.01998 seconds
  • Memory Usage 1,764KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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