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)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

Xelation 04-09-2002 07:02 PM

Quote:

Originally posted by nakkid
Add PM info to your vbHome page

1. In forum/index.php, find the code segment:
PHP Code:

//check usergroup of user to see if they can use PMs
  
...[vB code]...
  eval(
"\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
  
$pminfo='';


Copy that code into the vB marked area, in your home/index.php file.

2. Replace this code:
PHP Code:

eval("\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
  
$pminfo='';


With::
PHP Code:

eval("\$homepminfo = \"".gettemplate('home_pmloggedin')."\";");

} else {
  
$homepminfo='';


Create a new template (home_pmloggedin) and copy into it the forumhome_pmloggedin contents (edited to match your homepage).

Let me know if that helped you.

in the home template, what do I need to add for it to show up now?

Sadie Frost 04-09-2002 07:03 PM

I believe it's $pminfo - it's the same variable that's in your forumhome now :)

Xelation 04-09-2002 07:06 PM

Quote:

Originally posted by Sadie Frost
I believe it's $pminfo - it's the same variable that's in your forumhome now :)
I tried that and it came up blank on the page.

Xelation 04-09-2002 07:07 PM

figured it out, its $homepminfo

Xelation 04-09-2002 07:19 PM

ok nakkid, I know I am doing something wrong here for sure... when I go to edit the home_pmloggedin template it does not change on the page... I think its getting the information from the forumhome_pmloggedin template, but I dont know how that can be because I'm using $homepminfo... do you know what my problem is?

TECK 04-09-2002 07:27 PM

can you pm me 2 attachments.. as .txt files with the actual codes? one file is the index.php and the second is the template.
thanks.

TECK 04-09-2002 07:39 PM

ok.. the prob was in index.php file.
i added in $templatesused your new template.
also i realised that your $homepminfo was pointing still to the old forumhome_pmloggedin instead of the new one. also the second variable was left $pminfo, instead of homepminfo. please compare the 2 files so you understand better the mechanism.

otherwise, good job in there... :)

Xelation 04-09-2002 07:44 PM

yup, I see what happened now, ok thanks for the help! ;)

Sadie Frost 04-10-2002 12:05 AM

Sorry about that Xelation - my bad :)

wooolF[RM] 04-10-2002 07:06 PM

]grrrrrrrrrrrrrr @ my fellow admins...

what they do : they post a new thread in the vbHome news section (about 3-5 lines). After that they go to normal forums and post the whole news ( about 5-50-xxx lines) there so people get chance to know more about news and people get chance to comment news.

As u may understand it's irritating for me (double post) + it's double job for admins to post it twice + double badwidth... :(

Now I used vBHome for about 1 week and it seems that all my users are happy to use it. I have also included poll feature from vbIndex after I got permission from el3m3nt. Well, when u vote u have ability to leave a comment (good).

Here's idea (maybe it will be used maybe not) : Make news the same like new threads (max characters = for example 100, after that inserting "..." and making link to the thread) and give ability to comment news (with link leading to the thread).

I direct this thread to nakkid ofcourse as he's creator of vBHome, but if there are anybone who can make my dream into life I will be very appreciatted.

Thanx :)


All times are GMT. The time now is 01:06 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.03764 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)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
  • (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