[DEV] F2A in Topic Mouseover v.0.0.1.a

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

[DEV] F2A in Topic Mouseover v.0.0.1.a

Post by 4_seven »

F2A in Topic Mouseover
First 2 [attachment] in Topic Mouseover

MOD-Title: F2A in Topic Mouseover
MOD-Version: 0.0.1.a
MOD-Author: 4seven

License: GNU General Public License v2

Request by: oikos
Request Post: http://www.phpbb.com/community/viewtopi ... #p12892031

MOD-Description: This Mod shows the first 2 [attachment] in a Topic in Mouseover on Forum Index

phpBB-Version: phpBB 3.0.x
phpBB-Languages: multilingual
phpBB-Styles: all Styles, that are based on prosilver

Demo:
http://4seven.kilu.de/phpbb3/viewforum.php?f=14 (currently in mix with F2I)
http://4seven.kilu.de/phpbb3/viewforum.php?style=1&f=7 (F2A only)
(to check out posting [attachment] > un: utest / pw: testtest)

Download: http://www.4seven.de/forum/6test/viewtopic.php?f=3&t=44

Image

Image

Features:
- Shows the first 2 [attachment] from topics of chosen forums in forum index in mouseover
- switchable to icon hover instead of topic title
- If only one [attachment] is present, it shows it also
- Per forum thumbing
- Auto-thumbing of [attachment]. If you change an [attachment], the thumb is auto-updated
- "width" and "height" size-option
- "mix" size-option. Squares the [attachment] to exact fit (if not squared allready)
- Dead-link-check
- Easy install
- 2 Querys
- Perfect layout in every browser
- Xhtml 1.0 strict valid

Requirements: none knowing

Screen: follows (see demo)

Notes:
- thumbs faster as 'First 2 [img] in Topic Mouseover', bcs. of thumbing from same server.

Planned:
- Possibility to work together with 'First 2 [img] in Topic Mouseover'
- ACP
- Delete-Orphaned Modul
- ??

--------------

New in v.0.0.1.a:
- #fix: instruction and package updated
- #fix: encoding error of main php
- #improve: thumbing of non inlined attachments

-----------

note

Code: Select all

make shure you clear all board-caches after each change in both config-areas in f2a_view.php
Last edited by 4_seven on Sat Oct 01, 2011 10:01 pm, edited 18 times in total.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First 2 [attachment] in Topic Mouseover

Post by 4_seven »

Reserved......

info: timeline till first release ~> end of november
Current Mods | Mod Base | php(BB) programming | No help via PM
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] First 2 [attachment] in Topic Mouseover

Post by oikos »

U'RE MY HERO 4SEVEN!! :D :D :D can't wait.... oooomg! :mrgreen: :mrgreen: :mrgreen: :mrgreen:
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] First 2 [attachment] in Topic Mouseover

Post by oikos »

oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] First 2 [attachment] in Topic Mouseover

Post by oikos »

any progress 4seven? can't wait to try it out :D :D :D

btw, un: test / pw: testuser doesn't work for me

thanx for all ur contributions :mrgreen: U'RE AWESOME
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] First 2 [attachment] in Topic Mouseover

Post by 4_seven »

thx 4 laudation..

the mod should be released this late we.

un. + pw. is corrected
http://www.phpbb.com/community/viewtopi ... #p12892837
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by 4_seven »

v.0.0.1 released

- see first post for further details
- read diy-instruction of modx after install
Current Mods | Mod Base | php(BB) programming | No help via PM
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by oikos »

this Thanksgiving... i wanna thank God for letting me know 4seven, a genuine, intelligent and yet generous programmer who is so passionate in web development that he spent his own precious time to help noobs like me out.... not only he offered free consultant, he is willing to implement new request/ideas as well. i got on my computer today and found out that the long anticipated F2A mod has been released!!! this is the PERFECT GIFT... :D :D thank you God & thank you 4seven for all your effort to make this happen. this mod couldn't be without you~ HAPPY THANKSGIVING!

Image
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by 4_seven »

thanks for this very nice statement :)

greez
4seven
Current Mods | Mod Base | php(BB) programming | No help via PM
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by oikos »

hey 4seven... i've been so busy with my final project lately and today, i finally had the time to install the mod but i got this:

Code: Select all

SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: includes/db/dbal.php
LINE: 379
CALL: dbal->sql_error()

FILE: f2a/f2a_view.php
LINE: 187
CALL: dbal->sql_in_set()

FILE: viewforum.php
LINE: 742
CALL: include('f2a/f2a_view.php')
can u plz help thannx 4seven :)
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by 4_seven »

let me guess

in subforums or categories?

if yes, then change the first find in install for viewforum.php to

find

Code: Select all

        // Send vars to template
        $template->assign_block_vars('topicrow', array( 
before add

Code: Select all

 the same as in install ;)  
Current Mods | Mod Base | php(BB) programming | No help via PM
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by oikos »

um... actually in forums... only the ones that i put in ----------------SETTINGS--1------------------ are affected. for example, when i take put the forum id 3 in SETTINGS--1, it shows

Image

when i try to access forum id 3. but when i take it out, it can be accessed just fine. :?

i tried to add

Code: Select all

    // F2A in Topic Mouseover  / 4seven / 2010
    if (!isset($topic_itz))
    {
       $topic_itz = array();
    }
    $topic_itz[] = $topic_id;
	

    if (!isset($topic_izz))
    {
       $topic_izz = array();
    }
    $topic_izz[] = $topic_id;
    // F2A in Topic Mouseover  / 4seven / 2010
before

Code: Select all

// Send vars to template
        $template->assign_block_vars('topicrow', array( 
but it still doesn't work :o please help

thanks
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by 4_seven »

sorry, but have no clue. this error never appears on my boards. post your config from section 1..
Current Mods | Mod Base | php(BB) programming | No help via PM
oikos
Registered User
Posts: 78
Joined: Fri Sep 19, 2008 3:31 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by oikos »

here it is: ;)

Code: Select all

//------------------------------------------------------------
// ----------------SETTINGS--1------------------
// enter here the forum id's that will show thumbing  of [img]
$affected_m_att	= array(3,15,4,5,9,6,24,23,29,47,45,18); 
// enter as given: (7,8,9) 
// --------------------------------------------------
// hover mouse over pic instead of topic title
$show_mouse_pic_a = true;
// enter true or false
// ----------------SETTINGS--1------------------
//------------------------------------------------------------
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] F2A in Topic Mouseover v.0.0.1

Post by 4_seven »

hm, seems to be ok. it would be helpfull to have ftp-access and a test-account to figure it out,
bcs. i have no clue, why it not work for you. my test- and live-boards spit out no error on this mod.
Current Mods | Mod Base | php(BB) programming | No help via PM
Locked

Return to “[3.0.x] MODs in Development”