vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display images in archive? (https://vborg.vbsupport.ru/showthread.php?t=271085)

v123shine 09-29-2011 03:08 AM

Display images in archive?
 
Hello..

Now all of images show as link in vbulletin archive. Can someone help me to show images in archive?

I see some of vbulletin forum can show image in archive. I try to search the mod but i cant find.

- Please help me -
Thank you so much

v123shine 09-30-2011 03:17 AM

Help me, please!!

v123shine 10-01-2011 06:01 PM

I need help, please!!

BirdOPrey5 10-02-2011 03:39 PM

Do you have a link to a forum that shows images in the archive?

v123shine 10-03-2011 02:34 AM

Thank you so much 'BirdOPrey5' for respone my question.

Yes of course I have.

BirdOPrey5 10-03-2011 10:09 AM

Wow that is very custom, at first I wasn't even sure it was a VB forum but it is. However it completely defeats the entire purpose of having an archive to begin with- why not just disable your archive if that is what you want?

v123shine 10-04-2011 04:34 AM

Dear BirdOPrey5,

I need the archive. Many people search in google and found the archive page / not original page, and they dont know how to open original page :( -- So i need to display image in archive, but in default vbulletin archive user can't view image/photo.

Can you help me to build the small plugin for display image in archive, please!

BirdOPrey5 10-04-2011 01:33 PM

I can't get it t work as a plugin, but if you edit your index.php file in the archive:

Find this code:

PHP Code:

    while ($post $db->fetch_array($posts))
    {
        
$i++;
        
$post['pagetext_simp'] = strip_bbcode($post['pagetext']);
        
$post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
        
$post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);

        if (
$vbulletin->options['wordwrap'] != 0)
        {
            
$post['pagetext_simp'] = fetch_word_wrapped_string($post['pagetext_simp']);
        }

        
$post['pagetext_simp'] = fetch_censored_text($post['pagetext_simp']);

        (
$hook vBulletinHook::fetch_hook('archive_thread_post')) ? eval($hook) : false;
        
        
$output .= "\n<div class=\"post\"><div class=\"posttop\"><div class=\"username\">$post[username]</div><div class=\"date\">$post[postdate]$post[posttime]</div></div>";
        
$output .= "<div class=\"posttext\">" nl2br(htmlspecialchars_uni($post['pagetext_simp'])) . "</div></div><hr />\n\n";
    }




and replace with:

PHP Code:

    while ($post $db->fetch_array($posts))
    {
        
$i++;
        
$post['pagetext_simp'] = strip_bbcode($post['pagetext']);
        
$post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
        
$post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);

        if (
$vbulletin->options['wordwrap'] != 0)
        {
            
$post['pagetext_simp'] = fetch_word_wrapped_string($post['pagetext_simp']);
        }

        
$post['pagetext_simp'] = fetch_censored_text($post['pagetext_simp']);

        (
$hook vBulletinHook::fetch_hook('archive_thread_post')) ? eval($hook) : false;

                require_once(
DIR '/includes/class_bbcode.php');
                   
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),true); 

               
$post['pagetext_simp'] = $bbcode_parser->parse($post['pagetext'] , $threadinfo['forumid'] , false);

               
$output .= "\n<div class=\"post\"><div class=\"posttop\"><div class=\"username\">$post[username]</div><div class=\"date\">$post[postdate]$post[posttime]</div></div>";
        
$output .= "<div class=\"posttext\">" nl2br(($post['pagetext_simp'])) . "</div></div><hr />\n\n";
    }



It should parse your images, and other bbcode.

v123shine 10-04-2011 01:38 PM

Thank you so much BOP5

OC, I will try now :)

--------------- Added [DATE]1317743876[/DATE] at [TIME]1317743876[/TIME] ---------------

Dear BOP5,

unregister member (user not login) cant view the photo, but register member (user already login) can view the photo.

please help me to show image to unregister member...

--------------- Added [DATE]1317746246[/DATE] at [TIME]1317746246[/TIME] ---------------

Update:
All thread content empty in archive!

This is the preview vbulletin archive for member not login >>> all thread content empty, but if member login, member can view all thread content and images.

v123shine 10-06-2011 03:49 AM

Help me, please.


All times are GMT. The time now is 06:48 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.01453 seconds
  • Memory Usage 1,761KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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