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 04-29-2003 09:17 PM

That sounds more like it's a problem with cookies. Did you try my suggestion of leaving the cookie domain blank?

mv540 04-29-2003 09:21 PM

yes cookies area as instructed left blank! :nervous:

Tigga 04-29-2003 09:26 PM

mv540 - Would you mind setting the account I registered to an Admin? If you would do that I'll take a look, test a few things, and see if I can figure out why it seems to be tossing cookies.

Also, what was the cookie domain set to before you installed mYvBindex? Did you change it after installing?

sjau 04-29-2003 09:30 PM

Tigga,

I did run it and as I mentioned before hand it did not print out any error. Maybe I'm the first one to test it on 2.3.0?
I also had another admin check the admin panel and he didn't see any enhanced options there either.

sjau

mv540 04-29-2003 09:31 PM

sure np....i dont think anything was there before installing myvbindex...i tried adding the domain (ie: .mydomain.com) for the cookie domain as per instructions in the admin cp..but like you said leaving it blank was best..cookies seem to be working great right now, atleast after signing out you cant get back in by clicking home..lol..but still something must be triggering the error..

ill switch you now..

Tigga 04-29-2003 09:47 PM

Ok, that's really odd... After trying some things on the homepage the cookies seem to work. What's weird though is if you go to the url http://www.yoursite.com, it seems to be different than if you go to http://yoursite.com (without the www). To see what I'm talking about, try going to your index page with the www's in the url and click on the "logout" link that's part of mYvBindex (not the button at the top, but the link). It doesn't work there because that uses your forum's url setting in the Admin CP, which doesn't have the www in front. However, if you click on the logout button in your header (which uses the url you are currently at) then it logs you out as it should. The only difference in those 2 links is that one of them has the www's in front of it. It really doesn't make sense why that would affect anything. Either way, I editing your index_welcometext template and changed the logout link so it would be the same as your logout button (basically removed $bburl and replaced it with /forums/) and it seems to work as it should. If it gives you any problems try clearing your cookies in your browser and it should work just fine. If not though let me know and I'll look into it further.

mv540 04-29-2003 09:49 PM

thanks ill play around with it abit...touch base with you shortly :)

mv540 04-29-2003 09:54 PM

nice work tigga..you got the links to work correctly in the portal...but now my log out inside the site & the portal logout isnt working. when i click on logout, it brings me back into the forum.

i think we are getting close to solving this though.. :cool:

mv540 04-29-2003 09:57 PM

its fixed tigga!...shes working now....i added .mydomain.com in the cookie area which was supposed to be left blank...works great..it logs out now when selected....but ill test it out abit more... :)

i think the template you edited corrected the problem :cool:

Tigga 04-29-2003 10:03 PM

Yep, it seems to be working fine as far as I can tell. That's still REALLY odd that it was behaving like that. I'm not quite sure why it was a problem, but at least it works now. :)

mv540 04-29-2003 10:04 PM

Quote:

Today at 12:03 AM Tigga said this in Post #1170
Yep, it seems to be working fine as far as I can tell. That's still REALLY odd that it was behaving like that. I'm not quite sure why it was a problem, but at least it works now. :)
thanks man your the best...if you ever need a favor let me know :cool: ;) ill leave you registered at the site...pop in and say hello from time to time

glo 04-29-2003 10:11 PM

HI Tigga,

Does your hack give you control of the layout?

Tigga 04-29-2003 10:15 PM

glo - Yes, everything is completely template based, exactly the way vBulletin is. :)

mv540 04-29-2003 10:52 PM

tigga one last and final question...sorry to fill up this topic guys with my boring problems...but ive been searching for info on "view new posts" problem that im having for the past hour, came up empty handed. Thought maybe tigga, since he was on a roll, could help a guy whos really down on his luck today.

I want to increase the days for the new posts to remain. they dont seem to stick around to long.

thanks!

mv540 04-29-2003 11:59 PM

hello? anyone?

Tigga 04-30-2003 12:33 AM

Are you talking about the "View New Posts" link on the forums, or the Latest Threads section on mYvBindex?

sjau 04-30-2003 06:57 AM

Hiya Tigga,

it's just again me to bother you :) Thx for solving the other problem. I really was looking in the wrong spot.

Anyway, is there a simple way of embedding different myvBindex pages for different usergroups?

You see, I will host a Diablo 2 and a Counter Strike Clan and it would be nice if they both had their different news board, their different polls and different layout.

Is that possible?

mv540 04-30-2003 06:46 PM

Quote:

Today at 02:33 AM Tigga said this in Post #1176
Are you talking about the "View New Posts" link on the forums, or the Latest Threads section on mYvBindex?
i guess i would need to alter both, one for my forum and one for the vbindex

thanks tigga

Tigga 04-30-2003 08:54 PM

sjau - Yes, that is possible with a bit of hacking. To do that you would open your myvbindex.php file and look for:

// News

Right above that you would want to add something like this:
PHP Code:

