Question :First Topic [pic] onForum + Last X [img] on Forum

Mod Support

Moderators: BNa, Sekuro, 4seven


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby 4seven » 01 Jul 2013, 20:04

just post at least 3-5 different [img] posts in forum id 19 and 22, not [attachment].
clear all available caches etc..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby Pitch » 01 Jul 2013, 20:25

4seven wrote:just post at least 3-5 different [img] posts in forum id 19 and 22, not [attachment].
clear all available caches etc..


I do not understand what I should do ... google translation does not help me, it translated into French all rot

and a beast, but I must make two facilities codes? or just index forum or just viewforum? then I put the two facilities codes ...

FOR USE IN INDEX - PROSILVER
###############################
FOR USE IN VIEWFORUM - PROSILVER
Pitch

Tiptop

Tiptop
 
Posts: 20
Joined: 27 Jun 2013, 22:19
 
Resolution: 1536x864


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby 4seven » 01 Jul 2013, 21:10

All i can say is, recheck the edits, also make shure,
that thumbing is possible from the provider

Note:
- No display of protected remote pics


Check again the Settings section.

Also check, if you have add this fix from first post

viewtopic.php?p=202#p202

fix #1 for v.0.0.2
open

last_x_img_on_forum.php
last_x_img_on_forum_orphan.php

find in both files

Code: Select all
"[img:%]%[/img:%]"


replace in both files with

Code: Select all
"%[img:%]%[/img:%]%"


Clear all board-, style-, and browser-caches

Post some [img] topics in the forum-ids, you set in the Settings section.

Go to Index and it should work.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby Pitch » 01 Jul 2013, 22:29

picforumtest.JPG


picforumtest.JPG


test3.JPG


I have a successful install on peak forum, pfiouuu it was laborious. thank you for your help.

Good by cons at ads and post it it makes me a great white
I do not know if it's possible to change it?
Attachments
tes2.JPG
Pitch

Tiptop

Tiptop
 
Posts: 20
Joined: 27 Jun 2013, 22:19
 
Resolution: 1536x864


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby 4seven » 01 Jul 2013, 23:51

open

first_x_in_forum_index_config.php

make shure, both of these options are set to no
or, if you want a "no [img] pic", set only the first option to yes.
read also hints.

Code: Select all
//--------------------------------------------------------------

// activate the display of an "no [img] pic" 
// but, before u activate this > make a pic and save it  
// with the size of $convert_max_size and correct fit (given by $width_or_height_img )
// name it no_img.jpg and load it up to images/img_thumbs

$no_pic_img = 'no';

// enter as given: yes or no

//--------------------------------------------------------------

// placeholder with perfect fit, instead of "no [img] pic"
// if $no_pic_img = 'no' and $no_img_placeholder = 'no'  > the topic title fit is shown in standard phpbb3 mode
// hint: only active if $no_pic_img = 'no'

$no_img_placeholder = 'no';

// enter as given: yes or no 

//--------------------------------------------------------------   


clear all available board- and browser-caches.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby Pitch » 02 Jul 2013, 17:13

Thank you for your help it works, I'm so happy too.

I'm going to annoy you a bit ^ ^
the other mod last img in index.

I managed to install it but it also takes into account only me when I write all the numbers forum

Code: Select all
//---------SETTINGS------------------
// here u can enter the foren id's to show
$forum_idz_to_show = ('14,22,19,18,17,24,48,15,25,20,47,47,16,23');
// enter as given: '7,9,10'
//----------------------------------
// make the setting, if you desired width, height or mix here
$img_width_o_height = 'mix';
// enter as given: width, height or mix
//----------------------------------
// crawl script or not 
$crawl_img_o_not = 'yes';
// enter as given: 'yes' or 'no'
//---------------------------------- 
// detect screen resolution  of user via java
// (if anything is disfunction by detection, turn it to: no)
$detect_img_java_screen  = 'no';
// enter as given_ yes or no
//----------------------------------
// number of max pics to show 
// (important if user have no javacript enabled or $detect_java_screen  is set to 'no';)
$max_img_to_show  = 2;
// enter as given 9 or 12 etc.
//----------------------------------
// make the setting of max px here (counts for width, height and mix)
$convert_mx_size = 50;
// don't make it to big
//----------------------------------
// daily auto delete of thumbs?
$daily_auto_delete = 'yes';
// enter as given: 'yes' or 'no'    



Result

lastximg.JPG


I'd like to do a find like this forum
http://www.virusphoto.com/
virus photos index.JPG



it is only the latest pictures posted that appear in each category. but I do not know if they use your mod or another.

In any case, a big thank you for your patience and your help, you are awesome.
Pitch

Tiptop

Tiptop
 
Posts: 20
Joined: 27 Jun 2013, 22:19
 
Resolution: 1536x864

Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby Pitch » 04 Jul 2013, 17:55

Hello

i have one erreur
but i don't understant.
when i clik to messages no read etc...

SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/dbal.php
LINE: 432
CALL: dbal->sql_error()

FILE: [ROOT]/includes/first_x_in_forum_search.php
LINE: 45
CALL: dbal->sql_in_set()

FILE: [ROOT]/search.php
LINE: 1138
CALL: include('[ROOT]/includes/first_x_in_forum_search.php')
Pitch

Tiptop

Tiptop
 
Posts: 20
Joined: 27 Jun 2013, 22:19
 
Resolution: 1536x864


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby 4seven » 04 Jul 2013, 21:18

open

includes/first_x_in_forum_search.php

find

Code: Select all
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
    exit;
}

after add

Code: Select all
    if (!isset($affected_forum_att))
    {
       $affected_forum_att[] = 0;
    }

    if (!isset($affected_forum_img))   
    
{
        $affected_forum_img[] = 0;
    }
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby Pitch » 04 Jul 2013, 21:27

I just add the piece of code but it does not change anything, I always error on unread and unanswered.

I'm really sorry to annoy you again.
I think your really great mod and members have told me that it was top notch.

I use seo phpb is that this is a problem that can?

i have this error

SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/dbal.php
LINE: 432
CALL: dbal->sql_error()

FILE: [ROOT]/includes/first_x_in_forum_search.php
LINE: 53
CALL: dbal->sql_in_set()

FILE: [ROOT]/search.php
LINE: 1138
CALL: include('[ROOT]/includes/first_x_in_forum_search.php')
Pitch

Tiptop

Tiptop
 
Posts: 20
Joined: 27 Jun 2013, 22:19
 
Resolution: 1536x864


Re: Question :First Topic [pic] onForum + Last X [img] on Fo

Postby 4seven » 04 Jul 2013, 21:31

Pitch wrote:I use seo phpb is that this is a problem that can?

may. personally i have no errors there (check demo).
May you check (again) your mod edits in search.php.

Code: Select all
FILE: [ROOT]/search.php
LINE
: 1138

Set the above code

Code: Select all
        if (!isset($affected_forum_att))
        {
           $affected_forum_att[] = 0;
        }

        if (!isset($affected_forum_img))   
        
{
            $affected_forum_img[] = 0;
        

just before the line 1138 in search.php,
but leave the code in includes/first_x_in_forum_search.php
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


PreviousNext

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 3 guests

cron