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)

papa 01-09-2003 06:54 AM

I know almost everything is possible but can my users modify the myvbindex.php page to be a customized page based on their choices.

For example if I make a 5 custom templates and the users can choose which ones they want when they log in those are the only ones they see?

Thanks in advance

jundat 01-09-2003 10:48 AM

help me about this error

Warning: Unable to access /forums/global.php in /home/skull/public_html/index.php on line 25

Thanks

Tigga 01-09-2003 08:21 PM

Papa - Something like that is very possible, but would require some hacking. When I get the time I'll try to play around with the files to see what would have to be done, but I can't promise I'll be able to get to it any time soon.

jundat - You have your path set wrong in your myvbindex.php. Try setting it to /home/skull/public_html/forums ;)

papa 01-10-2003 01:50 AM

I imagine it as a small control panel like the admin one but for them. I am not sure how this would work but I know it would be popular.

Thanks for all you have done. Do you have a pay pale account. I'd like to send you a few bucks for the hard work you have done. I really like the scripts and my users have found the new look very fun.

papa

papa 01-10-2003 02:32 AM

Can you tell me how to add a jump menu of the existing forums on our site in one of the custom boxes?

I searched for this but came up with missing leads. This way the members don' t have to go to another page with the forums listed (original index page)

Thank man,
papa

Tigga 01-10-2003 02:59 AM

I've actually thought about making the hack for users to customize their homepage for my own site as I think many users would like it as well. Again, it may be a little while before I get to work on it, but when I do I'll share it here.
I do have a PayPal account (tigga@plurplanet.com). Donations really aren't necessary, but would be graciously accepted. :)
For the jump menu, you mean just the regular forum jump that's at the bottom of pretty much every page on the forum, right? That wouldn't be too hard to do, but I'll have to post instructions tomorrow. I'm having a problem with my server crashing and am basically having to reconstruct my forums at the moment since I'm sure it's being caused by some hack I installed from here, but I have no idea which one. :(

Tigga 01-10-2003 10:11 AM

Papa - Here's how to add the forum jump to your index page...

Open your myvbindex.php file and look at the very bottom for:
PHP Code:

$getbgrow=getrowcolor();
eval(
"dooutput(\"".gettemplate('index')."\");"); 

Right above that add the code: makeforumjump();

Then edit your forumjump template. In that template, there are 2 places near the top of that template where you'll see forumdisplay.php. Change that to the full url to your forumdisplay.php file in both places.

Now edit your index template and place the variable $forumjump wherever you would like the forum jump to appear.


I played around a bit and allowing users to set their own options for the homepage really isn't that hard to do. I'll write up some instructions on what to edit and post them here for you later today or tomorrow. :)

ranger2kxlt 01-10-2003 09:39 PM

ok i have a problem that hopefully can be fixed,
the latest forum topic, doesn't display the correct member who last posted! anyone help me on this??

Tigga 01-10-2003 10:11 PM

Ranger - By default it shows who started the thread and the time/date that the thread was started. If you'd prefer for it to show the last poster and date of the last post, here's what you need to edit:

Open your myvbindex file and look for:
PHP Code:

$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,dateline,views".iif($showthreadicon,   ',thread.iconid','')." FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 

Replace that with:
PHP Code:

$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,lastpost,views".iif($showthreadicon,   ',thread.iconid','').",lastposter FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 

Then right below that find:
PHP Code:

  if ($showthreaddate) {
      
$thread['time'] = vbdate($timeformat$thread['dateline']);
      
$thread['date'] = date("m-d-y"$thread['dateline']); 

You would just change 'dateline' at the end of both of those lines to 'lastpost'.

Then edit your index_threadbits template and change the link to the poster to

<a href="$bburl/member.php?action=getinfo&find=lastposter&threadid =$thread[threadid]">$thread[lastposter]</a>


That's it. :)

ranger2kxlt 01-11-2003 12:22 AM

alright will try that later tonight, and let you know how it goes

Thanks :-)


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.01929 seconds
  • Memory Usage 1,751KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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