if ($bbuserinfo['usergroupid']=='XX') {
    
$newsforum 'A';
} elseif (
$bbuserinfo['usergroupid']=='YY') {
    
$newsforum 'B';
} else { 

Then you would want to look for:
PHP Code:

  $DB_site->free_result($getnews);
  unset(
$news); 

And right below that add:

}


In the first bit of code you added you would need to change the variables accordingly. You would change the 'XX' and 'YY' there to the usergroupid's you want a different news forum for. Then you would change the place you see 'A' and 'B' to the forumid of the news forums you want for those usergroups. Then if you need to have more than two different groups that will see different news, you would add something like this, right above the } else { statement at the end there:

PHP Code:

} elseif ($bbuserinfo['usergroupid']=='ZZ') {
    
$newsforum 'C'

That should be about it. Any usergroups that you have specified above will see news from the forum specified, and anyone not in one of those usergroups will see your news from your default news forum.


mv540 - Off the top of my head I'm not sure what would need to be changed to have the new topics stay around longer. I'm pretty sure that goes by the last time a user visited your site, but I don't remember for sure. You could probably find an answer if you asked in the General Hacking Discussion forum though.

sjau 04-30-2003 09:48 PM

Hiya Tigga,

thx for that quick reply... I try to get some kind of modular hack. I know PHP but I have not all too good skills at it.
Maybe you want to integrate this then somehow....

Tigga 04-30-2003 10:00 PM

The instructions above shouldn't be that hard to follow. If you're having problems with part of them let me know and I can most likely help you out. :)

sjau 04-30-2003 10:17 PM

Thx Tigga,

I'll try my best. Just one more question. Is it possible to de/activate features in the myvbindex.php file that are turned on/off in the admin CP?

Can the myvbindex.php file also reside OUTSIDE the main forum pages? If so I could give FTP access to the clans for each webfolder where they then can upload layout graphics and modify their own myvbindex.php file.

Mythril 05-01-2003 12:13 AM

Hi Tigga I have a small question. Is it possible to addon custom pages such as staff.php with your own html in the middle and have the side blocks with the file?

Heffe2000 05-01-2003 01:35 AM

I'm trying to get my latest posts to show who posted last on the thread, but when I make the changes posted in an earlier message, the date changes to a date in 1969, and the last poster name doesn't change (I made all changes that were listed in the message previously).

I'm using version 3.1 if that helps any...

Tigga 05-01-2003 05:06 AM

sjau - By de/activating the features shown in the Admin CP, are you saying you would like to remove some of them? And yes, the file can be placed in any folder you would like.

Mythril - If you'll refer to this post, it will show you how to add one seperate page in place of the news. Then if you'll look at the instructions I posted here to Matrix, that will tell you what you would need to do to add more than one seperate page if needed.

Heffe2000 - If you followed the instructions in that post then you shouldn't have any problems. I would recomend undoing the changes you made and make sure it was done correctly. Or if you want to upgrade to v3.2 of the hack this is already included. You will have to change the place of some of the variables since it shows the last poster and time when you hold the mouse over the thread, but it would just be modifying some HTML in the template. :)

sjau 05-01-2003 06:14 AM

Tigga,

it's cool to run the file from every folder. However I have one more question (I'm really sorry, I just wanna get it as perfect as possible!!!):

As I mentioned above I will host at least two clans. This means there is a main category "Clan Center" and one of the Clan has a sub-category "=wOw=". Within this category there are the clan forums.

It will not easily be possible to tweak your index file that much that it will display the 10 newest "=wOw=" threads?

If you just don't have a solution at hand I will have to look for one then..

Anyway, thx again for that great script!

Tigga 05-01-2003 09:47 PM

sjau - That wouldn't be hard to do, but what you would need to do depends on exactly how you're using the script. I'm assuming you're planning on using 2 seperate files placed in seperate folders. If that's the case, you would just need to open your myvbindex.php file and look for:

WHERE open<>10 $iforumperms

And replace that with:

WHERE open<>10 AND forumid=XX
(replace XX there with your =wOw= forumid)

I'm not sure I see what you're trying to do with using the script in different folders though... The style, graphics, and most everything visual is controlled by the templates and nothing in the actual php file. There's probably a way you can accomplish this though styles, but I don't see the point in having more than one script installed in different folders. Of course it's possible that I'm misinterpreting what you're trying to do, but I was just making sure you weren't wasting time on something that wouldn't work right. :)

glo 05-02-2003 12:52 AM

Hi Tigga,

On your own site, the image that is in the centre column, just inserted into a template?

Tigga 05-02-2003 12:55 AM

Yes, that image is just placed in the index template above the $newsbits variable.

glo 05-02-2003 01:22 AM

Would it then be possible to replicate my main page

sjau 05-02-2003 08:46 AM

Hiya Tigga,

thanks for your help. I will try to accomplish that on the weekend.

You see, for the two clans I'm hosting I would like to have clan individual entry pages since both clans have each their own entry pages.

This way clan 1 will have displayed the 10 newest threads regarding their clan while clan 2 has the 10 newest threads regarding clan 2.
The will be in different locations for each clan. They also have some webspace available where they can add other things. They could for example host their whole website there.

madhouse 05-02-2003 11:12 AM

Hi tigga ,

Tried adding additional custom boxes but even with modifing the index.php(named to that from myvbindex.php) and add the templates , plus added $custom3 , 4 , and 5 .. It does not want to show them.

Also any way to add these extras to the admins panel so they can be turned off or on?

jarvis 05-03-2003 04:39 AM

Tigga,

It's good to see that you are still working on this script.

So here's my situation... I am myVbindex 2.0. Do I need to re-install, and will I lose my 'multiple instances' that you helped me setup before.

(reference: https://vborg.vbsupport.ru/showthrea...&pagenumber=21 )

I want to take advantage of your maintenance releases, but I want to understand what work lies in front of me.

Thanks!!

ivanmcp 05-03-2003 03:21 PM

Hi Tigga,

I was wandering if the 'Latest Forum Topics' feature can display message body as well as title (which it does).

Reason I ask is that I have been using Tubedoq's 'Last 10 posts' hack, which gives an option to turn message body to be displayed on/off. It also has an option to say how many letters do be shown; like your does for the message title. I have configured myvbindex 3.2 and it works a treat. But in order to lure visitors to the forum, I like to show them a bit of a message body as well on my home page.

Tigga 05-03-2003 04:16 PM

glo - Yes, it should be possible replicate that page. Everything is controlled by templates, so it should just be a matter of modifying the html in the templates to fit your needs

madhouse - If you'll refer to this post, it will tell you how to add the options to turn those templates on/off in the Admin CP.

jarvis - It's been quite a while since v2.0 and I don't think I even have a copy on my computer to compare 3.2 to anymore. Unfortunately I think your best bet would be to uninstall the script, and then do a new install of 3.2. You should be able to follow the same instructions though to have multiple instances of the script working, but if you have any problems let me know and I'll be glad to help.

ivanmcp - I'm not sure if there would be a way to do that without having quite a few additional queries on your homepage. I tried testing a few methods but didn't see a good way to do that without a lot of queries, or quite a bit of extra work. If you don't mind having an additional query on the page for each thread you have displayed then I can tell you how you could do it that way, but I wouldn't recommend it.

ivanmcp 05-03-2003 05:28 PM

Tigga,

Quote:

If you don't mind having an additional query on the page for each thread you have displayed then I can tell you how you could do it that way, but I wouldn't recommend it.
I would not mind seeing what is involved. But if you have no time, I think I can bring Tubedoq's script in there somewhere. I am not worried about additional queries, as I am not including many of the boxes on my test page of mYvBindex. I only use Calendar, Poll, Weather, News and Latest Forum Topics boxes.

For some reason, I preffer myvbindex to the other alternatives. If I can create my vision using mYvBindex, I will have to reward your effort that you put into this thing. Man, looking through this thread, you never get tired of constant 'technical support'. I wish I knew the way to search through this thread alone, and not the whole board, as it is getting far too long now. You need forum of your own :).

Enough of praise, off to play with templates. Once finished, I'll invite you to have a look. :)

Tigga 05-03-2003 11:02 PM

Thanks for all the compliments ivanmcp. :)
Just for future reference, there is a "search thread" feature. It's at the bottom of every thread here. ;)

Well to pull the contents of the post as well, here's what you would need to do... Open your myvbindex.php file and look for:
PHP Code:

  $lastposttime vbdate("$timeformat",$thread['lastpost']); 

Right Above that Add:

*Edit* The codes got messed up since there were so many vB code's in there, so I'm attaching it in a text file for you.

(I just borrowed the str_replace options from tubedogg's hack. ;)) Then at the very top part of that code you'll see $maxpostchars='50'. You would just change 50 to however many characters of the post you want it to display before it replaces the rest with "...". Then you would just add $pagetext in your index_threadbit template wherever you would like to display the text. It should be pretty easy, but if you have any problems let me know.

ivanmcp 05-04-2003 08:24 AM

Thanks for that, I will check it out later on today.

And as far as search this thread option is cencerned, lets all say it together, on 3:

1 ..... 2 ..... 3 ...... DDOOOOHHHHHHHHHHHHH!!!!

edit: nice hack, but should be placed somewhat higher. One never scrolls down to the copyright notice.

ivanmcp 05-04-2003 08:02 PM

Thanx Tigga,

It worked first time, and as you said, it was easy. It is not often that I can make something work in a first go.

I am cracking on with work on my site...

Tigga 05-04-2003 08:31 PM

Glad to hear it's working ok. When I tested it on my site the queries were rather small, so hopefully there won't be too much of a performance hit. :)
And I agree the Search Thread option might be better if it was placed somewhere else. I don't think I even saw it until I saw someone else that posted about using it.


All times are GMT. The time now is 02:37 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.03170 seconds
  • Memory Usage 1,845KB
  • 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
  • (3)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