Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2011, 03:08 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-30-2011, 03:17 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help me, please!!
Reply With Quote
  #3  
Old 10-01-2011, 06:01 PM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need help, please!!
Reply With Quote
  #4  
Old 10-02-2011, 03:39 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a link to a forum that shows images in the archive?
Reply With Quote
  #5  
Old 10-03-2011, 02:34 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Yes of course I have.
Reply With Quote
  #6  
Old 10-03-2011, 10:09 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 10-04-2011, 04:34 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 10-04-2011, 01:33 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 10-04-2011, 01:38 PM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 10-06-2011, 03:49 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help me, please.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04257 seconds
  • Memory Usage 2,276KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete