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)

WitchyT 04-24-2003 11:05 PM

Ooh, weird. It's okay then. LOL I'll just change the character limit in the news.

WitchyT 04-24-2003 11:46 PM

I hate to be doing this again *lol* I'm having issues with your suggestion so I was wondering if you could help me hack my copy of newthread.php?

Tigga 04-24-2003 11:56 PM

You should probably edit your post and remove the attachment since you're not allowed to post full vB files here. ;)

To fix your newthread.php file you would need to chage this bit of code:
PHP Code:

      $DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible,hidden) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1','$hidden')"); 

To this:
PHP Code:

      $DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible,hidden,isnews) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1','$hidden','Y')"); 

Then you should upload the myvb_install.php file and select the option to update your news posts. That should update all the posts in that forum.

Red Blaze 04-25-2003 02:03 PM

Hey Tigga I was thinking. I'm not sure if this was asked before but, in the top 10 thread list, is there a possible way to make a "take to last post" link some where and "Who" made the thread instead of who the author of the thread was?
Do you know what I'm asking for? ^^;

EDIT: Never mind, I found a way, just a matter of copying links from threadbits and adding $bburl/ in front. Real cool, I'm a semi-hacker! XD

Tigga 04-25-2003 06:14 PM

Yep. I actually added in the mouse hover effect in v3.2, mostly so people could change that though the templates without any hacking. I've changed it to show the last post time and poster on my site as well, and moved the thread starter and time into the mouse over effect. :)

jjj0923 04-25-2003 10:19 PM

Licensed VB users beware of an individual with the an email address of tonyxp@msn.com asking you to supply the myvbindex hack to him. He wrote me and said he does not have permission to download the hack and asked me if I'd supply it to him.

I'll give you one guess as to my answer....."why don't you have permission?" :)


- jeff

Tigga 04-25-2003 10:42 PM

Heh... He emailed me 3 times today asking for the hack. I tried to ask him for the url to his site and he replied with this:

I don't own a live website or a license copy of vb right now. I just want
to install php things on my box at home to learn php purpose. If you could
help me out, I really appreciated.

I had already informed Erwin of him emailing me, so I'll be sure to point out your post as well jjj0923. :)

Dean C 04-26-2003 12:01 PM

Tigga I never showed you the design i did and the implementation of myvbindex. Take a look at www.diamondchitchat.com. I got paid quite a bit for designing/implementing this so i'm quite proud to show it off! :)

Just a side note though. please ignore the blue input fields and textareas ;). I never would use such disgusting things but the client changed it after we had finished so what can you do ;)

All the best
- Dean

Tigga 04-26-2003 09:44 PM

Nice design Mist. :)
I don't think I'd agree that the input fields look bad with the blue there though. I kinda like the blue there, but I do agree with you that it doesn't look quite right on the submit buttons.

Jacko 04-27-2003 05:47 PM

looks bang on mate. tigga, anything planned for an update at all?? dont mind beta stuff for you if ya want. i got your hack running sweet on my 2.2.9 and i am in the mood for addons :)

mv540 04-27-2003 06:30 PM

well i took the risk in installing this on a test site that i made. shes a no go...i followed the steps and even back tracked file by file to make sure i didnt miss anything. then when i get to this part http://yoursite.com/forum/admin/myvb_install.php nothing happends. sites now dead...good thing i backed it up. :rolleyes:

everything seems to be in its right place, but its not installing...

Tigga 04-27-2003 06:42 PM

Jacko - Well unless any bugs are found (which I don't think there are any) then this will be the last version of mYvBindex for vBulletin 2.x. With vB 3.0 right around the corner (hopefully) I don't see much of a point in tweaking this version much more.

mv540 - Are you saying the install script messed up your forum? There's no way this would happen, especially if you didn't even make it though any of the steps for the installer (nor would it mess up anything if you did make it though the installer). Can you tell me what version of PHP, MySQL, vBulletin, and mYvBindex you're running? What exactly happens when you go to the install file - Do you get a blank white page, an error, or what?

mv540 04-27-2003 06:54 PM

just get page not displayed

mv540 04-27-2003 06:59 PM

im using vb 2.3.0 and php im not sure. ive got the older vbindex working on my other site though. and the php and mysql would be the same i would imagine, im not sure what versions those are..

version for vbindex is the one i downloaded from this thread

my mistake of mentioning that my site got screwd, i thought it was but appears to still be there..the install doesnt seem to be kicking in

Tigga 04-27-2003 07:04 PM

As long as you uploaded the myvb_install.php file to your forum/admin directory and you're going to the correct url, there's no reason you should get that error. If you're sure that's been done correctly and you would like me to take a look at it you can set me up a temporary admin account at your forum and a temporary FTP account. If you want to do that and PM me with the info I'll be glad to take a look and see what's wrong. Other than that though, I don't see why you would be having problems so it's hard to tell what the cause is without being able to test it out myself.

mv540 04-27-2003 07:09 PM

ok after backtracking one last and final time...this is what happend...

when attempting to install, it didnt work do to a typo.

http://yoursite.com/forums/admin/myvb_install.php

i forgot to add the dam "s" at the end of forum...lol. incase anyone else runs into this problem be sure the directory folders have the correct spelling..:rolleyes:

sorry to bug ya guys, thanks for the help...

Tigga 04-27-2003 07:11 PM

I knew it had to be something like that. Glad you figured it out. :)

mv540 04-27-2003 07:30 PM

im stuck again...this im almost certain i do not understand

i read the instructions which relates to my problem i think...

Q. I get an error like this when I first try to install the script:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/yoursite/html/myvbindex.php on line 27
A.The path to your forums directory is set wrong. Create a file called info.php with the following content:

<? phpinfo(); ?>

Then upload that file to your server and go to it in your browser. You will see a list of options that were set by your host. One of them is called:

_SERVER["PATH_TRANSLATED"]

Copy that path, paste it over what you currently have for your path in the myvbindex.php file, and reupload your myvbindex.php file.


---------------------------------------------------

here is my error that im getting

when i finished uploading it said click here to go to admin cp..i did and got a white page. so i went in manually to adjust the ID'd and suck for my poll and news sections.

but im not getting the portal showing up..

when i go to http://mysite.com/myvbindex.php

error":Warning: ChDir: No such file or directory (errno 2) in /home/hsphere/local/home/me/mysite.com/myvbindex.php on line 16

Tigga 04-27-2003 07:34 PM

Did you edit the path in your myvbindex.php file? If it was the same as the error you posted above, the path should be:
/home/hsphere/local/home/me/mysite.com/forums

mv540 04-27-2003 07:39 PM

bingo, huston we've got portal visual & communication!

thanks tigga :cool:

mv540 04-29-2003 06:52 PM

how do i make it so that when people log in, it takes them to the main portal page (ie: mysite.com/index.php) instead of directly into the forums? (ie: mysite.com/forums)

thanks in advance :glasses:

Tigga 04-29-2003 07:05 PM

It should already take them to the index page if you followed the instructions in the install file and made the modifications to your member.php file. ;)

mv540 04-29-2003 07:05 PM

i made the proper modifications as instructed, but it doesnt seem to be working correctly..where can i start looking for this redirecting problem?

thanks tigga..

Tigga 04-29-2003 07:07 PM

If you made that modification to member.php and uploaded the file then it will work as it's supposed to.

mv540 04-29-2003 07:10 PM

//header("Location: $url");

$url = str_replace("\"", "", $url);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
} else {
$bbuserinfo=getuserinfo($userid);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
}

does this look right?...should it be double like that?..looks like the code inputs twice... :bored: i just went over the proceedures to see if everything is correct in member.php...but im alittle confused about the code showing up twice here...

Tigga 04-29-2003 07:13 PM

Yes, that's the way it should look. It's not doing anything twice as there is an } else { statement before the last line.

mv540 04-29-2003 07:16 PM

i appreciate your help tigga, but what else can i look at cause it doesnt appear to be directing them to the portal after sign in..thanks

Tigga 04-29-2003 07:17 PM

If you'd like to PM me with the FTP info and url to your site I'll take a look and see what the problem is.

mv540 04-29-2003 07:18 PM

..as of for the second part for the member.php editing, does this look correct?

$session['sessionhash']=md5(uniqid(microtime()));
$session['dbsessionhash']=$session['sessionhash'];
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,st yleid) VALUES ('".addslashes($session['sessionhash'])."','0','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."','0')");
vbsetcookie("sessionhash",$session['sessionhash'],0);

eval("standardredirect(\"".gettemplate("error_cook ieclear")."\",\"\$url\");");

mv540 04-29-2003 07:18 PM

Quote:

Today at 09:17 PM Tigga said this in Post #1148
If you'd like to PM me with the FTP info and url to your site I'll take a look and see what the problem is.

will do :cheeky:

Tigga 04-29-2003 07:43 PM

Um, ok... I don't see the problem. I just registered at your site and logged in/out just fine, and was redirected to your main index page as I should have been.
I did notice though that your "Want to Register?" and "Forgotten your Password" links there don't work... If you don't allow guests to view your forum or index page you should edit your username_loggedout template and change those 2 links to the full url to your forums.
You are also having an issue with cookies as well. What do you have set for your "Cookie Domain" and "Path to save cookies" in your main Admin CP options?

mv540 04-29-2003 07:49 PM

while you were having a look i made a change which seem to have fixed the redirect problem....

these are the changes i made from when i asked if everything looked ok....

i made the modification from this......

//header("Location: $url");

$url = str_replace("\"", "", $url);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
} else {
$bbuserinfo=getuserinfo($userid);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
}

to this....

}
//header("Location: $url");

$url = str_replace("\"", "", $url);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"/index.php?s=$session[dbsessionhash]\");");
} else {
$bbuserinfo=getuserinfo($userid);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"/index.php?s=$session[dbsessionhash]\");");
}

then the redirect problem seemed to have corrected itself.

as of for the cookie problem ive had that since day one..lol
i have no idea whats wrong...

here are my cookie settings in my admin cp...

GZIP compression level 1
Cookie Domain .mydomain.com (noted the 2 dots)
path to save cookies is /

is that correct?

mv540 04-29-2003 07:57 PM

Quote:

Today at 09:43 PM Tigga said this in Post #1151
If you don't allow guests to view your forum or index page you should edit your username_loggedout template and change those 2 links to the full url to your forums.

can you give directions to doing this step, im still fairly new using vb...

thanks again for your patients tigga! cheers!

Tigga 04-29-2003 08:01 PM

The fix you did for the redirect problem should work, but the only drawback to doing it that way is that your users will be redirected to your homepage anytime they log in. I guess that wouldn't be an issue in your case though since they have to be logged in to view the site. :)
You cookie settings do seem to be correct. You could try changing the Cookie Domain and just leave it blank. The .mysite.com seems to work best for most people, but in a few cases it seems to work better if it's left blank instead.

As for changing that template, just edit that template in your Admin CP. You should see the 2 links there, so just add /forums/ in front of the url to each of them.

mv540 04-29-2003 08:16 PM

ok, one last and final check for any problems....this is very weird..at the log in page where you enter your name and password, all links work fine, but then the minute you click on the home button and then try to click on anything else, it gets page not displayed,

Will altering what you have instructed fix this problem?

im still alittle confused on what to add here...can you please advise...here is the info from the username_loggedout template. i dont want to mess things up so im asking you just to be certain. Can you please use example of my domain and where it should go?

<tr valign="top">
<td bgcolor="{secondaltcolor}"><normalfont><b>Your User Name:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="username" value="$bbuserinfo[username]" size="25">
&nbsp;&nbsp;</normalfont>
<smallfont><a href="register.php?action=signup">Want to register?</a>
</smallfont></td>
</tr>
<tr valign="top">
<td bgcolor="{firstaltcolor}"><normalfont><b>Your Password:</b></normalfont></td>
<td bgcolor="{firstaltcolor}"><normalfont><input type="password" class="bginput" name="password" value="" size="25">
&nbsp;&nbsp;</normalfont>
<smallfont><a href="member.php?s=$session[sessionhash]&action=lostpw">Forgotten your password?</a>
</smallfont></td>
</tr>

sjau 04-29-2003 08:17 PM

Hello,

I have vB 2.3.0 and install worked all fine. No error what so ever (with weather also).
However I don't see any enhancements in the AdminCP. Isn't there supposed to be a new section?

Can you help me on that?

Thx!

Tigga 04-29-2003 08:19 PM

This is what you should have for that template...

<tr valign="top">
<td bgcolor="#1C5780"><normalfont><b>Your User Name:</b></normalfont></td>
<td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="username" value="$bbuserinfo[username]" size="25">
</normalfont>
<smallfont><a href="/forums/register.php?action=signup">Want to register?</a>
</smallfont></td>
</tr>
<tr valign="top">
<td bgcolor="#13486D"><normalfont><b>Your Password:</b></normalfont></td>
<td bgcolor="#13486D"><normalfont><input type="password" class="bginput" name="password" value="" size="25">
</normalfont>
<smallfont><a href="/forums/member.php?s=$session[sessionhash]&action=lostpw">Forgotten your password?</a>
</smallfont></td>
</tr>

As for the links at the top, those are all in your header template. My suggestion would be to edit the links in that template as well and add /forums/ in front of each link there as well.

Tigga 04-29-2003 08:22 PM

sjau - Did you run the myvb_install.php file? If so you should see the new options at the very bottom of the main vBulletin Options page.

mv540 04-29-2003 08:26 PM

well i must say i really appreciate this tigga, thanks again for all your help. ill give it a shot and return with the results...

vb.org rocks! :glasses:

updated: SHES A SUCCESS TIGGA!...awsum! tanx :rambo:

mv540 04-29-2003 09:10 PM

tigga need help again..lol...we seem to have fixed all the links problem before a member signs in...but now when someone signs in, it takes them to the portal page like i wanted it to..but when links are clicked on in the portal page (ie: comment on a post, latest posts, buddy list etc etc etc....) it redirects people back to the log in page asking to enter name and password again even though it was already done.. :(

any suggestions ?

do i need to add /forums/ infront of everything in the myvbindex templates?...thats gonna take quite a long time... :cry:


All times are GMT. The time now is 01:29 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.04646 seconds
  • Memory Usage 1,848KB
  • 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_php_printable
  • (2)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