vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Alternate Last Post Display (https://vborg.vbsupport.ru/showthread.php?t=214832)

nascartr 08-23-2009 11:50 PM

Quote:

Originally Posted by TheLastSuperman (Post 1872977)
Ok IdanB... in the actual xml I modified this part you'll see what I added...

Code:

// Code written by Idan Bismut (c) 2009
// Copy and/or re-use of this code (or part of it) without author approval in writing is forbidden

if ( $vbulletin->options['alt_lp_global_enabled'] == 1)
{
 
  if ( ( ($vbulletin->options['alt_lp_enable_on_forumhome'] == 1) && (THIS_SCRIPT == 'index') ) || ( ($vbulletin->options['alt_lp_enable_in_forumdisplay'] == 1) && (THIS_SCRIPT == 'forumdisplay') ) || ( ($vbulletin->options['alt_lp_enable_in_forumdisplay'] == 1) && (THIS_SCRIPT == 'tabforumhome') )  )
  {

Plus another instance near the bottom:

Code:

            <title>Forum Home - Template Change</title>
            <hookname>forumhome_start</hookname>
            <phpcode><![CDATA[// Alternate Last Post Display Modification
// ----------------------------------------
// Code written by Idan Bismut (c) 2009
// Copy and/or re-use of this code (or part of it) without author approval in writing is forbidden

if ( $vbulletin->options['alt_lp_global_enabled'] == 1)
{
 
  if ( ($vbulletin->options['alt_lp_enable_on_forumhome'] == 1) && (THIS_SCRIPT == 'index')  || ( ($vbulletin->options['alt_lp_enable_on_forumhome'] == 1) && (THIS_SCRIPT == 'tabforumhome') ) )
  {
      // Fixed in v.1.1.4 - now all inside template, so user may update it as they please !
      //$vbulletin->templatecache['forumhome_lastpostby'] = "<div align='left'><table width='100%'><tr><td align='left' width='40'>\$vbulletin->options['usefileavatar']</td><td align='left' NOWRAP><a href='\$GLOBALS[alt_lp_last_post_link]'>\$GLOBALS[alt_lp_last_post_title]</a> $vbphrase[alt_lp_by] <a href='\$GLOBALS[alt_lp_last_poster_profle_link]'>\$GLOBALS[alt_lp_last_poster]</a><br>\$GLOBALS[alt_lp_last_post_time_ago]</td></tr></table></div>";

      $vbulletin->templatecache['forumhome_lastpostby'] = $vbulletin->templatecache['forumhome_lastpostby_alternate_view'];

      //eval('$vbulletin->templatecache[\'forumhome_lastpostby\'] = "' . fetch_template('forumhome_lastpostby_alternate_view') . '";');

      // Reload template so the first bit will be updated as well
      eval('$forum[\'lastpostinfo\'] = "' . fetch_template('forumhome_lastpostby') . '";');
  }
}]]></phpcode>
        </plugin>

And I believe that was it... I had another similar mod for Avatars in another area of the forum so I had to change that as well but don't think they were directly related. So to sum it up all I did (sorry I had to backtrack due to heavily modifying that similar mod that was for threadbit etc) was add in another && this script etc w/ the forumhometab named as the if this script.

S-MAN

Edit: See attached copy of XML that has been modified for my forum w/ this && this_script for Tabbed Forum Home.


When I install the attached XML I get this error.

Quote:

Fatal error: Call to a member function query_first() on a non-object in /home/nascartr/public_html/community/includes/functions_forumlist.php(393) : eval()'d code on line 402

TheLastSuperman 08-24-2009 05:27 PM

Quote:

Originally Posted by nascartr (Post 1873022)
When I install the attached XML I get this error.

That was for IdanB to review not for use!

I'll double check it later I'm just in the middle of something and need to find a mod real quick but hold tight I'll see what I can fix up for you but better to let the developer fix imo.

S-MAN

nascartr 08-25-2009 04:16 AM

I appreciate it TLS!

TheLastSuperman 08-25-2009 02:07 PM

Quote:

Originally Posted by ArnyVee (Post 1873009)
Michael, you think it's safe for me to use your product for my site? I haven't been following this one too closely as of late, but noticed this post tonight :up:

sorry Arny I completely missed that post but no, I would wait for IdanB to re-release with an update, I had to change other codes for mine considering how we store our avatars something with avatar[0] I believe but let me look into it again real quick for nascartr as I said last night.

Quote:

Originally Posted by nascartr (Post 1873836)
I appreciate it TLS!

No problem :p

kalisekj 08-27-2009 07:21 PM

I have DNP Media Installed with the forumhome addon. So this Mod works on forum display and on forumhome but on forumhome I get the following errors at the top of the site. I have disabled forumhome until I get hopefully some feedback. I am running a heavily modded VB 3.82 @ http://freeonlinemoviesforum.com

Warning: Cannot use a scalar value as an array in [path]/index.php(67) : eval()'d code(200) : eval()'d code on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at [path]/includes/class_core.php:3318) in [path]/musicajax.php on line 15

Aclikyano 09-06-2009 02:37 AM

please help, i dont know why i am getting this link on all the avatars on forumhome
they come up as the anonymous avatar even when user has avatar selected and it links to
mysite/forums/User%20Was%20Deleted%20From%20DB

Log on 09-06-2009 08:05 AM

very nice

thank u :)

mattwmc2001 09-06-2009 09:03 PM

Cool!

Looks good.

Wonder if there is a separate way to do this for threads in a forum - so the avatar pics could be smaller?

TimberFloorAu 09-06-2009 10:08 PM

Looks great thanks.

Installed.

TimberFloorAu 09-06-2009 10:38 PM

Would like to see:

if we set: Use "Last Post" text as title ? to NO

then

in forum display last post appears: like

TimberFloorAu Avatar
Thread Game: Word Association
by TimberFloorAu
2 Minutes, 11 Seconds ago

instead of

TimberFloorAu Avatar Thread Game: Word Association by TimberFloorAu
2 Minutes, 11 Seconds ago

as it ruins our style. Perhaps its just a <br /> addition within the xml


All times are GMT. The time now is 05:05 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.02444 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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