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)

cyklonen 01-20-2003 12:57 AM

Hiya :)
First i wanna say, im totally an NOOB :) and installed this hack, think it is great, but i have 2 quessys

1. the weather.....u see i live in denmark, is there anyway to change the "default" weather setting, seems no sence to show how NY has shiny weather when it is raining here *lol*

2. about the "costom boxes" is there anyway i can choose etc. box 1 to show ONLY for administrator ???

i dont know much about php or coding here, as i said i'm really a noob, but learn fast :P

My regards

PKRWUD 01-20-2003 01:02 AM

Quote:

Originally posted by jeffj
your problem is the line below //Enter....

it should be
PHP Code:

chdir('/home/pkrwud/public_html/vbulletin'); 

it looks like you just typed over what he has in the original distribution of the hack. It's probably a good idea for you to pick up a PHP manual to get a feeling for the syntax of the langauge. It always comes in handy because that way you can understand why the developer did things in a certain way. I often make mods to hacks to tailor them to my own forum's specific needs.

I hope this helps you out... this is the best hack I've ever installed.

You helped me big time! Thank you!!!

Since we're on a roll, why do you think I'm getting this error when I copy and paste the part for weather (see a couple posts back):

Parse error: parse error in /home/pkrwud/public_html/vbulletin/admin/functions.php on line 812

Fatal error: Call to undefined function: vbsetcookie() in /home/pkrwud/public_html/vbulletin/admin/sessions.php on line 205


Thanks again!

Tigga 01-20-2003 01:15 AM

Jeffj - Thanks for the compliment and for helping PKRWUD. :)

cyklonen - Yes, there is a way to change the default city for the weather hack. If you'll look in the readme file, it's explained right under the section that explains the Admin CP options.
As for making one of the custom boxes visible only to admins:

Open your myvbindex.php file and look for:
PHP Code:

if ($showcustom2) {
  
$getbgrow=getrowcolor();
  eval(
"\$custom2 .= \"".gettemplate('index_custom2')."\";");


Change that to:
PHP Code:

      if ($bbuserinfo['usergroupid']==6) {
  
$getbgrow=getrowcolor();
  eval(
"\$custom2 .= \"".gettemplate('index_custom2')."\";");



Tigga 01-20-2003 01:16 AM

PKRWUD - What version of vBulletin are you running?

cyklonen 01-20-2003 01:43 AM

Great :)

hehe the first place to look, lol why i forgot that :D
well u are the man, and the templates for admin only works aswell :)

THX bro, i'm glad for the QUICK responce

Keep up the good work ;P

jeffj 01-20-2003 01:50 AM

for anyone having problem getting the current temperature to display properly when installing this hack on 2.2.5 I found the problem.

the myvbindex.php has this line:

PHP Code:

if (substr($getbit,7,5) == "Temp"

and there should be a space after p in temp as follows:

PHP Code:

if (substr($getbit,7,5) == "Temp "

change this and the temp will display fine.

- jeff

PKRWUD 01-20-2003 02:23 AM

Quote:

Originally posted by PlurPlanet
PKRWUD - What version of vBulletin are you running?
2.2.9

Tigga 01-20-2003 02:49 AM

That's odd... I'm running 2.2.9 on both my personal site, and another server I use just to test things and have never had an error like that. If you would like to send me a copy of your modified admin/functions.php file I'll be glad to take a look and see if I can find the problem. If you'd like to send it, use the address plurplanet@hotmail.com. I'm in the process of moving servers right now, so my regular email address isn't working at the moment. ;)

3dfly 01-20-2003 05:06 PM

Quote:

Originally posted by PlurPlanet
3dfly - There are quite a few changes from versions 2.0 - 3.1. One of the biggest is that most all the templates were changed so that it would mesh better with vBulletin. If you look at the screen shots in the first post you can see that there's not much of a difference... If you would like to keep the templates the way they are you can still upgrade, it just makes it a little harder since you will have to edit a few of the templates to apply any changes. If you would like to change to the new template style then upgrading should be a little easier. Either way, let me know if you wish to keep the old style or switch to the new one and I will tell you what you need to do to upgrade.
PlurPlanet thank for the answer !

I would like to keep the templates.

But if for you will be easier to write description about upgrade with new style it will be excellent.

cbwadmin 01-20-2003 09:05 PM

installed and works great!

A little tricky to figure out how to edit everything.

Only error left is that it wont show the avatars on the main page.


www.combatwars.com

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. :).

deano1 01-21-2003 03:45 PM

having a problem with myvbindex 3.1

the code i put in the sid area of my profile
on the portal
it shows the code
and don't work

any help on that

http://www.deanosworld.net


this is what i mean

http://www.deanosworld.net/sig.JPG

Tigga 01-21-2003 03:56 PM

deano1 - I accidentally overlooked using vBcode in signatures. You can fix that by opening your myvbindex.php file and looking for:

if ($news[showsignature]==1) {

Right below that add:

$news[signature]=bbcodeparse($news[signature]);

Littlebit 01-21-2003 04:05 PM

Thanks PlurPlanet!
Everything is working excellently (is that a word?)

Tigga 01-21-2003 04:08 PM

No problem Littlebit. Glad it's working. :)

And yes, excellently is a word. :p
http://dictionary.reference.com/search?q=excellently

deano1 01-21-2003 04:19 PM

Quote:

Originally posted by PlurPlanet
deano1 - I accidentally overlooked using vBcode in signatures. You can fix that by opening your myvbindex.php file and looking for:

if ($news[showsignature]==1) {

Right below that add:

$news[signature]=bbcodeparse($news[signature]);

perfect
you right
thanks for your help

one other thing
this step to install the portal
i could not do at all
if i did do this
it would wipe out my online users
and only show one , if the person was there or not
this step i'm reffering to is this
but it works fine without it


In your Admin CP, find the Templates section and click on Modify. Find your "forumhome_loggedinuser" template and replace the code there with this code.
<a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser

Tigga 01-21-2003 04:24 PM

No problem deano.

For the online users... If you got that result, you changed the forumhome_loggedinusers template instead of the forumhome_loggedinuser one. ;)

tmuna 01-21-2003 04:25 PM

mYvBindex......... Best! :bandit:

deano1 01-21-2003 04:27 PM

Quote:

Originally posted by PlurPlanet
No problem deano.

For the online users... If you got that result, you changed the forumhome_loggedinusers template instead of the forumhome_loggedinuser one. ;)

thanks
i may have
i was drunk when i did the install , lol
i will have a look
thanks

deano1 01-21-2003 04:32 PM

Quote:

Originally posted by PlurPlanet
No problem deano.

For the online users... If you got that result, you changed the forumhome_loggedinusers template instead of the forumhome_loggedinuser one. ;)

your right again
i went back and did it right
the only change it made anyway was making the online user names a bit smaller
but you say it's needed , so it will stay
thanks for all your help
i like this portal

Tigga 01-21-2003 04:38 PM

LOL! Installing hacks while drunk is never a good thing. ;)

Changing the template shouldn't have made the text any smaller though... All that does is add $bburl in front of the link so it will point to the right place on your index file.

deano1 01-21-2003 04:42 PM

kool thanks

PKRWUD 01-21-2003 10:11 PM

Brian-

Thank you so much for looking over that file, and sending back the corrections! I made them, and now it works flawlessly. I'm still not sure how the code became that way, but that's what I downloaded. Also, to answer your question regarding vB, I do have 2.2.9, and it's the only version I've ever had.

In any case, thank you so much for your hack, and for following through with personal help! It is greatly appreciated!

Take care,
~Chris

3dfly 01-21-2003 10:20 PM

Thank you PlurPlanet!
I updated home page, is working excellently.

Tigga 01-22-2003 01:11 AM

No problem you guys. Hope you enjoy the script. :)

deano1 01-22-2003 01:15 AM

i love it

Sinister112 01-22-2003 11:05 AM

is there anyway i can add my vbb skin to it?

Tigga 01-22-2003 11:17 AM

What exactly do you mean by skin? It will display the colors and etc from your styles, and you can edit the index_header template to match the rest of the site if that's what you mean.

bobII 01-22-2003 12:19 PM

I recently installed this hack, everything seems to be working fine except if someone receives a private message from the index page, when the popup and asks "Would you like to open a new window to view the new message" it points to private.php. I need to change the link to:

/forum/private.php

Can anyone tell me where I can make this change. I've been looking in the admin without any luck so far.

Any help is greatly appreciated!

Thanks in advance,
Bob

Tigga 01-22-2003 12:29 PM

Oh, thank you for pointing that out. I guess I changed the template so long ago on my site and forgot that would be necessary.

To fix it, edit your head_newpm template and look for:
window.location="private.php?s=$session[sessionhash]";

Change that to:
window.location="$bburl/private.php?s=$session[sessionhash]";

That should work, but if it doesn't replace the $bburl there with the url to your forums. Sorry about that and thank you for pointing it out. :)

bobII 01-22-2003 01:51 PM

Thanks for the speedy reply. You pointed me in the right direction, the line that needed to be changed is as follows:

(Press cancel to open your $inboxname in the current window.)");
if (second_box==true) {

window.open('private.php?s=$session[sessionhash]','pmnew','width=600,height=
500,menubar=yes,scrollbars=yes,toolbar=yes,locatio n=yes,directories=yes,resi
zable=yes,top=50,left=50');

when I concatenated the private.php to the actual URL that solved my problem....

:banana:

Thanks again - bobII


All times are GMT. The time now is 01:11 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.02216 seconds
  • Memory Usage 1,864KB
  • 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
  • (9)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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